.table-action {
  border: 1px solid #b8cdc1;
  background: #f4f8f5;
  color: var(--green-dark);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.table-action:hover,
.schedule-item button:hover {
  background: var(--green);
  color: #fff;
}

.schedule-item button.calling {
  background: #f7eadc;
  color: var(--orange);
}

.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: rgba(22, 39, 31, .45);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop[hidden] { display: none; }

.person-modal {
  width: min(500px, 100%);
  background: var(--paper);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 24px 70px rgba(20, 42, 31, .25);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-head h3 { margin: 0; font-size: 21px; }
.modal-close {
  border: 0;
  background: #f0f2ee;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
}

.person-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.person-detail div { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.person-detail div:nth-child(odd) { border-right: 1px solid var(--line); }
.person-detail div:nth-last-child(-n+2) { border-bottom: 0; }
.person-detail dt { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.person-detail dd { margin: 0; font-size: 13px; font-weight: 800; }

.phone-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.phone-field input {
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  outline: 0;
}

.phone-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.call-help {
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
  margin: 9px 0 20px;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  color: var(--green-dark);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
}

.consent-field input { margin-top: 2px; accent-color: var(--green); }
.schedule-item button:disabled { cursor: default; opacity: .65; }

.modal-actions { display: flex; justify-content: flex-end; gap: 9px; }
.toast { z-index: 40; }

@media (max-width: 520px) {
  .person-detail { grid-template-columns: 1fr; }
  .person-detail div,
  .person-detail div:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); }
  .person-detail div:last-child { border-bottom: 0; }
  .modal-actions { flex-direction: column-reverse; }
}
