/* ------------------------------------------------------------------
   /features/user-management

   Loaded after feature-page.css, integrations.css and email-triage.css:
   the hero, the alternating bands (ix-group), the eyebrows and the
   screenshot frame (et-shot-panel) all come from there. Only the drawn
   artwork lives here, under a `um-` prefix.
   ------------------------------------------------------------------ */

/* The at-a-glance panel sits straight under the dark hero here, so it needs room to breathe. */
.ix-hero + .feature-snapshot-wrap {
  padding: 56px 0 64px;
}

/* ---------- Shared bits ---------- */

.um-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.um-team-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.um-team-who strong {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.um-team-who span {
  font-size: 0.78rem;
  color: var(--gray);
}

.um-chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(162, 185, 100, 0.25);
  color: #5d7230;
}

.um-switch {
  flex: none;
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d9dde0;
}

.um-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.um-switch.is-on {
  background: var(--primary);
}

.um-switch.is-on::after {
  left: 18px;
}

.um-new {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* The new section's jump pill stands out a little. */
.ix-jump a.um-jump-new {
  border-color: var(--purple);
  background: rgba(181, 164, 203, 0.18);
}

/* ---------- Hero: the team list ---------- */

.um-hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 24px 0 40px;
}

.um-team {
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  color: var(--primary);
}

.um-team-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg);
  font-weight: 700;
  font-size: 0.92rem;
}

.um-team-rows {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.um-team-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
}

.um-team-row + .um-team-row {
  border-top: 1px solid rgba(34, 54, 60, 0.07);
}

.um-avatar-invite {
  background: rgba(47, 72, 80, 0.1);
  color: var(--primary);
}

.um-chip-pending {
  background: rgba(245, 204, 75, 0.3);
  color: #8a6a07;
}

.um-hero-badge {
  position: absolute;
  right: -12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--green);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ---------- Drawn panels ---------- */

.ix-panel.um-art-panel {
  padding: 32px;
}

/* A tall screenshot would dwarf the text beside it. */
.et-shot-img.um-shot-narrow {
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- Restricted clients: the client card and who can see it ---------- */

.um-restricted {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding-bottom: 52px;
  color: var(--primary);
}

.um-client-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(34, 54, 60, 0.14);
  border-top: 4px solid var(--purple);
  overflow: hidden;
}

.um-client-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
}

.um-client-logo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(181, 164, 203, 0.3);
  color: #6d5a8a;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.um-client-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  min-width: 0;
}

.um-incognito {
  flex: none;
  color: #6d5a8a;
}

.um-restrict-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(181, 164, 203, 0.16);
}

.um-restrict-row > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.um-restrict-row strong {
  font-size: 0.92rem;
}

.um-restrict-row > span > span {
  font-size: 0.78rem;
  color: #46585e;
}

.um-people {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 8px;
}

.um-people li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
}

.um-people li + li {
  border-top: 1px solid rgba(34, 54, 60, 0.07);
}

.um-people li.is-off .um-avatar {
  background: #c5cbce;
}

.um-people li.is-off .um-team-who strong {
  color: var(--gray);
}

.um-not-found {
  position: absolute;
  right: -18px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 26px rgba(34, 54, 60, 0.25);
  transform: rotate(-2deg);
}

.um-not-found > span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.um-not-found strong {
  font-size: 0.88rem;
}

.um-not-found > span > span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Client roles: a client's people and tasks routed to them ---------- */

.um-routing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
  color: var(--primary);
}

.um-record {
  padding: 16px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 26px rgba(34, 54, 60, 0.12);
  border-top: 4px solid var(--green);
}

.um-record-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}

.um-record strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
}

.um-record dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 0.82rem;
}

.um-record dt {
  color: var(--gray);
}

.um-record dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.um-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.um-tasks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 6px 16px rgba(34, 54, 60, 0.08);
}

.um-task-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.um-task-text strong {
  font-size: 0.88rem;
}

.um-task-text span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: #5d7230;
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .um-hero-visual {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .ix-panel.um-art-panel {
    padding: 20px 16px;
  }

  .um-team-row,
  .um-people li {
    padding: 10px 14px;
    gap: 10px;
  }

  .um-hero-badge {
    right: 0;
  }

  .um-not-found {
    right: 0;
  }

  .um-routing {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Band tones ----------
   Five bands would start and end on beige under integrations.css's odd/even rule, leaving a
   beige band against the beige related-features block. Here the snapshot sits on beige and the
   bands run white, beige, white, beige, white. */

.ix-hero + .feature-snapshot-wrap {
  background: var(--bg);
}

.ix-group.um-tone-white {
  background: white;
}

.ix-group.um-tone-beige {
  background: var(--bg);
}

.ix-group.um-tone-white .ix-panel:not(.et-shot-panel) {
  background: var(--bg);
  box-shadow: none;
}

.ix-group.um-tone-beige .ix-panel:not(.et-shot-panel) {
  background: white;
  box-shadow: 0 18px 48px rgba(34, 54, 60, 0.1);
}

/* ---------- Who sees which clients: a contractor's client list ---------- */

.um-access {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  color: var(--primary);
}

.um-access-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(34, 54, 60, 0.14);
  border-top: 4px solid var(--yellow);
  overflow: hidden;
}

.um-access-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(34, 54, 60, 0.07);
}

.um-access-rows {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.um-access-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
}

.um-access-rows li + li {
  border-top: 1px solid rgba(34, 54, 60, 0.07);
}

.um-access-name {
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.um-access-rows li.um-access-hidden {
  display: flex;
  gap: 10px;
  color: var(--gray);
  font-size: 0.85rem;
  background: repeating-linear-gradient(
    -45deg,
    rgba(34, 54, 60, 0.03) 0 8px,
    rgba(34, 54, 60, 0.06) 8px 16px
  );
}

.um-access-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(245, 204, 75, 0.2);
  color: #8a6a07;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .um-access-rows li,
  .um-access-head,
  .um-access-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
}
