#users-namespace {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 60px);
  /* Match tenant.css to account for header */
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

/* Activity Visualization & Logs (Ported from nodes.css) */
.activity-visualization {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding-bottom: 20px;
}

.chart-container {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-height: 300px;
  position: relative;
  width: 100%;
  /* Ensure graph takes width */
  box-sizing: border-box;
}

.logs-container {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  /* Fill available height */
}

/* Ensure Tabs fill height */
#tab-user-activity,
#tab-user-logs {
  height: 100%;
  display: none;
  /* toggled by JS */
  flex-direction: column;
}

#tab-user-activity.active,
#tab-user-logs.active {
  display: flex;
}

.log-entry-item {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  display: grid;
  grid-template-columns: 140px 140px 1fr;
  gap: 15px;
  align-items: center;
}

.log-entry-item:last-child {
  border-bottom: none;
}

.placeholder-text {
  color: #999;
  font-style: italic;
  padding: 20px;
  text-align: center;
}

.tenant-selection {
  margin-bottom: 20px;
}

.tenant-selection label {
  margin-right: 10px;
  font-weight: bold;
}

.tenant-selection select {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.user-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* For scrolling content inside */
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.user-list-header {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  background-color: #e9e9e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-list-header h3 {
  margin: 0;
}

#user-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.user-list-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: default;
  background-color: #fff;
  margin-bottom: 5px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-list-item:hover {
  background-color: #f0f0f0;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: bold;
  font-size: 1.1em;
}

.user-id,
.user-role {
  font-size: 0.9em;
  color: #666;
}

.remove-btn {
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
}

.remove-btn:hover {
  background-color: #ff1a1a;
}