:root {
  --ink: #172126;
  --muted: #687277;
  --line: #d9dfd9;
  --soft: #f5f7f2;
  --white: #ffffff;
  --green: #9bc72a;
  --green-dark: #4f6f1b;
  --blue: #1f5369;
  --blue-soft: #e8f0f3;
  --mist: #f8faf6;
  --danger: #a34030;
  --shadow: 0 18px 46px rgba(24, 32, 37, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 246, 0.96)),
    url("assets/lvp-letterhead-swoosh.png") left bottom / min(36rem, 76vw) auto no-repeat fixed,
    var(--mist);
}

body.auth-required:not(.auth-signed-in):not(.public-client-view) .mode-tabs,
body.auth-required:not(.auth-signed-in):not(.public-client-view) .app-panel {
  display: none;
}

body.auth-signed-in .auth-panel {
  display: none;
}

body:not(.can-manage-users) .admin-record-button,
body:not(.can-manage-users) .admin-record-cell {
  display: none;
}

button,
input,
select,
textarea,
.button-link {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
  padding: 14px 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 247, 0.96)),
    var(--white);
  border: 1px solid rgba(217, 223, 217, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(24, 32, 37, 0.05);
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), rgba(155, 199, 42, 0.18), transparent);
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 96px;
  height: auto;
}

.brand-kicker,
.brand-title,
.brand-meta {
  margin: 0;
}

