/* 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);
}
@-ms-viewport {
  width: device-width;
}
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;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}

/* stylelint-disable */
html,
body,
#root {
  width: 100%;
  min-height: 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;
}

#root,
#root > .ant-app {
  width: 100%;
  height: 100%;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

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 {
  height: 100%;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.admin-shell > .ant-layout {
  height: 100%;
  min-height: 100%;
  min-height: inherit;
}

.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-master-card .ant-card-head {
  border-bottom-color: #eceff5;
}

.users-master-title {
  display: block;
  color: #1f2d45;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.users-master-subtitle {
  display: block;
  margin-top: 4px;
  color: #7a8798 !important;
  font-size: 13px;
  line-height: 1.5;
}

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

.admin-users-page-card .ant-card-body {
  padding-top: 14px;
}

.admin-users-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-users-page-title {
  margin-bottom: 4px !important;
  color: #1f2d45;
}

.admin-users-page-subtitle {
  margin-bottom: 0 !important;
  color: #7687a1;
}

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

.admin-users-toolbar-search {
  width: 220px;
}

.admin-users-toolbar-select {
  width: 150px;
}

.admin-users-table .ant-table-thead > tr > th {
  background: #f8fafc;
  color: #2f405a;
  font-weight: 700;
}

.admin-users-table .ant-table-tbody > tr > td {
  vertical-align: middle;
  padding-top: 14px;
  padding-bottom: 14px;
}

.admin-users-actions {
  align-items: center;
}

.admin-users-role-select {
  width: 132px;
}

.audit-page-card .ant-card-body {
  padding-top: 14px;
}

.audit-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.audit-page-title {
  margin-bottom: 4px !important;
  color: #1f2d45;
}

.audit-page-subtitle {
  margin-bottom: 0 !important;
  color: #7687a1;
}

.audit-tabs .ant-tabs-nav {
  margin-bottom: 14px;
}

.audit-tabs .ant-tabs-tab {
  border-radius: 999px !important;
  padding: 6px 12px !important;
}

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

.audit-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

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

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

.audit-filter-card {
  border-radius: 12px;
  border: 1px solid #dfe8f8;
}

.audit-filter-card .ant-card-body {
  padding: 12px;
}

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

.audit-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.audit-filter-toolbar {
  display: grid;
  grid-template-columns: 150px 1fr 160px 140px 148px 148px auto auto;
  align-items: center;
  gap: 10px;
}

.audit-filter-input,
.audit-filter-select {
  width: 100%;
}

.audit-filter-date {
  width: 148px;
}

.audit-filter-action-btn {
  min-width: 72px;
}

.business-settings-card .ant-card-body {
  padding-top: 14px;
}

.business-settings-tabs .ant-tabs-nav {
  margin-bottom: 16px;
  width: min(100%, 420px);
}

.business-settings-tabs .ant-tabs-nav::before {
  display: none;
}

.business-settings-tabs .ant-tabs-nav-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.business-settings-tabs .ant-tabs-tab {
  margin: 0 !important;
  border-radius: 999px !important;
  justify-content: center;
  padding: 6px 14px !important;
}

.business-settings-tabs .ant-tabs-tab-active {
  background: #f0f6ff;
}

.business-settings-tabs .ant-tabs-content-holder {
  padding-top: 2px;
}

.audit-table-wrap {
  width: 100%;
  border: 1px solid #e6edf7;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.audit-log-table .ant-table-thead > tr > th {
  background: #f7faff !important;
  color: #314764;
  font-weight: 700;
}

.audit-log-table .ant-table-tbody > tr > td {
  vertical-align: middle;
}

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.toolbar-grow {
  flex: 1 1 auto;
}

.cases-main-table .ant-table-thead > tr > th {
  background: #f8fafc;
  color: #2f405a;
  font-weight: 700;
}

.cases-main-table .ant-table-tbody > tr > td {
  vertical-align: middle;
  padding-top: 14px;
  padding-bottom: 14px;
}

.users-main-table .ant-table-thead > tr > th {
  background: #f8fafc;
  color: #2f405a;
  font-weight: 700;
}

.users-main-table .ant-table-tbody > tr > td {
  vertical-align: top;
  padding-top: 12px;
  padding-bottom: 12px;
}

.users-master-table .ant-table-tbody > tr > td {
  vertical-align: middle;
}

.users-view-case-btn {
  border-radius: 999px;
  font-weight: 600;
  padding-inline: 10px;
}

.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;
}

