/* TradeFlow v7.14.19 R20: completion/archive, Xero sync and Add Time safeguards. */

.tf720-completion-options {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #cbdcd5;
  border-radius: 14px;
  background: #f6faf8;
}

.tf720-completion-options legend {
  padding: 0 6px;
  font-weight: 800;
  color: #173d31;
}

.tf720-completion-options .tf713-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 7px 0;
}

.tf720-completion-options input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 2px;
}

.tf720-completion-options input:disabled + span,
.tf720-completion-options label:has(input:disabled) {
  opacity: .58;
}

.tf720-sync-pending {
  margin: 12px 0;
  border-color: #c58a00;
  background: #fff8df;
}

.tf720-sync-pending .btn {
  margin-top: 10px;
}

.tf720-recovered-time,
.tf720-time-date-warning {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  border: 1px solid #d09a20;
  background: #fff8df;
  color: #3d2e09;
}

.tf720-recovered-time {
  border-color: #2e8568;
  background: #edf8f4;
  color: #153d31;
}

.tf720-recovered-time .btn {
  margin-top: 10px;
}

.tf720-time-decision-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 24, 19, .68);
}

.tf720-time-decision {
  width: min(100%, 520px);
  max-height: min(86vh, 680px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #cbdcd5;
  border-radius: 18px;
  background: #fff;
  color: #16231f;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
}

.tf720-time-decision h3 {
  margin: 0 0 10px;
}

.tf720-time-decision p {
  margin: 0 0 18px;
  line-height: 1.45;
}

.tf720-time-decision > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .tf720-completion-options {
    padding: 12px;
  }

  .tf720-time-decision {
    padding: 18px;
  }

  .tf720-time-decision > div {
    grid-template-columns: 1fr;
  }
}
