.aff-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    align-items: start;
}
.aff-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 10px;
}
.aff-preview-scroll {
    background: #3f3f46;
    border-radius: 15px;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 600px;
}
.paper-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    transform-origin: top center;
}
#aff-editor-box {
    width: 215mm;
    min-height: 343mm;
    background: #fff url(&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghnPHQn8kAA2LcpuoPy0d9ujtIP_iGhAci7QeIBhRLrXQHO7eI8hY965RFs5v3NjFC0IaorLQuJKOiZ1IZUwWWccbwv1mQEjY78I_WwmJKoZJrpn-1jhqlAlYMDQpsx3s22CToDD3QUcti02ByupHj3OxWkOpnRW75OjWgt24pcj7ctUnYASJLx8a433o/s1600/stamp.webp&quot;) no-repeat;
    background-size: 100% auto;
    padding: 20mm;
    box-sizing: border-box;
    text-align: justify;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    flex-shrink: 0;
}
  
  #aff-body-ui {
    line-height: 1.8;
    font-size: 18px;
    outline: none;
    min-height: 500px;
    text-align: justify;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    box-sizing: border-box;
    display: block;
}
  
@media (max-width: 1024px) {
    .aff-grid { grid-template-columns: 1fr; }
    .aff-inputs { max-height: none; overflow: visible; padding-right: 0; }
    .aff-preview-scroll { min-height: auto; padding: 10px; }
}
#affidavitModal .ph-tab { border:none; padding:8px 25px; border-radius:50px; cursor:pointer; font-weight:800; font-size:13px; background:#fff0; color:#64748b }
#affidavitModal .ph-tab.active { background:#0d9488; color:#fff; }
