.btn-float {
	float: right;
	display: inline-block;
}

:root {
  --border: #e2e0d8;
  --border-strong: #cac7ba;
  --surface-1: #f5f4ef;
  --surface-2: #ffffff;
  --text-primary: #1f1f1d;
  --text-secondary: #5f5e5a;
  --text-muted: #8a887f;
  --accent: #185fa5;
  --bg-accent: #e6f1fb;
  --text-accent: #0c447c;
  --bg-success: #eaf3de;
  --text-success: #27500a;
  --bg-warning: #faeeda;
  --text-warning: #854f0b;
  --bg-danger: #fcebeb;
  --text-danger: #791f1f;
  --radius: 8px;
}

* { box-sizing: border-box; }

.subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.icon { font-weight: 500; }

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 500px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  font-size: 14px;
  background: var(--surface-2);
}

.filter-select {
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  font-size: 14px;
  background: var(--surface-2);
  min-width: 160px;
}

.results-summary {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.study-group {
  margin-bottom: 1.75rem;
}

.study-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-strong);
}

.study-heading .study-name {
  font-size: 15px;
  font-weight: 500;
}

.study-heading .study-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.site-group {
  margin-bottom: 1.25rem;
}

.site-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding-left: 4px;
}

.site-heading .site-name {
  font-size: 14px;
  font-weight: 500;
}

.site-heading .site-count {
  font-size: 12px;
  color: var(--text-muted);
}

.user-table {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--border);
}

.user-row:last-child { border-bottom: none; }

.user-row.deactivated { opacity: 0.6; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 13px;
  flex-shrink: 0;
  background: var(--bg-accent);
  color: var(--text-accent);
}

.user-row.deactivated .avatar {
  background: var(--surface-1);
  color: var(--text-secondary);
}

.hr-top {
  margin-top: 0px!important;
  padding-top: 0px!important;
}

.user-info { flex: 1; min-width: 0; }

.user-name {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
}

.user-email {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whitespace {
  display: inline-block;
  width: 100%;
  height: 1px;
  padding: none;
  margin: none;
}

.user-areas {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.status-pill.Active { background: var(--bg-success); color: var(--text-success); }
.status-pill.Onboarding { background: var(--bg-warning); color: var(--text-warning); }
.status-pill.New { background: var(--bg-warning); color: var(--text-warning); }
.status-pill.Deactivated { background: var(--surface-1); color: var(--text-muted); }

.date-created {
  font-size: 12px;
  color: var(--text-muted);
  width: 80px;
  text-align: right;
  flex-shrink: 0;
}

.row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.icon-btn:hover { background: var(--surface-1); }

.icon-btn.danger { color: var(--text-danger); border-color: #e0b3b3; }


.icon-btn-legend {
  width: auto!important;
  height: auto!important;
  padding: 0;
  display: inline-block;
  align-items: center;
  justify-content: center;
  float: left;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  background: var(--surface-2);
  font-size: 12px;
  line-height: 1;
}

.icon-btn-legend.danger { color: var(--text-danger); border-color: #e0b3b3; }

.icon-btn-legend.m-left { 
  margin-left: 7px; 
}


.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 3rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 1.5rem;
  width: 360px;
  max-width: 90vw;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

#userForm label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

#userForm input,
#userForm select {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 4px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  font-size: 14px;
  background: var(--surface-2);
  color: var(--text-primary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0.5rem;
}

.notification-prompt {
	display: block;
	width: 100%;
	padding: 7px;
	border: 0.5px solid var(--border-strong);
	text-align: center;
	border-radius: var(--radius);
	box-sizing: border-box;
}

.col-container {
  display: flex;
  gap: 20px;
}

.column {
  flex: 1;
  padding: 0px;
}

.left {
  border: 1px solid #d8d3c8;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(28,35,33,0.04);
}

.right {
  border: 1px solid #d8d3c8;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(28,35,33,0.04);
}

.ms-holder {
  border: 1px solid #d8d3c8;
  display: none;
  min-width: 50%;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(28,35,33,0.04);
}

#qrcode {
  padding: 16px;
  background: #fff;
  border: 1px solid #d8d3c8;
  border-radius: 10px;
  text-align: center;
}

.iframe-holder {
  width: 100%;
  height: 100%;
  border: 0px!important;
}

#qrcode img {
  margin: 0px auto;
}

.target {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  color: #6b6f6d;
  word-break: break-all;
  text-align: center;
  background: #e4ede9;
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 100%;
}








