:root {
  --ink: #162925;
  --muted: #6c7d79;
  --line: #e3eae7;
  --canvas: #f4f7f5;
  --paper: #fff;
  --primary: #006c5b;
  --primary-dark: #004c41;
  --blue: #2f6dd4;
  --amber: #df7a35;
  --violet: #7257c9;
  --danger: #cf4e4e;
  --success: #158369;
  --sidebar: #102623;
  --sidebar-soft: #1a3531;
  --radius: 8px;
  --shadow: 0 10px 28px rgba(19, 42, 35, 0.06);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
}
.secret-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #0b4f42 !important;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.badge.refunded {
  background: #eeeafe;
  color: #7257c9;
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

[v-cloak] {
  display: none;
}
.account-menu {
  position: relative;
}
.profile-trigger {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.profile-trigger:hover {
  background: #f4f8f6;
}
.profile-chevron {
  width: 15px;
  margin-left: 1px;
  color: #84948f;
  transition: transform 0.18s;
}
.profile-trigger[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
}
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  width: 172px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 14px 32px rgba(19, 42, 35, 0.16);
}
.account-menu:hover .account-dropdown {
  display: block !important;
}
.account-dropdown button {
  width: 100%;
  height: 35px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #344540;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 13px inherit;
  text-align: left;
  cursor: pointer;
}
.account-dropdown button:hover {
  background: #edf5f2;
  color: var(--primary);
}
.account-dropdown button svg {
  width: 16px;
}
.account-dropdown .account-logout {
  color: #b34949;
}
.account-dropdown .account-logout:hover {
  background: #fff2f2;
  color: #a53737;
}
.account-dropdown-separator {
  height: 1px;
  background: #edf2ef;
  margin: 5px 0;
}
.trend-meta {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 0 0 5px 46px;
}
.trend-meta b {
  font: 700 16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
}
.trend-meta span {
  font-size: 11px;
  color: var(--muted);
}
.trend-line-chart {
  height: 220px;
  display: block;
  padding: 0;
  border-bottom: 0;
  overflow: visible;
}
.trend-line-chart:before {
  display: none;
}
.chart-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.chart-y-axis {
  position: absolute;
  inset: 0 auto 0 0;
  width: 39px;
  font-size: 10px;
  color: #82918c;
  pointer-events: none;
}
.chart-y-axis span {
  position: absolute;
  right: 3px;
  line-height: 1;
  transform: translateY(-50%);
}
.chart-grid-line {
  stroke: #eaf0ed;
  stroke-width: 1;
}
.chart-area {
  pointer-events: none;
}
.chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.merchant-trend-line-chart .chart-line {
  stroke: var(--blue);
}
.chart-point-group {
  cursor: default;
}
.chart-point-hit {
  fill: transparent;
  cursor: crosshair;
}
.chart-point {
  fill: #fff;
  stroke: var(--primary);
  stroke-width: 2.5;
  transition: r 0.16s, fill 0.16s;
}
.merchant-trend-line-chart .chart-point {
  stroke: var(--blue);
}
.chart-point.active {
  r: 6;
  fill: var(--primary);
}
.merchant-trend-line-chart .chart-point.active {
  fill: var(--blue);
}
.chart-x-label {
  fill: #75857f;
  font-size: 11px;
  text-anchor: middle;
}
.chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 138px;
  padding: 8px 10px;
  border: 1px solid #cfe1da;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 52, 43, 0.15);
  font-size: 11px;
  line-height: 1.55;
  transform: translate(-50%, -105%);
  pointer-events: none;
}
.chart-tooltip b,
.chart-tooltip span {
  display: block;
}
.chart-tooltip b {
  font-size: 12px;
  color: var(--ink);
}
.chart-tooltip span {
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .profile-chevron {
    display: none;
  }
  .account-dropdown {
    right: 0;
  }
  .trend-meta {
    padding-left: 37px;
  }
  .trend-meta b {
    font-size: 14px;
  }
  .trend-line-chart {
    height: 192px;
  }
  .chart-y-axis {
    width: 31px;
    font-size: 9px;
  }
  .chart-y-axis span {
    right: 0;
  }
  .chart-x-label {
    font-size: 10px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  font-size: 14px;
  letter-spacing: 0;
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: var(--sidebar);
  color: #e7f1ed;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 26px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #16aa89;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 -7px 16px rgba(0, 0, 0, 0.14);
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}
.brand small {
  font-size: 10px;
  display: block;
  color: #a9c1ba;
  font-weight: 500;
  letter-spacing: 0.7px;
  margin-top: 2px;
}
.nav-title {
  font-size: 11px;
  color: #89a29a;
  padding: 11px 12px 7px;
}
.nav-item {
  height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c2d2cd;
  cursor: pointer;
  margin: 2px 0;
  transition: 0.18s;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-item.active {
  background: #176e5d;
  color: #fff;
  font-weight: 700;
}
.side-footer {
  margin-top: auto;
  border-top: 1px solid rgba(230, 244, 238, 0.11);
  padding: 16px 10px 1px;
  color: #a5bbb4;
  font-size: 12px;
  line-height: 1.6;
}
.side-footer strong {
  color: #edf6f2;
  display: block;
  font-size: 13px;
}
.main {
  margin-left: 236px;
  width: calc(100% - 236px);
  min-height: 100vh;
}
.topbar {
  height: 68px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.crumb {
  color: #879692;
  font-size: 13px;
}
.crumb b {
  color: var(--ink);
  font-size: 15px;
  margin-right: 10px;
}
.top-tools {
  display: flex;
  align-items: center;
  gap: 13px;
}
.icon-button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #526560;
  cursor: pointer;
  position: relative;
}
.icon-button:hover {
  background: #ecf3f0;
}
.icon-button svg {
  width: 19px;
}
.notice-dot {
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  background: var(--danger);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 6px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d5efe7;
  color: #006c5b;
  font-weight: 800;
}
.profile-name {
  font-size: 13px;
  font-weight: 700;
}
.profile-role {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.page {
  padding: 28px 34px 42px;
  max-width: 1640px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 23px;
}
.page-heading h1 {
  font-size: 24px;
  line-height: 1;
  margin: 0;
  font-weight: 750;
}
.page-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.today {
  color: var(--muted);
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 21px;
}
.metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}
.metric:after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 89px;
  height: 89px;
  border-radius: 50%;
  opacity: 0.09;
}
.metric.blue:after {
  background: var(--blue);
}
.metric.green:after {
  background: var(--success);
}
.metric.amber:after {
  background: var(--amber);
}
.metric.violet:after {
  background: var(--violet);
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.metric-icon svg {
  width: 17px;
}
.blue .metric-icon {
  background: #e7effe;
  color: var(--blue);
}
.green .metric-icon {
  background: #e3f5ef;
  color: var(--success);
}
.amber .metric-icon {
  background: #fff0e5;
  color: var(--amber);
}
.violet .metric-icon {
  background: #eeeafe;
  color: var(--violet);
}
.metric-value {
  font-size: 25px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 750;
  margin: 15px 0 8px;
  letter-spacing: -1px;
}
.metric-foot {
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}
.metric-foot.neutral {
  color: var(--muted);
}
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.9fr);
  gap: 18px;
  margin-bottom: 20px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  min-height: 60px;
  padding: 0 19px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title {
  font-weight: 750;
  font-size: 15px;
}
.panel-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.panel-body {
  padding: 20px;
}
.link-button {
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 5px;
}
.trend-chart {
  height: 233px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 12px 3px 26px;
  position: relative;
  border-bottom: 1px solid #f0f4f2;
}
.trend-chart:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22%;
  height: 1px;
  background: #eff3f1;
  box-shadow: 0 54px #eff3f1, 0 108px #eff3f1;
}
.bar-group {
  height: 190px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 1;
}
.bar {
  width: 9px;
  border-radius: 4px 4px 1px 1px;
  background: #b8dfd5;
}
.bar.main {
  background: var(--primary);
}
.bar-label {
  position: absolute;
  bottom: -22px;
  font-size: 11px;
  color: var(--muted);
}
.status-list {
  padding: 2px 20px 15px;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #eef3f0;
}
.status-row:last-child {
  border: 0;
}
.status-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.status-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.status-value {
  font-family: ui-monospace, monospace;
  font-weight: 700;
}
.dot-green {
  background: #1eaa82;
}
.dot-blue {
  background: #4b82d9;
}
.dot-amber {
  background: #e59a45;
}
.dot-gray {
  background: #a7b6b1;
}
.content-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.select-field,
.search-field {
  height: 34px;
  border: 1px solid #dbe4e0;
  border-radius: 5px;
  background: #fff;
  padding: 0 10px;
  color: #526560;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}
.search-field {
  width: 220px;
}
.search-field:focus,
.select-field:focus {
  border-color: #79b9aa;
  box-shadow: 0 0 0 3px rgba(0, 108, 91, 0.08);
}
.button {
  height: 34px;
  border-radius: 5px;
  border: 1px solid transparent;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
}
.button svg {
  width: 15px;
}
.button.primary {
  background: var(--primary);
  color: #fff;
}
.button.primary:hover {
  background: var(--primary-dark);
}
.button.secondary {
  background: #fff;
  border-color: #dbe4e0;
  color: #40544e;
}
.button.secondary:hover {
  border-color: #96aca5;
  background: #f8fbf9;
}
.button.danger {
  background: #fff4f4;
  border-color: #f1cccc;
  color: var(--danger);
}
.button.small {
  height: 29px;
  padding: 0 10px;
  font-size: 12px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  color: #74847f;
  background: #fbfcfb;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 17px;
  border-bottom: 1px solid #edf2ef;
  vertical-align: middle;
  color: #344540;
}
.data-table tbody tr:hover {
  background: #fbfdfc;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.id-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #385a51;
}
.cell-main {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}
.cell-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.order-countdown {
  margin-top: 6px;
  color: #b75c13;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.order-countdown.expired {
  color: #bf3b3b;
}

.detail-countdown {
  margin-top: 0;
  text-align: right;
}
.money {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.processing {
  background: #fff2df;
  color: #bd6a20;
}
.badge.completed,
.badge.active,
.badge.listed,
.badge.settled {
  background: #e8f6f0;
  color: #178363;
}
.badge.cancelled,
.badge.disabled,
.badge.frozen,
.badge.off_shelf {
  background: #f5eeee;
  color: #a86060;
}
.badge.pending {
  background: #eaf1fe;
  color: #3c6fc6;
}
.table-actions {
  display: flex;
  gap: 6px;
}
.empty {
  padding: 64px;
  text-align: center;
  color: var(--muted);
}
.message-table-wrap {
  overflow: auto;
}
.message-table th:first-child,
.message-table td:first-child {
  min-width: 320px;
}
.message-table-title {
  display: block;
  color: var(--ink);
  font-size: 13px;
}
.message-table-content {
  max-width: 560px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.message-content-field {
  margin-top: 16px;
}
.message-content-input {
  height: 132px;
  padding: 10px;
  line-height: 1.6;
  resize: vertical;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 20px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.stat-strip div {
  padding: 12px 15px;
  border-right: 1px solid var(--line);
}
.stat-strip div:last-child {
  border: 0;
}
.stat-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.stat-strip b {
  font-size: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  height: 38px;
  border: 1px solid #d9e3df;
  border-radius: 5px;
  padding: 0 10px;
  font: 13px inherit;
  outline: none;
}
.form-input:focus {
  border-color: #47a591;
  box-shadow: 0 0 0 3px rgba(0, 108, 91, 0.08);
}
.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.ip-whitelist-editor {
  flex: 1;
  min-width: 0;
}
.ip-whitelist-input {
  display: block;
  height: 112px;
  min-height: 112px;
  margin-top: 10px;
  padding: 9px 10px;
  line-height: 1.45;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.settings-row {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.settings-row:last-child {
  border: 0;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.settings-title {
  font-weight: 700;
}
.settings-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.switch {
  height: 23px;
  width: 42px;
  background: #c7d2ce;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
}
.switch:after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}
.switch.on {
  background: var(--success);
}
.switch.on:after {
  left: 22px;
}
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 38, 35, 0.44);
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: 9px;
  width: min(540px, 100%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.modal-head {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 750;
}
.modal-body {
  padding: 20px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 20px;
}
.notice {
  position: fixed;
  right: 24px;
  top: 83px;
  z-index: 40;
  background: #173e35;
  color: #fff;
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice svg {
  width: 16px;
  color: #a9f0d6;
}
.login-page {
  min-height: 100vh;
  background: linear-gradient(120deg, #eff6f3 0%, #fbfdfc 52%, #eaf5f2 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-wrap {
  width: min(1060px, 100%);
  min-height: 620px;
  background: #fff;
  border: 1px solid #dfe9e5;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  box-shadow: 0 24px 70px rgba(12, 49, 40, 0.12);
}
.login-visual {
  background: #0f2c26;
  color: #fff;
  padding: 57px;
  position: relative;
  overflow: hidden;
}
.login-visual:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: #148b74;
  opacity: 0.28;
  right: -120px;
  bottom: -150px;
}
.login-logo {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
}
.login-visual h1 {
  position: relative;
  z-index: 1;
  font-size: 37px;
  line-height: 1.27;
  margin: 88px 0 18px;
  letter-spacing: 0;
}
.login-visual p {
  position: relative;
  z-index: 1;
  color: #b8d1c9;
  line-height: 1.8;
  max-width: 320px;
}
.login-list {
  position: relative;
  z-index: 1;
  margin-top: 65px;
  color: #d2e6df;
  font-size: 13px;
  line-height: 2.4;
}
.login-panel {
  padding: 66px 68px;
}
.login-panel h2 {
  font-size: 27px;
  margin: 60px 0 10px;
}
.login-panel p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 32px;
}
.login-panel .form-group {
  margin-bottom: 17px;
}
.login-panel .button {
  width: 100%;
  height: 42px;
  margin-top: 10px;
}
.login-foot {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.login-foot a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 1080px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
  .page {
    padding: 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .side {
    width: 210px;
  }
  .main {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
}
@media (max-width: 760px) {
  .side {
    position: fixed;
    transform: translateX(-100%);
    transition: 0.2s;
  }
  .side.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
    width: 100%;
  }
  .page {
    padding: 18px 14px;
  }
  .topbar {
    height: 60px;
    padding: 0 14px;
  }
  .topbar .profile-name,
  .topbar .profile-role {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .page-heading h1 {
    font-size: 20px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric {
    min-height: 112px;
    padding: 13px;
  }
  .metric-value {
    font-size: 18px;
    margin: 12px 0 7px;
  }
  .metric-top {
    font-size: 11px;
  }
  .panel-body {
    padding: 14px;
  }
  .data-table {
    min-width: 760px;
  }
  .content-panel {
    overflow: auto;
  }
  .filters {
    padding: 12px;
  }
  .search-field {
    width: 100%;
  }
  .section-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .login-visual {
    padding: 36px;
    min-height: 280px;
  }
  .login-visual h1 {
    margin: 45px 0 12px;
    font-size: 27px;
  }
  .login-list {
    margin-top: 22px;
  }
  .login-panel {
    padding: 30px;
  }
  .login-panel h2 {
    margin-top: 0;
  }
  .login-visual p {
    display: none;
  }
}
.content-editor-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 570px;
}
.content-page-list {
  padding: 15px;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
}
.content-page-choice {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  color: #40544e;
  font: inherit;
  margin-bottom: 7px;
}
.content-page-choice:hover {
  background: #f0f6f3;
}
.content-page-choice.active {
  border-color: #aad2c6;
  background: #e8f5f0;
  color: #005c4d;
  font-weight: 700;
}
.content-page-choice small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
  font-weight: 500;
}
.editor-workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.editor-topline {
  padding: 17px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.editor-page-name {
  font-size: 16px;
  font-weight: 750;
}
.editor-page-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  background: #f8fbf9;
  flex-wrap: wrap;
}
.editor-toolbar .icon-button {
  width: 31px;
  height: 31px;
  border: 1px solid #dae6e1;
  background: #fff;
}
.editor-toolbar .icon-button:hover {
  border-color: #8cbaae;
  color: var(--primary);
}
.editor-toolbar .icon-button svg {
  width: 16px;
}
.editor-toolbar .toolbar-divider {
  width: 1px;
  height: 22px;
  background: #dfe8e4;
  margin: 0 3px;
}
.editor-upload-button {
  height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dae6e1;
  background: #fff;
  border-radius: 5px;
  padding: 0 9px;
  color: #40544e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.editor-upload-button:hover {
  border-color: #8cbaae;
  color: var(--primary);
}
.editor-upload-button svg {
  width: 15px;
}
.content-editable {
  min-height: 380px;
  padding: 22px 24px;
  outline: 0;
  line-height: 1.85;
  color: #334640;
  font-size: 14px;
  overflow: auto;
}
.content-editable:empty:before {
  content: attr(data-placeholder);
  color: #9aa9a4;
}
.content-editable h2,
.content-editable h3,
.content-editable h4 {
  color: var(--ink);
  line-height: 1.4;
  margin: 1.25em 0 0.55em;
}
.content-editable h2 {
  font-size: 21px;
}
.content-editable h3 {
  font-size: 18px;
}
.content-editable h4 {
  font-size: 16px;
}
.content-editable p {
  margin: 0 0 1em;
}
.content-editable blockquote {
  margin: 1em 0;
  padding: 8px 15px;
  border-left: 3px solid #7ebbab;
  color: #58716a;
  background: #f5faf7;
}
.content-editable pre {
  padding: 12px;
  border-radius: 5px;
  background: #172a26;
  color: #d8ebe5;
  overflow: auto;
}
.content-editable img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 10px 0;
}
.editor-footer {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
}
.editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.recharge-config-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px dashed #cbdcd6;
  border-radius: 6px;
  background: #fbfdfc;
  margin-top: 17px;
}
.recharge-qr-preview {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  flex: 0 0 auto;
}
.recharge-qr-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.recharge-qr-empty {
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
  color: var(--muted);
  padding: 12px;
}
.recharge-config-copy {
  min-width: 0;
  flex: 1;
}
.recharge-config-copy b {
  display: block;
  font-size: 13px;
}
.recharge-config-copy span {
  display: block;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 5px;
}
.recharge-config-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.content-preview-frame {
  display: block;
  width: 100%;
  height: min(580px, 65vh);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.modal:has(.content-preview-frame) {
  width: min(760px, 100%);
}
@media (max-width: 760px) {
  .content-editor-shell {
    grid-template-columns: 1fr;
  }
  .content-page-list {
    display: flex;
    gap: 7px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .content-page-choice {
    min-width: 145px;
    margin: 0;
  }
  .content-editable {
    min-height: 320px;
    padding: 18px;
  }
  .editor-topline {
    padding: 14px;
  }
  .editor-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .recharge-config-preview {
    align-items: flex-start;
    flex-direction: column;
  }
}
.order-qr{display:block;width:168px;height:168px;object-fit:contain;max-width:100%;margin-top:12px;border:1px solid #dce5e2;background:#fff}
