/* Admin — domestic user management (page-specific) */

.admin-users-workspace {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 280px;
}

.admin-users-list {
  flex: 1;
  min-width: 0;
}

.admin-users-workspace.panel-open .admin-users-list {
  border-right: 1px solid #eaeef2;
  padding-right: 0.5rem;
  margin-right: 0.5rem;
}

.admin-users-name {
  font-weight: 600;
  color: #5b594c;
  line-height: 1.3;
}

.admin-users-email {
  font-size: 11px;
  color: #9aa6b1;
  margin-top: 0.1rem;
}

/* Side drawer */
.admin-users-drawer {
  flex: 0 0 300px;
  max-width: 320px;
  min-width: 260px;
  padding: 0 0.25rem 0 1rem;
  display: flex;
  flex-direction: column;
}

.admin-users-drawer-title {
  font-size: 13px;
  font-weight: 700;
  color: #5b594c;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #eaeef2;
}

.admin-users-field {
  margin-bottom: 0.85rem;
}

.admin-users-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a594b;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.admin-users-input {
  display: block;
  width: 100%;
  font-size: 12px;
  color: #5b594c;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0.375rem;
  padding: 0.45rem 0.65rem;
}

.admin-users-input:read-only {
  background: #f7f7f7;
  color: #5a594b;
}

.admin-users-input:focus {
  outline: none;
  border-color: #83bb22;
  box-shadow: 0 0 0 0.15rem rgba(131, 187, 34, 0.2);
}

.admin-users-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-users-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eef6dd;
  border: 1px solid #cfe19a;
  color: #4a6b14;
  border-radius: 14px;
  padding: 0.2rem 0.55rem;
  font-size: 11px;
  font-weight: 600;
}

.admin-users-tag--add {
  background: #fff;
  border-style: dashed;
  border-color: #83bb22;
  color: #6f9a13;
  cursor: pointer;
  font-weight: 600;
}

.admin-users-tag-remove {
  border: none;
  background: none;
  color: #6f9a13;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
}

.admin-users-drawer-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  flex-wrap: wrap;
}

.admin-user-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  white-space: nowrap;
  display: inline-block;
}

.admin-user-badge--active {
  background: #e3f5ea;
  color: #1d6b41;
}

.admin-user-badge--pending {
  background: #fff3da;
  color: #8a6313;
}

.admin-users-hint {
  display: block;
  font-size: 10px;
  color: #9aa6b1;
  margin-top: 0.25rem;
}

.admin-users-alert {
  font-size: 12px;
  padding: 0.55rem 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}

.admin-users-alert--error {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f5c2c2;
}

.admin-users-alert--notice {
  background: #eef6dd;
  color: #4a6b14;
  border: 1px solid #cfe19a;
}

.admin-users-promote {
  margin-top: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eaeef2;
}

@media (max-width: 992px) {
  .admin-users-workspace {
    flex-direction: column;
  }

  .admin-users-workspace.panel-open .admin-users-list {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid #eaeef2;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }

  .admin-users-drawer {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    padding: 0;
  }
}