.statistics-section-card .ant-card-body {
  padding-top: 12px;
}

.statistics-metrics-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(156px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.statistics-metrics-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.statistics-metrics-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.statistics-metrics-label {
  color: #5f718f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.statistics-metric-card {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid #e2eaf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.statistics-metric-card .ant-card-body {
  padding: 12px 12px 10px;
}

.statistics-metric-card .ant-statistic-title {
  min-height: 20px;
  color: #5f718f;
  font-size: 12px;
}

.statistics-metric-card .ant-statistic-content {
  font-size: 22px;
}

.statistics-trend-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.statistics-trend-head {
  display: flex;
  width: min(100%, 1040px);
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.statistics-trend-title {
  margin-bottom: 2px !important;
  color: #21314c;
}

.statistics-trend-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.statistics-trend-summary-value {
  margin-top: 2px;
  color: #1f2d45;
  font-size: 16px;
  font-weight: 700;
}

.statistics-trend-chart-wrap {
  width: min(100%, 1040px);
  border-radius: 16px;
  border: 1px solid #e7eef9;
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
  overflow: hidden;
}

.statistics-trend-chart {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 260;
}

.statistics-trend-empty {
  min-height: 248px;
  width: min(100%, 1040px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8393aa;
  font-size: 13px;
  border-radius: 16px;
  border: 1px dashed #dbe5f4;
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
}

.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: 3px;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid #e5ebf5;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfdff, #f8fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.case-repayment-summary-compact {
  gap: 2px;
  padding: 4px 5px;
}

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

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

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

.case-repayment-summary-side-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: none;
}

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

.case-repayment-summary-side-principal .case-repayment-summary-side-value {
  color: #5378ac;
}

.case-repayment-summary-side-repaid .case-repayment-summary-side-value {
  color: #5d7490;
}

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

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

.case-repayment-summary-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.case-repayment-summary-breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 4px 5px;
  border-radius: 7px;
  border: 1px solid #e4ebf5;
  background: #fff;
}

.case-repayment-summary-breakdown-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

.case-repayment-summary-breakdown-label {
  color: #6d819b;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 600;
}

.case-repayment-summary-breakdown-rate {
  color: #8ea0b4;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.case-repayment-summary-breakdown-value {
  color: #2f4868;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.case-repayment-summary-breakdown-item-interest {
  background: linear-gradient(180deg, #f8fbff, #f3f7fd);
  border-color: #e1e8f5;
}

.case-repayment-summary-breakdown-item-interest .case-repayment-summary-breakdown-value {
  color: #4f6888;
}

.case-repayment-summary-breakdown-item-penalty {
  background: linear-gradient(180deg, #fff8ee, #fff4e2);
  border-color: #ffe0b3;
}

.case-repayment-summary-breakdown-item-penalty .case-repayment-summary-breakdown-value {
  color: #d46b08;
}

.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: 10px;
  line-height: 1.25;
  font-weight: 600;
}

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

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

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

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

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

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

.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: 9px;
}

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

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

.case-repayment-summary-compact .case-repayment-summary-main {
  padding-bottom: 2px;
}

.case-repayment-summary-compact .case-repayment-summary-main-row {
  gap: 5px;
}

.case-repayment-summary-compact .case-repayment-summary-side-group {
  gap: 8px;
}

