/* MEGA ONE - the document itself. Shared by the customer signing page, the owner preview and the PDF.
   The container decides the base size (screen: 18px desktop / 17px phone; print: 10.5pt). Everything here is in em.
   Kept simple on purpose (no flex, no grid, no logical properties) so the PDF engine lays it out the same way. */

.one-doc {
  font-family: 'IBM Plex Sans Hebrew', 'IBM Plex Sans', 'Noto Sans Hebrew', 'DejaVu Sans', Arial, sans-serif;
  color: #14171A;
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  word-wrap: break-word;
}

.one-doc .one-title { font-size: 1.65em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.8em; }
.one-doc h2 { font-size: 1.22em; font-weight: 700; line-height: 1.3; color: #0F5C4A; margin: 1.7em 0 0.6em; }
.one-doc h3 { font-size: 1.08em; font-weight: 700; line-height: 1.35; margin: 1.5em 0 0.4em; }
.one-doc p { margin: 0 0 0.7em; }
.one-doc strong { font-weight: 600; }
.one-doc ol, .one-doc ul { margin: 0 0 0.8em; padding: 0 1.5em 0 0; }
.one-doc li { margin: 0 0 0.35em; }
.one-doc li ul { margin-top: 0.35em; }
.one-doc .one-nowrap { white-space: nowrap; }

/* draft / demo marker */
.one-doc .one-demo {
  border: 1.5px dashed #5D646B; background: #EFEBE1; color: #14171A;
  padding: 0.5em 0.9em; margin: 0 0 1.2em; font-weight: 600; text-align: center;
}

/* the two parties */
.one-doc .one-party { border-right: 3px solid #2FD08F; padding: 0.15em 0.9em 0.15em 0; margin: 0.8em 0; }
.one-doc .one-party p { margin-bottom: 0.3em; }
.one-doc .one-side { color: #5D646B; }

/* tables */
.one-doc table { width: 100%; border-collapse: collapse; margin: 0.6em 0 1.2em; }
.one-doc th, .one-doc td { border: 1px solid #D8D2C4; padding: 0.5em 0.6em; vertical-align: top; text-align: right; }
.one-doc thead th { background: #14171A; color: #F4F1EA; font-weight: 600; border-color: #14171A; }
.one-doc .one-n { width: 2em; text-align: center; font-weight: 700; }
.one-doc .one-topic { font-weight: 600; white-space: nowrap; }
.one-doc .one-ack { width: 6.5em; text-align: center; vertical-align: middle; }

/* paper-form choices: the chosen option is ticked and dark, the others stay light */
.one-doc .one-opt { display: block; color: #5D646B; margin: 0.12em 0; }
.one-doc .one-opt.on { color: #14171A; font-weight: 600; }
.one-doc .one-opt.on strong { font-weight: 700; }
.one-doc .one-box { font-family: 'DejaVu Sans', 'Segoe UI Symbol', 'Noto Sans Symbols2', sans-serif; }
.one-doc .one-opt.on .one-box { color: #0F5C4A; }

/* what the customer approved, one by one */
.one-doc .one-ack-mark { color: #0F5C4A; font-weight: 700; white-space: nowrap; }
.one-doc .one-ack-line { margin-top: 0.8em; }

/* appendices */
.one-doc .one-appendix { margin-top: 2.2em; padding-top: 0.3em; border-top: 2px solid #D8D2C4; }
.one-doc .one-appendix h2 { margin-top: 0.9em; }

/* signatures */
.one-doc .one-sign-table { margin: 1em 0 0.5em; }
.one-doc .one-sign-table td { width: 50%; border: 0; padding: 0 1em; text-align: center; vertical-align: bottom; }
.one-doc .one-sign-table p { margin: 0.3em 0 0; }
.one-doc .one-sig-slot { min-height: 4.4em; border-bottom: 1.5px solid #14171A; margin: 0.6em 0 0.3em; text-align: center; }
.one-doc .one-sig-img { display: block; height: 3.6em; max-width: 100%; margin: 0 auto; }
.one-doc .one-sig-meta { display: block; font-size: 0.8em; color: #5D646B; line-height: 1.4; padding-bottom: 0.2em; }
.one-doc .one-sig-missing { color: #5D646B; font-size: 0.85em; }
.one-doc .one-sig-caption { color: #5D646B; font-size: 0.85em; }
.one-doc .one-appendix-form .one-sig-slot,
.one-doc > .one-sig-slot { max-width: 20em; }
