html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #f2f5f8;
  color: #1f2937;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

.normal-admin-root {
  min-height: 100vh;
}

.normal-console {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(22, 186, 170, .06), rgba(242, 245, 248, 0) 260px),
    #f2f5f8;
}

.normal-header.layui-header {
  height: 58px;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  box-shadow: 0 3px 16px rgba(15, 23, 42, .04);
}

.normal-logo.layui-logo {
  width: 220px;
  height: 58px;
  line-height: 58px;
  background: #17212b;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  text-align: left;
  box-shadow: none;
}

.normal-logo-mark {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 7px;
  background: #16baaa;
  color: #062b27;
  text-align: center;
  font-weight: 800;
}

.normal-logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.normal-top-nav.layui-nav {
  background: transparent;
  color: #111827;
}

.normal-top-nav.layui-layout-left {
  left: 220px;
}

.normal-top-nav .layui-nav-item {
  line-height: 58px;
  color: #111827;
}

.normal-site-name {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 18px;
  font-weight: 600;
}

.normal-site-name .layui-icon {
  margin-right: 8px;
  color: #16baaa;
}

.normal-current-view span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  background: #eef8f6;
  color: #08786d;
  font-size: 13px;
}

.normal-header-actions {
  position: absolute;
  top: 0;
  right: 18px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.normal-account {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}

.normal-account cite {
  font-style: normal;
  color: #374151;
}

.normal-logout {
  border-radius: 6px !important;
}

.normal-side.layui-side {
  top: 58px;
  width: 220px;
  background: #17212b;
  box-shadow: 5px 0 22px rgba(15, 23, 42, .12);
}

.normal-side .layui-side-scroll {
  width: 240px;
  padding-bottom: 30px;
}

.normal-side-title {
  margin: 18px 16px 10px;
  color: #8fa2b2;
  font-size: 12px;
}

.normal-nav-group {
  margin-bottom: 10px;
}

.normal-nav-title {
  padding: 12px 18px 8px;
  color: #6e8191;
  font-size: 12px;
}

.normal-nav.layui-nav-tree {
  width: 220px;
  background: transparent;
}

.normal-nav .layui-nav-item a {
  height: 42px;
  line-height: 42px;
  margin: 0 12px 4px;
  padding: 0 12px !important;
  border-radius: 7px;
  color: #b9c7d3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.normal-nav .layui-nav-item a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.normal-nav .layui-nav-item.layui-this a,
.normal-nav .layui-nav-item.active a {
  background: #16baaa;
  color: #062b27;
  font-weight: 700;
}

.normal-nav .layui-nav-item.layui-this:after {
  display: none;
}

.normal-nav .layui-icon {
  width: 18px;
  text-align: center;
  font-size: 16px;
}

.normal-body.layui-body {
  left: 220px;
  top: 58px;
  bottom: 0;
  overflow: auto;
  background: transparent;
}

.normal-breadcrumb {
  height: 46px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  border-bottom: 1px solid #e8edf2;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 3;
}

.normal-breadcrumb strong {
  color: #111827;
}

.normal-content {
  padding: 22px 24px 32px;
  min-width: 0;
}

.top,
.sider,
.main,
.layout {
  display: contents;
}

.content {
  min-width: 0;
}

.title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.title h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: #111827;
}

.title p {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.grid,
.mini-stats,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.compact-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.normal-stat-card,
.normal-mini-stat {
  padding: 18px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.normal-stat-card:before,
.normal-mini-stat:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #16baaa, #1e9fff);
}

.stat,
.normal-mini-stat strong {
  display: block;
  margin-top: 9px;
  font-size: 28px;
  line-height: 1.1;
  color: #111827;
  font-weight: 800;
}

.normal-mini-stat span,
.muted {
  color: #6b7280;
}

.normal-mini-stat.warn strong {
  color: #d48806;
}

.normal-mini-stat.ok strong {
  color: #16a34a;
}

.normal-mini-stat.off strong {
  color: #6b7280;
}

.normal-panel.layui-card {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.normal-panel-head.layui-card-header {
  min-height: 56px;
  height: auto;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f6;
  background: #fff;
}

.normal-panel-head h2,
.layui-card-header h2 {
  margin: 0;
  font-size: 17px;
  color: #111827;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.layui-btn {
  border-radius: 6px !important;
}

.normal-btn-primary {
  border-color: #16baaa;
  background: #16baaa;
  color: #062b27;
  font-weight: 700;
}

.normal-btn.layui-btn-primary {
  border-color: #d8e1e8;
  background: #fff;
  color: #374151;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  background: #fff;
}

.paged-table-wrap {
  max-height: none;
  overflow: visible;
}

.relaxed-table-wrap {
  max-height: none;
  overflow: visible;
}

.normal-table.layui-table {
  width: 100%;
  margin: 0;
  min-width: 760px;
  table-layout: auto;
}

.normal-table.layui-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: #526071;
  font-weight: 700;
}

.compact-form .normal-form-item {
  margin-bottom: 12px;
}

.compact-form .layui-form-label {
  width: 96px;
}

.compact-form .layui-input-block {
  margin-left: 126px;
}

.compact-textarea {
  min-height: 72px;
}

.payment-secret {
  min-height: 84px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.normal-table.layui-table td,
.normal-table.layui-table th {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.normal-table.layui-table tr:hover td {
  background: #fbfefe;
}

.normal-table.layui-table th:last-child,
.normal-table.layui-table td:last-child {
  width: 220px;
}

.normal-table.layui-table th,
.normal-table.layui-table td {
  width: auto;
}

.content-title-cell {
  min-width: 260px;
  max-width: 520px;
}

.code-line,
.money-line,
.date-line {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.money-line {
  margin-top: 6px;
}

.product-cover {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef2f7;
}

.empty-cover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a95a3;
  font-size: 12px;
}

.content-table th:nth-child(1),
.content-table td:nth-child(1) {
  width: 150px;
}

.content-table th:nth-child(2),
.content-table td:nth-child(2) {
  width: 38%;
}

.content-table th:nth-child(3),
.content-table td:nth-child(3),
.content-table th:nth-child(5),
.content-table td:nth-child(5) {
  width: 150px;
}

.content-table th:nth-child(4),
.content-table td:nth-child(4) {
  width: 96px;
}

.commerce-table th:first-child,
.commerce-table td:first-child {
  width: 86px;
}

.commerce-table th:nth-child(2),
.commerce-table td:nth-child(2) {
  width: 34%;
}

.commerce-table.no-cover th:nth-child(1),
.commerce-table.no-cover td:nth-child(1) {
  width: 46%;
}

.commerce-table.no-cover th:nth-child(2),
.commerce-table.no-cover td:nth-child(2),
.commerce-table.no-cover th:nth-child(3),
.commerce-table.no-cover td:nth-child(3),
.commerce-table.no-cover th:nth-child(4),
.commerce-table.no-cover td:nth-child(4) {
  width: 150px;
}

.commerce-table.no-cover th:last-child,
.commerce-table.no-cover td:last-child {
  width: 96px;
}

.commerce-table th:nth-child(3),
.commerce-table td:nth-child(3),
.commerce-table th:nth-child(4),
.commerce-table td:nth-child(4),
.commerce-table th:nth-child(5),
.commerce-table td:nth-child(5) {
  width: 130px;
}

.commerce-table th:last-child,
.commerce-table td:last-child,
.users-table th:last-child,
.users-table td:last-child {
  width: 230px;
}

.users-table th:first-child,
.users-table td:first-child {
  width: 26%;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
  width: 23%;
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
  width: 130px;
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
  width: 190px;
}

.article-table th:first-child,
.article-table td:first-child {
  width: 42%;
}

.article-table th:nth-child(2),
.article-table td:nth-child(2),
.article-table th:nth-child(3),
.article-table td:nth-child(3),
.article-table th:nth-child(4),
.article-table td:nth-child(4) {
  width: 92px;
}

.visit-table th:nth-child(1),
.visit-table td:nth-child(1),
.admin-log-table th:nth-child(1),
.admin-log-table td:nth-child(1),
.payment-record-table th:nth-child(6),
.payment-record-table td:nth-child(6) {
  width: 150px;
}

.visit-table th:nth-child(2),
.visit-table td:nth-child(2),
.admin-log-table th:nth-child(3),
.admin-log-table td:nth-child(3) {
  width: 30%;
}

.visit-table th:nth-child(7),
.visit-table td:nth-child(7),
.admin-log-table th:nth-child(6),
.admin-log-table td:nth-child(6) {
  width: 22%;
}

.visit-table th:nth-child(6),
.visit-table td:nth-child(6),
.payment-record-table th:nth-child(4),
.payment-record-table td:nth-child(4),
.payment-record-table th:nth-child(5),
.payment-record-table td:nth-child(5) {
  width: 86px;
}

.admin-log-table th:nth-child(2),
.admin-log-table td:nth-child(2),
.admin-log-table th:nth-child(4),
.admin-log-table td:nth-child(4),
.admin-log-table th:nth-child(5),
.admin-log-table td:nth-child(5),
.payment-record-table th:nth-child(3),
.payment-record-table td:nth-child(3) {
  width: 128px;
}

.payment-record-table th:nth-child(1),
.payment-record-table td:nth-child(1) {
  width: 28%;
}

.payment-record-table th:nth-child(2),
.payment-record-table td:nth-child(2) {
  width: 18%;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  background: #eef2f7;
  color: #526071;
  font-size: 12px;
  white-space: nowrap;
}

.tag.ok {
  background: #eaf8ef;
  color: #16833b;
}

.tag.warn {
  background: #fff7e6;
  color: #ad6800;
}

.tag.off {
  background: #f2f4f7;
  color: #667085;
}

.quick-grid,
.module {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.quick-card {
  min-height: 88px;
  text-align: left;
  border: 1px solid #e6edf3;
  background: #fbfdff;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}

.quick-card:hover {
  border-color: #16baaa;
  box-shadow: 0 8px 18px rgba(22, 186, 170, .12);
}

.quick-card strong {
  display: block;
  color: #111827;
  margin-bottom: 8px;
}

.quick-card span,
.module p {
  color: #6b7280;
  line-height: 1.7;
}

.normal-layui-form {
  padding: 18px;
}

.normal-form-item.layui-form-item {
  margin-bottom: 16px;
}

.normal-form-item .layui-form-label,
.normal-setting-row .layui-form-label {
  width: 112px;
  padding: 9px 12px 9px 0;
  color: #374151;
  font-weight: 600;
}

.normal-form-item .layui-input-block,
.normal-setting-row .layui-input-block {
  margin-left: 124px;
}

.normal-form-desc {
  margin-top: 6px;
  color: #8a95a3;
  font-size: 12px;
  line-height: 1.6;
}

.normal-form-tip {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid #d8e1e8;
  border-radius: 8px;
  background: #f8fafc;
  color: #526071;
  font-size: 13px;
  line-height: 1.6;
}

.payment-package-list {
  padding: 14px;
  border: 1px solid #d8e1e8;
  border-radius: 8px;
  background: #fbfdff;
}

.payment-package-title,
.payment-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-package-title {
  margin-bottom: 12px;
}

.payment-package-title h3 {
  margin: 0;
  color: #223044;
  font-size: 15px;
  font-weight: 700;
}

.payment-package-item {
  padding: 12px;
  border: 1px solid #e5ebf0;
  border-radius: 8px;
  background: #fff;
}

.payment-package-item + .payment-package-item {
  margin-top: 12px;
}

.payment-package-head {
  margin-bottom: 10px;
}

.normal-textarea.layui-textarea {
  min-height: 170px;
  line-height: 1.7;
  resize: vertical;
}

.normal-setting-row {
  padding: 14px 0;
  margin-bottom: 0;
  border-bottom: 1px solid #eef2f6;
}

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

.normal-switch-control {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.normal-switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.normal-switch-control span {
  width: 58px;
  height: 28px;
  border-radius: 999px;
  background: #d8e1e8;
  position: relative;
  transition: background .16s ease;
}

.normal-switch-control span:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
  transition: transform .16s ease;
}

.normal-switch-control span:after {
  content: "关";
  position: absolute;
  right: 9px;
  top: 0;
  line-height: 28px;
  color: #6b7280;
  font-size: 12px;
}

.normal-switch-control input:checked + span {
  background: #16baaa;
}

.normal-switch-control input:checked + span:before {
  transform: translateX(30px);
}

.normal-switch-control input:checked + span:after {
  content: "开";
  left: 9px;
  right: auto;
  color: #06312c;
}

.filter-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-grid .layui-input,
.toolbar .layui-input {
  width: 210px;
}

.actions {
  display: flex;
  gap: 6px;
}

.actions.wrap {
  flex-wrap: wrap;
}

.action-group,
.normal-table .actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 132px;
}

.action-group .layui-btn,
.normal-table .actions .layui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 52px;
  margin: 0 !important;
  padding: 0 10px;
  line-height: 30px;
  white-space: nowrap;
}

.users-table .action-group {
  min-width: 186px;
}

.content-table .action-group,
.commerce-table .action-group {
  min-width: 150px;
}

.rich-editor {
  border: 1px solid #d8e1e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.rich-editor-toolbar {
  min-height: 42px;
  padding: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #eef2f6;
  background: #f8fafc;
}

.rich-editor-toolbar .layui-btn {
  margin: 0 !important;
}

.rich-editor-body {
  min-height: 260px;
  padding: 14px 16px;
  color: #172033;
  line-height: 1.8;
  outline: none;
}

.rich-editor-body:focus {
  box-shadow: inset 0 0 0 2px rgba(22, 186, 170, .16);
}

.rich-editor-body p {
  margin: 0 0 12px;
}

.rich-editor-body img {
  max-width: 100%;
  height: auto;
}

.rich-editor-source {
  display: none;
}

.article-rendered-preview {
  padding: 12px 14px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fbfdff;
  color: #172033;
  line-height: 1.8;
}

.article-rendered-preview p,
.article-rendered-preview ul,
.article-rendered-preview ol {
  margin: 0 0 12px;
}

.article-rendered-preview img {
  max-width: 100%;
  height: auto;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(15, 23, 42, .32);
  display: flex;
  justify-content: flex-end;
}

.modal.drawer,
.modal {
  width: min(720px, calc(100vw - 24px));
  max-height: 100vh;
  overflow: auto;
  background: #fff;
  box-shadow: -14px 0 38px rgba(15, 23, 42, .2);
}

.modal-head {
  min-height: 64px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.modal-head p {
  margin: 6px 0 0;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid #eef2f6;
  background: #fff;
}

.modal-form {
  padding: 18px;
}

.detail-grid,
.merchant-profile-summary,
.merchant-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.detail-grid > div,
.merchant-profile-summary > div,
.merchant-info-list > div,
.merchant-contact-card,
.merchant-profile-note {
  padding: 14px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fbfdff;
}

.detail-grid span,
.merchant-profile-summary span,
.merchant-info-list span {
  display: block;
  margin-bottom: 6px;
  color: #8a95a3;
  font-size: 12px;
}

.detail-grid strong,
.merchant-profile-summary strong,
.merchant-info-list strong {
  color: #111827;
  word-break: break-word;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar-medium {
  width: 44px;
  height: 44px;
}

.avatar-large {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.account-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.account-aside {
  padding: 26px 20px;
  border-right: 1px solid #eef2f6;
  text-align: center;
}

.account-aside h2 {
  margin: 14px 0 6px;
  font-size: 18px;
}

.account-aside p {
  margin: 0 0 16px;
  color: #6b7280;
}

.account-main {
  min-width: 0;
}

.upload-btn input {
  display: none;
}

.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.url-cell {
  max-width: 360px;
}

.timeline {
  margin: 0;
  padding: 12px 18px 18px;
  list-style: none;
}

.timeline li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
}

.timeline li:last-child {
  border-bottom: 0;
}

.mini-stack {
  display: grid;
  gap: 4px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #08786d;
}

.normal-pagination {
  min-height: 52px;
  padding: 10px 16px;
  border-top: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  background: #fff;
}

.normal-pagination-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.normal-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.normal-page-numbers .is-current {
  border-color: #16baaa;
  background: #16baaa;
  color: #fff;
}

.normal-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.normal-page-jump .layui-input {
  width: 64px;
  height: 30px;
  padding: 0 8px;
  text-align: center;
}

.normal-pagination .layui-btn-disabled {
  cursor: not-allowed;
}

.avatar-mini,
.avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16baaa;
  color: #062b27;
  font-weight: 700;
  vertical-align: middle;
}

.error,
.empty {
  padding: 34px 20px;
  text-align: center;
  color: #6b7280;
}

.error h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 22px;
}

[data-antdweb-site-legal-footer],
[data-antdweb-registration-notice],
[data-antdweb-registration-notice-style],
[data-antdweb-site-legal-footer-style] {
  display: none !important;
}

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

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

@media (max-width: 760px) {
  .normal-header.layui-header {
    position: relative;
    height: auto;
    min-height: 58px;
  }

  .normal-logo.layui-logo {
    position: relative;
    width: 100%;
  }

  .normal-top-nav.layui-layout-left,
  .normal-header-actions {
    position: relative;
    left: auto;
    right: auto;
    display: flex;
    width: 100%;
    padding: 0 12px;
    overflow-x: auto;
    border-top: 1px solid #eef2f6;
  }

  .normal-header-actions {
    justify-content: space-between;
    height: 52px;
  }

  .normal-site-name {
    max-width: 70vw;
    padding: 0 8px;
  }

  .normal-side.layui-side {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
  }

  .normal-side .layui-side-scroll {
    width: 100%;
    padding: 12px;
    overflow: visible;
  }

  .normal-side-title,
  .normal-nav-title {
    display: none;
  }

  .normal-nav-group {
    margin: 0 0 8px;
  }

  .normal-nav.layui-nav-tree {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .normal-nav .layui-nav-item {
    flex: 0 0 auto;
  }

  .normal-nav .layui-nav-item a {
    margin: 0;
    white-space: nowrap;
  }

  .normal-body.layui-body {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }

  .normal-content {
    padding: 16px 12px 26px;
  }

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

  .grid,
  .mini-stats,
  .dashboard-grid,
  .quick-grid,
  .module {
    grid-template-columns: 1fr;
  }

  .normal-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .normal-form-item .layui-form-label,
  .normal-setting-row .layui-form-label {
    width: auto;
    float: none;
    display: block;
    text-align: left;
    padding: 0 0 8px;
  }

  .normal-form-item .layui-input-block,
  .normal-setting-row .layui-input-block {
    margin-left: 0;
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
  }

  .contact-merchant-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }

  .account-panel,
  .detail-grid,
  .merchant-profile-summary,
  .merchant-info-list {
    grid-template-columns: 1fr;
  }

  .account-aside {
    border-right: 0;
    border-bottom: 1px solid #eef2f6;
  }

  .filter-grid .layui-input,
  .toolbar .layui-input {
    width: 100%;
  }

  .normal-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Contact merchants use a compact information table instead of commerce widths. */
.contact-merchant-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.normal-table.layui-table.contact-merchant-table {
  min-width: 960px;
  table-layout: fixed;
}

.normal-table.layui-table.contact-merchant-table th,
.normal-table.layui-table.contact-merchant-table td {
  width: auto;
  vertical-align: middle;
  word-break: normal;
}

.normal-table.layui-table.contact-merchant-table th:nth-child(1),
.normal-table.layui-table.contact-merchant-table td:nth-child(1) {
  width: 230px;
}

.normal-table.layui-table.contact-merchant-table th:nth-child(2),
.normal-table.layui-table.contact-merchant-table td:nth-child(2) {
  width: 150px;
}

.normal-table.layui-table.contact-merchant-table th:nth-child(4),
.normal-table.layui-table.contact-merchant-table td:nth-child(4) {
  width: 150px;
}

.normal-table.layui-table.contact-merchant-table th:nth-child(5),
.normal-table.layui-table.contact-merchant-table td:nth-child(5) {
  width: 170px;
}

.normal-table.layui-table.contact-merchant-table th:nth-child(6),
.normal-table.layui-table.contact-merchant-table td:nth-child(6) {
  width: 96px;
}

.contact-merchant-identity,
.contact-merchant-location {
  min-width: 0;
  white-space: normal;
}

.contact-merchant-identity strong,
.contact-merchant-location strong {
  display: block;
  overflow: hidden;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-merchant-subline {
  margin-top: 4px;
  color: #8a95a3;
  font-size: 12px;
  line-height: 1.5;
}

.contact-merchant-phone {
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all !important;
}

.contact-merchant-statuses {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.contact-merchant-statuses .tag,
.contact-merchant-updated,
.contact-merchant-actions {
  white-space: nowrap;
}

/* Keep dense management tables readable without forcing the entire page wider. */
.normal-panel .table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.normal-table.layui-table.merchant-profile-table,
.normal-table.layui-table.merchant-application-table,
.normal-table.layui-table.merchant-product-review-table,
.normal-table.layui-table.commerce-order-table,
.normal-table.layui-table.commerce-payment-table,
.normal-table.layui-table.visit-table,
.normal-table.layui-table.admin-log-table,
.normal-table.layui-table.content-table {
  table-layout: fixed;
}
.normal-table.layui-table.merchant-profile-table { min-width: 1400px; }
.normal-table.layui-table.merchant-application-table { min-width: 1300px; }
.normal-table.layui-table.merchant-product-review-table { min-width: 1250px; }
.normal-table.layui-table.commerce-order-table { min-width: 1220px; }
.normal-table.layui-table.commerce-payment-table { min-width: 1050px; }
.normal-table.layui-table.visit-table { min-width: 1150px; }
.normal-table.layui-table.admin-log-table { min-width: 1000px; }
.normal-table.layui-table.content-table { min-width: 1050px; }
.normal-table.layui-table.merchant-profile-table th,
.normal-table.layui-table.merchant-profile-table td,
.normal-table.layui-table.merchant-application-table th,
.normal-table.layui-table.merchant-application-table td,
.normal-table.layui-table.merchant-product-review-table th,
.normal-table.layui-table.merchant-product-review-table td,
.normal-table.layui-table.commerce-order-table th,
.normal-table.layui-table.commerce-order-table td,
.normal-table.layui-table.commerce-payment-table th,
.normal-table.layui-table.commerce-payment-table td,
.normal-table.layui-table.visit-table th,
.normal-table.layui-table.visit-table td,
.normal-table.layui-table.admin-log-table th,
.normal-table.layui-table.admin-log-table td,
.normal-table.layui-table.content-table th,
.normal-table.layui-table.content-table td { width: auto; overflow-wrap: anywhere; }
.normal-table.layui-table.merchant-profile-table th:nth-child(2) { width: 210px; }
.normal-table.layui-table.merchant-profile-table th:last-child { width: 150px; }
.normal-table.layui-table.merchant-application-table th:nth-child(6),
.normal-table.layui-table.merchant-product-review-table th:nth-child(4),
.normal-table.layui-table.commerce-order-table th:nth-child(5),
.normal-table.layui-table.content-table th:nth-child(2) { width: 260px; }
.normal-table.layui-table.merchant-product-review-table th:nth-child(1),
.normal-table.layui-table.commerce-order-table th:nth-child(1),
.normal-table.layui-table.commerce-payment-table th:nth-child(1),
.normal-table.layui-table.content-table th:nth-child(1) { width: 200px; }
.normal-table.layui-table.merchant-product-review-table th:nth-child(3),
.normal-table.layui-table.commerce-order-table th:nth-child(2),
.normal-table.layui-table.commerce-payment-table th:nth-child(3),
.normal-table.layui-table.content-table th:nth-child(4) { width: 95px; }
.normal-table.layui-table.commerce-order-table th:nth-child(6),
.normal-table.layui-table.commerce-payment-table th:nth-child(5),
.normal-table.layui-table.commerce-payment-table th:nth-child(6),
.normal-table.layui-table.visit-table th:nth-child(1),
.normal-table.layui-table.admin-log-table th:nth-child(1),
.normal-table.layui-table.content-table th:nth-child(5) { width: 170px; }
.normal-table.layui-table.visit-table th:nth-child(2),
.normal-table.layui-table.admin-log-table th:nth-child(3) { width: 230px; }
.normal-table.layui-table.visit-table th:nth-child(6) { width: 80px; }
.normal-table.layui-table.content-table th:last-child,
.normal-table.layui-table.commerce-order-table th:last-child,
.normal-table.layui-table.merchant-application-table th:last-child { width: 180px; }

/* Native filters and form controls share the same visual language as Layui. */
.normal-content .filter-grid select,
.normal-content .toolbar select {
  box-sizing: border-box;
  min-width: 140px;
  max-width: 100%;
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid #d8e1e8;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font: inherit;
}
.normal-content .layui-input,
.normal-content .layui-textarea,
.layui-layer .layui-input,
.layui-layer .layui-textarea {
  box-sizing: border-box;
  max-width: 100%;
  border-color: #d8e1e8;
  border-radius: 6px;
  color: #253346;
}
.normal-content .layui-input:focus,
.normal-content .layui-textarea:focus,
.normal-content select:focus-visible,
.layui-layer .layui-input:focus,
.layui-layer .layui-textarea:focus {
  border-color: #16baaa !important;
  outline: 2px solid rgba(22, 186, 170, .16);
  outline-offset: 0;
}
.normal-switch-control input:focus-visible + span {
  outline: 2px solid #08786d;
  outline-offset: 3px;
}
.normal-panel-head, .normal-pagination { flex-wrap: wrap; }
.normal-panel-head > *, .filter-grid, .toolbar { min-width: 0; }
.payment-package-item > .layui-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 12px;
  margin: 0;
}
.payment-package-item > .layui-row > [class*="layui-col-"] {
  width: auto;
  min-width: 0;
  padding: 0;
}
.payment-package-item .normal-form-item .layui-form-label {
  float: none;
  display: block;
  width: auto;
  text-align: left;
  padding: 0 0 6px;
}
.payment-package-item .normal-form-item .layui-input-block { margin-left: 0; }
.payment-package-item > .layui-row > :nth-child(6) { grid-column: span 3; }
@media (max-width: 900px) {
  .payment-package-item > .layui-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-package-item > .layui-row > :nth-child(6) { grid-column: auto; }
}
@media (max-width: 480px) {
  .payment-package-item > .layui-row { grid-template-columns: minmax(0, 1fr); }
  .normal-content .filter-grid select, .normal-content .toolbar select { width: 100%; }
  .filter-grid, .toolbar { width: 100%; }
}

/* Keep row actions visible while a wide table scrolls horizontally. */
.normal-table.layui-table.merchant-profile-table th:last-child,
.normal-table.layui-table.merchant-application-table th:last-child,
.normal-table.layui-table.merchant-product-review-table th:last-child,
.normal-table.layui-table.commerce-order-table th:last-child,
.normal-table.layui-table.content-table th:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  box-shadow: -3px 0 8px rgba(15, 23, 42, .05);
}
.normal-table.layui-table.merchant-profile-table td:last-child,
.normal-table.layui-table.merchant-application-table td:last-child,
.normal-table.layui-table.merchant-product-review-table td:last-child,
.normal-table.layui-table.commerce-order-table td:last-child,
.normal-table.layui-table.content-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  box-shadow: -3px 0 8px rgba(15, 23, 42, .05);
}

@media (max-width: 760px) {
  .normal-header.layui-header { display: flex; flex-direction: column; }
  .normal-header .normal-logo.layui-logo,
  .normal-header .normal-top-nav.layui-layout-left,
  .normal-header .normal-header-actions { position: static; flex: 0 0 auto; }
  .normal-header .normal-top-nav.layui-layout-left { min-height: 48px; align-items: center; }
  .normal-header .normal-top-nav .layui-nav-item { line-height: 48px; flex: 0 0 auto; }
  .normal-nav.layui-nav-tree .layui-nav-item { width: auto; }
}
@media (max-width: 760px) {
  .normal-header .normal-top-nav.layui-layout-left { position: static !important; }
}

.merchant-submission-fields summary,
.contact-more summary {
  color: #08786d;
  cursor: pointer;
  line-height: 1.6;
}
.merchant-submission-fields dl {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid #e6edf3;
  border-radius: 6px;
  background: #f8fafc;
}
.merchant-submission-fields dl > div + div { margin-top: 8px; }
.merchant-submission-fields dt { color: #64748b; font-size: 12px; }
.merchant-submission-fields dd { margin: 2px 0 0; color: #334155; overflow-wrap: anywhere; }
.contact-more { margin-top: 6px; }
