/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}

html,
body,
#root {
  height: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% -10%, rgba(80, 156, 255, 0.26), transparent 28%),
    radial-gradient(circle at 96% 0%, rgba(255, 198, 99, 0.25), transparent 30%),
    #f4f7fb;
}

.layout-loading {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4c5d7a;
}

.admin-page-loading {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #4c5d7a;
}

.admin-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-shell {
  min-height: 100%;
}

.admin-sider {
  background: linear-gradient(180deg, #1a2442, #151c33) !important;
}

.admin-logo {
  height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-logo .ant-typography {
  color: #fff;
  margin: 0;
}

.admin-logo .ant-typography-secondary {
  color: rgba(220, 227, 245, 0.74);
  font-size: 12px;
}

.admin-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5eaf3;
  padding: 0 18px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-user {
  color: #4d5d79;
}

.admin-content {
  padding: 16px;
}

.users-card {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(32, 54, 88, 0.08);
}

.users-card .ant-card-head-title {
  font-weight: 600;
}

.users-card .ant-statistic-title {
  color: #5f718f;
  font-size: 12px;
}

.users-card .ant-statistic-content {
  font-size: 24px;
}

.case-ops {
  row-gap: 6px;
}

.case-link-btn {
  color: #2f6fe4 !important;
}

.case-link-btn:hover,
.case-link-btn:focus {
  color: #1f5dcc !important;
}

.case-link-label {
  display: block;
  width: 100%;
  white-space: nowrap;
  color: inherit;
  font-weight: 500;
}

.case-link-btn:hover .case-link-label,
.case-link-btn:focus .case-link-label {
  color: inherit;
}

.case-repayment-summary {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #e5ebf5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfdff, #f8fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.case-repayment-summary-compact {
  gap: 4px;
  padding: 6px 8px;
}

.case-repayment-summary-main {
  min-width: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #edf2f8;
}

.case-repayment-summary-main-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.case-repayment-summary-main-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.case-repayment-summary-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.case-repayment-summary-side-label {
  color: #7085a0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

.case-repayment-summary-side-value {
  color: #3b5472;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.case-repayment-summary-ledger {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}

.case-repayment-summary-ledger-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.case-repayment-summary-ledger-item-original .case-repayment-summary-label {
  color: #7086a1;
}

.case-repayment-summary-ledger-item-original .case-repayment-summary-value {
  color: #5d7490;
  font-weight: 600;
}

.case-repayment-summary-ledger-item-final .case-repayment-summary-label {
  color: #5e7797;
}

.case-repayment-summary-ledger-item-final .case-repayment-summary-value {
  color: #314a68;
  font-weight: 700;
}

.case-repayment-summary-ledger-item-remission .case-repayment-summary-label {
  color: #9a7c52;
}

.case-repayment-summary-ledger-item-remission .case-repayment-summary-value {
  color: #b7772d;
}

.case-repayment-summary-kicker {
  color: #6a809b;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
}

.case-repayment-summary-label {
  flex: none;
  color: #5f7794;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
}

.case-repayment-summary-value {
  color: #304867;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.case-repayment-summary-value-main {
  color: #16304f;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.case-repayment-summary-value-remission {
  color: #b7772d;
}

.case-repayment-summary-remission-rate {
  color: #8e9db1;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.case-repayment-summary-ledger-operator {
  color: #8ea0b4;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.case-repayment-summary-recent {
  color: #526b86;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  min-width: 0;
  padding-top: 1px;
}

.case-repayment-summary-compact .case-repayment-summary-kicker,
.case-repayment-summary-compact .case-repayment-summary-label,
.case-repayment-summary-compact .case-repayment-summary-side-label {
  font-size: 11px;
}

.case-repayment-summary-compact .case-repayment-summary-value,
.case-repayment-summary-compact .case-repayment-summary-side-value {
  font-size: 13px;
}

.case-repayment-summary-compact .case-repayment-summary-value-main {
  font-size: 17px;
}

.case-follower-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid #e2eaf7;
  background: linear-gradient(180deg, #fcfdff, #f7faff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.case-follower-card-active {
  border-color: #dddff7;
  background: linear-gradient(180deg, #fbfbff, #f7f8ff);
}

.case-follower-card-pending {
  border-color: #dde7fb;
  background: linear-gradient(180deg, #fcfdff, #f9fbff);
}

.case-follower-card-empty {
  border-color: #e8edf6;
  background: linear-gradient(180deg, #fdfefe, #fafbfd);
}

.case-follower-card-panel {
  max-width: 420px;
}

.case-follower-head,
.case-follower-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.case-follower-head {
  justify-content: space-between;
}

.case-follower-name {
  flex: 1;
  min-width: 0;
  color: #253956;
  font-size: 13px;
  font-weight: 600;
}

.case-follower-role {
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.case-follower-role-super-admin {
  background: #eef4ff;
  color: #345fb2;
}

.case-follower-role-admin {
  background: #eef7ff;
  color: #1760b8;
}

.case-follower-role-leader {
  background: #f5efff;
  color: #6c40c3;
}

.case-follower-role-member {
  background: #edf8f2;
  color: #2a8a49;
}

.case-follower-role-pending {
  background: #f5f7fb;
  color: #72819a;
}

.case-follower-empty {
  color: #7d8ca3;
  font-size: 12px;
  line-height: 1.45;
}

.case-follower-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.case-follower-meta-label {
  flex: none;
  min-width: 48px;
  color: #7a8799;
  font-size: 11px;
  line-height: 1.4;
}

.case-follower-meta-value {
  min-width: 0;
  color: #2d415d;
  font-size: 12px;
  line-height: 1.45;
}

.case-op-btn {
  height: 26px;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border-width: 1px;
  border-style: solid;
  box-shadow: none;
}

.case-op-btn .anticon {
  font-size: 12px;
}

.case-op-btn:hover,
.case-op-btn:focus {
  box-shadow: none !important;
}

.case-op-btn-follow {
  border-color: #d3c5ff;
  color: #6f42c1;
  background: #f7f1ff;
}

.case-op-btn-follow:hover,
.case-op-btn-follow:focus {
  border-color: #b69dff !important;
  color: #5b35a8 !important;
  background: #efe4ff !important;
}

.case-op-btn-plans {
  border-color: #c9dbff;
  color: #2f6fe4;
  background: #f5f9ff;
}

.case-op-btn-plans:hover,
.case-op-btn-plans:focus {
  border-color: #9ebeff !important;
  color: #215dcc !important;
  background: #eaf2ff !important;
}

.case-op-btn-remission {
  border-color: #ffd3a3;
  color: #d46b08;
  background: #fff7e9;
}

.case-op-btn-remission:hover,
.case-op-btn-remission:focus {
  border-color: #ffb66f !important;
  color: #b75a05 !important;
  background: #ffefd8 !important;
}

.case-op-btn-channels {
  border-color: #bfe7de;
  color: #167a6a;
  background: #f2fbf8;
}

.case-op-btn-channels:hover,
.case-op-btn-channels:focus {
  border-color: #8cd4c3 !important;
  color: #0f6a5b !important;
  background: #e7f7f2 !important;
}

.case-op-btn-records {
  border-color: #c7e7c9;
  color: #2f8f45;
  background: #f4fbf4;
}

.case-op-btn-records:hover,
.case-op-btn-records:focus {
  border-color: #97d29f !important;
  color: #25793a !important;
  background: #eaf7eb !important;
}

.case-logs-modal-body .ant-descriptions {
  background: #fff;
}

.case-logs-modal-body .ant-descriptions-view {
  border-radius: 12px;
  overflow: hidden;
}

.case-logs-modal-body .ant-descriptions-item-label {
  width: 112px;
}

.login-page {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 0, rgba(57, 128, 255, 0.34), transparent 30%),
    radial-gradient(circle at 92% 20%, rgba(255, 191, 87, 0.36), transparent 34%),
    linear-gradient(140deg, #172642, #22415f);
}

.login-card {
  width: min(420px, 100%);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(10, 25, 48, 0.34);
}

.login-card .ant-card-body {
  padding: 26px;
}

.channel-editor-modal .ant-modal-content {
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(84, 137, 255, 0.1), transparent 38%),
    linear-gradient(180deg, #ffffff, #fdfefe);
}

.channel-editor-modal .ant-modal-header {
  border-bottom: 1px solid #e9eef8;
  padding: 14px 18px;
}

.channel-editor-modal .ant-modal-title {
  color: #2c3b57;
  font-weight: 700;
}

.channel-editor-modal .ant-modal-body {
  padding: 8px 8px 4px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.channel-editor-modal .ant-form-item {
  margin-bottom: 8px;
}

.channel-editor-modal .ant-alert {
  margin-bottom: 6px;
}

.channel-editor-modal .ant-card-head {
  min-height: 40px;
}

.channel-editor-modal .ant-card-body {
  padding: 8px 10px;
}

.channel-editor-body .channel-summary-card {
  border-radius: 14px;
  border: 1px solid #d8e6fb;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  box-shadow: 0 4px 12px rgba(34, 74, 130, 0.05);
}

.channel-editor-body .channel-summary-row {
  min-height: 30px;
}

.channel-editor-body .channel-summary-tags .ant-tag {
  border-radius: 999px;
  border: none;
  font-weight: 700;
  padding-inline: 8px;
}

.channel-editor-body .channel-summary-actions .ant-typography {
  font-size: 11px;
}

.channel-editor-body .channel-create-toggle-btn {
  border-radius: 10px;
  font-weight: 600;
}

.channel-editor-body .channel-create-card {
  border-radius: 14px;
  border: 1px solid #dbe7fb;
  background: linear-gradient(180deg, #fcfeff, #f8fbff);
  box-shadow: 0 4px 12px rgba(41, 76, 124, 0.05);
}

.channel-editor-body .ant-form-item {
  margin-bottom: 6px !important;
}

.channel-editor-body .channel-create-form .ant-form-item-label > label {
  color: #496180;
  font-weight: 600;
  font-size: 11px;
}

.channel-editor-body .channel-groups-stack .channel-group-card {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e6edf8;
  box-shadow: 0 5px 14px rgba(26, 52, 90, 0.04);
}

.channel-editor-body .channel-groups-stack .channel-group-card .ant-card-head {
  background: rgba(246, 250, 255, 0.84);
  border-bottom: 1px solid #e8eef9;
}

.channel-editor-body .channel-groups-stack .channel-group-card .ant-card-head-title {
  color: #2f4464;
  font-weight: 700;
}

.channel-editor-body .channel-group-bank {
  background: linear-gradient(180deg, #fffcf6, #ffffff);
}

.channel-editor-body .channel-group-qr {
  background: linear-gradient(180deg, #f9f8ff, #ffffff);
}

.channel-editor-body .channel-item-card {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(29, 49, 84, 0.06);
}

.channel-editor-body .channel-item-card .ant-card-head {
  min-height: 38px;
  border-bottom: 1px dashed #e8edf7;
}

.channel-editor-body .channel-item-card .ant-card-body {
  padding: 10px;
}

.channel-editor-body .channel-item-bank {
  border: 1px solid #f2e2bf;
  background: linear-gradient(180deg, #fffdfa, #ffffff);
}

.channel-editor-body .channel-item-qr {
  border: 1px solid #ddd8fb;
  background: linear-gradient(180deg, #fcfbff, #ffffff);
}

.channel-editor-body .bank-channel-form .ant-form-item-label > label,
.channel-editor-body .qr-channel-form .ant-form-item-label > label {
  color: #4c5c77;
  font-weight: 600;
  font-size: 11px;
}

.channel-editor-body .bank-channel-form .ant-row,
.channel-editor-body .qr-channel-form > .ant-row {
  row-gap: 2px;
}

.channel-editor-body .ant-input,
.channel-editor-body .ant-input-number,
.channel-editor-body .ant-select .ant-select-selector {
  border-radius: 9px;
}

.channel-editor-body .ant-input-number {
  width: 100%;
}

.channel-editor-body .qr-payload-panel {
  min-height: 64px;
  border: 1px solid #d7e3f6;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fbff, #f4f8ff);
  padding: 6px 9px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.channel-editor-body .qr-payload-panel-compact {
  max-height: 84px;
  overflow: auto;
}

.channel-editor-body .qr-payload-text {
  width: 100%;
  margin: 0 !important;
  color: #304a78;
  font-family: "Consolas", "Menlo", "Monaco", monospace;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-all;
}

.channel-editor-body .qr-payload-text .ant-typography-copy {
  color: #3f6bb5;
}

.channel-editor-body .qr-payload-empty {
  color: #8c98ad;
  font-size: 12px;
  line-height: 1.6;
}

.channel-editor-body .channel-item-footer,
.channel-editor-body .qr-channel-footer {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px dashed #e6eaf4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-editor-body .channel-item-hint,
.channel-editor-body .qr-channel-hint {
  min-height: 20px;
}

.channel-editor-body .channel-item-actions,
.channel-editor-body .qr-channel-actions {
  margin-left: auto;
}

.channel-editor-body .channel-primary-btn,
.channel-editor-body .channel-secondary-btn,
.channel-editor-body .channel-danger-btn,
.channel-editor-body .channel-upload-btn {
  border-radius: 9px;
  font-weight: 600;
  min-width: 58px;
  height: 28px;
  padding-inline: 10px;
}

.channel-editor-body .channel-upload-btn {
  background: #f6f9ff;
  border-color: #cddaf8;
  color: #315ea8;
  min-width: 150px;
}

.channel-editor-body .channel-upload-btn:hover,
.channel-editor-body .channel-upload-btn:focus {
  background: #edf4ff;
  border-color: #9cb7eb;
  color: #2c5698;
}

.remark-modal .ant-modal-content {
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(84, 137, 255, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff, #fcfdff);
  box-shadow: 0 20px 44px rgba(26, 44, 75, 0.18);
}

.remark-modal .ant-modal-header {
  background: transparent;
  border-bottom: 1px solid #e8eef8;
  padding: 16px 20px 14px;
}

.remark-modal .ant-modal-title {
  color: #2b3d58;
  font-weight: 700;
}

.remark-modal .ant-modal-body {
  padding: 16px 20px 18px;
}

.remark-modal .ant-modal-footer {
  border-top: 1px solid #eef2f8;
  padding: 14px 20px 18px;
}

.remark-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.remark-modal-section {
  border: 1px solid #dfe8f8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfdff, #f8fbff);
  box-shadow: 0 6px 16px rgba(28, 50, 86, 0.05);
  padding: 14px;
}

.remark-modal-history-section {
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}

.remark-modal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.remark-modal-section-head .ant-typography {
  display: block;
}

.remark-modal-counter {
  min-width: 74px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d7e3f6;
  background: #f5f9ff;
  color: #466282;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.remark-modal-form .ant-form-item-label > label {
  color: #496180;
  font-size: 12px;
  font-weight: 600;
}

.remark-modal-textarea.ant-input {
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.6;
  min-height: 132px;
  background: #fff;
}

.remark-modal-history-loading {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remark-modal-history-table .ant-table {
  background: transparent;
}

.remark-modal-history-table .ant-table-container {
  border-radius: 12px;
  border: 1px solid #e7edf8;
  overflow: hidden;
}

.remark-modal-history-table .ant-table-thead > tr > th {
  background: #f3f7ff !important;
  color: #365075;
  font-size: 12px;
  font-weight: 700;
}

.remark-modal-history-table .ant-table-tbody > tr > td {
  vertical-align: top;
  padding-top: 10px;
  padding-bottom: 10px;
}

.remark-modal-history-table .ant-table-tbody > tr:hover > td {
  background: #f8fbff !important;
}

.remark-modal-time {
  color: #5a708f;
  font-size: 12px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.remark-modal-operator {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.remark-modal-role-tag.ant-tag {
  width: fit-content;
  margin-inline-end: 0;
  padding-inline: 8px;
  border-radius: 999px;
  font-weight: 600;
}

.remark-modal-history-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  color: #2d415d;
}

.system-settings-page .ant-card-head {
  min-height: 48px;
}

.system-settings-page .ant-card-body {
  padding-top: 12px;
}

.system-settings-page {
  background:
    radial-gradient(circle at 2% -6%, rgba(115, 162, 255, 0.1), transparent 28%),
    radial-gradient(circle at 98% 0%, rgba(106, 208, 185, 0.12), transparent 30%),
    #fff;
}

.system-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.system-settings-header-subtitle {
  margin-top: 2px;
  line-height: 1.1;
}

.system-settings-alert {
  margin-bottom: 10px;
}

.settings-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.settings-metric-card {
  border: 1px solid #dfe8f8;
  border-radius: 12px;
  padding: 9px 11px;
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.settings-metric-value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: #1f3a63;
  line-height: 1.2;
}

.system-settings-main {
  max-width: 980px;
  margin-bottom: 10px;
}

.system-settings-main-wide {
  max-width: 1180px;
}

.system-settings-form-card,
.system-settings-preview-card {
  border-radius: 12px;
  border-color: #dfe8f8;
  box-shadow: 0 6px 16px rgba(25, 52, 90, 0.05);
}

.system-settings-form-card .ant-card-body {
  padding: 11px 12px;
}

.system-settings-form .ant-form-item {
  margin-bottom: 8px;
}

.system-settings-form .ant-form-item-label > label {
  color: #4b5f7b;
  font-size: 12px;
}

.system-settings-actions-row {
  margin-top: 2px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sms-provider-section-card .ant-card-body {
  padding-top: 8px;
}

.sms-provider-tabs .ant-tabs-nav {
  margin-bottom: 10px;
}

.sms-provider-tabs .ant-tabs-tab {
  border-radius: 999px !important;
  padding: 4px 10px !important;
}

.sms-provider-tabs .ant-tabs-tab-active {
  background: #f0f6ff;
}

.sms-provider-tabs .ant-tabs-content-holder {
  min-height: 200px;
}

.sms-provider-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sms-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.sms-provider-card {
  border-radius: 10px;
  border: 1px solid #dbe5f6;
  box-shadow: 0 3px 10px rgba(37, 61, 100, 0.05);
}

.sms-provider-card .ant-card-body {
  padding: 8px;
}

.sms-provider-card .ant-card-head {
  border-bottom: 1px dashed #dbe6fa;
}

.sms-provider-card-aliyun {
  background: linear-gradient(180deg, #fefeff, #fafcff);
}

.sms-provider-card-tencent {
  background: linear-gradient(180deg, #fbfeff, #f7fcff);
}

.sms-provider-card-yunpian {
  background: linear-gradient(180deg, #fffdf9, #fffaf2);
}

.sms-provider-card-netease {
  background: linear-gradient(180deg, #fafcff, #f6f9ff);
}

.sms-channel-card {
  border-radius: 10px;
  border: 1px solid #e3eaf7;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(29, 50, 83, 0.06);
}

.sms-channel-card:last-child {
  margin-bottom: 0;
}

.sms-channel-card .ant-card-head {
  min-height: 38px;
  border-bottom: 1px dashed #e8eef8;
}

.sms-channel-card .ant-card-body {
  padding: 8px;
}

.sms-channel-form .ant-form-item {
  margin-bottom: 6px !important;
}

.system-settings-last-updated {
  display: block;
  margin-top: 2px;
}

.system-settings-preview-card .ant-table-wrapper {
  margin-top: 8px;
}

.telegram-preview-card .ant-table-thead > tr > th {
  background: #f4f8ff !important;
}

.telegram-preview-card .ant-table {
  border-radius: 10px;
}

.risk-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.risk-rule-card .ant-card-body {
  padding: 10px;
}

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

.risk-rule-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.risk-rule-item-card {
  border-radius: 12px;
  border: 1px solid #dfe8f8;
  background: linear-gradient(180deg, #fcfdff, #f7faff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.risk-rule-item-card .ant-card-body {
  padding: 10px;
}

.risk-rule-form {
  margin-top: 8px;
}

.risk-settings-updated {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #496180;
  font-size: 12px;
}

.blacklist-toolbar {
  display: grid;
  grid-template-columns: 160px minmax(220px, 1fr) 140px auto auto;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-json-detail {
  white-space: pre-wrap;
  max-height: 58vh;
  overflow: auto;
  font-family: "Consolas", "Menlo", "Monaco", monospace;
  margin-bottom: 0 !important;
}

@media (max-width: 960px) {
  .admin-content {
    padding: 10px;
  }

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

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

  .risk-settings-grid,
  .risk-rule-grid,
  .risk-rule-grid-compact,
  .blacklist-toolbar {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .remark-modal .ant-modal {
    max-width: calc(100vw - 20px);
  }

  .remark-modal .ant-modal-body,
  .remark-modal .ant-modal-header,
  .remark-modal .ant-modal-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .remark-modal-section {
    padding: 12px;
  }

  .remark-modal-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .system-settings-header {
    flex-wrap: wrap;
  }

  .system-settings-section-head {
    flex-wrap: wrap;
  }

  .system-settings-actions-row {
    align-items: flex-start;
  }
}

