:root {
  --ink: #172026;
  --muted: #667085;
  --line: #e4e8ef;
  --panel: #ffffff;
  --bg: #f4f6fa;
  --red: #ef4444;
  --teal: #0f9f8f;
  --gold: #d88718;
  --blue: #2563eb;
  --shadow: 0 16px 42px rgba(22, 31, 45, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.admin-is-signed .admin-login,
body.admin-is-login .admin-app {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 48px max(48px, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(100deg, rgba(13, 18, 25, 0.78), rgba(13, 18, 25, 0.2)),
    url("../assets/merchant-login-bg.png");
  background-size: cover;
  background-position: center;
}

.admin-login-card {
  width: 318px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 52px rgba(11, 18, 25, 0.22);
}

.admin-login-brand,
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-login-brand {
  margin-bottom: 18px;
}

.admin-login-brand span,
.admin-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #374151);
  font-weight: 850;
}

.admin-login-card label {
  min-height: 40px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.admin-login-card label span {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.admin-login-card input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 12px;
}

.admin-login-card button,
.primary-btn {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #18b7cf);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(15, 159, 143, 0.22);
}

.admin-login-card button {
  width: 100%;
}

.admin-app {
  min-height: 100vh;
  padding-top: 68px;
  padding-left: 228px;
}

.admin-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(90deg, #101114, #1e2028 68%, #173c38);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header-actions a,
.admin-header-actions button,
.ghost-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.ghost-btn {
  color: #344054;
  border-color: var(--line);
  background: #fff;
}

.admin-sidebar {
  position: fixed;
  top: 92px;
  left: 20px;
  z-index: 20;
  width: 184px;
  padding: 12px 10px;
  border-radius: 12px;
  background: #16181f;
  box-shadow: var(--shadow);
}

.admin-nav {
  width: 100%;
  height: 40px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 8px;
  color: #c8cdd8;
  background: transparent;
  text-align: left;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 780;
}

.admin-nav.is-active,
.admin-nav:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--teal), #18b7cf);
}

.admin-main {
  padding: 28px 36px 80px 32px;
}

.admin-title,
.admin-panel,
.sub-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px 22px;
}

.admin-title span,
.panel-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.admin-title h1 {
  margin: 0;
  font-size: 26px;
}

.admin-panel {
  min-height: 460px;
  padding: 20px;
}

.metric-grid,
.admin-grid {
  display: grid;
  gap: 14px;
}

.metric-grid > *,
.admin-grid > *,
.sub-panel {
  min-width: 0;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.metric-card {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #fbfcfe;
}

.metric-action {
  width: 100%;
  text-align: left;
}

.metric-action:hover {
  border-color: rgba(15, 159, 143, 0.45);
  background: #f0fdfa;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card b {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
}

.admin-stack {
  display: grid;
  gap: 16px;
}

.sub-panel {
  padding: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head strong {
  font-size: 17px;
}

.section-head > span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.section-head button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: #344054;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.section-head button:hover {
  color: var(--teal);
  border-color: rgba(15, 159, 143, 0.45);
}

.simple-table {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.table-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: 120px 150px 100px 130px 1fr 170px;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  min-width: 0;
  padding: 0 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-head {
  color: #667085;
  background: #f8fafc;
  font-weight: 850;
}

.cols-4 {
  grid-template-columns: 160px 160px 1fr 180px;
}

.cols-5 {
  grid-template-columns: 140px 160px 120px 1fr 180px;
}

.wallet-recharge-row {
  min-width: 780px;
  grid-template-columns: 82px 150px 100px minmax(300px, 1fr) 132px;
}

.recharge-admin-row,
.withdraw-admin-row {
  min-width: 1120px;
  grid-template-columns: 82px 160px 110px 112px minmax(300px, 1fr) 190px 150px;
}

.wallet-side-stack {
  display: grid;
  gap: 16px;
}

.user-account-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.user-account-overview > div {
  display: grid;
  gap: 8px;
  min-height: 92px;
  align-content: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.user-account-overview span,
.user-account-panel .section-head small,
.merchant-account-panel .section-head small {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.user-account-overview strong {
  color: #18212f;
  font-size: 25px;
}

.user-account-panel .section-head > div,
.merchant-account-panel .section-head > div {
  display: grid;
  gap: 4px;
}

.user-account-filter {
  grid-template-columns: minmax(280px, 1fr) auto auto minmax(150px, max-content);
}

.user-account-notice {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #bce9df;
  border-radius: 9px;
  color: #0f766e;
  background: #f0fdfa;
  font-size: 12px;
  font-weight: 800;
}

.user-account-row {
  min-width: 1380px;
  grid-template-columns: minmax(250px, 1.2fr) 210px 160px 160px 250px 120px 120px;
}

.merchant-account-row {
  min-width: 1380px;
  grid-template-columns: minmax(250px, 1.2fr) 200px 150px 190px 280px 120px 120px;
}

.user-account-row > span,
.merchant-account-row > span {
  display: grid;
  gap: 3px;
}

.user-account-row > span small,
.merchant-account-row > span small {
  color: #98a2b3;
  font-size: 11px;
}

.user-account-row .account-list-identity,
.merchant-account-row .account-list-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-list-identity > span {
  display: grid;
  gap: 3px;
  padding: 0;
}

.account-profile-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 50%;
  padding: 0 !important;
  color: #2563eb;
  background: #eff6ff;
  font-size: 16px;
  font-weight: 900;
}

.account-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-detail-box {
  width: min(780px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 22px;
}

.account-detail-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.account-detail-identity .account-profile-avatar {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  font-size: 22px;
}

.account-detail-identity > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
}

.account-detail-identity > div > strong {
  flex-basis: 100%;
  color: #172033;
  font-size: 20px;
}

.account-detail-identity > div > span {
  color: #667085;
  font-size: 13px;
}

.account-detail-section {
  margin-top: 18px;
}

.account-detail-section h4 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 14px;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-detail-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.account-detail-field span {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.account-detail-field strong {
  overflow-wrap: anywhere;
  color: #172033;
  font-size: 13px;
  line-height: 1.5;
}

.order-admin-cols {
  grid-template-columns: 150px 180px 130px 150px minmax(240px, 1fr) 190px;
}

.server-order-row {
  min-width: 1440px;
  grid-template-columns: 180px 210px 150px 170px minmax(280px, 1fr) 120px 190px;
}

.server-withdraw-row {
  min-width: 1400px;
  grid-template-columns: 205px 150px 190px 90px 220px minmax(270px, 1fr) 170px;
}

.server-recharge-row {
  min-width: 1220px;
  grid-template-columns: 220px 160px 180px 150px minmax(220px, 1fr) 240px;
}

.fund-ledger-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.fund-ledger-metric {
  min-width: 0;
  display: grid;
  gap: 7px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.fund-ledger-metric span,
.fund-ledger-metric small {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.fund-ledger-metric strong {
  color: #172033;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.fund-ledger-metric.is-income strong {
  color: #07865f;
}

.fund-ledger-metric.is-outcome strong {
  color: #c2413a;
}

.fund-ledger-row {
  min-width: 1540px;
  grid-template-columns: 200px 180px 135px 210px 100px 190px 225px minmax(260px, 1fr);
}

.fund-ledger-row > span {
  min-width: 0;
  white-space: normal;
  line-height: 1.45;
}

.fund-ledger-row strong,
.fund-ledger-row small {
  display: block;
}

.fund-ledger-row small {
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fund-ledger-proof-cell {
  display: grid;
  align-content: start;
  justify-items: start;
}

.fund-ledger-note {
  overflow-wrap: anywhere;
}

.fund-ledger-proof {
  width: min(100%, 184px);
  display: grid;
  gap: 6px;
}

.fund-ledger-proof-thumb {
  width: 184px;
  max-width: 100%;
  height: 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 5px;
  background: #f8fafc;
  cursor: zoom-in;
}

.fund-ledger-proof-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 30%;
  background: #fff;
}

.fund-ledger-proof-zoom {
  min-height: 32px;
  border: 1px solid #b8cdf8;
  border-radius: 8px;
  color: var(--blue);
  background: #eff6ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.fund-ledger-proof-zoom:hover {
  border-color: var(--blue);
  background: #dbeafe;
}

.fund-ledger-proof-empty {
  color: #98a2b3;
  font-size: 12px;
}

.fund-ledger-proof-modal {
  z-index: 90;
}

.fund-ledger-proof-modal .admin-proof-mask {
  border: 0;
  cursor: zoom-out;
}

.fund-ledger-proof-box {
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 18px 20px;
}

.fund-ledger-proof-canvas {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  border-radius: 10px;
  padding: 12px;
  background: #eef2f7;
}

.fund-ledger-proof-box .fund-ledger-proof-canvas img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 190px);
  margin: 0;
  object-fit: contain;
}

.fund-ledger-proof-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fund-ledger-proof-meta a {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.fund-ledger-amount {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.fund-ledger-amount.is-income {
  color: #07865f;
}

.fund-ledger-amount.is-outcome {
  color: #c2413a;
}

.fund-ledger-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 32px;
  border-radius: 16px;
  padding: 0 11px;
  color: #475467;
  background: #f2f4f7;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.fund-ledger-status.is-completed {
  color: #047857;
  background: #ecfdf5;
}

.fund-ledger-status.is-pending,
.fund-ledger-status.is-processing {
  color: #b45309;
  background: #fffbeb;
}

.fund-ledger-status.is-rejected {
  color: #b42318;
  background: #fef3f2;
}

.fund-ledger-time {
  font-variant-numeric: tabular-nums;
}

.server-transfer-row {
  min-width: 920px;
  grid-template-columns: 190px 160px minmax(220px, 1fr) 170px 250px;
}

.server-transfer-row strong,
.server-transfer-row small {
  display: block;
}

.server-transfer-row small {
  color: #667085;
  font-size: 11px;
}

.server-order-row span,
.server-withdraw-row span,
.server-recharge-row span {
  white-space: normal;
  line-height: 1.4;
}

.server-order-row strong,
.server-order-row small,
.server-withdraw-row strong,
.server-withdraw-row small,
.server-recharge-row strong,
.server-recharge-row small {
  display: block;
}

.server-order-row small,
.server-withdraw-row small,
.server-recharge-row small {
  color: #667085;
  font-size: 11px;
}

.server-withdraw-row .row-actions,
.server-recharge-row .row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: visible;
  white-space: nowrap;
}

.server-withdraw-row .row-actions button,
.server-recharge-row .row-actions button {
  min-width: max-content;
  white-space: nowrap;
}

.server-withdraw-time strong,
.server-withdraw-time small {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.server-withdraw-result {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  white-space: nowrap;
}

.server-withdraw-result.is-paid {
  color: #047857;
  background: #ecfdf5;
}

.server-withdraw-result.is-rejected {
  color: #b42318;
  background: #fef3f2;
}

.server-fund-proof-thumb {
  width: 112px;
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 6px;
  color: var(--blue);
  background: #fff;
  text-decoration: none;
}

.server-fund-proof-thumb img {
  width: 98px;
  height: 52px;
  display: block;
  border-radius: 5px;
  object-fit: cover;
  background: #f8fafc;
}

.server-fund-proof-thumb b {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.server-fund-proof-thumb.is-withdraw-qr {
  width: 188px;
  min-width: 188px;
  min-height: 202px;
  grid-template-rows: 172px auto;
  flex: 0 0 188px;
  margin: 0;
  padding: 8px;
  color: #0f766e;
}

.server-fund-proof-thumb.is-withdraw-qr img {
  width: 172px;
  height: 172px;
  object-fit: contain;
  background: #fff;
}

.server-fund-proof-thumb.is-withdraw-qr figcaption {
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.server-withdraw-row > span:nth-child(5) {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 12px 16px;
}

.server-operations-panel {
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .fund-ledger-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .fund-ledger-summary {
    grid-template-columns: 1fr;
  }
}

.support-admin-panel {
  min-height: 640px;
}

.support-channel-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.support-metric-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.support-metric-bar span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e4e8ef;
  border-radius: 7px;
  padding: 9px 10px;
  color: #667085;
  background: #fff;
  font-size: 11px;
}

.support-metric-bar b {
  color: #0f766e;
  font-size: 16px;
}

.support-channel-tab {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: 8px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 8px 12px;
  color: #475467;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.support-channel-tab b {
  color: #111827;
  font-size: 15px;
}

.support-channel-tab em {
  grid-column: 1 / -1;
  color: #98a2b3;
  font-size: 11px;
  font-style: normal;
}

.support-channel-tab.is-active {
  border-color: rgba(15, 159, 143, 0.55);
  color: #0f766e;
  background: #effaf8;
  box-shadow: 0 0 0 2px rgba(15, 159, 143, 0.08);
}

.support-admin-layout {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(230px, 28%) minmax(360px, 1fr) minmax(190px, 22%);
  overflow: hidden;
  border: 1px solid #e4e8ef;
  background: #f8fafc;
}

.support-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 135px 135px auto auto;
  gap: 8px;
  margin: 12px 0;
}

.support-search input,
.support-search select,
.support-admin-composer-tools select,
.support-quick-form input,
.support-quick-form select,
.support-quick-form textarea {
  min-width: 0;
  border: 1px solid #dce3ea;
  border-radius: 7px;
  padding: 8px 9px;
  outline: 0;
  color: #344054;
  background: #fff;
}

.support-search input:focus,
.support-search select:focus,
.support-admin-composer-tools select:focus,
.support-quick-form input:focus,
.support-quick-form select:focus,
.support-quick-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 159, 143, 0.1);
}

.support-admin-list {
  min-width: 0;
  overflow: auto;
  border-right: 1px solid #e4e8ef;
  background: #fff;
}

.support-admin-list-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #e4e8ef;
  color: #344054;
}

.support-admin-list-head span,
.support-admin-conversation small,
.support-admin-conversation i,
.support-admin-thread-head small {
  color: #667085;
  font-size: 11px;
  font-style: normal;
}

.support-admin-conversation {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #eef1f4;
  padding: 12px;
  color: #344054;
  background: #fff;
  text-align: left;
}

.support-admin-conversation:hover,
.support-admin-conversation.is-active {
  background: #effaf8;
}

.support-admin-avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #0f9f8f;
  font-size: 12px;
  font-weight: 850;
}

.support-admin-conversation > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.support-admin-conversation strong,
.support-admin-conversation em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-unread-count {
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  border-radius: 10px;
  padding: 1px 5px;
  color: #fff;
  background: #ef4444;
  font-size: 10px;
}

.support-admin-conversation em {
  color: #98a2b3;
  font-size: 11px;
  font-style: normal;
}

.support-admin-conversation .support-status-tag {
  display: inline-block;
  width: fit-content;
  margin-top: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.support-status-tag.is-pending {
  color: #b54708;
  background: #fff4e5;
}

.support-status-tag.is-open {
  color: #0f766e;
  background: #ecfdf9;
}

.support-status-tag.is-closed {
  color: #667085;
  background: #f2f4f7;
}

.support-admin-conversation i {
  white-space: nowrap;
}

.support-admin-thread {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f7f9fb;
}

.support-admin-thread-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #e4e8ef;
  background: #fff;
}

.support-admin-thread-head > div:first-child {
  display: grid;
  gap: 3px;
}

.support-admin-thread-head > div:first-child em {
  color: #98a2b3;
  font-size: 10px;
  font-style: normal;
}

.support-admin-thread-head > div:last-child {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.support-admin-thread-head .plain-btn {
  min-height: 30px;
  padding: 0 9px;
}

.support-admin-thread-head .danger {
  color: #b42318;
}

.support-admin-thread-head > div:last-child {
  align-items: center;
}

.support-agent-select {
  min-height: 30px;
  max-width: 130px;
  border: 1px solid #dce3ea;
  border-radius: 7px;
  padding: 0 6px;
  color: #344054;
  background: #fff;
}

.support-closed-label {
  color: #98a2b3;
  font-size: 12px;
}

.support-admin-messages {
  min-height: 300px;
  flex: 1;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 16px;
}

.support-admin-messages .support-message {
  max-width: 88%;
}

.support-admin-messages .support-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.support-admin-messages .support-message.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.support-admin-messages .support-message-avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #0f9f8f;
  font-size: 12px;
  font-weight: 850;
}

.support-admin-messages .support-message.is-mine .support-message-avatar {
  border: 1px solid #f5becf;
  background: #ffd7e2;
}

.support-admin-messages .support-message-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.support-admin-messages .support-message-body {
  min-width: 0;
}

.support-admin-messages .support-message-body > strong {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 11px;
}

.support-admin-messages .support-message.is-mine .support-message-body > strong,
.support-admin-messages .support-message.is-mine .support-message-body > small {
  text-align: right;
}

.support-admin-messages .support-bubble {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #e1e7ee;
  border-radius: 4px 12px 12px 12px;
  padding: 10px 12px;
  color: #344054;
  background: #fff;
  overflow-wrap: anywhere;
}

.support-admin-messages .support-message.is-mine .support-bubble {
  margin-left: auto;
  border-color: #0f9f8f;
  border-radius: 12px 4px 12px 12px;
  color: #fff;
  background: #0f9f8f;
}

.support-admin-messages .support-bubble p {
  margin: 0;
  line-height: 1.6;
}

.support-admin-messages .support-message-body > small {
  display: block;
  margin-top: 4px;
  color: #98a2b3;
  font-size: 10px;
}

.support-delivery {
  margin-left: 6px;
  color: #0f9f8f !important;
}

.support-message-delete {
  margin-left: 7px;
  border: 0;
  padding: 0;
  color: #b42318;
  background: transparent;
  font-size: 10px;
}

.support-system-message {
  justify-self: center;
  max-width: 80%;
  padding: 6px 10px;
  border-radius: 6px;
  color: #98a2b3;
  background: #edf1f5;
  font-size: 11px;
  text-align: center;
}

.support-date-divider {
  justify-self: center;
  margin: 2px 0;
  color: #999fa6;
  font-size: 12px;
  text-align: center;
}

.support-system-message small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.support-typing {
  padding: 0 16px 7px;
  color: #0f9f8f;
  background: #f7f9fb;
  font-size: 11px;
}

.support-admin-messages .support-image-link {
  display: block;
  margin-top: 6px;
}

.support-admin-messages .support-image-link img {
  display: block;
  max-width: min(300px, 100%);
  max-height: 220px;
  border-radius: 6px;
  object-fit: contain;
}

.support-admin-composer-tools {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 0;
  border-top: 1px solid #e4e8ef;
  background: #fff;
}

.support-admin-composer-tools button {
  min-width: 30px;
  min-height: 28px;
  border: 1px solid #dce3ea;
  border-radius: 6px;
  color: #475467;
  background: #fff;
}

.support-admin-composer-tools span {
  max-width: 220px;
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-admin-composer {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 8px 12px 12px;
  background: #fff;
}

.support-admin-composer textarea {
  width: 100%;
  min-height: 50px;
  resize: none;
  border: 1px solid #dce3ea;
  border-radius: 7px;
  padding: 9px;
  outline: 0;
}

.support-admin-empty,
.support-admin-closed-note {
  min-height: 300px;
  display: grid;
  place-items: center;
  color: #667085;
}

.support-admin-profile {
  min-width: 0;
  padding: 22px 16px;
  border-left: 1px solid #e4e8ef;
  background: #fff;
  text-align: center;
}

.support-profile-avatar {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #0f9f8f;
  font-weight: 850;
}

.support-profile-avatar.has-image {
  overflow: hidden;
  border: 1px solid #f5becf;
  background: #ffd7e2;
}

.support-profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.support-profile-section {
  display: grid;
  justify-items: center;
}

.support-profile-kicker {
  margin-bottom: 12px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 850;
}

.support-admin-profile h3 {
  margin: 12px 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-profile-role {
  color: #667085;
  font-size: 11px;
}

.support-admin-profile dl {
  margin: 22px 0 0;
  border-top: 1px solid #eef1f4;
  text-align: left;
}

.support-admin-profile dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #eef1f4;
}

.support-admin-profile dt,
.support-admin-profile dd {
  margin: 0;
  font-size: 11px;
}

.support-admin-profile dt {
  color: #98a2b3;
}

.support-admin-profile dd {
  overflow: hidden;
  color: #344054;
  font-weight: 750;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-profile-note {
  margin-top: 18px;
  color: #667085;
  font-size: 11px;
}

.support-profile-divider {
  margin: 22px 0 10px;
  border-top: 1px solid #eef1f4;
  padding-top: 14px;
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  text-align: left;
}

.support-profile-party {
  display: grid;
  gap: 5px;
  border: 1px solid #e4e8ef;
  border-radius: 7px;
  padding: 10px;
  background: #f8fafc;
  text-align: left;
}

.support-profile-party strong {
  overflow: hidden;
  color: #344054;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-profile-party span,
.support-profile-party small {
  overflow: hidden;
  color: #667085;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-profile-empty {
  display: grid;
  align-content: center;
  gap: 5px;
  place-items: center;
  color: #98a2b3;
}

.support-profile-empty strong {
  color: #344054;
}

.support-quick-manager {
  margin-top: 16px;
  border-top: 1px solid #e4e8ef;
  padding-top: 14px;
}

.support-quick-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 130px 80px minmax(200px, 2fr) auto;
  gap: 8px;
  align-items: start;
  margin: 12px 0;
}

.support-quick-form textarea {
  min-height: 38px;
  resize: vertical;
}

.support-quick-list {
  display: grid;
  gap: 6px;
}

.support-quick-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e8ef;
  border-radius: 7px;
  padding: 7px 9px;
  background: #fff;
}

.support-quick-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.support-quick-row strong,
.support-quick-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-quick-row small {
  color: #667085;
  font-size: 11px;
}

.support-quick-row button {
  min-height: 28px;
  border: 1px solid #dce3ea;
  border-radius: 6px;
  padding: 0 8px;
  color: #475467;
  background: #fff;
  font-size: 11px;
}

.support-quick-row button:last-child {
  color: #b42318;
}

@media (max-width: 780px) {
  .support-channel-tabs {
    grid-template-columns: 1fr;
  }

  .support-admin-layout {
    grid-template-columns: 1fr;
  }

  .support-admin-list {
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid #e4e8ef;
  }

  .support-admin-thread {
    min-height: 520px;
  }

  .support-search,
  .support-quick-form {
    grid-template-columns: 1fr 1fr;
  }

  .support-metric-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-search input:first-child,
  .support-quick-form textarea,
  .support-quick-form button {
    grid-column: 1 / -1;
  }

  .support-admin-profile {
    min-height: 280px;
    border-top: 1px solid #e4e8ef;
    border-left: 0;
  }
}

.merchant-blacklist-row {
  min-width: 1080px;
  grid-template-columns: 170px 150px 220px 150px minmax(240px, 1fr) 130px;
}

.restricted-user-row {
  min-width: 1180px;
  grid-template-columns: 150px 150px 110px 90px minmax(260px, 1fr) 190px 150px;
}

.risk-control-row {
  min-width: 760px;
  grid-template-columns: 190px 110px minmax(260px, 1fr) 170px;
}

.ticket-admin-row {
  min-width: 980px;
  grid-template-columns: 120px 140px minmax(280px, 1fr) 110px 190px 140px;
}

.todo-row {
  min-width: 520px;
  grid-template-columns: minmax(240px, 1fr) 80px 120px;
}

.todo-row span:first-child {
  display: grid;
  gap: 3px;
  white-space: normal;
}

.todo-row b {
  color: #111827;
  font-size: 14px;
}

.todo-row small {
  color: #667085;
  font-size: 12px;
}

.todo-row button,
.quality-item button {
  min-height: 30px;
  border: 1px solid rgba(15, 159, 143, 0.35);
  border-radius: 7px;
  padding: 0 10px;
  color: #0f766e;
  background: #ecfdf9;
  font-size: 12px;
  font-weight: 850;
}

.audit-mini-row {
  min-width: 620px;
  grid-template-columns: 140px 150px minmax(220px, 1fr);
}

.store-audit-row {
  min-width: 1280px;
  grid-template-columns: 220px 190px minmax(300px, 1fr) 140px 160px 150px;
}

.store-audit-table {
  border-radius: 10px;
}

.store-audit-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 12px;
}

.store-audit-summary div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  background: #fbfcff;
}

.store-audit-summary span {
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.store-audit-summary b {
  color: #111827;
  font-size: 22px;
  line-height: 1;
}

.store-audit-rules {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #ccebe7;
  border-radius: 9px;
  color: #475467;
  background: #f0fdfa;
  font-size: 12px;
  line-height: 1.6;
}

.store-audit-rules strong {
  flex: 0 0 auto;
  color: #0f766e;
  font-weight: 900;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 130px 130px 145px 145px auto auto auto;
  align-items: end;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}

.admin-filter-wide {
  grid-template-columns: minmax(250px, 1fr) 132px 132px 145px 145px auto auto auto auto;
}

.admin-filter-bar.fund-ledger-filter {
  grid-template-columns: minmax(250px, 1.5fr) 150px 140px 160px 160px;
}

.fund-ledger-filter .plain-btn {
  width: max-content;
  min-width: 76px;
}

.fund-ledger-filter em {
  grid-column: 4 / -1;
  align-self: center;
  justify-self: end;
}

.risk-filter-bar,
.ticket-filter-bar {
  grid-template-columns: minmax(300px, 1fr) 150px auto auto auto minmax(180px, max-content);
}

.admin-filter-bar label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 0 10px;
  color: #18212f;
  background: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.admin-filter-bar input:focus,
.admin-filter-bar select:focus {
  border-color: rgba(15, 159, 143, 0.65);
  box-shadow: 0 0 0 3px rgba(15, 159, 143, 0.12);
}

.admin-filter-bar em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.admin-filter-bar .plain-btn {
  min-height: 34px;
}

.admin-filter-bar .plain-btn.primary {
  border-color: rgba(15, 159, 143, 0.42);
  color: #0f766e;
  background: #ecfdf9;
}

.admin-filter-bar .plain-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 820px) {
  .admin-filter-bar.fund-ledger-filter {
    grid-template-columns: 1fr;
  }

  .fund-ledger-filter .plain-btn {
    width: 100%;
  }

  .fund-ledger-filter em {
    grid-column: auto;
    justify-self: start;
  }
}

.admin-order-tip {
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid #ccebe7;
  border-radius: 8px;
  color: #0f766e;
  background: #f0fdfa;
  font-size: 12px;
  line-height: 1.6;
}

.quality-grid {
  display: grid;
  gap: 10px;
}

.quality-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #fbfcff;
}