.brand-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-title {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-meta {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.public-client-view .mode-tabs {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 32, 37, 0.04);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.tab:hover {
  border-color: #9fb2ba;
  transform: translateY(-1px);
}

.tab.active {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.tab:disabled {
  cursor: default;
}

.panel {
  display: none;
  padding: 28px;
  border: 1px solid rgba(217, 223, 217, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.panel.active {
  display: block;
}

.section-heading {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(217, 223, 217, 0.78);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.55rem, 1.8vw, 2rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.35rem;
}

.lede {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.admin-box {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.public-client-view .admin-box,
.public-client-view .requires-admin {
  display: none;
}

.admin-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-status h2,
.auth-card h3 {
  margin: 0;
}

.auth-panel {
  max-width: 720px;
  margin: 0 auto;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 12px;
  margin-top: 16px;
}

.auth-grid .auth-register,
.auth-grid .auth-reset {
  display: none;
}

.auth-grid.register-mode .auth-register,
.auth-grid.reset-mode .auth-reset {
  display: grid;
}

.auth-grid.register-mode .auth-login,
.auth-grid.register-mode .auth-reset,
.auth-grid.reset-mode .auth-login,
.auth-grid.reset-mode .auth-register {
  display: none;
}

.auth-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.team-panel {
  margin-top: 16px;
}

.team-panel-heading {
  margin-bottom: 10px;
}

.compact-table {
  margin-top: 0;
}

.compact-table table {
  min-width: 680px;
}

.small-action {
  min-height: 34px;
  padding: 0 12px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  transform: none;
}

.form-note {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.locked {
  display: none;
}

.form-grid > *,
.copy-row > *,
.shipment-summary > *,
.split > * {
  min-width: 0;
}

label,
fieldset {
  display: grid;
  gap: 7px;
}

label,
legend {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.94rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(155, 199, 42, 0.34);
  outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 1px rgba(79, 111, 27, 0.18);
}

.full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled:hover {
  transform: none;
}

.primary {
  color: var(--white);
  border-color: var(--green-dark);
  background: linear-gradient(180deg, #5c7d22, var(--green-dark));
}

.secondary {
  color: var(--blue);
  border-color: #b8c8ce;
  background: var(--blue-soft);
}

.share-message-label {
  margin-top: 14px;
}

.named-link-row {
  margin-top: 10px;
}

.share-message {
  min-height: 160px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.share-actions {
  margin-top: 10px;
}

.link-box,
.shipment-summary,
.thank-you {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(245, 247, 242, 0.94)),
    var(--soft);
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.shipment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  border-left: 3px solid var(--green);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.full-summary {
  grid-column: 1 / -1;
}

fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.overall-rating-row {
  background: var(--soft);
  border-width: 2px;
  border-color: var(--green);
  flex-wrap: wrap;
}

.overall-rating-row .detail-rating-label {
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.overall-rating-row .detail-rating-scale button {
  width: 42px;
  min-height: 42px;
  font-size: 1rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.split legend {
  grid-column: 1 / -1;
}

.detail-ratings {
  display: grid;
  gap: 0;
}

.detail-ratings legend {
  margin-bottom: 4px;
}

.scale-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-rating-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-bottom: none;
  background: var(--white);
}

.detail-rating-row:first-of-type {
  border-radius: var(--radius) var(--radius) 0 0;
}

.detail-rating-row:last-of-type {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}

.detail-rating-label {
  font-size: 0.94rem;
  color: var(--ink);
  min-width: 0;
}

.detail-rating-scale {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.detail-rating-scale button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.detail-rating-scale button:hover {
  border-color: var(--green);
  background: var(--soft);
  transform: none;
}

.detail-rating-scale button.active {
  border-color: var(--green-dark);
  background: #eef7d2;
  color: var(--green-dark);
  box-shadow: 0 0 0 1px rgba(79, 111, 27, 0.18);
}

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.check-card input {
  width: 18px;
  min-height: 18px;
}

.record-select-cell {
  width: 46px;
  text-align: center;
}

.record-select-cell input {
  width: 18px;
  min-height: 18px;
}

.table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

.issue-row td {
  background: #fff6f3;
}

.issue-row td:first-child {
  border-left: 4px solid var(--danger);
}

tbody tr:hover td {
  background: #fbfcf9;
}

.empty {
  text-align: center;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2.2fr);
  gap: 18px;
  margin-top: 18px;
  padding: 14px 4px 0;
  color: #7a8387;
  font-size: 0.78rem;
  border-top: 1px solid rgba(217, 223, 217, 0.9);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #556063;
  font-size: 0.82rem;
}

.site-footer address {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-style: normal;
  justify-content: flex-end;
  text-align: right;
}

.form-type-selector {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--soft);
}

.form-type-selector legend {
  font-weight: 700;
  font-size: 0.94rem;
}

.form-type-options {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}

.form-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.form-type-option input {
  width: 18px;
  min-height: 18px;
}

.test-select {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.test-select legend {
  font-weight: 700;
  font-size: 0.94rem;
}

.test-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 400;
  cursor: pointer;
}

.test-select-option input {
  width: 18px;
  min-height: 18px;
}

.test-select-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

body.form-type-warranty #shipmentRef,
body.form-type-warranty label[for="shipmentRef"],
body.form-type-warranty #shippingDate,
body.form-type-warranty label[for="shippingDate"] {
  display: none;
}

#knownSerialNumberField {
  display: none;
}

body.form-type-warranty #knownSerialNumberField {
  display: grid;
}

.warranty-section {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.warranty-section legend {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 12px;
}

.diagnostics-grid {
  display: grid;
  gap: 0;
}

.diagnostic-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
}

.manual-details {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.manual-details:last-of-type {
  margin-bottom: 0;
}

.manual-details summary {
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.manual-details[open] summary {
  margin-bottom: 12px;
}

.manual-block h4 {
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.manual-block h4:first-child {
  margin-top: 0;
}

.manual-block ul,
.manual-block ol {
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

.manual-block li {
  margin-bottom: 3px;
}

.manual-result {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: var(--soft);
  font-size: 0.92rem;
}

.manual-confirm {
  margin-top: 14px;
}

.manual-remarks-label {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.84rem;
}

.manual-remarks-label textarea {
  min-height: 56px;
  font-size: 0.9rem;
}

.manual-checklist {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.manual-checklist-title {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.diagnostic-item {
  border: 1px solid var(--line);
  border-bottom: none;
  background: var(--white);
}

.diagnostic-item:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.diagnostic-item:last-child {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}

.diagnostic-note {
  padding: 0 14px 12px;
}

.diagnostic-note label {
  gap: 4px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.84rem;
}

.diagnostic-note textarea {
  min-height: 60px;
  font-size: 0.9rem;
}

.diagnostic-label {
  font-size: 0.94rem;
  color: var(--ink);
}

.diagnostic-options {
  display: flex;
  gap: 16px;
}

.diagnostic-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
}

.diagnostic-option input {
  width: 16px;
  min-height: 16px;
}

.diagnostic-summary {
  font-size: 0.82rem;
  max-width: 220px;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-upload-text {
  font-weight: 700;
  font-size: 0.94rem;
}

input[type="file"] {
  padding: 10px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: var(--green);
}

.file-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.file-preview-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.file-preview-item img,
.file-preview-item video {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.file-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  background: var(--soft);
}

.file-preview-name {
  display: block;
  padding: 6px 8px;
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-empty {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.warranty-view-files {
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}

.record-row,
.claim-row {
  cursor: pointer;
}

.record-row:hover td,
.claim-row:hover td {
  background: var(--soft);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 38, 0.55);
}

.modal-content {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(24, 32, 37, 0.28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  width: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--white);
  font-size: 1.2rem;
  line-height: 1;
}

.modal-title {
  margin: 0 32px 16px 0;
  font-size: 1.25rem;
}

.detail-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row:nth-child(even) {
  background: var(--mist);
}

.detail-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.detail-value {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.detail-files-label {
  margin: 18px 0 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.detail-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-files a {
  color: var(--blue);
  text-decoration: underline;
}

.modal-actions {
  margin-top: 20px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
  }

  .brand-logo {
    width: 82px;
  }

  .brand-meta {
    text-align: left;
  }

  .panel {
    padding: 18px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 1.42rem;
  }

  .form-grid,
  .auth-grid,
  .admin-tools,
  .shipment-summary,
  .split,
  .copy-row,
  .file-preview-grid {
    grid-template-columns: 1fr;
  }

  .form-type-options,
  .diagnostic-options {
    flex-direction: column;
    gap: 8px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }


  .rating-button {
    min-height: 58px;
  }

  .actions button,
  .copy-row button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer address {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 460px) {
  .tab {
    min-width: auto;
    padding: 0 12px;
  }

  .panel {
    padding: 16px;
  }
}

.print-actions {
  justify-content: flex-end;
  margin-top: 0;
  margin-bottom: 14px;
}

@media print {
  body {
    background: none;
  }

  .mode-tabs,
  .modal,
  .admin-box,
  .no-print,
  #requestForm .actions,
  #feedbackForm .actions,
  #warrantyForm .actions,
  #warrantyEvidence,
  label[for="warrantyEvidence"] .file-upload-text,
  .panel:not(.active) {
    display: none !important;
  }

  .shell {
    width: 100%;
  }

  .panel {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Client form: start a new page after the client details box, and again before comments */
  #feedbackForm .detail-ratings,
  #feedbackForm label[for="comment"] {
    break-before: page;
    page-break-before: always;
  }

  /* Warranty form: start a new page after the claim details box, before the test instructions,
     before the firing test, and before the evidence section */
  #warrantyForm > fieldset.warranty-section:first-of-type,
  #warrantyForm [data-testid="warranty-manual"],
  #firingDetails,
  #warrantyEvidenceSection {
    break-before: page;
    page-break-before: always;
  }

  .detail-rating-row,
  .diagnostic-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
