.users-page {
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: #1f3a2b;
}

.users-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.users-heading h1 {
  margin: 8px 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.users-heading p,
.users-toolbar p {
  color: #748074;
  margin: 5px 0 0;
}

.users-readonly {
  padding: 9px 14px;
  border-radius: 999px;
  background: #f5f0e7;
  color: #8b6d3c;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.users-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.users-stats article {
  background: white;
  border: 1px solid #e9e7df;
  border-radius: 16px;
  padding: 22px;
}

.users-stats span {
  display: block;
  font-size: 13px;
  color: #748074;
}

.users-stats strong {
  display: block;
  font-size: 32px;
  margin-top: 9px;
}

.users-panel {
  background: #fff;
  border: 1px solid #e9e7df;
  border-radius: 18px;
  overflow: hidden;
}

.users-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 25px;
}

.users-toolbar h2 {
  margin: 0;
  font-size: 19px;
}

.users-toolbar input {
  width: min(100%, 330px);
  padding: 12px 14px;
  border: 1px solid #dedfd7;
  border-radius: 10px;
  background: #fbfaf6;
  color: #1f3a2b;
}

.users-table-wrap {
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.users-table th {
  background: #faf9f5;
  padding: 15px 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7a8479;
}

.users-table td {
  padding: 18px;
  border-top: 1px solid #f0efe9;
  vertical-align: middle;
}

.users-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.users-person strong,
.users-person small {
  display: block;
}

.users-person small,
.users-app-names {
  margin-top: 4px;
  color: #849084;
  font-size: 12px;
}

.users-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #e8eee5;
  color: #1f3a2b;
  font-weight: 700;
}

.users-id {
  font-family: monospace;
  font-size: 12px;
}

.users-role,
.users-software-count {
  font-weight: 600;
}

.users-assignment {
  margin: 3px 0;
}

.users-assignment small,
.users-muted {
  color: #899289;
}

.users-app-names {
  display: block;
  max-width: 190px;
  line-height: 1.5;
}

.users-status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.users-status-ACTIVE {
  background: #e7f1e7;
  color: #2f6740;
}

.users-status-INVITED {
  background: #fff2dc;
  color: #94651c;
}

.users-status-SUSPENDED {
  background: #f8e5e3;
  color: #9b4038;
}

.users-error,
.users-no-results {
  padding: 24px;
  color: #9b4038;
}

@media (max-width: 1000px) {
  .users-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .users-table {
    min-width: 850px;
  }
}

@media (max-width: 600px) {
  .users-heading,
  .users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .users-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .users-toolbar input {
    width: 100%;
    box-sizing: border-box;
  }
}