.case-repayment-summary-compact .case-repayment-summary-breakdown {
  gap: 3px;
}

.case-repayment-summary-compact .case-repayment-summary-breakdown-item {
  gap: 1px;
  padding: 3px 4px;
  border-radius: 6px;
}

.case-repayment-summary-compact .case-repayment-summary-breakdown-label {
  font-size: 8px;
}

.case-repayment-summary-compact .case-repayment-summary-breakdown-rate {
  font-size: 9px;
}

.case-repayment-summary-compact .case-repayment-summary-breakdown-value {
  font-size: 10px;
}

.case-repayment-summary-compact .case-repayment-summary-ledger {
  gap: 3px 5px;
}

.case-repayment-summary-compact .case-repayment-summary-ledger-item {
  gap: 3px;
}

.case-repayment-summary-compact .case-repayment-summary-remission-rate,
.case-repayment-summary-compact .case-repayment-summary-ledger-operator {
  font-size: 9px;
}

.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-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 {
  height: 100%;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  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: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 42px rgba(22, 39, 67, 0.24);
}

.channel-editor-modal .ant-modal-header {
  border-bottom: 1px solid #e7edf6;
  padding: 16px 22px 14px;
  background: #fff;
}

.channel-editor-modal .ant-modal-title {
  color: #1f2d45;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.channel-editor-modal .ant-modal-body {
  padding: 12px 20px 18px;
  max-height: 74vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  background: #fff;
}

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

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

.channel-editor-modal .ant-alert {
  margin-bottom: 8px;
  border-radius: 9px;
}

.channel-editor-modal .ant-alert-warning {
  border-color: #f1d274;
  background: #fffbe9;
}

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

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

.channel-editor-body .channel-summary-card {
  border-radius: 14px;
  border: 1px solid #d7e4fa;
  background: #fbfdff;
  box-shadow: none;
}

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

.channel-editor-body .channel-summary-row {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.channel-editor-body .channel-summary-actions .ant-space-item {
  display: flex;
  align-items: center;
}

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

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

.channel-editor-body .channel-create-card {
  border-radius: 12px;
  border: 1px solid #dbe7fb;
  background: #fdfefe;
  box-shadow: none;
}

.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 #e1e8f5;
  box-shadow: none;
  background: #fff;
}

.channel-editor-body .channel-groups-stack .channel-group-card .ant-card-head {
  background: #f4f7fb;
  border-bottom: 1px solid #e5ecf8;
}

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

.channel-editor-body .channel-group-bank {
  border-color: #dbe6f8;
  background: #fff;
}

.channel-editor-body .channel-group-qr {
  border-color: #e2ddf8;
  background: #fff;
}

.channel-editor-body .channel-group-bank .ant-card-head {
  background: #eff4fb;
}

.channel-editor-body .channel-group-qr .ant-card-head {
  background: #f2f0fb;
}

.channel-editor-body .channel-groups-stack .channel-group-card .ant-card-head .ant-tag {
  margin-inline-end: 0;
  border: none;
  border-radius: 8px;
  font-weight: 700;
}

.channel-editor-body .channel-item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-editor-body .channel-item-card {
  border-radius: 12px;
  box-shadow: none;
}

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

.channel-editor-body .channel-item-card .ant-card-head-title > * {
  width: 100%;
}

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

.channel-editor-body .channel-item-bank {
  border: 1px solid #f0deb7;
  background: #fffef9;
}

.channel-editor-body .channel-item-qr {
  border: 1px solid #dcd8f6;
  background: #fcfbff;
}

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

.channel-editor-body .channel-item-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.channel-editor-body .channel-item-card-meta {
  min-width: 0;
}

.channel-editor-body .channel-item-card-id {
  color: #304764;
}

.channel-editor-body .channel-item-card-sort {
  color: #7f90a6;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.channel-editor-body .channel-form-grid-row {
  display: grid;
  gap: 10px;
}

