/* One print layout for every letter (documents, violation notices, renewal letters, payment plans, collection letter).
   Paper: US Letter with the margins on the page itself (@page), so text on page 2+ never touches the paper edge.
   The footer is the last block of the letter: in normal flow (it cannot overlap text), kept with the last lines of text
   (break-before: avoid) and pushed to the bottom of a one-page letter by a min-height on the text block. */
@page{size:Letter;margin:.5in .7in}
.letterhead{display:flex;justify-content:space-between;align-items:flex-end;gap:.35in;padding-bottom:.1in;margin-bottom:.16in;border-bottom:2.5px solid var(--lh-brand,#9b1c1c);break-inside:avoid;break-after:avoid}
.letterhead .lh-logo{display:block;max-height:.7in;max-width:3in;width:auto;height:auto}
.letterhead .lh-name{font-family:Georgia,serif;font-size:20pt;line-height:1.1;font-weight:700;color:var(--lh-brand,#9b1c1c)}
.letterhead .lh-office{text-align:right;font-size:9pt;line-height:1.45;color:#555;overflow-wrap:anywhere}
.letterhead .lh-office b{color:#222;font-weight:600}
.ps{display:block;width:100%;box-sizing:border-box}
.ps-foot{break-before:avoid;break-inside:avoid}
.ps-foot-inner{display:flex;justify-content:space-between;gap:1rem;margin-top:.12in;border-top:1px solid #d0d5dc;padding-top:6px;font-size:8pt;line-height:1.35;color:#555;overflow-wrap:anywhere}
.ps-foot-inner span:last-child{text-align:right}
.ps-main,.ps-main *{overflow-wrap:anywhere;min-width:0}
.ps .letterhead{overflow-wrap:normal}
.ps img{max-width:100%}
.ps p,.ps li{orphans:3;widows:3}
.ps h1,.ps h2,.ps h3,.ps .para-heading,.ps .doc-subject,.ps .resident-subject{break-after:avoid;break-inside:avoid}
.ps .doc-sig,.ps .resident-signoff,.ps .signoff,.ps .sig,.ps .choices,.ps .deadline,.ps .resident-action,.ps .doc-recipient,.ps .resident-recipient,.ps .pp-sign{break-inside:avoid}
.ps tr,.ps li{break-inside:avoid}.ps thead{display:table-header-group}
.ps pre,.ps .mock{white-space:pre-wrap}
@media print{
  html,body{background:#fff!important;margin:0!important;padding:0!important}
  .ps-main{min-height:9.2in}.ps{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .letter-page,.doc-letter{box-shadow:none!important;margin:0!important;padding:0!important;width:auto!important;max-width:none!important;min-height:0!important;height:auto}
  .ps+.ps,.doc-letter+.doc-letter{break-before:page}
  .ps:last-child{break-after:auto}
}
@media screen{.ps-foot-inner{margin-top:.4in}}
/* payment plan agreement + collection letter pieces (real <table> styles of the app do not apply on paper) */
.pp-parties{margin:0 0 .15in}.pp-parties>div{display:flex;gap:.2in;padding:3px 0}.pp-parties b{flex:0 0 1.2in;color:#555;font-weight:600}.pp-parties span{flex:1}
.pp-sign{display:flex;gap:.6in;margin-top:.4in}.pp-sign>div{flex:1}.pp-sign.one>div{flex:0 0 3.2in}.pp-sign .line{border-bottom:1px solid #000;height:.38in;margin-bottom:4px}.pp-sign .line+b,.pp-sign b+br+*{}
.pp-sign .line:nth-of-type(2){margin-top:.2in}
.letter-page .muted{color:#555}
.letterhead .lh-entity{font-size:8pt;color:#555;margin-top:3px;letter-spacing:.02em}
.letter-page [data-manager-signature-slot],.signoff [data-manager-signature-slot]{width:2.8in;height:.35in;border-bottom:1px solid #222;margin-bottom:.06in}
