/* Customer contract dialogs: keep the paper background with the full document. */
.scv-overlay .scv-content-area { display: block; min-height: 0; }
.scv-overlay .scv-paper { width: 100%; max-width: 210mm; height: auto; margin: 0 auto; overflow-wrap: anywhere; }
.ecs-overlay .ecs-body { min-height: 0; }
.ecs-overlay .ecs-paper-wrapper { min-width: 0; flex-shrink: 0; }
.ecs-overlay .ecs-paper { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .ecs-overlay .ecs-paper { display: block; background-color: #fff; padding: 40px; }
  .ecs-overlay .ecs-paper > .doc-header,
  .ecs-overlay .ecs-paper > .doc-content,
  .ecs-overlay .ecs-paper > .doc-special-terms,
  .ecs-overlay .ecs-paper > .doc-attach-section,
  .ecs-overlay .ecs-paper > .doc-footer-section,
  .ecs-overlay .ecs-paper > .doc-appendix {
    width: 100%; max-width: 100%; padding: 0; box-shadow: none; box-sizing: border-box;
  }
  .ecs-overlay .ecs-paper > .doc-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 3px double #333; }
  .ecs-overlay .ecs-paper > .doc-content { margin-bottom: 32px; }
  .ecs-overlay .ecs-paper > .doc-special-terms { margin-bottom: 32px; padding: 20px; border: 1px solid #333; }
  .ecs-overlay .ecs-paper > .doc-attach-section { margin-top: 32px; padding-top: 20px; }
  .ecs-overlay .ecs-paper > .doc-footer-section { margin-top: 40px; margin-bottom: 32px; }
  .ecs-overlay .ecs-paper > .doc-page-break { height: 1px; background: #eee; margin: 32px 0; }
}