.channel-editor-body .channel-form-grid-bank-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-editor-body .channel-form-grid-bank-bottom {
  grid-template-columns: minmax(0, 2.3fr) minmax(96px, 0.8fr) minmax(110px, 0.8fr);
  align-items: end;
}

.channel-editor-body .channel-form-grid-qr-top {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(96px, 0.7fr) minmax(110px, 0.8fr);
  align-items: end;
}

.channel-editor-body .channel-form-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.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: 10px;
}

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

.channel-editor-body .ant-input.ant-input-disabled,
.channel-editor-body .ant-input-number-disabled,
.channel-editor-body .ant-select-disabled .ant-select-selector {
  background: #f5f6f8 !important;
  color: #a0a8b5 !important;
}

.channel-editor-body .qr-payload-panel {
  min-height: 64px;
  border: 1px solid #d2e0f4;
  border-radius: 12px;
  background: #f5f9ff;
  padding: 7px 10px;
  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: 4px;
  padding-top: 8px;
  border-top: 1px dashed #dde5f3;
  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-form-actions {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #dde5f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

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

.channel-editor-body .channel-form-actions-buttons {
  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: #f4f7ff;
  border-color: #c9d8f6;
  color: #2f5fae;
  min-width: 150px;
}

.channel-editor-body .channel-upload-btn:hover,
.channel-editor-body .channel-upload-btn:focus {
  background: #eaf2ff;
  border-color: #9eb8eb;
  color: #284f96;
}

@media (max-width: 960px) {
  .channel-editor-body .channel-item-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel-editor-body .channel-form-grid-bank-top,
  .channel-editor-body .channel-form-grid-bank-bottom,
  .channel-editor-body .channel-form-grid-qr-top {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .channel-editor-body .channel-form-actions {
    align-items: stretch;
  }

  .channel-editor-body .channel-form-actions-buttons {
    margin-left: 0;
  }
}

.records-writeoff-modal .ant-modal-content {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(26, 44, 75, 0.2);
}

.records-writeoff-modal .ant-modal-header {
  border-bottom: 1px solid #e8eef7;
  padding: 16px 24px 14px;
}

.records-writeoff-modal .ant-modal-title {
  color: #1f2d45;
  font-weight: 700;
}

.records-writeoff-modal .ant-modal-body {
  padding: 12px 24px 20px;
}

.records-writeoff-body {
  gap: 8px;
}

.records-writeoff-alert.ant-alert {
  border-radius: 9px;
}

.records-proof-card,
.records-writeoff-card {
  border-radius: 10px;
  border-color: #e4ebf5;
}

.records-proof-card .ant-card-head,
.records-writeoff-card .ant-card-head {
  min-height: 38px;
  border-bottom-color: #edf1f7;
}

.records-proof-card .ant-card-head-title,
.records-writeoff-card .ant-card-head-title {
  color: #1f2d45;
  font-weight: 700;
}

.records-proof-card .ant-card-body,
.records-writeoff-card .ant-card-body {
  padding: 12px;
}

.records-selected-proof-tag.ant-tag {
  margin-inline-end: 0;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding-inline: 10px;
  background: #eaf3ff;
  color: #2f6fe4;
}

.records-proof-table .ant-table-thead > tr > th,
.records-history-table .ant-table-thead > tr > th {
  background: #f8fafd;
  color: #2f405a;
  font-weight: 700;
}

.records-proof-table .ant-table-tbody > tr.ant-table-row-selected > td {
  background: #e8f3ff !important;
}

.records-proof-table .ant-table-tbody > tr:hover > td {
  background: #f5faff !important;
}

.records-proof-table .ant-table-tbody > tr.ant-table-row-selected:hover > td {
  background: #e8f3ff !important;
}

.records-writeoff-card .ant-descriptions-view {
  border-radius: 8px;
  overflow: hidden;
}

.records-writeoff-card .ant-descriptions-item-label {
  color: #5c708f;
  background: #f8fafd;
}

.records-writeoff-remark .ant-form-item-label > label {
  color: #2f405a;
}

.records-writeoff-remark .ant-input {
  border-radius: 7px;
}

.records-writeoff-submit {
  border-radius: 7px;
  min-width: 86px;
  font-weight: 600;
}

.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-main-full {
  max-width: none;
  width: 100%;
}

.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-nav-list {
  gap: 8px;
}

.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-toolbar {
  align-items: center;
}

.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;
  align-items: center;
  width: 100%;
  margin-bottom: 2px;
}

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

.blacklist-filter-card,
.blacklist-table-card {
  border-radius: 12px;
  width: 100%;
}

.blacklist-table-card .ant-card-body {
  padding-top: 8px;
}

.blacklist-table .ant-table-thead > tr > th {
  background: #f7faff !important;
  color: #314764;
  font-weight: 700;
}

.risk-events-toolbar {
  grid-template-columns: 150px minmax(240px, 1fr) 150px 148px 148px auto auto;
  width: 100%;
}

.blacklist-type-tag {
  min-width: 68px;
  text-align: center;
  border-radius: 999px;
}

.blacklist-subject-value {
  font-family: "Consolas", "Menlo", "Monaco", monospace;
  font-size: 12px;
}

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

.import-result-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.import-result-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  overflow: hidden;
}

.import-result-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.import-result-hero-success {
  border: 1px solid #b7ebc6;
  background: linear-gradient(135deg, #effcf5 0%, #d9f7e7 52%, #f7fffb 100%);
}

.import-result-hero-warning {
  border: 1px solid #ffd591;
  background: linear-gradient(135deg, #fff7e8 0%, #ffe7c2 55%, #fffdf7 100%);
}

.import-result-hero-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.import-result-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(19, 31, 55, 0.08);
  color: #2f405a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.import-result-hero-desc {
  margin-bottom: 0 !important;
  color: #52637a;
}

.import-result-hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 120px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.import-result-hero-side-label {
  color: #6a7a92;
  font-size: 12px;
}

.import-result-hero-side-value {
  color: #1f2f47;
  font-size: 32px;
  line-height: 1;
}

.import-result-hero-side-value-compact {
  font-size: 18px;
  line-height: 1.35;
  text-align: right;
  word-break: break-all;
}

.import-result-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.import-result-stat-card {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(26, 44, 71, 0.06);
}

.import-result-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.import-result-empty {
  border-radius: 16px;
  padding: 12px 0 4px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fc 100%);
}

.import-batch-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.import-batch-detail-modal .ant-modal,
.import-preview-modal .ant-modal,
.import-result-dialog .ant-modal {
  width: min(1180px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px);
  top: 18px;
  padding-bottom: 18px;
}

.import-batch-detail-modal .ant-modal-content,
.import-preview-modal .ant-modal-content,
.import-result-dialog .ant-modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
  overflow: hidden;
}

