/* The generated contract document, rendered from the .docx template.

   Kept separate from styles.css: this sheet describes a printable letter-size
   page, not the application chrome. Sizes are in pt so the preview and a PDF
   agree. The document's own bold/italic/alignment come through as classes on the
   spans and paragraphs — this sheet only sets the page and the defaults. */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9pt;
  line-height: 1.4;
  color: #000;
  background: #fff;
}

.page {
  width: 816px;             /* 8.5in at 96dpi */
  min-height: 1056px;
  margin: 0 auto;
  padding: 48px 64px;
}

/* Word's page furniture, drawn where it sits on the page. The dashed rules are
   the boundary Word shows between a header/footer and the body. */
.doc-header {
  display: block;
  margin-bottom: 14pt;
  padding-bottom: 6pt;
  border-bottom: 1px dashed #c9ced6;
}

.doc-footer {
  display: block;
  margin-top: 18pt;
  padding-top: 6pt;
  border-top: 1px dashed #c9ced6;
}

.doc-img {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.doc-p {
  margin-bottom: 5pt;
}

/* Word's empty paragraphs are vertical spacing, so they keep their height. */
.doc-spacer {
  height: 9pt;
}

.doc-heading {
  margin-top: 12pt;
  margin-bottom: 5pt;
  font-size: 10.5pt;
  font-weight: bold;
}

.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }

.b { font-weight: bold; }
.i { font-style: italic; }
.u { text-decoration: underline; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6pt 0;
}

.doc-table td {
  padding: 3px 6px;
  border: 1px solid #b8bcc4;
  vertical-align: top;
}

.doc-table .doc-p:last-child {
  margin-bottom: 0;
}

.doc-empty {
  padding: 40px 0;
  color: #6b7280;
  font-size: 10pt;
  text-align: center;
}

/* A paragraph that reaches a tab stop: the text after the tab is placed at
   the stop's position (Block.tab_at), as Word places it. The Seller
   templates' TRADER line uses this to reach the seller column. */
.doc-p {
  position: relative;
}

.tab-col {
  position: absolute;
  white-space: nowrap;
}
