/*
 * TradeFlow v7.14.19 R12 final requested changes.
 * Xero phone-layout containment and invoice-presentation additions.
 */

.tf714-commercial-card,
.tf714-commercial-card *,
.tf714-commercial-card .tf713-section-head > div,
.tf714-commercial-card .grid > *,
#tf714-xero-connect > *,
#tf714-invoice-defaults > * {
  min-width: 0;
}

.tf714-commercial-card {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.tf714-commercial-card .card.stat b,
.tf714-commercial-card .muted,
.tf714-commercial-card .notice,
.tf714-commercial-card small,
.tf714-commercial-card label,
.tf714-commercial-card code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#tf714-xero-connect code {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  white-space: normal;
}

.tf714-commercial-card input,
.tf714-commercial-card select,
.tf714-commercial-card textarea,
.tf714-commercial-card button {
  box-sizing: border-box;
  max-width: 100%;
}

.tf714-commercial-card .btn {
  height: auto;
  min-height: 42px;
  white-space: normal;
}

.tf714-selected-choice {
  display: block;
  margin-top: 4px;
  font-weight: 500;
}

.tf714-description-only {
  background: #f6f8f7;
  color: #435149;
}

.tf714-description-only .pill {
  margin-left: 6px;
  white-space: nowrap;
}

.tf71426-check {
  display: flex !important;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #bdd3c7;
  border-radius: 10px;
  background: #f2f8f5;
}

.tf71426-check input {
  width: auto;
  margin-top: 3px;
}

.tf71426-combined-summary {
  margin: 10px 0;
}

@media (max-width: 720px) {
  .tf714-commercial-card {
    padding-right: 12px;
    padding-left: 12px;
  }

  .tf714-commercial-card .grid.cards3,
  .tf714-commercial-card .tf713-formgrid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .tf714-commercial-card .span2 {
    grid-column: 1 / -1 !important;
  }

  .tf714-commercial-card .tf713-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .tf714-commercial-card .tf713-actions .btn {
    width: 100%;
  }

  .tf714-commercial-card .tf713-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .tf714-commercial-card .tf713-section-head .pill {
    justify-self: start;
  }

  .tf71426-check {
    grid-column: 1;
  }
}