.import-batch-detail-modal .ant-modal-header,
.import-preview-modal .ant-modal-header,
.import-result-dialog .ant-modal-header {
  padding: 14px 18px 12px;
}

.import-batch-detail-modal .ant-modal-body,
.import-preview-modal .ant-modal-body,
.import-result-dialog .ant-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 12px 18px 14px;
}

.import-batch-detail-modal .ant-modal-footer,
.import-preview-modal .ant-modal-footer,
.import-result-dialog .ant-modal-footer {
  padding: 12px 18px 14px;
}

.import-batch-detail-layout {
  height: 100%;
  min-height: 0;
  gap: 12px;
}

.import-batch-detail-hero {
  padding: 14px 16px;
  gap: 14px;
  border-radius: 14px;
}

.import-batch-detail-hero .import-result-hero-badge {
  min-height: 24px;
  padding-inline: 10px;
  font-size: 11px;
}

.import-batch-detail-hero .import-result-hero-desc {
  font-size: 12px;
  line-height: 1.55;
}

.import-batch-detail-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.import-batch-detail-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.import-batch-detail-metrics-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.import-batch-detail-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dfe8f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfdff, #f6f9ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.import-batch-detail-metric-label {
  color: #657a95;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

.import-batch-detail-metric-value {
  color: #1f2f47;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.import-batch-detail-metric-value-brand {
  color: #1677ff;
}

