/* My profile, and the agent's copy of the config tabs. */

/* icon() emits an SVG with no width or height and there is a global
   `svg { width:16px; height:16px }` default. Anything below that draws an icon
   at a different size sets it explicitly. */

/* ---- Avatar with a picture ---- */
/* .avatar is a flex circle sized in styles.css. The image fills it and is
   cropped rather than squashed, because a headshot squashed to a circle looks
   like a mistake. */
.avatar.has-photo {
  overflow: hidden;
  background: var(--border);
  padding: 0;
}
.avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Profile form ---- */
.profile-card { max-width: 720px; }

.profile-photo-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
/* Grid children default to min-width:auto, so a long CRM address pushes the
   next column off the card instead of wrapping. */
.profile-card .form-grid .field { min-width: 0; }
.profile-card .form-grid .field input,
.profile-card .form-grid .field textarea { min-width: 0; overflow-wrap: anywhere; }
.profile-card .field .muted.small { margin-top: 4px; line-height: 1.45; }

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
}

.wide-select {
  margin-top: 10px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  min-width: 260px;
  max-width: 100%;
}

/* A hover note next to a label. Uses the native title attribute, so there is
   no positioning code to fight the modal layer. */
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
}
.tip:hover { background: #dbeafe; color: #1d4ed8; }

/* ---- Voicemail ---- */
.vm-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.vm-row svg { width: 14px; height: 14px; }

/* ---- Scope banners on the shared config tabs ---- */
.cfg-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 13px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.5;
}
.cfg-banner.office {
  border-color: var(--border);
  background: var(--bg);
  color: var(--muted);
}
.cfg-banner .btn { margin-left: auto; }

/* The Settings tab strip is long once an agent has all ten config tabs, so it
   wraps rather than scrolling sideways off the card. */
.settings-tabs { flex-wrap: wrap; row-gap: 6px; }

/* ---- Batch photo import ---- */
.pi-table {
  max-height: 46vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pi-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
}
.pi-row:last-child { border-bottom: 0; }
.pi-row > div { min-width: 0; }
.pi-pick {
  flex: none;
  max-width: 220px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .pi-row { flex-wrap: wrap; }
  .pi-pick { max-width: 100%; width: 100%; }
  .profile-photo-row { flex-wrap: wrap; }
}
