/* ============================================================================
   user-picker.css — Componente cfUserPicker (padrao U3)
   ============================================================================ */

.cf-up-wrap { position: relative; display: inline-block; width: 100%; }

.cf-up-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit; font-size: 13px;
  color: #0F172A;
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms;
}
.cf-up-btn:hover { border-color: #CBD5E1; }
.cf-up-btn small { color: #94A3B8; }

.cf-up-pop {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 1000;
  display: flex; flex-direction: column;
  max-height: 360px;
  animation: cf-up-pop 150ms ease-out;
}
@keyframes cf-up-pop {
  from { transform: translateY(-4px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cf-up-search {
  margin: 8px;
  padding: 6px 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 12.5px;
  font-family: inherit;
}
.cf-up-search:focus { outline: 2px solid #1E5BAA; outline-offset: -1px; border-color: transparent; }

.cf-up-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.cf-up-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: #0F172A;
  transition: background 100ms;
}
.cf-up-item:hover { background: #F8FAFC; }
.cf-up-item.is-selected { background: #DBEAFE; color: #1E5BAA; font-weight: 500; }

.cf-up-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.cf-up-av-text {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 11px; font-weight: 600;
}
.cf-up-empty {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #94A3B8;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cf-up-item span:nth-child(2) {
  display: flex; flex-direction: column; min-width: 0;
}
.cf-up-item strong {
  font-size: 13px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cf-up-item small {
  font-size: 10.5px;
  color: #94A3B8;
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Modal pick() */
.cf-up-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10001;
}
.cf-up-modal {
  background: #fff;
  border-radius: 14px;
  width: 95%; max-width: 460px;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.cf-up-modal header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
}
.cf-up-modal h3 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 400; font-size: 18px;
  margin: 0; color: #0F172A;
}
.cf-up-modal-x {
  background: transparent; border: 0; cursor: pointer;
  padding: 4px; color: #64748B;
  display: flex; align-items: center; justify-content: center;
}
.cf-up-modal-x i { width: 18px; height: 18px; }
.cf-up-modal footer {
  display: flex; justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid #E2E8F0;
}
.cf-up-modal-btn {
  background: transparent;
  border: 1px solid #E2E8F0;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit; font-size: 13px;
  cursor: pointer;
  color: #64748B;
}
.cf-up-modal-btn:hover { background: #F8FAFC; }
