.document-page:not([data-page="1"]) .document-letterhead {
  display: none;
}

.document-contract {
  color: #111;
  font: 400 8.25pt/1.32 Arial, Helvetica, sans-serif;
}

.document-contract p {
  margin: 0 0 3mm;
  text-align: justify;
}

.document-main-title {
  margin: 0 0 4mm;
  font-size: 10pt;
  line-height: 1.2;
  text-align: center;
}

.document-main-title--left { text-align: left; }
.document-contract-number { margin: 0 0 5mm !important; text-align: right !important; }
.document-subtitle { margin-top: -3mm !important; }
.document-party { margin: 0 0 4mm; }

.document-party h2,
.document-section-title {
  margin: 0 0 1.5mm;
  font-size: 8.4pt;
  font-weight: 700;
  line-height: 1.2;
}

.document-party p { margin: 0; }
.document-section-title { margin-top: 4.5mm; font-style: italic; }

.document-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2mm 0 4mm;
  border-top: .25mm solid #555;
}

.document-vehicle-grid > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5mm;
  min-width: 0;
  padding: 1.5mm 1mm 1mm 0;
  border-bottom: .25mm solid #777;
}

.document-vehicle-grid span { font-size: 7.4pt; }
.document-vehicle-grid strong { overflow-wrap: anywhere; }
.document-grid-wide { grid-column: span 2; }

.document-payment-table {
  width: 100%;
  margin: 2mm 0 3mm;
  border-collapse: collapse;
  font-size: 7.4pt;
}

.document-payment-table th,
.document-payment-table td {
  height: 6mm;
  padding: 1.2mm 1.8mm;
  border: .25mm solid #555;
  text-align: left;
}

.document-payment-table th { font-size: 6.8pt; }
.document-payment-table th:nth-child(1) { width: 42%; }
.document-payment-table th:nth-child(2) { width: 30%; }
.document-payment-table th:nth-child(3),
.document-payment-table th:nth-child(4) { width: 14%; }
.document-observations { margin-top: 4mm !important; }
.document-checks { display: grid; gap: 1.2mm; margin: 2mm 0 3mm; }
.document-note { font-size: 7.4pt; font-style: italic; }
.document-rules { margin-bottom: 4mm; }
.document-rules p { margin-bottom: 2.5mm; }

.document-contract--dense {
  font-size: 8pt;
  line-height: 1.3;
}

.document-contract--dense p { margin-bottom: 3.5mm; }
.document-contract--dense .document-section-title { margin-top: 5mm; }
.document-contract--final { font-size: 8.4pt; }
.document-status-list { margin: 1mm 0 6mm; padding: 0; list-style: none; }
.document-status-list li { margin: 0 0 1mm; }
.document-status-list li::before { content: "– "; }
.document-date { margin-top: 9mm !important; text-align: left !important; }

.document-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2mm;
  margin-top: 14mm;
}

