.linking-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  align-items: center;
  justify-content: center;
}
#manual-link-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  align-items: center;
  justify-content: center;
}
#manual-link-modal:not(.hidden) {
  display: flex;
}
.linking-modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  min-width: 350px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.linking-modal-content h2 {
  margin-top: 0;
}
.linking-modal-content ul {
  list-style: disc inside;
  margin-bottom: 1rem;
}
.linking-modal-content .action-button {
  background: #2e7dff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.5em 1.2em;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: background 0.18s;
}
.linking-modal-content .action-button:hover {
  background: #1851a7;
}
#linking-modal-content h2 {
  text-align: center;
  font-weight: bold;
}
#linking-modal-content .link-modal-caller {
  color: #c00; /* or 'red' */
  font-weight: bold;
}
/* Center the Link Call modal title and style only the caller name in red */
#linking-modal-content #link-call-title {
  text-align: center;
  font-weight: normal; /* so only the : is normal, name can be bold if you want */
  margin-bottom: 1rem;
}
#linking-modal-content #link-call-title .link-modal-caller {
  color: #c00;
  font-weight: bold;
}

#fuzzy-matches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

#fuzzy-matches li {
  margin: 0;
  padding: 0;
}

.link-client-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: #f8f8fa;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  padding: 0.75em 1.2em;
  font-size: 1.08em;
  font-weight: 500;
  color: #222;
  transition: background 0.16s, box-shadow 0.16s;
  cursor: pointer;
  outline: none;
}

.link-client-btn:hover,
.link-client-btn:focus {
  background: #e7f0fe;
  box-shadow: 0 2px 12px 0 rgba(0,72,255,0.08);
}

.link-client-btn span {
  color: #888 !important;
  font-size: 0.92em;
  font-weight: 400;
  margin-left: 1.1em;
}

.manual-link-modal-content {
  width: 720px;
  max-width: 98vw;
  min-height: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manual-link-title {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}

#manual-link-search {
  width: 85%;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  font-size: 1.1em;
}

.manual-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 140px;
  gap: 1rem;
  width: 100%;
  max-height: 390px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.profile-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.07);
  padding: 1rem;
  width: 95%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-card strong {
  font-size: 1.13em;
}

.profile-card .profile-link-btn {
  margin-top: 0.7rem;
  padding: 0.35rem 1.1rem;
  border: none;
  background: #2e7dff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.18s;
}
.profile-card .profile-link-btn:hover {
  background: #1851a7;
}

.manual-link-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 0.5rem 0 0.6rem 0;
}

.manual-link-pagination button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
