.cremations-stepper.is-documents {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cremations-stepper.is-documents .wizard-step:not([data-document="permit"])::after {
  content: none;
}

.cremations-stepper.is-documents .wizard-step {
  min-height: 104px;
}

.cremations-stepper.is-documents .wizard-step-icon {
  height: 36px;
  width: 36px;
}

.cremations-stepper.is-documents .cremations-doc-icon {
  display: block;
  fill: none;
  height: 36px;
  stroke: currentColor;
  width: 36px;
}

.cremations-stepper.is-documents .wizard-step-icon:has(.cremations-doc-icon.is-hearse) {
  height: 38px;
  width: 76px;
}

.cremations-stepper.is-documents .cremations-doc-icon.is-hearse {
  height: 38px;
  width: 76px;
}

#cremations-view .wizard-stepper-scroll,
#cremations-stepper {
  max-width: 100%;
  min-width: 0;
}

.cremations-stepper.is-pipeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cremations-doc-hint {
  color: var(--mute);
  font-size: 13px;
  margin: 0 0 12px;
}

.wizard-form .wizard-save-status {
  flex: 1;
  min-height: 1.2em;
  overflow-wrap: anywhere;
  text-align: center;
}

.cremations-payment-total[readonly] {
  background: var(--surface);
  font-weight: 700;
}

.cremations-qbo-table {
  width: 100%;
}

.cremations-qbo-table th.cremations-qbo-amount,
.cremations-qbo-amount {
  text-align: right;
}

.cremations-qbo-empty {
  color: var(--mute);
  font-size: 13px;
  margin: 0 0 12px;
}

.cremations-case-check {
  align-items: center;
  display: flex;
  gap: 10px;
  line-height: 1.35;
}

.cremations-case-received-row {
  align-items: center;
}

.cremations-case-received-row .input-form-field-datetime {
  align-items: center;
  flex-direction: row;
  gap: 12px;
}

.cremations-case-received-row .input-form-field-datetime > label {
  flex: 0 0 auto;
  line-height: 1.35;
  white-space: nowrap;
}

.cremations-case-received-row .datetime-stepper-shell {
  flex: 1 1 auto;
  min-width: 0;
}

.cremations-signature-reserved {
  align-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  min-height: 140px;
  padding: 16px;
}

.cremations-signature-reserved-hint {
  color: var(--mute);
  font-size: 13px;
  margin: 0;
  text-align: center;
}

#cremations-view .forms-list-table {
  font-size: 14px;
  min-width: 1200px;
}

#cremations-view .forms-list-table th {
  font-size: 11px;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

#cremations-view .forms-list-table .approval-status {
  font-size: 12px;
}

#cremations-view .forms-list-table th:nth-child(4),
#cremations-view .forms-list-table td:nth-child(4) {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cremations-stepper .wizard-step-label {
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .cremations-stepper.is-documents {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .cremations-stepper.is-pipeline {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}
