.users-page {
  color: #10213d;
  font-size: 14px;
}

.users-page .page-toolbar {
  min-height: 40px;
  margin-bottom: 16px;
}

.users-page .page-actions,
.users-page .filter-bar {
  gap: 12px;
}

.users-page .btn {
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 20px;
  border-radius: 6px;
  box-shadow: none;
}

.users-page .kpi-grid {
  gap: 16px;
  margin-bottom: 16px;
}

.users-page .kpi-card {
  min-height: 116px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}

.users-page .kpi-value strong {
  font-size: 32px;
  line-height: 40px;
  font-variant-numeric: tabular-nums;
}

.users-page .panel {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}

.users-page .panel-head {
  min-height: 52px;
  padding: 0 20px;
  border-bottom-color: #e2e8f0;
}

.users-page .panel-head h3 {
  color: #10213d;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.users-page .panel-head > span {
  color: #526278;
  font-size: 12px;
  line-height: 18px;
}

.users-page .panel-body {
  padding: 16px 20px 0;
}

.users-page .filter-bar {
  padding: 12px;
  margin-bottom: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}

.users-page :is(.filter-input, .filter-select) {
  height: 40px;
  padding: 0 12px;
  color: #10213d;
  font-size: 14px;
  line-height: 20px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.users-page .filter-input {
  width: 240px;
}

.users-page .filter-select {
  min-width: 144px;
}

.users-page :is(.filter-input, .filter-select):hover {
  border-color: #b8c4d4;
}

.users-page :is(.filter-input, .filter-select):focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px #e6f4ff;
  outline: 0;
}

.users-page .users-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.users-page .data-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.users-page .data-table :is(th, td) {
  height: 50px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 22px;
  border-bottom: 1px solid #e2e8f0;
}

.users-page .data-table th {
  height: 44px;
  color: #526278;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  background: #f8fafc;
}

.users-page .data-table td {
  overflow: hidden;
  color: #10213d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-page .data-table tbody tr:hover td {
  background: #f7fbff;
}

.users-page .data-table .cell-copy b {
  color: #10213d;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.users-page .data-table .cell-copy small {
  color: #7a889c;
  font-size: 12px;
  line-height: 18px;
}

.users-page .data-table td:last-child {
  overflow: visible;
  white-space: normal;
}

.users-page .member-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.users-page .data-table td a {
  display: inline-block;
  margin-right: 12px;
  color: #1677ff;
  font-size: 13px;
  line-height: 22px;
  white-space: nowrap;
}

.users-page .data-table td a:last-child {
  margin-right: 0;
}

.users-page .data-table td a:hover {
  color: #0958d9;
}

.users-page .data-table td a.danger-action {
  color: #d9363e;
}

.users-page .badge {
  min-height: 24px;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 12px;
}

.users-page .pagination {
  min-height: 60px;
  padding: 14px 16px;
  color: #526278;
  font-size: 13px;
  line-height: 20px;
  border: 1px solid #e2e8f0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.users-page .page-number {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

@media (max-width: 1180px) {
  .users-page .data-table {
    min-width: 1040px;
  }
}

@media (max-width: 960px) {
  html:has(.users-page),
  body:has(.users-page),
  #app:has(.users-page) {
    min-width: 0;
  }

  body:has(.users-page) {
    overflow-x: hidden;
    background: #f5f7fa;
  }

  .admin-shell:has(.users-page) .sidebar {
    width: 64px;
  }

  .admin-shell:has(.users-page) .sidebar :is(.brand > div, .nav-group__label, .nav-item > span:not(.nav-icon), .sidebar-foot) {
    display: none;
  }

  .admin-shell:has(.users-page) .brand,
  .admin-shell:has(.users-page) .nav-item {
    justify-content: center;
    padding-inline: 0;
  }

  .admin-shell:has(.users-page) .main-shell {
    margin-left: 64px;
  }

  .admin-shell:has(.users-page) .topbar {
    padding: 0 16px;
  }

  .admin-shell:has(.users-page) .context-pill {
    width: 150px;
    min-width: 150px;
  }

  .admin-shell:has(.users-page) .user-chip {
    padding-right: 5px;
  }

  .admin-shell:has(.users-page) .user-chip b {
    display: none;
  }

  .admin-shell:has(.users-page) .page-content {
    padding: 16px;
  }

  .users-page .filter-spacer {
    display: none;
  }

  .users-page .filter-input {
    flex: 1 1 100%;
    width: 100%;
  }

  .users-page .filter-select {
    flex: 1 1 160px;
  }
}

@media (max-width: 760px) {
  .admin-shell:has(.users-page) .top-actions .context-pill {
    display: none;
  }

  .users-page .page-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .users-page .page-actions .btn {
    flex: 1 1 140px;
    justify-content: center;
  }

  .users-page .kpi-card {
    min-height: 108px;
    padding: 16px;
  }

  .users-page .kpi-value strong {
    font-size: 30px;
  }

  .users-page .panel-head,
  .users-page .panel-body {
    padding-inline: 16px;
  }

  .users-page .filter-select,
  .users-page .filter-bar .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .users-page .users-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .users-page .data-table,
  .users-page .data-table tbody,
  .users-page .data-table tr,
  .users-page .data-table td {
    display: block;
    width: 100%;
  }

  .users-page .data-table {
    min-width: 0;
  }

  .users-page .data-table thead {
    display: none;
  }

  .users-page .data-table tr {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }

  .users-page .data-table :is(td, td:last-child) {
    display: grid;
    height: auto;
    min-height: 34px;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    overflow: visible;
    padding: 6px 0;
    text-overflow: clip;
    white-space: normal;
    border: 0;
  }

  .users-page .data-table td::before {
    color: #7a889c;
    font-size: 12px;
    line-height: 18px;
  }

  .users-page .data-table td:nth-child(1)::before { content: "成员"; }
  .users-page .data-table td:nth-child(2)::before { content: "平台角色"; }
  .users-page .data-table td:nth-child(3)::before { content: "所属组织"; }
  .users-page .data-table td:nth-child(4)::before { content: "资源范围"; }
  .users-page .data-table td:nth-child(5)::before { content: "状态"; }
  .users-page .data-table td:nth-child(6)::before { content: "最后登录"; }
  .users-page .data-table td:nth-child(7)::before { content: "操作"; }

  .users-page .data-table td:first-child {
    min-height: 48px;
    padding-top: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .users-page .pagination {
    flex-wrap: wrap;
    justify-content: flex-start;
    border-top: 1px solid #e2e8f0;
    border-radius: 8px;
  }
}

@media (max-width: 420px) {
  .admin-shell:has(.users-page) .sidebar {
    width: 56px;
  }

  .admin-shell:has(.users-page) .main-shell {
    margin-left: 56px;
  }

  .admin-shell:has(.users-page) .topbar {
    padding-inline: 10px;
  }

  .admin-shell:has(.users-page) .page-content {
    padding: 12px;
  }

  .users-page .kpi-grid.five {
    grid-template-columns: 1fr;
  }

  .users-page .panel-head > span {
    display: none;
  }

  .users-page .data-table tr {
    padding-inline: 14px;
  }
}
