.contract-page {
  background: #f5f7fb;
}
.contract-page .header-content nav a {
  display: flex;
}
.contract-container {
  max-width: 920px;
  padding-block: 36px;
}
.contract-intro {
  margin-bottom: 30px;
}
.contract-intro h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 14px;
}
.contract-intro h1 i,
.contract-card h2 i,
legend i {
  color: var(--blue);
  margin-right: 8px;
}
.contract-intro .eyebrow {
  color: var(--blue-dark);
}
.contract-card {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin: 0 0 28px;
  box-shadow: 0 8px 28px #18376105;
}
legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 20px;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
legend + * {
  clear: both;
}
.contract-card h2 {
  font-size: 21px;
}
.contract-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.contract-fields > div {
  min-width: 0;
}
select {
  width: 100%;
  min-height: 48px;
  background: #fbfcfe;
  border: 1px solid #cbd5e2;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}
.field-hint {
  font-size: 12px;
  margin-top: 8px;
}
.secondary-button {
  background: #eef4ff;
  color: var(--blue-dark);
  border-color: #d3dff0;
}
.secondary-button:hover {
  background: #dceaff;
}
.contract-terms {
  padding-left: 20px;
}
.contract-terms li {
  padding-left: 5px;
}
.contract-terms strong {
  color: var(--ink);
}
.contract-terms p {
  margin: 4px 0 16px;
}
.text-button {
  display: inline;
  min-height: 44px;
  padding: 6px 0;
  background: transparent;
  border: 0;
  color: var(--blue-dark);
  text-decoration: underline;
  font-size: inherit;
  text-align: left;
}
.text-button:hover {
  background: transparent;
  color: var(--blue);
}
.acceptance-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 22px 0;
}
.acceptance-label input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.success-card {
  border-color: #9ecfaa;
  background: #f3fbf5;
}
.success-card h2 i {
  color: #247139;
}
.success-card:focus {
  outline-offset: 4px;
}
dialog {
  width: min(760px, calc(100% - 28px));
  max-height: 85dvh;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  overflow: hidden;
}
#printers-dialog[open] {
  display: flex;
  flex-direction: column;
}
.dialog-controls {
  flex-shrink: 0;
  padding: 24px 24px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
dialog::backdrop {
  background: #142336a8;
}
.dialog-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}
.dialog-heading h2 {
  font-size: 22px;
}
.dialog-heading button {
  flex-shrink: 0;
  padding: 10px 14px;
}
.printer-table {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 24px 16px;
}
table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5fb;
  white-space: nowrap;
  overflow-wrap: normal;
}
.printer-table th:nth-child(2) {
  width: 22%;
}
.printer-table th:last-child {
  width: 108px;
}
.printer-table td:last-child {
  white-space: nowrap;
  overflow-wrap: normal;
}
@media (max-width: 600px) {
  .contract-container {
    padding-block: 26px;
  }
  .contract-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contract-card {
    padding: 20px 16px;
    margin-bottom: 22px;
  }
  .contract-intro h1 {
    font-size: 24px;
  }
  .contract-intro p {
    font-size: 13px;
  }
  .contract-page .logo img {
    width: 154px;
  }
  .contract-page header nav a {
    font-size: 11px;
    padding-inline: 8px;
  }
  select {
    font-size: 16px;
  }
  #buttonSendConfirmation {
    width: 100%;
  }
  .dialog-controls {
    padding: 18px 14px 10px;
  }
  .printer-table {
    padding: 0 14px 12px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  th,
  td {
    padding: 10px 6px;
  }
  .printer-table th:last-child {
    width: 96px;
  }
}
