.livio-heat-card {
  contain: paint;
  display: flow-root;
  overflow-x: hidden;
}

.livio-heat-card__layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  min-width: 0;
}

.livio-heat-card__form {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.livio-heat-card__field--wide,
.livio-heat-card__schedule,
.livio-heat-card__privacy,
.livio-heat-card__actions,
.livio-heat-card__error {
  grid-column: 1 / -1;
}

.livio-heat-card__field label,
.livio-heat-card__schedule legend {
  display: block;
  font-weight: 750;
  margin-bottom: 0.4rem;
}

.livio-heat-card__field small,
.livio-heat-card__schedule > p {
  color: var(--livio-tool-muted);
  display: block;
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
}

.livio-heat-card__field textarea {
  background: var(--livio-tool-canvas);
  border: var(--livio-tool-frame-border-width) solid var(--livio-tool-line);
  border-radius: var(--livio-tool-radius-control);
  color: var(--livio-tool-ink);
  font: inherit;
  min-height: 8.5rem;
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
  resize: vertical;
  width: 100%;
}

.livio-heat-card__field textarea:focus-visible {
  border-color: var(--livio-tool-primary);
  box-shadow: none;
  outline: var(--livio-tool-focus-width) solid var(--livio-tool-focus);
  outline-offset: var(--livio-tool-focus-offset);
}

.livio-heat-card__field textarea[aria-invalid="true"] {
  border-color: var(--livio-tool-invalid-border);
}

.livio-heat-card__schedule {
  border: 0;
  border-top: var(--livio-tool-frame-border-width) solid var(--livio-tool-line);
  margin: var(--wp--preset--spacing--20) 0 0;
  padding: var(--wp--preset--spacing--40) 0 0;
}

.livio-heat-card__schedule legend {
  padding: 0;
}

.livio-heat-card__schedule-rows {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.livio-heat-card__schedule-row {
  align-items: end;
  background: var(--livio-tool-soft);
  border: var(--livio-tool-frame-border-width) solid var(--livio-tool-line);
  border-radius: var(--livio-tool-radius-control);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(12rem, 1.4fr) auto;
  padding: var(--wp--preset--spacing--30);
}

.livio-heat-card__add-time {
  margin-top: 1rem;
}

.livio-heat-card__remove-time {
  white-space: nowrap;
}

.livio-heat-card__button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.livio-heat-card__privacy,
.livio-heat-card__boundary {
  color: var(--livio-tool-muted);
  font-size: 0.92rem;
}

.livio-heat-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.livio-heat-card__error {
  color: var(--livio-tool-error);
  font-weight: 750;
  margin: 0;
  min-height: 1.4em;
}

.livio-heat-card__results,
.livio-heat-card__sheets,
.livio-heat-card__sheet,
.livio-heat-card__table-wrap {
  inline-size: 100%;
  max-width: 100%;
  min-width: 0;
}

.livio-heat-card__results:focus {
  outline: none;
}

.livio-heat-card__results-head,
.livio-heat-card__sheet-head {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.livio-heat-card__results-head h3,
.livio-heat-card__results-head p,
.livio-heat-card__sheet-head h4,
.livio-heat-card__sheet-head p {
  margin: 0;
}

.livio-heat-card__coverage {
  background: var(--livio-tool-success-surface);
  border: var(--livio-tool-frame-border-width) solid
    var(--livio-tool-success-border);
  border-radius: var(--livio-tool-radius-control);
  font-weight: 750;
  margin: 1.25rem 0;
  padding: var(--wp--preset--spacing--30);
}

.livio-heat-card__sheets {
  display: grid;
  gap: 2rem;
  min-width: 0;
}

.livio-heat-card__sheet {
  border-top: var(--livio-tool-frame-border-width) solid var(--livio-tool-line);
  min-width: 0;
  padding-top: 1.25rem;
}

.livio-heat-card__sheet-head h4 {
  font-size: 1.2rem;
}

.livio-heat-card__sheet-head p {
  color: var(--livio-tool-muted);
}

.livio-heat-card__table-wrap {
  contain: inline-size;
  margin-block: 0.85rem;
  overflow-x: auto;
  width: 100%;
}

.livio-heat-card table {
  border-collapse: collapse;
  min-width: 82rem;
  table-layout: fixed;
  width: 100%;
}

.livio-heat-card th,
.livio-heat-card td {
  border: 1px solid var(--livio-tool-table-line);
  padding: 0.45rem;
  text-align: left;
  vertical-align: middle;
}

.livio-heat-card thead th {
  background: var(--livio-tool-table-head);
  font-size: 0.82rem;
  line-height: 1.25;
}

.livio-heat-card th:nth-child(1) {
  width: 7rem;
}

.livio-heat-card th:nth-child(2) {
  width: 5.25rem;
}

.livio-heat-card th:nth-child(3) {
  width: 9rem;
}

.livio-heat-card th:nth-child(8) {
  width: 14rem;
}

.livio-heat-card__check-cell {
  text-align: center;
}

.livio-heat-card__check {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.livio-heat-card__check input {
  accent-color: var(--livio-tool-primary);
  cursor: pointer;
  height: 1.25rem;
  margin: 0;
  width: 1.25rem;
}

.livio-heat-card__other-input {
  background: var(--livio-tool-canvas);
  border: var(--livio-tool-frame-border-width) solid var(--livio-tool-line);
  border-radius: var(--livio-tool-radius-control);
  color: var(--livio-tool-ink);
  font: inherit;
  min-height: 2.75rem;
  padding: 0.4rem 0.5rem;
  width: 100%;
}

.livio-heat-card__check input:focus-visible,
.livio-heat-card__other-input:focus-visible {
  box-shadow: none;
  outline: var(--livio-tool-focus-width) solid var(--livio-tool-focus);
  outline-offset: var(--livio-tool-focus-offset);
}

.livio-heat-card__observation--complete {
  background: var(--livio-tool-success-surface);
}

.livio-heat-card__print-sheet {
  display: none;
}

@media (width <= 48.875rem) {
  .livio-heat-card__form,
  .livio-heat-card__schedule-row {
    grid-template-columns: 1fr;
  }

  .livio-heat-card__remove-time {
    width: 100%;
  }
}

@page {
  margin: 8mm;
  size: a4 landscape;
}

@media print {
  html.livio-heat-card-printing body > :not(.livio-heat-card__print-sheet) {
    display: none;
  }

  .livio-heat-card__print-sheet {
    display: block;
  }

  .livio-heat-card__print-sheet .livio-heat-card__results {
    border: 0;
    padding: 0;
  }

  .livio-heat-card__print-sheet
    :where(
      .livio-heat-card__results-head,
      .livio-heat-card__coverage,
      .livio-heat-card__boundary,
      .livio-heat-card__actions--print
    ) {
    display: none;
  }

  .livio-heat-card__print-sheet .livio-heat-card__sheets {
    display: block;
  }

  .livio-heat-card__print-sheet .livio-heat-card__sheet {
    break-after: page;
    break-inside: avoid-page;
    border: 0;
    padding: 0;
  }

  .livio-heat-card__print-sheet .livio-heat-card__sheet:last-child {
    break-after: auto;
  }

  .livio-heat-card__print-sheet .livio-heat-card__table-wrap {
    overflow: visible;
  }

  .livio-heat-card__print-sheet table {
    font-size: 7pt;
    min-width: 0;
  }

  .livio-heat-card__print-sheet th,
  .livio-heat-card__print-sheet td {
    padding: 2.5pt;
  }

  .livio-heat-card__print-sheet thead {
    display: table-header-group;
  }

  .livio-heat-card__print-sheet .livio-heat-card__check {
    min-height: 0;
    min-width: 0;
  }

  .livio-heat-card__print-sheet .livio-heat-card__check input {
    height: 9pt;
    width: 9pt;
  }

  .livio-heat-card__print-sheet .livio-heat-card__other-input {
    border: 0;
    border-bottom: 0.5pt solid var(--livio-tool-table-line);
    border-radius: 0;
    min-height: 15pt;
    padding: 0;
  }
}