.document-signatures--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.document-signatures > div { padding-top: 2mm; border-top: .25mm solid #333; text-align: center; }
.document-signatures span,
.document-signatures small { display: block; }
.document-signatures span { font-weight: 700; }
.document-signatures small { margin-top: 1mm; font-size: 6.8pt; }

.document-contract--purchase {
  font-size: 7.8pt;
  line-height: 1.25;
}

.document-contract--purchase p { margin-bottom: 2.2mm; }
.document-contract--purchase .document-section-title { margin-top: 3.1mm; }
.document-contract--purchase .document-signatures { margin-top: 11mm; }

/* Formulários de venda reconstruídos a partir dos modelos de referência. */
.document-page--sale-form .document-letterhead {
  height: 15mm;
  margin-bottom: 3mm;
}

.document-page--sale-form .document-letterhead .logo-ls {
  width: 34mm;
  height: 13mm;
}

.document-form {
  color: #111;
  font: 400 8.1pt/1.28 Arial, Helvetica, sans-serif;
}

.document-form p { margin: 0 0 3mm; text-align: justify; }
.document-form-title {
  margin: 0 0 4mm;
  font-size: 10pt;
  line-height: 1.2;
  text-align: center;
}

.document-form-section { margin-top: 5mm; }
.document-form-section h2,
.document-continuation-title {
  margin: 0 0 2mm;
  font-size: 8.4pt;
  line-height: 1.2;
  text-transform: uppercase;
}

.document-info-table,
.document-check-table {
  width: 100%;
  border-collapse: collapse;
  color: #111;
}

.document-info-table { margin: 2mm 0 4mm; font-size: 7.4pt; }
.document-info-table caption,
.document-check-table thead th {
  padding: 1.2mm 1.5mm;
  border: .25mm solid #555;
  background: #f1f1f1;
  font-size: 7pt;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.document-info-table th,
.document-info-table td,
.document-check-table td {
  padding: 1.2mm 1.5mm;
  border: .25mm solid #777;
  vertical-align: middle;
}

.document-info-table th { width: 11%; font-size: 6.8pt; text-align: left; }
.document-info-table td { overflow-wrap: anywhere; font-weight: 700; }
.document-client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5mm 5mm;
  margin-bottom: 3mm;
  padding: 2mm;
  border: .25mm solid #777;
  font-size: 7.2pt;
}

.document-client-strip > span { margin-left: auto; }
.document-damage-board { margin-bottom: 2mm; border: .25mm solid #777; }
.document-damage-board h2 {
  margin: 0;
  padding: 1.2mm;
  border-bottom: .25mm solid #777;
  background: #f1f1f1;
  font-size: 7pt;
  text-align: center;
}

.document-checklist-diagram {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 35mm;
  padding: 4mm 7mm 2mm;
  color: #555;
}

.document-car-view {
  position: relative;
  width: 42mm;
  height: 17mm;
  border: .55mm solid currentColor;
  border-radius: 7mm 5mm 2mm 2mm;
}

.document-car-view > span {
  position: absolute;
  left: 9mm;
  top: -8mm;
  width: 23mm;
  height: 9mm;
  border: .55mm solid currentColor;
  border-bottom: 0;
  border-radius: 7mm 7mm 0 0;
}

.document-car-view > i {
  position: absolute;
  bottom: -4mm;
  width: 7mm;
  height: 7mm;
  border: .55mm solid currentColor;
  border-radius: 50%;
  background: #fff;
}

.document-car-view > i:nth-of-type(1) { left: 5mm; }
.document-car-view > i:nth-of-type(2) { right: 5mm; }
.document-car-view--reverse { transform: scaleX(-1); }
.document-car-view--front { width: 32mm; border-radius: 6mm 6mm 2mm 2mm; }
.document-car-view--front > span { left: 4mm; width: 23mm; }
.document-car-view--front > i:nth-of-type(1) { left: 3mm; }
.document-car-view--front > i:nth-of-type(2) { right: 3mm; }
.document-check-table { margin-bottom: 2mm; table-layout: fixed; font-size: 6.8pt; }
.document-check-table th:nth-child(1) { width: 36%; }
.document-check-table th:nth-child(2),
.document-check-table th:nth-child(3) { width: 8%; text-align: center; }
.document-check-table td:nth-child(2),
.document-check-table td:nth-child(3) { font-size: 9pt; text-align: center; }
.document-check-table td:last-child { width: 48%; }
.document-check-table td { height: 4.1mm; padding: .6mm 1.2mm; }
.document-chassis-box {
  height: 13mm;
  margin: 2mm 0;
  padding: 1.2mm;
  border: .25mm solid #777;
  font-size: 6.8pt;
  text-align: center;
}

.document-observation-line,
.document-observation-box { min-height: 9mm; padding: 1.5mm 0; font-size: 7pt; }
.document-observation-box { display: grid; gap: 2mm; margin-top: 5mm; border-bottom: .25mm solid #777; }
.document-form-date { margin-top: 6mm !important; text-align: left !important; }
.document-form .document-signatures { margin-top: 11mm; }
.document-form .document-signatures span { font-size: 7.2pt; }
.document-form-declaration { margin-top: 6mm !important; }

.document-party-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 5mm;
  margin-bottom: 6mm;
  padding-bottom: 4mm;
  border-bottom: .25mm solid #777;
}

.document-party-grid > div { display: grid; gap: 1mm; }
.document-party-grid small { font-size: 6.8pt; text-transform: uppercase; }
.document-party-grid strong { font-size: 8.2pt; }
.document-party-grid span { font-size: 7.2pt; }
.document-receipt-value { margin: 6mm 0 !important; font-size: 8.5pt; line-height: 1.45; }
.document-receipt-terms { margin-top: 6mm; }
.document-delivery { font-size: 8.3pt; line-height: 1.36; }
.document-delivery .document-info-table { margin: 5mm 0; }
.document-delivery .document-form-section p { margin-bottom: 4mm; }
.document-delivery .document-signatures { margin-top: 16mm; }

.document-guarantee {
  font-size: 6.7pt;
  line-height: 1.19;
}

.document-guarantee .document-form-title { margin-bottom: 2.5mm; font-size: 9pt; }
.document-guarantee p { margin-bottom: 1.8mm; }
.document-guarantee .document-info-table { margin: 1.5mm 0 2mm; font-size: 6.4pt; }
.document-guarantee .document-info-table th,
.document-guarantee .document-info-table td { padding: .8mm 1mm; }
.document-guarantee-alert { padding: 1.5mm; border-left: .8mm solid #555; background: #f4f4f4; font-weight: 700; }
.document-clauses { margin: 0; padding-left: 5mm; }
.document-clauses li { margin: 0 0 1.2mm; padding-left: 1mm; text-align: justify; }
.document-continuation-title { margin: 0 0 4mm; text-align: center; }
.document-guarantee--continuation { font-size: 7.25pt; line-height: 1.27; }
.document-guarantee--continuation .document-clauses li { margin-bottom: 2.5mm; }
.document-guarantee--continuation .document-signatures { margin-top: 15mm; }