.quality-item span {
  color: #344054;
  font-weight: 850;
}

.quality-item b {
  color: #111827;
  font-size: 22px;
  line-height: 1;
}

.quality-item small {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.quality-item button {
  justify-self: start;
}

.admin-checklist {
  display: grid;
  gap: 10px;
}

.admin-checklist span {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 0 12px;
  color: #344054;
  background: #fbfcff;
  font-size: 13px;
  font-weight: 800;
}

.admin-time-cell {
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal !important;
}

.admin-time-cell b {
  color: #111827;
  font-weight: 850;
}

.admin-time-cell small {
  color: #667085;
  font-size: 12px;
}

.status {
  color: var(--teal);
  font-weight: 850;
}

.status.warn {
  color: var(--gold);
}

.status.block {
  color: var(--red);
}

.row-actions {
  display: inline-flex;
  gap: 8px;
}

.store-identity-cell {
  display: grid;
  gap: 4px;
  line-height: 1.35;
  white-space: normal !important;
}

.store-identity-cell strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.store-identity-cell em {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-identity-cell small {
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  color: #0f766e;
  background: #e6fffb;
  font-size: 12px;
  font-weight: 850;
}

.store-audit-time {
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal !important;
}

.store-audit-time b {
  color: #111827;
  font-weight: 850;
}

.store-audit-time small {
  color: #667085;
  font-size: 12px;
}

.store-link-cell {
  white-space: normal !important;
  line-height: 1.5;
}

.store-link {
  display: block;
  overflow-wrap: anywhere;
  color: var(--blue);
  text-decoration: none;
}

.store-link:hover {
  text-decoration: underline;
}

.link-mini-btn {
  width: max-content;
  min-height: 26px;
  margin-top: 8px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  padding: 0 9px;
  color: #344054;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.link-mini-btn:hover {
  color: #0f766e;
  border-color: rgba(15, 159, 143, 0.45);
}

.store-proof-cell,
.recharge-proof-cell,
.withdraw-proof-cell {
  overflow: visible !important;
}

.recharge-proof-cell,
.withdraw-proof-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.recharge-proof-cell em,
.withdraw-proof-cell em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-proof-thumb,
.recharge-proof-thumb,
.withdraw-proof-thumb {
  width: 104px;
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 6px;
  color: var(--blue);
  background: #fff;
  cursor: pointer;
}

.store-proof-thumb img,
.recharge-proof-thumb img,
.withdraw-proof-thumb img {
  width: 90px;
  height: 52px;
  display: block;
  border-radius: 5px;
  object-fit: cover;
  background: #f8fafc;
}

.store-proof-thumb b,
.recharge-proof-thumb b,
.withdraw-proof-thumb b {
  font-size: 12px;
  line-height: 1;
}

.withdraw-proof-thumb.is-direct-qr {
  width: 188px;
  min-width: 188px;
  min-height: 202px;
  grid-template-rows: 172px auto;
  flex: 0 0 188px;
  margin: 0;
  padding: 8px;
  color: #0f766e;
  cursor: default;
}

.withdraw-proof-thumb.is-direct-qr img {
  width: 172px;
  height: 172px;
  object-fit: contain;
  background: #fff;
}

.withdraw-proof-thumb.is-direct-qr figcaption {
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.store-status-cell {
  white-space: normal !important;
  line-height: 1.45;
}

.store-status-cell b {
  display: inline-block;
  font-size: 13px;
}

.store-status-cell small {
  display: block;
  margin-top: 4px;
  color: #ef4444;
  font-size: 12px;
  white-space: normal;
}

.store-missing-proof {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  color: #b45309;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 850;
}

.store-reviewed-time {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.row-actions button,
.plain-btn {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: #344054;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.row-actions button:disabled,
.plain-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.row-actions button:hover,
.plain-btn:hover {
  color: var(--teal);
  border-color: rgba(15, 159, 143, 0.45);
}

.row-actions .pass-btn {
  border-color: rgba(15, 159, 143, 0.35);
  color: #0f766e;
  background: #ecfdf9;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 760;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.admin-form textarea {
  padding: 10px 11px;
  resize: vertical;
}

.form-wide {
  grid-column: span 2;
}

.admin-form button {
  width: 132px;
}

.mt-16 {
  margin-top: 16px;
}

.empty-state {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.18);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-proof-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-proof-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.admin-proof-box {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 10px;
  color: #344054;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.admin-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-proof-head button {
  border: 0;
  color: #667085;
  background: transparent;
  font-size: 22px;
}

.admin-proof-box img {
  display: block;
  width: min(300px, 100%);
  max-height: 390px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.admin-proof-box p,
.admin-proof-box small {
  display: block;
  margin: 8px 0 0;
  line-height: 1.6;
}

.store-proof-box img {
  width: min(420px, 100%);
}

.admin-reject-box label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: #344054;
  font-weight: 800;
}

.admin-reject-box textarea {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: #111827;
  resize: vertical;
  outline: 0;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.admin-modal-actions button,
.danger-btn {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 850;
}

.admin-modal-actions .danger-btn,
.danger-btn {
  border-color: #ef4444;
  color: #fff;
  background: #ef4444;
}

@media (max-width: 980px) {
  .user-account-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-account-filter {
    grid-template-columns: 1fr auto auto;
  }

  .user-account-filter em {
    grid-column: 1 / -1;
  }

  .account-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-app {
    padding-left: 0;
    padding-top: 124px;
  }

  .admin-header {
    height: 64px;
    padding: 0 16px;
  }

  .admin-sidebar {
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    gap: 8px;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 0;
    padding: 8px 10px;
  }

  .admin-nav {
    flex: 0 0 auto;
    width: 96px;
    margin-bottom: 0;
    text-align: center;
  }

  .admin-main {
    padding: 16px;
  }

  .metric-grid,
  .admin-grid,
  .admin-form,
  .store-audit-summary,
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .store-audit-rules {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-wide {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .account-detail-grid {
    grid-template-columns: 1fr;
  }

  .account-detail-box {
    padding: 16px;
  }

  .admin-login {
    justify-content: center;
    padding: 34px 18px;
  }

  .admin-login-card {
    width: min(318px, 100%);
  }

  .admin-header {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding: 12px 14px;
  }

  .admin-app {
    padding-top: 148px;
  }

  .admin-sidebar {
    top: 92px;
  }

  .admin-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* WeChat-style support workspace */
.admin-app.admin-support-mode {
  padding-left: 0;
  padding-top: 64px;
}

.admin-app.admin-support-mode .admin-sidebar,
.admin-app.admin-support-mode .admin-title {
  display: none;
}

.admin-app.admin-support-mode .admin-main {
  padding: 0;
}

.admin-app.admin-support-mode .support-admin-panel {
  height: calc(100vh - 64px);
  border: 0;
  border-radius: 0;
}

.support-admin-panel {
  min-height: 0;
  height: calc(100vh - 188px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-color: #dfe3e8;
  background: #ededed;
}

.support-admin-layout {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 0;
  border: 0;
  border-radius: 0;
  background: #ededed;
}

.support-admin-layout.has-profile {
  grid-template-columns: 286px minmax(0, 1fr) 218px;
}

.support-admin-list {
  min-width: 0;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d9dde2;
  background: #f7f7f7;
}

.support-list-title {
  min-height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid #e2e5e8;
  background: #f7f7f7;
}

.support-list-title strong {
  color: #1f2329;
  font-size: 18px;
}

.support-list-title span {
  color: #07c160;
  font-size: 11px;
}

.support-back-button {
  width: 26px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  color: #6b7075;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.support-back-button:hover {
  color: #07c160;
  background: #e4e6e8;
}

.support-channel-tabs {
  gap: 0;
  margin: 0;
  padding: 8px 10px 0;
}

.support-channel-tab {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 5px 8px;
  color: #7a7f87;
  background: transparent;
  font-size: 13px;
}

.support-channel-tab.is-active {
  border-bottom-color: #07c160;
  color: #1f2329;
  background: transparent;
}

.support-channel-tab b {
  color: inherit;
  font-size: 13px;
  font-weight: 600;
}

.support-channel-tab em {
  display: none;
}

.support-search-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 34px;
  gap: 5px;
  margin: 8px 10px;
}

.support-search-compact input,
.support-search-compact select {
  min-width: 0;
  min-height: 32px;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  padding: 0 8px;
  color: #4e5969;
  background: #fff;
  font-size: 12px;
}

.support-search-button {
  min-height: 32px;
  border: 1px solid #d9dde2;
  border-radius: 4px;
  color: #5f6368;
  background: #fff;
  font-size: 18px;
  line-height: 1;
}

.support-admin-list-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.support-admin-conversation {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #e8eaed;
  border-radius: 0;
  padding: 10px 12px;
  color: #1f2329;
  background: transparent;
  text-align: left;
}

.support-admin-conversation:hover {
  background: #eef0f2;
}

.support-admin-conversation.is-active {
  color: #fff;
  background: #07c160;
}

.support-admin-conversation.is-active small,
.support-admin-conversation.is-active em,
.support-admin-conversation.is-active i {
  color: rgba(255, 255, 255, .82);
}

.support-admin-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #8c9bab;
  font-size: 15px;
}

.support-admin-conversation:nth-child(2n) .support-admin-avatar {
  background: #5b9bd5;
}

.support-admin-conversation > span:nth-child(2) {
  gap: 3px;
}

.support-admin-conversation strong {
  color: inherit;
  font-size: 13px;
}

.support-admin-conversation small,
.support-admin-conversation em,
.support-admin-conversation i {
  color: #92979e;
  font-size: 11px;
}

.support-admin-conversation em {
  max-width: 150px;
}

.support-admin-conversation i {
  align-self: start;
  padding-top: 3px;
  font-style: normal;
  white-space: nowrap;
}

.support-admin-conversation .support-status-tag {
  display: none;
}

.support-unread-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  border-radius: 9px;
  color: #fff;
  background: #fa5151;
  font-size: 10px;
}

.support-admin-thread {
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: #ededed;
}

.support-admin-thread-head {
  min-height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid #d9dde2;
  background: #f7f7f7;
}

.support-thread-person {
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.support-thread-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  background: #8c9bab;
  font-size: 13px;
}

.support-thread-person > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.support-thread-person strong {
  overflow: hidden;
  color: #1f2329;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-thread-person small {
  overflow: hidden;
  color: #92979e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-thread-actions {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.support-thread-actions .plain-btn {
  min-height: 30px;
  border-color: #d9dde2;
  border-radius: 4px;
  padding: 0 9px;
  color: #4e5969;
  background: #fff;
  font-size: 11px;
}

.support-thread-actions .danger {
  color: #fa5151;
}

.support-agent-select {
  min-height: 30px;
  border-radius: 4px;
  font-size: 11px;
}

.support-admin-messages {
  min-height: 0;
  flex: 1;
  gap: 16px;
  padding: 20px 24px;
  background: #ededed;
}

.support-admin-messages .support-message {
  max-width: min(72%, 620px);
}

.support-admin-messages .support-message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #8c9bab;
}

.support-admin-messages .support-message.is-mine .support-message-avatar {
  border: 0;
  background: #07c160;
}

.support-admin-messages .support-message-body > strong {
  margin-bottom: 3px;
  color: #92979e;
  font-size: 11px;
  font-weight: 500;
}

.support-admin-messages .support-bubble {
  border: 0;
  border-radius: 4px;
  padding: 10px 12px;
  color: #1f2329;
  background: #fff;
  font-size: 14px;
}

.support-admin-messages .support-message.is-mine .support-bubble {
  border: 0;
  border-radius: 4px;
  color: #1f2329;
  background: #95ec69;
}

.support-admin-messages .support-bubble p {
  line-height: 1.55;
}

.support-admin-messages .support-message-body > small {
  color: #a5a9ad;
}

.support-delivery {
  color: #8b939b !important;
}

.support-typing {
  padding: 0 24px 8px;
  color: #07c160;
  background: #ededed;
}

.support-admin-composer-tools {
  min-height: 42px;
  padding: 7px 14px 0;
  border-top: 1px solid #d9dde2;
  background: #f7f7f7;
}

.support-admin-composer-tools button,
.support-admin-composer-tools select {
  min-height: 28px;
  border: 0;
  border-radius: 3px;
  color: #5f6368;
  background: transparent;
  font-size: 12px;
}

.support-admin-composer-tools button:hover {
  color: #07c160;
  background: #e4e6e8;
}

.support-admin-composer-tools .support-tool-emoji {
  width: 30px;
  font-size: 18px;
}

.support-admin-composer-tools select {
  max-width: 150px;
  margin-left: auto;
  padding: 0 5px;
  background: #fff;
}

.support-admin-composer {
  gap: 10px;
  padding: 8px 14px 14px;
  background: #f7f7f7;
}

.support-admin-composer textarea {
  min-height: 52px;
  border: 0;
  border-radius: 4px;
  padding: 10px;
  background: #fff;
  font-size: 14px;
}

.support-admin-composer .primary-btn {
  min-width: 66px;
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: #07c160;
  font-size: 13px;
}

.support-admin-empty {
  min-height: 0;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  color: #92979e;
  background: #ededed;
}

.support-admin-empty strong {
  color: #6b7075;
  font-size: 16px;
  font-weight: 500;
}

.support-admin-empty span {
  font-size: 12px;
}

.support-admin-profile {
  min-height: 0;
  padding: 26px 16px;
  border-left: 1px solid #d9dde2;
  background: #f7f7f7;
}

.support-profile-kicker {
  color: #07c160;
}

.support-profile-divider {
  margin-top: 28px;
  padding-top: 14px;
}

.support-profile-party {
  border: 0;
  border-radius: 4px;
  background: #ededed;
}

.support-tools {
  max-height: 270px;
  overflow: auto;
  border-top: 1px solid #d9dde2;
  background: #f7f7f7;
}

.support-tools > summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #6b7075;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}

.support-tools > summary::-webkit-details-marker {
  display: none;
}

.support-tools > summary::before {
  content: "+";
  width: 18px;
  color: #07c160;
  font-size: 17px;
}

.support-tools[open] > summary::before {
  content: "−";
}

.support-tools .support-metric-bar,
.support-tools .support-search-advanced,
.support-tools .support-quick-manager {
  margin-right: 14px;
  margin-left: 14px;
}

.support-tools .support-quick-manager {
  margin-top: 8px;
  padding-bottom: 14px;
}

@media (max-width: 900px) {
  .support-admin-panel {
    height: calc(100vh - 210px);
  }

  .support-admin-layout,
  .support-admin-layout.has-profile {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .support-admin-layout.has-profile .support-admin-profile {
    display: none;
  }

  .support-thread-actions .support-agent-select {
    max-width: 92px;
  }
}

@media (max-width: 620px) {
  .support-admin-panel {
    height: auto;
    min-height: 650px;
  }

  .support-admin-layout,
  .support-admin-layout.has-profile {
    display: block;
    height: auto;
  }

  .support-admin-list {
    height: 270px;
    border-right: 0;
    border-bottom: 1px solid #d9dde2;
  }

  .support-admin-thread {
    min-height: 560px;
  }

  .support-thread-actions .support-agent-select,
  .support-thread-actions .plain-btn:first-of-type {
    display: none;
  }

  .support-admin-messages {
    padding: 16px 12px;
  }

  .support-admin-messages .support-message {
    max-width: 88%;
  }
}

.support-channel-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-channel-tab { min-width: 0; padding-inline: 4px; font-size: 12px; }
.support-admin-avatar img,
.support-thread-avatar img { width: 100%; height: 100%; display: block; border-radius: 4px; object-fit: cover; }
.support-identity-label { margin-right: 5px; padding: 1px 4px; border-radius: 2px; color: #067a3e; background: #dff7e9; font-size: 10px; font-weight: 600; }
.support-admin-conversation.is-active .support-identity-label { color: #067a3e; background: rgba(255, 255, 255, .88); }

.support-admin-emoji-panel {
  display: grid;
  grid-template-columns: repeat(12, 32px);
  gap: 5px;
  max-height: 116px;
  overflow-y: auto;
  padding: 10px 14px;
  border-top: 1px solid #e1e4e8;
  background: #f7f7f7;
}
.support-admin-emoji-panel[hidden] { display: none; }
.support-admin-emoji-panel button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 3px; background: transparent; font-size: 20px; }
.support-admin-emoji-panel button:hover { background: #e4e6e8; }

.support-admin-attachment {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-top: 1px solid #e1e4e8;
  background: #f7f7f7;
}
.support-admin-attachment[hidden] { display: none; }
.support-admin-attachment img { width: 58px; height: 46px; border-radius: 4px; object-fit: cover; }
.support-admin-attachment span { min-width: 0; display: grid; gap: 3px; }
.support-admin-attachment strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.support-admin-attachment small { color: #667085; font-size: 11px; }
.support-admin-attachment button { width: 24px; height: 24px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #e5484d; }
.support-admin-attachment.is-error small { color: #c62828; }

@media (max-width: 760px) {
  .support-admin-emoji-panel { grid-template-columns: repeat(8, 32px); }
}

/* Platform operations dashboard */
.admin-app {
  padding-top: 64px;
  padding-left: 208px;
}

.admin-header {
  height: 64px;
  padding: 0 22px;
  color: #182230;
  background: #fff;
  box-shadow: 0 1px 0 #e4e8ef;
}

.admin-brand {
  min-width: 186px;
}

.admin-brand > span {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #111827;
}

.admin-brand > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-brand strong {
  font-size: 14px;
}

.admin-brand small {
  max-width: 160px;
  overflow: hidden;
  color: #7b8492;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-global-search {
  width: min(420px, 34vw);
  height: 36px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe4ea;
  border-radius: 6px;
  background: #f7f8fa;
}

.admin-global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: #263241;
  background: transparent;
  font-size: 12px;
}

.admin-global-search button {
  width: 38px;
  height: 34px;
  border: 0;
  color: #596579;
  background: transparent;
  font-size: 18px;
}

.admin-header-actions {
  gap: 8px;
}

.admin-header-actions button,
.admin-header-actions #adminLogout {
  min-height: 34px;
  border-color: #dfe4ea;
  color: #455264;
  background: #fff;
}

.admin-notification {
  position: relative;
}

.admin-notification i {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 9px;
  padding: 0 3px;
  color: #fff;
  background: #e5484d;
  font-size: 9px;
  font-style: normal;
}

.admin-service-status,
.admin-account {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #526071;
  font-size: 11px;
}

.admin-service-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a66a;
}

.admin-account {
  padding: 0 7px;
  border-left: 1px solid #e6e9ee;
}

.admin-account b {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #356cad;
}

.admin-account em {
  font-style: normal;
  font-weight: 700;
}

.admin-sidebar {
  top: 64px;
  bottom: 0;
  left: 0;
  width: 208px;
  padding: 22px 14px;
  border-right: 1px solid #e3e7ed;
  border-radius: 0;
  background: #171d25;
  box-shadow: none;
}

.admin-sidebar-label {
  display: block;
  margin: 0 10px 12px;
  color: #778393;
  font-size: 10px;
  font-weight: 700;
}

.admin-nav {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 4px;
  border-radius: 5px;
  padding: 0 11px;
  color: #aeb7c3;
  font-size: 13px;
  font-weight: 650;
}

.admin-nav b {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #8f9baa;
  background: #252d38;
  font-size: 11px;
}

.admin-nav.is-active,
.admin-nav:hover {
  color: #fff;
  background: #26313d;
}

.admin-nav.is-active b {
  color: #fff;
  background: #168a70;
}

.admin-main {
  padding: 22px 26px 60px;
}

.admin-title {
  min-height: 58px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-title span {
  margin-bottom: 4px;
  color: #758094;
  font-size: 10px;
}

.admin-title h1 {
  font-size: 21px;
}

.admin-title-actions,
.admin-section-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-section-tabs {
  padding: 3px;
  border: 1px solid #dde2e8;
  border-radius: 6px;
  background: #fff;
}

.admin-section-tabs:empty {
  display: none;
}

.admin-section-tabs button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 4px;
  padding: 0 11px;
  color: #667085;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.admin-tab-badge {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 6px;
  color: #fff;
  background: #ef4444;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 20px;
  box-shadow: 0 0 0 2px #fff;
}

.admin-section-tabs button.is-active .admin-tab-badge {
  color: #fff;
  background: #ef4444;
}

.admin-section-tabs button.is-active {
  color: #fff;
  background: #202a36;
}

.admin-panel {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-data-health {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #dbe4e2;
  border-radius: 6px;
  color: #334155;
  background: #f8faf9;
}

.admin-data-health + .dashboard-metrics {
  margin-top: 12px;
}

.admin-data-health > i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #64748b;
}

.admin-data-health > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.admin-data-health strong,
.admin-data-health small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-data-health strong {
  flex: 0 0 auto;
  font-size: 12px;
}

.admin-data-health small {
  color: #64748b;
  font-size: 11px;
}

.admin-data-health--success {
  border-color: #b9ddd3;
  background: #f1faf7;
}

.admin-data-health--success > i {
  background: #0f8f72;
}

.admin-data-health--info > i {
  background: #2979b8;
}

.admin-data-health--warning {
  border-color: #ead59a;
  background: #fffaf0;
}

.admin-data-health--warning > i {
  background: #c78612;
}

.admin-data-health--danger {
  border-color: #efc2c2;
  background: #fff7f7;
}

.admin-data-health--danger > i {
  background: #cf3c3c;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid #e0e4ea;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.dashboard-metric {
  min-width: 0;
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid #e7eaf0;
  padding: 14px 16px;
  color: #17202c;
  background: #fff;
  text-align: left;
}

.dashboard-metric:last-child {
  border-right: 0;
}

.dashboard-metric:hover {
  background: #f7faf9;
}

.dashboard-metric span,
.dashboard-metric small {
  overflow: hidden;
  color: #7a8493;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-metric b {
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  gap: 14px;
  margin-top: 14px;
}

.dashboard-layout-top {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
}

.dashboard-panel {
  min-width: 0;
  min-height: 250px;
  padding: 17px;
  border: 1px solid #e0e4ea;
  border-radius: 7px;
  background: #fff;
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-panel-head > div {
  display: grid;
  gap: 4px;
}

.dashboard-panel-head strong {
  font-size: 14px;
}

.dashboard-panel-head span {
  color: #8a93a1;
  font-size: 10px;
}

.dashboard-panel-head button {
  min-height: 28px;
  border: 1px solid #dfe4ea;
  border-radius: 5px;
  padding: 0 9px;
  color: #5d6979;
  background: #fff;
  font-size: 10px;
}

.dashboard-trend-chart {
  height: 175px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 11px;
  padding-top: 12px;
  border-bottom: 1px solid #dfe4ea;
}

.dashboard-trend-column {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 18px 20px;
  align-items: end;
  justify-items: center;
}

.dashboard-trend-column > span {
  width: min(30px, 70%);
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 3px 3px 0 0;
  background: #eef1f5;
  overflow: hidden;
}

.dashboard-trend-column > span i {
  width: 100%;
  min-height: 5px;
  display: block;
  border-radius: 3px 3px 0 0;
  background: #2f7f72;
}

.dashboard-trend-column b {
  color: #4d5968;
  font-size: 10px;
}

.dashboard-trend-column small {
  color: #8a93a1;
  font-size: 9px;
}

.dashboard-composition-total {
  display: grid;
  justify-items: center;
  margin: 24px 0 22px;
}

.dashboard-composition-total b {
  font-size: 32px;
}

.dashboard-composition-total span {
  color: #8a93a1;
  font-size: 10px;
}

.dashboard-composition-bar {
  height: 11px;
  display: flex;
  border-radius: 3px;
  background: #e8edf2;
  overflow: hidden;
}

.dashboard-composition-bar i {
  background: #2f7f72;
}

.dashboard-composition-bar b {
  background: #4f78b6;
}

.dashboard-composition-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.dashboard-composition-legend span {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 6px;
  color: #596579;
  font-size: 11px;
}

.dashboard-composition-legend span > i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #2f7f72;
}

.dashboard-composition-legend span:nth-child(2) > i {
  background: #4f78b6;
}

.dashboard-composition-legend small {
  grid-column: 2 / -1;
  color: #929aa6;
  font-size: 9px;
}

.dashboard-todos,
.dashboard-activity {
  display: grid;
}

.dashboard-todos > button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  padding: 7px 4px;
  color: #253140;
  background: transparent;
  text-align: left;
}

.dashboard-todos > button:last-child {
  border-bottom: 0;
}

.dashboard-todos span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-todos b {
  font-size: 12px;
}

.dashboard-todos small {
  overflow: hidden;
  color: #8a93a1;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-todos em {
  min-width: 25px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #b42318;
  background: #feeceb;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.dashboard-risks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.dashboard-risks > div {
  min-width: 0;
  min-height: 78px;
  display: grid;
  align-content: center;
  grid-template-columns: 1fr auto;
  gap: 6px;
  border: 1px solid #e6e9ee;
  border-radius: 5px;
  padding: 10px;
  background: #fafbfc;
}

.dashboard-risks span {
  color: #687486;
  font-size: 10px;
}

.dashboard-risks b {
  font-size: 18px;
}

.dashboard-risks small {
  grid-column: 1 / -1;
  color: #168a70;
  font-size: 9px;
}

.dashboard-risks small.is-warning {
  color: #c06a13;
}

.dashboard-activity > div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f3;
}

.dashboard-activity > div > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f78b6;
}

.dashboard-activity > div > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-activity b,
.dashboard-activity small {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-activity small,
.dashboard-activity time {
  color: #8a93a1;
  font-size: 9px;
}

.dashboard-support-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dashboard-support-stats > div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid #e5e9ee;
  border-radius: 5px;
  padding: 12px;
  background: #f8fafb;
}

.dashboard-support-stats span {
  color: #7a8493;
  font-size: 10px;
}

.dashboard-support-stats b {
  font-size: 21px;
}

.dashboard-empty {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a93a1;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-metric:nth-child(3) {
    border-right: 0;
  }

  .dashboard-metric:nth-child(-n + 3) {
    border-bottom: 1px solid #e7eaf0;
  }
}

@media (max-width: 860px) {
  .admin-app {
    padding-top: 120px;
    padding-left: 0;
  }

  .admin-header {
    height: 64px;
    padding: 0 14px;
  }

  .admin-global-search {
    display: none;
  }

  .admin-sidebar {
    top: 64px;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 56px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #303844;
    padding: 7px 10px;
  }

  .admin-sidebar-label {
    display: none;
  }

  .admin-nav {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    margin: 0;
    justify-content: center;
  }

  .admin-main {
    padding: 16px;
  }

  .dashboard-layout,
  .dashboard-layout-top {
    grid-template-columns: 1fr;
  }

  .admin-app.admin-support-mode {
    padding-top: 64px;
  }
}

@media (max-width: 600px) {
  .admin-header {
    flex-wrap: nowrap;
    min-height: 64px;
    padding: 0 10px;
  }

  .admin-brand {
    min-width: 0;
  }

  .admin-brand small,
  .admin-service-status,
  .admin-account em,
  .admin-header-actions #adminLogout {
    display: none;
  }

  .admin-header-actions {
    margin-left: auto;
  }

  .admin-main {
    padding: 12px;
  }

  .admin-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-title-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-metric,
  .dashboard-metric:nth-child(3) {
    min-height: 92px;
    border-right: 1px solid #e7eaf0;
    border-bottom: 1px solid #e7eaf0;
  }

  .dashboard-metric:nth-child(2n) {
    border-right: 0;
  }

  .dashboard-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .dashboard-panel {
    padding: 14px;
  }

  .dashboard-risks,
  .dashboard-support-stats {
    grid-template-columns: 1fr 1fr;
  }
}
.repayment-dispute-row { grid-template-columns: 1.1fr 1.7fr 1.1fr .7fr .8fr; }
.repayment-dispute-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.repayment-dispute-row strong, .repayment-dispute-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repayment-dispute-row small { margin-top: 4px; color: #87919d; font-size: 11px; }
.repayment-dispute-row button { margin-right: 5px; }
@media (max-width: 900px) {
  .repayment-dispute-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .repayment-dispute-row.table-head { display: none; }
}
