/* ==========================================================================
   Admin · Sessions view
   Structural styling (toolbar, table, pagination, detail rows) is shared with
   the Error Log view via the .err-log-* classes; this file adds only the
   session-specific bits (status badges + revoke actions).
   ========================================================================== */

#admin-sessions {
  padding: 1rem;
}

/* --- Status badge (Active / Expired) --- */

.sess-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.sess-badge-active {
  background: rgba(22, 163, 74, 0.15);
  color: #16a34a;
}

.sess-badge-expired {
  background: rgba(107, 114, 128, 0.18);
  color: var(--clr-muted);
}

/* "you" marker next to the caller's own session */
.sess-you {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(11, 95, 255, 0.15);
  color: #0b5fff;
  font-size: 0.68rem;
  font-weight: 600;
  vertical-align: middle;
}

/* --- Detail actions --- */

.sess-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sess-btn-revoke,
.sess-btn-revoke-user {
  height: 32px;
  padding: 0 0.7rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-input-bg);
  color: var(--clr-text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.sess-btn-revoke {
  border-color: #dc2626;
  color: #dc2626;
}

.sess-btn-revoke:hover:not(:disabled) {
  background: #dc2626;
  color: #fff;
}

.sess-btn-revoke-user:hover {
  background: var(--clr-hover, rgba(0, 0, 0, 0.05));
}

.sess-btn-revoke:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sess-current-tag {
  font-size: 0.76rem;
  color: var(--clr-muted);
  font-style: italic;
}