.import-batch-detail-metric-value-danger {
  color: #cf1322;
}

.import-batch-detail-metric-value-success {
  color: #16a34a;
}

.import-batch-detail-metric-value-warning {
  color: #d46b08;
}

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

.import-batch-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  background: #fff;
}

.import-batch-detail-meta-item-wide {
  grid-column: span 2;
}

.import-batch-detail-meta-label {
  color: #71849c;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

.import-batch-detail-meta-value {
  color: #283c57;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  word-break: break-word;
}

.import-batch-downloads .ant-btn {
  height: 30px;
  border-radius: 10px;
  padding-inline: 11px;
  font-size: 12px;
  font-weight: 600;
}

.import-batch-detail-tabs {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.import-batch-detail-tabs .ant-tabs-nav {
  margin-bottom: 10px;
}

.import-batch-detail-tabs .ant-tabs-content-holder,
.import-batch-detail-tabs .ant-tabs-content,
.import-batch-detail-tabs .ant-tabs-tabpane {
  min-height: 0;
  height: 100%;
}

.import-batch-detail-tabs .ant-tabs-tab {
  padding: 8px 0;
}

.import-batch-detail-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.import-batch-detail-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding-inline: 6px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1677ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.import-batch-detail-tab-count-danger {
  background: #fff1f0;
  color: #cf1322;
}

.import-batch-detail-tab-count-success {
  background: #f0fdf4;
  color: #16a34a;
}

.import-batch-detail-tab-count-warning {
  background: #fff7e8;
  color: #d46b08;
}

.import-batch-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.import-batch-detail-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.import-batch-detail-panel-head .ant-typography {
  margin-bottom: 0 !important;
}

.import-batch-detail-table .ant-table-thead > tr > th {
  padding-top: 9px;
  padding-bottom: 9px;
  background: #f7faff;
  color: #314764;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.import-batch-detail-table .ant-table-tbody > tr > td {
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: top;
}

.import-batch-detail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 220px;
}

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

  .admin-users-page-header,
  .audit-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .audit-metric-grid,
  .audit-filter-grid,
  .blacklist-overview-grid,
  .risk-events-metric-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .audit-filter-toolbar,
  .risk-events-toolbar {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .admin-users-toolbar-search,
  .admin-users-toolbar-select,
  .admin-users-role-select,
  .audit-filter-date,
  .audit-filter-action-btn {
    width: 100%;
  }

  .statistics-trend-head {
    flex-direction: column;
    align-items: stretch;
  }

  .statistics-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .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));
  }

  .import-result-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .import-result-hero-side {
    align-items: flex-start;
  }

  .import-result-stats-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

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

  .import-batch-detail-modal .ant-modal,
  .import-preview-modal .ant-modal,
  .import-result-dialog .ant-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px);
    top: 10px;
    padding-bottom: 10px;
  }

  .import-batch-detail-modal .ant-modal-header,
  .import-batch-detail-modal .ant-modal-body,
  .import-batch-detail-modal .ant-modal-footer,
  .import-preview-modal .ant-modal-header,
  .import-preview-modal .ant-modal-body,
  .import-preview-modal .ant-modal-footer,
  .import-result-dialog .ant-modal-header,
  .import-result-dialog .ant-modal-body,
  .import-result-dialog .ant-modal-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .import-batch-detail-metrics,
  .import-batch-detail-meta-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .import-batch-detail-meta-item-wide {
    grid-column: auto;
  }

  .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;
  }
}

