/* =========================================
   PRESENCIA — Teams-like status (top bar + "En línea" page)
   Colors always come with a text label: the dot never carries meaning alone.
   ========================================= */

.pr-punto {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pr-disponible {
  background: #1f9d55;
}

.pr-ocupado {
  background: #c62828;
}

/* Away: amber ring so it reads differently from the others even without color */
.pr-ausente {
  background: #fff;
  box-shadow: inset 0 0 0 3px #d98e04;
}

/* Dot on the top bar avatar */
.pr-avatar {
  position: relative;
  display: inline-flex;
  margin-right: 8px;
}

.pr-avatar .user-avatar-container {
  margin-right: 0;
}

.pr-avatar .pr-punto {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border: 2px solid #c4442a;
}

.pr-avatar .pr-ausente {
  box-shadow: inset 0 0 0 3px #d98e04;
}

/* Status picker inside the user menu */
.pr-selector {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-bottom: 1px solid #f0ebe7;
}

.pr-selector-titulo {
  margin: 0 0 4px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5c636a;
  text-transform: uppercase;
}

.pr-opcion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #212529;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.pr-opcion:hover {
  background: #f6f2ef;
}

.pr-opcion:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: -2px;
}

.pr-opcion[aria-checked="true"] {
  font-weight: 600;
}

.pr-opcion .pr-tilde {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--primary-blue);
  visibility: hidden;
}

.pr-opcion[aria-checked="true"] .pr-tilde {
  visibility: visible;
}

.pr-ver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 4px;
  padding: 0 10px;
  border-radius: 8px;
  color: #a83a24 !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
}

.pr-ver:hover {
  background: rgba(196, 68, 42, 0.06);
}

.pr-ver .lucide-icon {
  width: 16px;
  height: 16px;
}

/* ---------- "En línea" page ---------- */

.pr-resumen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid #ece7e3;
  border-radius: 999px;
  background: #fff;
  color: #343a40;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.pr-chip strong {
  font-variant-numeric: tabular-nums;
}

.pr-chip:hover {
  border-color: rgba(196, 68, 42, 0.35);
}

.pr-chip[aria-pressed="true"] {
  border-color: var(--primary-blue);
  background: rgba(196, 68, 42, 0.05);
}

.pr-chip:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.pr-sector {
  margin-top: 18px;
}

.pr-sector:first-child {
  margin-top: 0;
}

.pr-sector-titulo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.pr-sector-titulo span {
  font-size: 0.8rem;
  font-weight: 500;
  color: #5c636a;
}

.pr-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.pr-persona {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #f0ebe7;
  border-radius: 12px;
  background: #fff;
}

.pr-foto {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
}

.pr-foto img,
.pr-foto .dc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.pr-foto .pr-punto {
  position: absolute;
  right: -2px;
  bottom: -2px;
  border: 2px solid #fff;
  width: 14px;
  height: 14px;
}

.pr-persona-texto {
  min-width: 0;
}

.pr-persona-texto strong {
  display: block;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pr-persona-texto small {
  display: block;
  font-size: 0.78rem;
  color: #5c636a;
}

.pr-estado-texto {
  font-weight: 600;
}

.pr-estado-texto.pr-t-disponible {
  color: #146c43;
}

.pr-estado-texto.pr-t-ocupado {
  color: #a52834;
}

.pr-estado-texto.pr-t-ausente {
  color: #7a5200;
}

.pr-vacio {
  padding: 32px 12px;
  text-align: center;
  color: #5c636a;
}

.pr-actualizado {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #5c636a;
}

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