:root {
  --erp-bg: #f7f8f8;
  --erp-panel: #ffffff;
  --erp-panel-soft: #fafbfb;
  --erp-text: #202829;
  --erp-muted: #748080;
  --erp-nav: #fcfdfd;
  --erp-nav-soft: #f1f5f4;
  --erp-line: #e5ebe9;
  --erp-line-soft: #eef2f1;
  --erp-accent: #687a77;
  --erp-accent-soft: #eff4f3;
  --erp-primary: #246b64;
  --erp-teal: #287f77;
  --erp-blue: #3d5d64;
  --erp-orange: #b9955b;
  --erp-red: #d94d42;
  --erp-border: #dfe7e5;
  --erp-shadow: 0 10px 28px rgba(34, 48, 47, 0.06);
  --erp-shadow-soft: 0 6px 16px rgba(34, 48, 47, 0.035);
  --el-color-primary: var(--erp-primary);
  --el-color-primary-dark-2: #174f49;
  --el-color-primary-light-3: #668f8a;
  --el-color-primary-light-5: #9db9b5;
  --el-color-primary-light-7: #c7d9d6;
  --el-color-primary-light-8: #dce9e7;
  --el-color-primary-light-9: #eef5f4;
}

.ad-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.ad-summary-card .el-card__body {
  min-height: 150px;
  padding: 16px 18px;
}

.ad-summary-title {
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 4px;
}

.ad-summary-value {
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 8px;
}

.ad-summary-card .mini-bars {
  height: 104px;
}

@media (max-width: 900px) {
  .ad-summary-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--erp-bg);
  color: var(--erp-text);
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", "Avenir Next", sans-serif;
  font-size: 14px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(253, 254, 254, 0.98), rgba(247, 248, 248, 0.98) 320px),
    linear-gradient(90deg, rgba(36, 107, 100, 0.018), transparent 38%);
  content: "";
}

.login-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background-color: #fff4e4;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 246, 236, 0.22)),
    url("/img/login-bg.png") center / 100% 100% no-repeat;
}

.login-page::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 244, 0.18), rgba(255, 255, 255, 0.03) 48%, rgba(255, 244, 232, 0.16));
  content: "";
  pointer-events: none;
}

.login-page::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.18), transparent 34%);
  content: "";
  pointer-events: none;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: none;
  pointer-events: none;
}

.login-grid {
  position: absolute;
  inset: -40px;
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(142, 169, 202, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 169, 202, 0.11) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  transform: perspective(900px) rotateX(56deg) translateY(120px) scale(1.2);
  transform-origin: center bottom;
}

.login-flow {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(98, 232, 212, 0.88), rgba(248, 185, 78, 0.76), transparent);
  box-shadow: 0 0 26px rgba(98, 232, 212, 0.32);
  opacity: 0.78;
}

.flow-a {
  top: 31%;
  left: 9%;
  width: 36vw;
  transform: rotate(-16deg);
}

.flow-b {
  right: 6%;
  bottom: 26%;
  width: 40vw;
  transform: rotate(13deg);
}

.flow-c {
  top: 58%;
  left: 18%;
  width: 22vw;
  background: linear-gradient(90deg, transparent, rgba(126, 133, 255, 0.72), transparent);
  transform: rotate(26deg);
}

.login-orbit {
  position: absolute;
  top: 13%;
  left: 9%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(191, 220, 255, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(78, 218, 199, 0.08);
}

.login-orbit::before,
.login-orbit::after {
  position: absolute;
  border: 1px solid rgba(191, 220, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.login-orbit::before {
  inset: 54px;
}

.login-orbit::after {
  inset: 126px;
  background: radial-gradient(circle, rgba(98, 232, 212, 0.38), rgba(98, 232, 212, 0) 62%);
}

.login-orbit span,
.login-pulse {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #62e8d4;
  box-shadow: 0 0 22px rgba(98, 232, 212, 0.72);
}

.login-orbit span:nth-child(1) {
  top: 42px;
  left: 252px;
  width: 10px;
  height: 10px;
}

.login-orbit span:nth-child(2) {
  right: 42px;
  bottom: 82px;
  width: 8px;
  height: 8px;
  background: #f8b94e;
  box-shadow: 0 0 22px rgba(248, 185, 78, 0.72);
}

.login-orbit span:nth-child(3) {
  bottom: 72px;
  left: 78px;
  width: 7px;
  height: 7px;
  background: #8f98ff;
  box-shadow: 0 0 22px rgba(143, 152, 255, 0.64);
}

.login-data-panel {
  position: absolute;
  border: 1px solid rgba(207, 226, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.login-data-panel i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(223, 236, 255, 0.34);
}

.panel-orders {
  top: 20%;
  right: 15%;
  width: 238px;
  height: 142px;
}

.panel-orders::before {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(98, 232, 212, 0.92), rgba(53, 123, 244, 0.78));
  content: "";
}

.panel-orders i:nth-child(1) {
  top: 26px;
  left: 84px;
  width: 92px;
  height: 8px;
}

.panel-orders i:nth-child(2) {
  top: 48px;
  left: 84px;
  width: 126px;
  height: 8px;
}

.panel-orders i:nth-child(3) {
  left: 22px;
  bottom: 28px;
  width: 188px;
  height: 10px;
  background: linear-gradient(90deg, rgba(98, 232, 212, 0.78) 58%, rgba(223, 236, 255, 0.2) 58%);
}

.panel-orders i:nth-child(4) {
  left: 22px;
  bottom: 50px;
  width: 156px;
  height: 10px;
  background: linear-gradient(90deg, rgba(248, 185, 78, 0.82) 42%, rgba(223, 236, 255, 0.18) 42%);
}

.panel-stock {
  bottom: 17%;
  left: 14%;
  width: 248px;
  height: 168px;
}

.panel-stock::before {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(98, 232, 212, 0.38);
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(98, 232, 212, 0.86), rgba(248, 185, 78, 0.76), rgba(143, 152, 255, 0.64), rgba(98, 232, 212, 0.86));
  content: "";
  mask-image: radial-gradient(circle, transparent 45%, #000 47%);
}

.panel-stock i:nth-child(1) {
  top: 28px;
  left: 24px;
  width: 96px;
  height: 9px;
}

.panel-stock i:nth-child(2) {
  top: 56px;
  left: 24px;
  width: 136px;
  height: 9px;
}

.panel-stock i:nth-child(3) {
  top: 86px;
  left: 24px;
  width: 72px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(248, 185, 78, 0.9), rgba(248, 185, 78, 0.26));
}

.panel-route {
  right: 10%;
  bottom: 13%;
  width: 298px;
  height: 122px;
}

.panel-route::before {
  position: absolute;
  top: 58px;
  left: 38px;
  width: 218px;
  height: 2px;
  background: linear-gradient(90deg, rgba(98, 232, 212, 0.9), rgba(248, 185, 78, 0.82));
  content: "";
}

.panel-route i {
  top: 48px;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(15, 29, 45, 0.82);
}

.panel-route i:nth-child(1) {
  left: 30px;
}

.panel-route i:nth-child(2) {
  left: 108px;
  background: #f8b94e;
}

.panel-route i:nth-child(3) {
  left: 188px;
  background: #8f98ff;
  box-shadow: 0 0 20px rgba(143, 152, 255, 0.58);
}

.panel-route i:nth-child(4) {
  left: 248px;
}

.login-pulse {
  width: 12px;
  height: 12px;
}

.login-pulse::after {
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(98, 232, 212, 0.28);
  border-radius: inherit;
  content: "";
}

.pulse-a {
  top: 39%;
  left: 27%;
}

.pulse-b {
  right: 29%;
  bottom: 34%;
  background: #f8b94e;
  box-shadow: 0 0 22px rgba(248, 185, 78, 0.72);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(392px, calc(100vw - 40px));
  border: 1px solid rgba(255, 214, 158, 0.52);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 244, 228, 0.66));
  box-shadow: 0 24px 70px rgba(126, 77, 24, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.12);
  --el-card-bg-color: transparent;
  --el-card-border-color: transparent;
  --el-border-radius-base: 10px;
}

.login-card .el-card__body {
  padding: 28px 30px 30px;
}

.login-card .el-form-item {
  margin-bottom: 20px;
}

.login-card .el-form-item__label {
  color: #6e543a;
  font-size: 15px;
  font-weight: 700;
}

.login-card .el-input__wrapper {
  min-height: 44px;
  border: 1px solid rgba(218, 171, 110, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 2px rgba(142, 95, 38, 0.05);
}

.login-card .el-input__wrapper.is-focus {
  border-color: rgba(236, 147, 36, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 178, 77, 0.16);
}

.login-card .el-input__inner {
  color: #493626;
  font-weight: 600;
}

.login-card .el-button--primary {
  height: 46px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #f6a23a 0%, #df7c1f 100%);
  box-shadow: 0 12px 26px rgba(224, 126, 31, 0.28);
  color: #fffaf2;
  font-size: 16px;
  font-weight: 800;
}

.login-card .el-button--primary:hover,
.login-card .el-button--primary:focus {
  background: linear-gradient(135deg, #ffb24b 0%, #e88724 100%);
  box-shadow: 0 14px 30px rgba(224, 126, 31, 0.34);
}

@media (max-width: 920px) {
  .login-page {
    padding: 24px;
    background:
      linear-gradient(180deg, rgba(255, 248, 240, 0.16), rgba(255, 255, 255, 0.32)),
      url("/img/login-bg.png") center / 100% 100% no-repeat;
  }

  .login-page::before {
    inset: 14px;
  }

  .login-grid {
    opacity: 0.34;
    background-size: 52px 52px;
  }

  .login-orbit {
    top: 6%;
    left: -110px;
    width: 300px;
    height: 300px;
  }

  .panel-orders,
  .panel-stock,
  .panel-route {
    opacity: 0.42;
    transform: scale(0.82);
  }

  .panel-orders {
    top: 12%;
    right: -84px;
  }

  .panel-stock {
    bottom: 8%;
    left: -98px;
  }

  .panel-route {
    right: -128px;
    bottom: 18%;
  }
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d8a33a, #ffe0a0);
  color: #111820;
  font-size: 22px;
  font-weight: 800;
}

.login-logo {
  display: block;
  width: 44px;
  height: 44px;
  padding: 7px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 193, 93, 0.22), rgba(255, 255, 255, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 10px 24px rgba(216, 128, 28, 0.18);
}

.login-brand strong,
.brand strong,
.login-brand span,
.brand span {
  display: block;
}

.login-brand span,
.brand span {
  margin-top: 4px;
  color: var(--erp-muted);
  font-size: 12px;
}

.login-brand strong {
  color: #4d3724;
  font-size: 18px;
  letter-spacing: 0;
}

.login-brand span {
  color: #8a735d;
  font-size: 14px;
  font-weight: 600;
}

.shell {
  min-height: 100vh;
}

.aside {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--erp-nav);
  border-right: 1px solid #263241;
  box-shadow: 12px 0 36px rgba(15, 23, 42, 0.1);
}

.aside .brand {
  height: 76px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #eaf0f7;
}

.aside .brand span {
  color: #99a8bb;
}

.side-menu {
  height: calc(100vh - 184px);
  overflow-y: auto;
  padding: 10px 10px 16px;
  border-right: 0;
  background: transparent;
}

.side-menu::-webkit-scrollbar {
  width: 6px;
}

.side-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.side-menu .el-menu-item,
.side-menu .el-sub-menu__title {
  height: 42px;
  margin: 4px 0;
  border-radius: 7px;
  color: #bac6d5;
  line-height: 42px;
}

.side-menu .el-menu-item:hover,
.side-menu .el-sub-menu__title:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.side-menu .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(193, 138, 44, 0.22), rgba(15, 159, 143, 0.13));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--erp-accent);
}

.side-menu .el-sub-menu .el-menu {
  background: transparent;
}

.side-menu .el-sub-menu .el-menu-item {
  height: 34px;
  min-width: 0;
  margin: 2px 0 2px 20px;
  padding-left: 34px !important;
  border-radius: 6px;
  color: #95a5ba;
  font-size: 13px;
  line-height: 34px;
}

.side-menu .el-sub-menu.is-active > .el-sub-menu__title {
  color: #ffffff;
}

.aside-status {
  position: absolute;
  right: 14px;
  bottom: 16px;
  left: 14px;
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #d7e0ec;
}

.aside-status span,
.aside-status em {
  color: #8fa1b7;
  font-size: 12px;
  font-style: normal;
}

.aside-status strong {
  font-size: 13px;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 12;
  height: 76px;
  padding: 0 22px;
  border-bottom: 1px solid var(--erp-line);
  background: rgba(250, 252, 255, 0.94);
  backdrop-filter: blur(12px);
}

.page-title {
  display: grid;
  gap: 3px;
}

.breadcrumb {
  color: var(--erp-accent) !important;
  font-size: 12px !important;
  font-weight: 700;
}

.page-title h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.page-title span {
  color: var(--erp-muted);
  font-size: 13px;
}

.main {
  min-height: 0;
  padding: 18px 22px 28px;
  overflow: auto;
}

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

.toolbar-left,
.toolbar-right,
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.toolbar-left {
  min-width: 0;
}

.toolbar-right {
  justify-content: flex-end;
}

.toolbar .el-input,
.toolbar .el-select {
  max-width: 100%;
}

.toolbar:not(.compact-toolbar) {
  padding: 12px 14px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--erp-shadow-soft);
}

.page-header .toolbar {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.compact-toolbar {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section-tabs .el-tabs__header {
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-tabs .el-tabs__item {
  font-weight: 700;
}

.section-tabs .el-tabs__active-bar {
  background-color: var(--erp-primary);
}

.panel {
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  box-shadow: var(--erp-shadow);
}

.panel.el-card {
  overflow: hidden;
}

.panel .el-card__header {
  min-height: 48px;
  padding: 13px 16px;
  border-bottom-color: var(--erp-line-soft);
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  font-weight: 700;
}

.panel .el-card__body {
  padding: 16px;
}

.el-card:not(.panel) {
  border-radius: 8px;
}

.el-button {
  border-radius: 6px;
  font-weight: 600;
}

.el-button--primary {
  --el-button-bg-color: var(--erp-primary);
  --el-button-border-color: var(--erp-primary);
  --el-button-hover-bg-color: #0b6a63;
  --el-button-hover-border-color: #0b6a63;
}

.el-button--danger {
  --el-button-bg-color: var(--erp-red);
  --el-button-border-color: var(--erp-red);
}

.el-input__wrapper,
.el-select__wrapper,
.el-textarea__inner,
.el-input-number .el-input__wrapper {
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--erp-line) inset;
}

.el-table {
  --el-table-header-bg-color: #f7f9fc;
  --el-table-header-text-color: #344054;
  --el-table-row-hover-bg-color: #f3f8ff;
  border-radius: 7px;
  font-size: 13px;
}

.el-table th.el-table__cell {
  height: 42px;
  font-weight: 700;
}

.el-table .el-table__cell {
  padding: 8px 0;
}

.el-dialog,
.el-drawer {
  border-radius: 8px;
}

.el-drawer__header {
  margin-bottom: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--erp-line);
  font-weight: 800;
}

.el-drawer__body {
  background: var(--erp-bg);
}

.el-dialog__header {
  margin-right: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--erp-line);
}

.el-dialog__body {
  padding: 18px;
}

.tbs-shell {
  height: 100vh;
  overflow: hidden;
  min-height: 100vh;
  background: var(--erp-bg);
}

.tbs-shell > .el-container {
  min-height: 0;
  overflow: hidden;
}

.tbs-aside {
  position: sticky;
  top: 0;
  z-index: 30000;
  display: flex;
  height: 100vh;
  overflow: visible !important;
  border-right: 0;
  background: transparent;
  box-shadow: 1px 0 0 var(--erp-line);
}

.tbs-primary {
  position: relative;
  z-index: 45;
  width: 112px;
  min-width: 112px;
  height: 100vh;
  border-right: 1px solid var(--erp-line);
  background: linear-gradient(180deg, #ffffff 0%, var(--erp-nav) 100%);
  transition: width .16s ease, min-width .16s ease;
}

.tbs-brand {
  display: grid;
  height: 92px;
  place-items: center;
  gap: 4px;
  padding: 13px 6px 8px;
  color: var(--erp-text);
}

.aside .tbs-brand {
  height: 92px;
  padding: 13px 6px 8px;
  border-bottom: 0;
  color: var(--erp-text);
}

.tbs-brand img {
  width: 40px;
  height: 40px;
  display: block;
  padding: 6px;
  border: 1px solid var(--erp-line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 48, 47, 0.045);
}

.tbs-brand strong {
  color: #22302f;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.tbs-main-menu {
  display: grid;
  gap: 6px;
  padding: 6px 10px 24px;
}

.tbs-main-menu button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 9px;
  width: 92px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #667574;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.tbs-main-menu button .el-icon {
  justify-self: center;
  color: #879694;
  font-size: 19px;
}

.tbs-main-menu button span {
  overflow: hidden;
  white-space: nowrap;
}

.tbs-shell-compact .tbs-primary {
  width: 68px;
  min-width: 68px;
}

.tbs-shell-compact .tbs-brand {
  height: 72px;
  padding: 14px 8px 6px;
}

.tbs-shell-compact .tbs-brand img {
  width: 34px;
  height: 34px;
}

.tbs-shell-compact .tbs-brand strong {
  display: none;
}

.tbs-shell-compact .tbs-main-menu {
  padding: 6px 8px 24px;
}

.tbs-shell-compact .tbs-main-menu button {
  grid-template-columns: 1fr;
  width: 52px;
  height: 42px;
  padding: 0;
  text-align: center;
}

.tbs-shell-compact .tbs-main-menu button span {
  display: none;
}

.tbs-main-menu button:hover,
.tbs-main-menu button.active {
  background: #f1f6f5;
  color: var(--erp-primary);
  box-shadow: inset 2px 0 0 var(--erp-primary);
  transform: none;
}

.tbs-main-menu button.active .el-icon {
  color: var(--erp-primary);
}

.tbs-main-menu button.disabled {
  opacity: 0.54;
}

.tbs-child-panel {
  position: fixed;
  top: 0;
  left: 112px;
  z-index: 50;
  width: 146px;
  min-width: 146px;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 24px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--erp-line);
  background: #ffffff;
  box-shadow: 8px 0 20px rgba(34, 48, 47, 0.04);
}

.tbs-child-panel h2 {
  margin: 0 0 30px;
  color: var(--erp-text);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
}

.tbs-child-group {
  display: block;
  margin: 0 0 14px;
  color: #223837;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.tbs-child-group:not(:first-of-type) {
  margin-top: 28px;
}

.tbs-child-panel button {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  margin: 0 0 8px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #647573;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.35;
  text-align: left;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.tbs-child-panel button:hover,
.tbs-child-panel button.active {
  background: transparent;
  color: var(--erp-primary);
  transform: none;
}

.tbs-child-scrim {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 258px;
  z-index: 35;
  background: rgba(247, 248, 248, 0.04);
}

.tbs-shell-compact .tbs-child-panel {
  left: 68px;
}

.tbs-shell-compact .tbs-child-scrim {
  left: 214px;
}

.tbs-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 44px;
  padding: 0;
  border-bottom: 1px solid var(--erp-line);
  background: rgba(255, 255, 255, 0.96);
}

.tbs-tabs {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.tbs-tabs::-webkit-scrollbar {
  display: none;
}

.tbs-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 104px;
  max-width: 190px;
  height: 44px;
  padding: 0 17px;
  border: 0;
  border-right: 1px solid var(--erp-line-soft);
  background: #ffffff;
  color: #5f6d6c;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.tbs-tabs button.active {
  background: #f3f8f7;
  color: var(--erp-primary);
  box-shadow: inset 0 -2px 0 var(--erp-primary);
}

.tbs-tabs button span {
  flex: 0 0 auto;
  color: #92a19f;
  font-size: 16px;
  line-height: 1;
}

.tbs-tab-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 44px;
  border: 0;
  border-right: 1px solid var(--erp-line-soft);
  background: #ffffff;
  color: #8a9997;
  cursor: pointer;
}

.tbs-tab-nav + .tbs-toolbox,
.tbs-tabs + .tbs-tab-nav {
  border-left: 1px solid var(--erp-line-soft);
}

.tbs-tab-nav .el-icon {
  font-size: 16px;
}

.tbs-toolbox {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  padding: 0 16px;
}

.tbs-toolbox > button {
  display: grid;
  gap: 1px;
  place-items: center;
  min-width: 34px;
  border: 0;
  background: transparent;
  color: #526260;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.tbs-toolbox .el-icon {
  color: var(--erp-primary);
  font-size: 17px;
}

.tbs-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--erp-text);
  white-space: nowrap;
}

.tbs-notice-drawer .el-drawer__body {
  padding: 0;
  background: var(--erp-bg);
}

.tbs-notice-list {
  min-height: 100%;
  padding: 16px;
}

.tbs-notice-item {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #ffffff;
}

.tbs-notice-item span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f4f2;
  color: var(--erp-primary);
  font-size: 12px;
  font-weight: 700;
}

.tbs-notice-item strong {
  display: block;
  color: var(--erp-text);
  font-size: 15px;
  line-height: 1.45;
}

.tbs-notice-item p {
  margin: 8px 0 0;
  color: var(--erp-muted);
  font-size: 13px;
  line-height: 1.55;
}

.main {
  padding: 22px 22px 28px;
}

.tbs-page-heading {
  display: none;
}

.toolbar:not(.compact-toolbar),
.panel,
.settings-filter {
  border-color: var(--erp-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.tbs-list-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 94px);
  min-height: 0;
  overflow: hidden;
}

.statistics-page.tbs-list-shell,
.product-list-page.tbs-list-shell {
  height: calc(100vh - 94px);
}

.tbs-list-shell > .toolbar,
.tbs-list-shell > .status-tabs,
.tbs-list-shell > .product-face-tabs,
.tbs-list-shell > .product-list-filter,
.tbs-list-shell > .advanced-filter,
.tbs-list-shell > .purchase-rule-note,
.tbs-list-shell > .settings-filter,
.tbs-list-shell > .settings-actions,
.tbs-list-shell > .settings-subtabs,
.tbs-list-shell > .setting-summary-row {
  flex: 0 0 auto;
}

.tbs-table-card,
.product-list-table,
.settings-table-card {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.user-org-page {
  height: calc(100vh - 94px);
  min-height: 0;
  overflow: hidden;
}

.user-org-layout,
.user-list-panel {
  min-height: 0;
}

.user-list-panel {
  height: 100%;
  overflow: hidden;
}

.tbs-table-card > .el-card__body,
.product-list-table > .el-card__body,
.settings-table-card > .el-card__body,
.order-maintain.tbs-list-shell > .panel:last-of-type > .el-card__body,
.site-maintain.tbs-list-shell > .panel:last-of-type > .el-card__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  padding: 0;
}

.tbs-table-card .el-table,
.product-list-table .el-table,
.settings-table-card .el-table,
.order-maintain.tbs-list-shell > .panel:last-of-type .el-table,
.site-maintain.tbs-list-shell > .panel:last-of-type .el-table {
  flex: 1 1 auto;
  min-height: 0;
}

.tbs-table-card .el-table__inner-wrapper,
.product-list-table .el-table__inner-wrapper,
.settings-table-card .el-table__inner-wrapper,
.order-maintain.tbs-list-shell > .panel:last-of-type .el-table__inner-wrapper,
.site-maintain.tbs-list-shell > .panel:last-of-type .el-table__inner-wrapper {
  min-height: 0;
}

.tbs-pagination,
.product-pagination {
  flex: 0 0 auto;
}

.tbs-filterbar {
  margin-bottom: 0;
}

.tbs-filterbar .tbs-query-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-query-row {
  flex-wrap: nowrap;
}

.site-query-row .site-query-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-maintain .order-filter {
  position: relative;
}

.site-advanced-query {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
  padding-top: 2px;
}

.site-advanced-query > .tbs-filter-field {
  display: flex;
  flex: 0 1 260px;
  align-items: center;
  min-width: 220px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  background: #fafbfc;
}

.site-advanced-query > .tbs-filter-field .el-select {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
}

.site-advanced-query .site-query-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-filterbar .site-query-row > .tbs-filter-field {
  display: flex;
  flex: 1 1 0;
  flex-direction: row;
  align-items: center;
  min-width: 190px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  background: #fafbfc;
  transition: box-shadow 0.15s ease;
}

.site-filterbar .site-query-row > .tbs-filter-field:focus-within {
  box-shadow: 0 0 0 1px var(--el-color-primary) inset;
}

.site-filterbar .site-query-row > .tbs-filter-field .tbs-filter-label {
  color: #697386;
  font-size: 12px;
  font-weight: 400;
}

.site-filterbar .site-query-row > .tbs-filter-field .el-input,
.site-filterbar .site-query-row > .tbs-filter-field .el-select {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
}

.site-filterbar .site-query-row > .tbs-filter-field .el-input__wrapper,
.site-filterbar .site-query-row > .tbs-filter-field .el-select__wrapper {
  padding-right: 0;
  background: transparent;
  box-shadow: none !important;
}

.tbs-inline-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
}

.tbs-inline-filter > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.tbs-filterbar .el-input,
.tbs-filterbar .el-select {
  width: 190px !important;
}

.tbs-expand.el-button.is-text {
  padding: 0 4px;
  color: var(--erp-primary);
}

.tbs-actionbar {
  justify-content: space-between;
  margin-bottom: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
}

.tbs-actionbar .el-button--primary {
  order: -1;
}

.tbs-order-actions .el-button--primary {
  order: 0;
}

.el-button {
  height: 32px;
  border-radius: 5px;
  font-weight: 500;
}

.el-button--primary {
  --el-button-bg-color: var(--erp-primary);
  --el-button-border-color: var(--erp-primary);
  --el-button-hover-bg-color: #0b6a63;
  --el-button-hover-border-color: #0b6a63;
}

.el-table {
  --el-table-header-bg-color: #f7faf9;
  --el-table-header-text-color: #263635;
  --el-table-row-hover-bg-color: #eef7f5;
  border-radius: 4px;
}

.el-table th.el-table__cell {
  height: 40px;
  font-weight: 600;
}

.el-table .el-table__cell {
  padding: 7px 0;
}

/* Opt-in styling for ERP list tables; editor/detail subtables keep their grids. */
.tbs-reference-table .el-table__cell {
  border-right: 0;
}

.tbs-reference-table.el-table--border::after,
.tbs-reference-table.el-table--border::before,
.tbs-reference-table.el-table--border .el-table__inner-wrapper::after {
  background: transparent;
}

/* Order list tables follow the TBS 48px header and horizontal-rule-only grid. */
:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table {
  --el-table-header-bg-color: #f8f9fa;
  --el-table-header-text-color: #333333;
  --el-table-text-color: #666666;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table::before,
:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table .el-table__inner-wrapper::before {
  height: 1px;
  background: #ebeef5;
}

:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table th.el-table__cell {
  height: 48px;
  padding: 12px 0;
  border-right: 0;
  border-bottom: 1px solid #ebeef5;
  background: #f8f9fa;
  color: #333333;
  font-size: 12px;
  font-weight: 500;
}

:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table td.el-table__cell {
  padding: 12px 0;
  border-right: 0;
  border-bottom: 1px solid #ebeef5;
  color: #666666;
  font-size: 12px;
}

:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table .cell {
  min-height: 24px;
  padding: 0 12px;
  line-height: 23px;
}

.order-maintain .tbs-reference-table td.el-table__cell {
  height: 115px;
  vertical-align: middle;
}

.section-tabs > .el-tabs__header {
  display: none;
}

.status-tabs {
  border: 0;
  background: transparent;
}

.status-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.status-tabs button.active {
  border-bottom-color: var(--erp-primary);
  color: var(--erp-primary);
}

.sm-sync-toolbar {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 44px);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(63, 61, 92, 0.18);
}

.sm-sync-toolbar strong {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #e7fbf4;
  color: #167c68;
}

.home-dashboard {
  display: grid;
  gap: 14px;
  max-width: 100%;
}

.home-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 29vw);
  gap: 14px;
  align-items: start;
}

.home-dashboard-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.home-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  padding: 0 2px;
}

.home-topline > span {
  color: #7a8494;
  font-size: 13px;
}

.home-mode-actions {
  display: flex;
  gap: 8px;
}

.home-period-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  padding: 15px 16px 14px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--erp-shadow-soft);
}

.home-period-card {
  min-height: 124px;
  padding: 0 18px;
  border-right: 1px solid var(--erp-line);
  background: #ffffff;
}

.home-period-card:last-child {
  border-right: 0;
}

.home-period-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding-bottom: 10px;
}

.home-period-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #354052;
  font-weight: 700;
}

.home-period-icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0.94));
  color: var(--erp-primary);
  box-shadow: 0 8px 18px rgba(18, 54, 52, 0.08);
}

.home-period-icon.yesterday {
  border-color: rgba(57, 91, 126, 0.14);
  background: linear-gradient(145deg, rgba(57, 91, 126, 0.1), rgba(255, 255, 255, 0.94));
  color: #395b7e;
}

.home-period-icon.week {
  border-color: rgba(91, 96, 226, 0.14);
  background: linear-gradient(145deg, rgba(91, 96, 226, 0.1), rgba(255, 255, 255, 0.94));
  color: #5b60e2;
}

.home-period-icon.month {
  border-color: rgba(33, 126, 96, 0.14);
  background: linear-gradient(145deg, rgba(33, 126, 96, 0.1), rgba(255, 255, 255, 0.94));
  color: #217e60;
}

.home-period-card header strong {
  color: #1d2939;
  font-size: 18px;
  line-height: 1;
}

.home-period-card.business-mode {
  min-height: 124px;
}

.home-period-card.business-mode header {
  align-items: center;
  min-height: 34px;
  padding-bottom: 18px;
}

.home-business-meta {
  display: grid;
  gap: 12px;
}

.home-business-meta p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.home-business-meta span {
  color: #606b7b;
  font-size: 14px;
  white-space: nowrap;
}

.home-business-meta strong {
  color: #2f3237;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.05;
  text-align: right;
}

.period-meta {
  display: grid;
  gap: 7px;
}

.period-meta p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: #7a8494;
  font-size: 13px;
}

.period-meta em {
  color: var(--erp-text);
  font-style: normal;
  font-weight: 700;
}

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

.home-panel-header strong {
  font-size: 15px;
}

.analysis-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.home-analysis-panel .el-card__body {
  padding: 0;
}

.analysis-canvas {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 300px;
  background:
    linear-gradient(#edf1f6 1px, transparent 1px) 0 0 / 100% 52px,
    #ffffff;
}

.analysis-y-axis {
  display: grid;
  align-content: space-between;
  padding: 34px 16px 48px;
  border-right: 1px solid var(--erp-line);
  color: #8993a3;
  font-size: 12px;
}

.analysis-chart {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(38px, 1fr);
  align-items: end;
  gap: 10px;
  min-width: 0;
  padding: 28px 26px 24px;
  overflow-x: auto;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #98a2b3;
}

.chart-column {
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 9px;
  min-width: 38px;
}

.chart-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 168px;
  width: 100%;
}

.chart-bars span {
  display: block;
  width: 10px;
  border-radius: 4px 4px 0 0;
}

.sale-bar {
  background: var(--erp-accent);
}

.order-bar {
  background: var(--erp-primary);
}

.chart-column em {
  color: #7a8494;
  font-style: normal;
  font-size: 12px;
}

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

.metric {
  position: relative;
  min-height: 122px;
  padding: 16px 16px 14px;
  overflow: hidden;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: var(--erp-panel);
  box-shadow: var(--erp-shadow);
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.08;
}

.metric em {
  display: block;
  margin-top: 8px;
  color: var(--erp-teal);
  font-style: normal;
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.quick-action {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--erp-text);
  text-align: left;
  cursor: pointer;
}

.quick-action:hover {
  border-color: var(--erp-teal);
  background: #f1fbf8;
  transform: translateY(-1px);
}

.quick-action span,
.resource-item span {
  color: var(--erp-muted);
  font-size: 13px;
}

.quick-action strong {
  font-size: 24px;
}

.quick-action em,
.resource-item em {
  color: var(--erp-teal);
  font-size: 12px;
  font-style: normal;
}

.notice-list {
  display: grid;
  gap: 10px;
}

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

.resource-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #fbfcfe;
}

.resource-item strong {
  font-size: 22px;
}

.home-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.home-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 14px;
  align-items: start;
}

.home-left-stack,
.home-right-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.home-right-stack {
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.home-rank-panel .el-card__body,
.home-order-panel .el-card__body {
  padding: 0;
}

.home-panel-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-panel-tools button,
.home-more-button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #667085;
  font-size: 13px;
  cursor: pointer;
}

.home-panel-tools button.active {
  border-color: var(--erp-primary);
  background: #e8f4f2;
  color: var(--erp-primary);
  font-weight: 700;
}

.home-panel-tools.compact {
  gap: 2px;
}

.home-panel-tools.compact button {
  padding: 0 7px;
  font-size: 12px;
}

.home-side-card .el-card__header {
  padding: 12px 14px;
  font-weight: 800;
}

.home-side-card .el-card__body {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.home-todo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-todo-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 11px;
  border: 0;
  border-radius: 6px;
  background: #f5f8f7;
  color: var(--erp-text);
  text-align: left;
  cursor: pointer;
}

.home-todo-item strong {
  color: var(--erp-primary);
  font-size: 18px;
}

.home-todo-item em {
  grid-column: 2;
  color: var(--erp-teal);
  font-size: 12px;
  font-style: normal;
}

.home-shortcut-grid,
.home-app-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.home-shortcut-grid button,
.home-app-grid button {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 64px;
  padding: 9px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  text-align: center;
  cursor: pointer;
}

.home-shortcut-grid button .home-shortcut-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--erp-primary);
  color: #ffffff;
  box-shadow: 0 5px 12px rgba(36, 107, 100, 0.16);
}

.home-shortcut-grid button .home-shortcut-icon svg {
  width: 15px;
  height: 15px;
}

.home-shortcut-grid button.tone-order .home-shortcut-icon {
  background: #2f9bd1;
}

.home-shortcut-grid button.tone-ad .home-shortcut-icon {
  background: #d59b36;
}

.home-shortcut-grid button.tone-visit .home-shortcut-icon {
  background: #30b7a1;
}

.home-shortcut-grid button.tone-analysis .home-shortcut-icon {
  background: #3d6fd8;
}

.home-shortcut-grid button span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.home-shortcut-grid button em {
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
}

.home-account-list {
  display: grid;
  gap: 8px;
}

.home-account-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8fafc;
}

.home-account-list span {
  color: #667085;
}

.home-account-list strong {
  color: #1d2939;
}

.home-notice-list {
  display: grid;
  gap: 8px;
}

.home-notice-list p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.home-notice-list p em {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: #fff4dd;
  color: #b7791f;
  font-style: normal;
  font-size: 12px;
}

.home-notice-hero {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 150px;
  margin-bottom: 8px;
  padding: 22px 26px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(239, 245, 255, 0.96), rgba(214, 230, 255, 0.84) 52%, rgba(86, 103, 236, 0.82)),
    #edf4ff;
  color: #29315f;
}

.home-notice-hero::before,
.home-notice-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.home-notice-hero::before {
  right: 34px;
  top: 28px;
  width: 104px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 18px 42px rgba(70, 86, 196, 0.26);
  transform: rotate(8deg);
}

.home-notice-hero::after {
  right: 118px;
  bottom: 34px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(47, 155, 209, 0.86);
  box-shadow: 84px 6px 0 rgba(61, 111, 216, 0.72);
}

.home-notice-hero strong,
.home-notice-hero span {
  position: relative;
  z-index: 1;
}

.home-notice-hero strong {
  max-width: 230px;
  font-size: 28px;
  line-height: 1.1;
}

.home-notice-hero span {
  color: #4c6bff;
  font-size: 22px;
  font-weight: 800;
}

.home-resource-panel .el-card__body {
  padding: 14px;
}

.legacy-dashboard-section {
  display: none;
}

.trend-list {
  display: grid;
  gap: 10px;
}

.trend-row {
  display: grid;
  grid-template-columns: 54px 1fr 58px 90px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.trend-row span {
  color: var(--erp-muted);
}

.trend-row strong,
.trend-row em {
  text-align: right;
  font-style: normal;
  color: var(--erp-text);
}

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

.status-grid strong {
  display: block;
  margin-bottom: 10px;
}

.status-grid p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  color: var(--erp-muted);
}

.status-grid em {
  font-style: normal;
  color: var(--erp-text);
  font-weight: 700;
}

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

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

.permission-list {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  padding: 10px;
}

.section-tabs {
  margin-bottom: 14px;
}

.order-maintain,
.site-maintain {
  display: grid;
  gap: 12px;
}

.order-filter {
  padding: 14px 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: var(--erp-panel);
  box-shadow: var(--erp-shadow-soft);
}

.order-filter .el-form,
.advanced-filter .el-form {
  margin-bottom: -12px;
}

.compact-filter {
  padding-top: 6px;
}

.advanced-filter {
  padding: 14px 16px 4px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: var(--erp-panel);
  box-shadow: var(--erp-shadow-soft);
}

.status-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #f8f9fc;
}

.status-tabs + .toolbar {
  margin-top: 14px;
}

.tbs-actionbar + .panel,
.advanced-filter + .panel {
  margin-top: 0;
}

.status-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--erp-line);
  border-radius: 0;
  background: transparent;
  color: var(--erp-text);
  cursor: pointer;
  white-space: nowrap;
}

.status-tabs button.active {
  background: #ffffff;
  color: var(--erp-primary);
  box-shadow: inset 0 -2px 0 var(--erp-blue);
}

.product-list-page {
  display: grid;
  gap: 12px;
}

.sm-sync-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #ffffff;
}

.sm-sync-toolbar strong {
  display: inline-grid;
  width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 4px;
  background: var(--erp-primary);
  color: #fff;
  font-size: 13px;
}

.product-face-tabs {
  display: flex;
  gap: 26px;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  border-bottom: 1px solid var(--erp-line);
}

.product-face-tabs button {
  position: relative;
  height: 42px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--erp-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.product-face-tabs button.active {
  color: var(--erp-primary);
}

.product-face-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--erp-primary);
  content: "";
}

.product-face-summary {
  margin-left: auto;
  color: #7a8494;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.product-status-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #f8f9fc;
}

.product-status-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--erp-line);
  background: transparent;
  color: var(--erp-text);
  cursor: pointer;
  white-space: nowrap;
}

.product-status-row button.active {
  background: #fff;
  color: var(--erp-primary);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--erp-blue);
}

.product-status-row strong {
  min-width: 20px;
  font-size: 12px;
  text-align: right;
}

.product-list-filter {
  padding: 14px 20px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: var(--erp-panel);
  box-shadow: var(--erp-shadow-soft);
}

.product-list-table .el-card__body {
  padding: 0;
}

.product-cover-cell {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #f8fafc;
}

.product-cover-cell img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.product-cover-cell.large {
  width: 88px;
  height: 66px;
}

.product-row-expand {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  padding: 10px 12px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #fbfcfe;
}

.product-row-expand div {
  min-height: 54px;
  padding: 8px 12px;
  border-right: 1px solid var(--erp-line-soft);
}

.product-row-expand div:last-child {
  border-right: 0;
}

.product-row-expand span {
  display: block;
  color: var(--erp-muted);
  font-size: 12px;
}

.product-row-expand strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--erp-text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-status-tabs {
  margin-bottom: 0;
  border-color: transparent transparent var(--erp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: var(--erp-shadow-soft);
}

.data-status-tabs button {
  background: transparent;
}

.settings-page {
  display: grid;
  gap: 14px;
}

.settings-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 4px;
}

.settings-subtabs button {
  min-width: 82px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--erp-line);
  border-radius: 5px;
  background: #ffffff;
  color: #475467;
  cursor: pointer;
}

.settings-subtabs button.active {
  border-color: var(--erp-primary);
  color: var(--erp-primary);
  background: #e8f4f2;
}

.settings-filter {
  padding: 24px 18px 10px;
  border: 1px solid var(--erp-line);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
}

.settings-filter .el-form {
  margin-bottom: -8px;
}

.setting-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.setting-summary-row div {
  padding: 14px 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #fff;
}

.setting-summary-row span {
  display: block;
  color: var(--erp-muted);
  font-size: 12px;
}

.setting-summary-row strong {
  display: block;
  margin-top: 8px;
  color: var(--erp-text);
  font-size: 20px;
  line-height: 1.1;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-actions .el-button {
  min-width: 102px;
}

.settings-table-card {
  box-shadow: none;
}

.settings-table-card .el-card__body {
  padding: 0;
}

.settings-table-card .el-table th.el-table__cell {
  background: #f5f7fb;
  color: #475467;
}

.settings-table-card .el-table .cell {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.system-module-page {
  min-height: calc(100vh - 128px);
}

.site-module-page {
  min-height: calc(100vh - 128px);
}

.site-module-page .tbs-list-shell,
.site-module-page .ip-blacklist-page,
.site-module-page .order-blacklist-page,
.site-module-page .template-manager-page,
.site-module-page .payment-manager-page,
.site-module-page .navigation-manager-page,
.site-module-page .dns-record-page,
.site-module-page .access-path-page,
.site-module-page .access-log-page,
.site-module-page .freight-remote-page {
  align-content: start;
  grid-auto-rows: max-content;
}

.site-module-page .settings-filter.panel {
  align-self: start;
  min-height: 0;
}

.site-logo-thumb,
.site-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  object-fit: contain;
  background: #f8fafc;
}

.site-logo-placeholder {
  color: #667085;
  font-weight: 800;
}

.global-setting-panel {
  width: 100%;
  max-width: none;
}

.global-setting-card {
  padding: 22px 24px;
}

.global-setting-title {
  margin-bottom: 20px;
  color: var(--erp-text);
  font-size: 18px;
  font-weight: 800;
}

.global-setting-group {
  padding: 18px 0;
  border-top: 1px solid var(--erp-line);
}

.global-setting-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.global-setting-group h3 {
  margin: 0 0 14px;
  color: #344054;
  font-size: 15px;
  font-weight: 800;
}

.global-setting-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: #475467;
}

.global-setting-group p {
  margin: 8px 0 0;
  color: #98a2b3;
  font-size: 13px;
}

.global-setting-footer {
  padding-top: 18px;
  border-top: 1px solid var(--erp-line);
}

.theme-setting-panel {
  width: 100%;
  max-width: none;
  margin-bottom: 16px;
}

.theme-setting-card {
  padding: 22px 24px;
}

.theme-setting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.theme-setting-header h3 {
  margin-bottom: 0;
}

.theme-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-preset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--erp-text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.theme-preset:hover {
  border-color: var(--erp-primary);
  color: var(--erp-primary);
}

.theme-preset.active {
  border-color: var(--erp-primary);
  background: var(--erp-accent-soft);
  color: var(--erp-primary);
  font-weight: 650;
}

.theme-preset-swatch {
  display: inline-flex;
  width: 18px;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(32, 40, 41, 0.12);
  border-radius: 4px;
}

.theme-preset-swatch i {
  width: 50%;
  height: 100%;
}

.theme-setting-body {
  display: grid;
  grid-template-columns: minmax(520px, 1.5fr) minmax(420px, 1fr);
  gap: 22px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--erp-line);
}

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

.theme-color-row {
  display: grid;
  grid-template-columns: 58px 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #475467;
  font-size: 13px;
}

.theme-color-row .el-input__wrapper {
  min-height: 32px;
}

.theme-color-row .el-input__inner {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.theme-preview-shell {
  display: grid;
  grid-template-columns: 86px 1fr;
  min-height: 214px;
  overflow: hidden;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
}

.theme-preview-shell aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 10px;
  border-right: 1px solid;
}

.theme-preview-shell aside strong {
  margin-bottom: 8px;
  color: inherit;
  font-size: 15px;
}

.theme-preview-shell aside span {
  display: block;
  height: 30px;
  padding: 7px 8px;
  border-radius: 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

.theme-preview-shell main {
  padding: 16px;
}

.theme-preview-shell header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid;
}

.theme-preview-shell header i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.theme-preview-shell header b {
  font-size: 15px;
}

.theme-preview-shell section {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid;
  border-radius: 8px;
}

.theme-preview-shell section em,
.theme-preview-shell section strong {
  display: block;
  font-style: normal;
}

.theme-preview-shell section strong {
  margin-top: 8px;
  color: inherit;
  font-size: 24px;
}

.theme-preview-shell section button {
  height: 30px;
  margin-top: 14px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
}

@media (max-width: 980px) {
  .theme-setting-body,
  .theme-color-grid {
    grid-template-columns: 1fr;
  }

  .theme-setting-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.region-flag-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.empty-setting-card {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: #98a2b3;
}

.email-drawer .el-drawer__body {
  background: #ffffff;
}

.evaluation-page {
  display: grid;
  gap: 14px;
}

.product-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-subtabs:not(.tbs-status-tabs) {
  display: none !important;
}

.product-subtabs button {
  min-width: 88px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--erp-line);
  border-radius: 5px;
  background: #ffffff;
  color: #475467;
  cursor: default;
}

.product-subtabs button.active {
  border-color: var(--erp-primary);
  color: var(--erp-primary);
  background: #e8f4f2;
}

.evaluation-drawer .el-drawer__body {
  background: #ffffff;
}

.evaluation-drawer .side-form {
  max-width: 720px;
}

.evaluation-drawer .form-muted {
  width: 100%;
  margin: 8px 0 0;
  color: #98a2b3;
  font-size: 12px;
}

.wide-form-item .el-form-item__content {
  display: block;
}

.scroll-data-box {
  padding: 14px;
  border: 1px solid var(--erp-line);
  border-radius: 5px;
  background: #ffffff;
}

.scroll-data-box .el-table .el-input__wrapper {
  box-shadow: none;
}

.scroll-data-box .add-line {
  width: 100%;
  margin-top: 0;
  border-radius: 0 0 5px 5px;
  background: #f8fafc;
}

.category-manager {
  align-content: start;
  grid-auto-rows: max-content;
  min-height: calc(100vh - 128px);
  padding: 0 22px 34px;
  border-radius: 8px;
  background: #fff;
}

.category-filter {
  max-width: none;
  margin-bottom: 16px;
}

.category-actions {
  margin-bottom: 16px;
}

.category-panel {
  border: 0;
  box-shadow: none;
}

.category-panel .el-card__body {
  min-height: 420px;
  padding: 0;
}

.category-panel .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
}

.category-dialog .el-dialog__header {
  padding: 24px 28px 10px;
}

.category-dialog .el-dialog__body {
  min-height: 280px;
  padding: 14px 28px 22px;
}

.category-dialog .el-dialog__footer {
  padding: 16px 28px 22px;
}

.category-relation-dialog .el-dialog__body {
  padding: 12px 28px 18px;
}

.category-relation-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.category-relation-summary label {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #475467;
  font-size: 14px;
}

.category-relation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.category-relation-cover {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
}

.category-relation-empty {
  color: #98a2b3;
}

.category-relation-pagination {
  margin-top: 14px;
}

.attribute-manager {
  align-content: start;
  grid-auto-rows: max-content;
  min-height: calc(100vh - 128px);
  padding: 0 22px 34px;
  border-radius: 8px;
  background: #fff;
}

.attribute-filter {
  max-width: none;
  margin-bottom: 16px;
}

.attribute-actions {
  margin-bottom: 16px;
}

.category-manager > .settings-filter.category-filter,
.attribute-manager > .settings-filter.attribute-filter,
.product-manage-filter {
  max-width: none !important;
  min-height: 0 !important;
  height: 70px !important;
  max-height: 70px !important;
  margin-bottom: 16px !important;
  padding: 22px 10px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.category-manager > .settings-filter.category-filter .el-form,
.attribute-manager > .settings-filter.attribute-filter .el-form,
.product-manage-filter .el-form {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 18px;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  overflow: visible !important;
}

.category-manager > .settings-filter.category-filter .el-form-item,
.attribute-manager > .settings-filter.attribute-filter .el-form-item,
.product-manage-filter .el-form-item {
  margin: 0 !important;
}

.category-manager > .settings-filter.category-filter .el-form-item:not(:last-child),
.attribute-manager > .settings-filter.attribute-filter .el-form-item:not(:last-child),
.product-manage-filter .el-form-item:not(:last-child) {
  display: inline-flex;
  align-items: center;
  height: 48px !important;
  padding: 0 12px !important;
  border-radius: 6px;
  background: #f8f8fb;
}

.category-manager > .settings-filter.category-filter .el-form-item__label,
.attribute-manager > .settings-filter.attribute-filter .el-form-item__label,
.product-manage-filter .el-form-item__label {
  height: 48px !important;
  color: #8d9099;
  font-weight: 600;
  line-height: 48px !important;
}

.category-manager > .settings-filter.category-filter .el-input,
.category-manager > .settings-filter.category-filter .el-select,
.attribute-manager > .settings-filter.attribute-filter .el-input,
.attribute-manager > .settings-filter.attribute-filter .el-select,
.product-manage-filter .el-input,
.product-manage-filter .el-select {
  width: 100% !important;
}

.category-manager > .settings-filter.category-filter .el-input__wrapper,
.category-manager > .settings-filter.category-filter .el-select__wrapper,
.attribute-manager > .settings-filter.attribute-filter .el-input__wrapper,
.attribute-manager > .settings-filter.attribute-filter .el-select__wrapper,
.product-manage-filter .el-input__wrapper,
.product-manage-filter .el-select__wrapper {
  min-height: 36px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.category-manager > .settings-filter.category-filter .el-form-item:last-child .el-form-item__content,
.attribute-manager > .settings-filter.attribute-filter .el-form-item:last-child .el-form-item__content,
.product-manage-filter .el-form-item:last-child .el-form-item__content {
  gap: 10px;
}

.category-manager > .settings-filter.category-filter .el-button,
.attribute-manager > .settings-filter.attribute-filter .el-button,
.product-manage-filter .el-button {
  height: 48px !important;
  padding: 0 16px !important;
  font-size: 15px;
}

.category-manager > .settings-filter.category-filter .el-button .el-icon,
.attribute-manager > .settings-filter.attribute-filter .el-button .el-icon,
.product-manage-filter .el-button .el-icon {
  margin-right: 5px;
}

.category-actions .plus-action::before,
.attribute-actions .plus-action::before {
  content: "+";
}

.category-manager > .settings-filter.category-filter .el-form-item:first-child,
.category-filter .el-form-item:first-child {
  width: 422px !important;
}

.attribute-manager > .settings-filter.attribute-filter .el-form-item:nth-child(1),
.attribute-manager > .settings-filter.attribute-filter .el-form-item:nth-child(2),
.attribute-filter .el-form-item:nth-child(1),
.attribute-filter .el-form-item:nth-child(2) {
  width: 398px !important;
}

.attribute-panel {
  border: 0;
  box-shadow: none;
}

.attribute-panel .el-card__body {
  min-height: 420px;
  padding: 0;
}

.attribute-panel .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
}

.attribute-dialog .el-dialog__header {
  padding: 24px 28px 10px;
}

.attribute-dialog .el-dialog__body {
  min-height: 420px;
  padding: 14px 28px 22px;
}

.attribute-dialog .el-dialog__footer {
  padding: 16px 28px 22px;
}

.attribute-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 0;
}

.attribute-form .attribute-field-half,
.attribute-form .add-line {
  grid-column: 1 / -1;
}

.attribute-form .add-line {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 2px;
  border: 1px dashed var(--erp-line);
  border-radius: 0;
  color: var(--erp-text);
  cursor: pointer;
}

.dns-auth-page {
  display: grid;
  gap: 14px;
}

.dns-record-page {
  min-height: calc(100vh - 128px);
  padding: 0 22px 24px;
  border-radius: 8px;
  background: #fff;
}

.dns-record-page .product-subtabs {
  margin: 0 -22px 8px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.dns-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.dns-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.dns-summary-card span {
  color: #667085;
  font-size: 13px;
}

.dns-summary-card strong {
  color: #101828;
  font-size: 24px;
}

.dns-filter-card {
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.dns-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.dns-record-table,
.dns-record-form {
  border: 0;
  box-shadow: none;
}

.dns-record-table .el-card__body {
  padding: 0;
}

.dns-record-table .el-table {
  min-height: 500px;
}

.dns-record-table .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
}

.dns-record-form {
  border: 1px solid var(--erp-line);
}

.dns-record-form .el-card__body {
  padding: 20px 18px 18px;
}

.dns-record-form h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.table-subtext {
  margin: 4px 0 0;
  color: #8b95a7;
  font-size: 12px;
}

.dns-auth-form {
  margin-top: 30px;
}

.dns-auth-form .el-card__body {
  padding: 24px 18px 18px;
}

.dns-auth-form h3 {
  margin: 0 0 18px;
  font-size: 15px;
}

.dns-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 0 34px;
}

.dns-auth-note {
  grid-column: 1 / -1;
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 5px;
  background: #f0eefc;
  color: #6b647f;
  line-height: 20px;
}

.dns-auth-footer {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.habit-config-page {
  min-height: calc(100vh - 128px);
  padding: 0 22px 24px;
  border-radius: 8px;
  background: #fff;
}

.habit-config-page .product-subtabs {
  margin: 0 -22px 16px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.habit-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.habit-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.habit-sidebar button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  text-align: left;
  cursor: pointer;
}

.habit-sidebar button.active {
  border-color: #1f6feb;
  background: #eff6ff;
  color: #175cd3;
}

.habit-sidebar strong {
  font-size: 15px;
}

.habit-sidebar span {
  color: #667085;
  font-size: 12px;
  line-height: 18px;
}

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

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

.habit-toolbar h3 {
  margin: 0;
  font-size: 18px;
}

.habit-toolbar p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
}

.habit-content-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 16px;
}

.habit-list-card,
.habit-form-card {
  border-radius: 8px;
  border-color: var(--erp-line);
}

.habit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.habit-form {
  padding-right: 8px;
}

.habit-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px 92px;
}

.habit-presets span {
  color: #667085;
  font-size: 13px;
}

.habit-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ip-blacklist-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 128px);
  padding: 0 22px 22px;
  border-radius: 8px;
  background: #fff;
}

.ip-blacklist-page .product-subtabs {
  margin: 0 -22px 8px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.ip-filter-card {
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.ip-blacklist-table {
  min-height: 500px;
  border: 0;
  box-shadow: none;
}

.ip-blacklist-table .el-card__body {
  padding: 0;
}

.ip-blacklist-table .el-table {
  min-height: 440px;
}

.ip-blacklist-table .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
}

.ip-blacklist-drawer .side-form {
  max-width: 520px;
}

.ip-import-dialog .el-dialog__body {
  padding-top: 12px;
}

.order-blacklist-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 128px);
  padding: 0 22px 22px;
  border-radius: 8px;
  background: #fff;
}

.order-blacklist-page .product-subtabs {
  margin: 0 -22px 8px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.order-blacklist-filter {
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.order-blacklist-table {
  min-height: 500px;
  border: 0;
  box-shadow: none;
}

.order-blacklist-table .el-card__body {
  padding: 0;
}

.order-blacklist-table .el-table {
  min-height: 440px;
}

.order-blacklist-table .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
}

.order-blacklist-drawer .side-form {
  max-width: 520px;
}

.order-blacklist-import-dialog .el-dialog__body {
  padding-top: 12px;
}

.payment-setting-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 128px);
  padding: 0 22px 24px;
  border-radius: 8px;
  background: #fff;
}

.payment-setting-page .product-subtabs {
  margin: 0 -22px 8px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.payment-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.payment-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.payment-summary-card span {
  color: #667085;
  font-size: 13px;
}

.payment-summary-card strong {
  color: #101828;
  font-size: 24px;
}

.payment-filter-card {
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.payment-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.payment-table-card,
.payment-form-card {
  border: 0;
  box-shadow: none;
}

.payment-table-card .el-card__body {
  padding: 0;
}

.payment-table-card .el-table {
  min-height: 500px;
}

.payment-table-card .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
}

.payment-form-card {
  border: 1px solid var(--erp-line);
}

.payment-form-card .el-card__body {
  padding: 20px 18px 18px;
}

.payment-form-card h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.payment-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px 88px;
}

.payment-presets span {
  color: #667085;
  font-size: 13px;
}

.template-manager-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 128px);
  padding: 0 22px 24px;
  border-radius: 8px;
  background: #fff;
}

.template-manager-page .product-subtabs {
  margin: 0 -22px 8px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.template-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.template-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.template-summary-card span {
  color: #667085;
  font-size: 13px;
}

.template-summary-card strong {
  color: #101828;
  font-size: 24px;
}

.template-filter-card {
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.template-workbench {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.template-list-card,
.template-form-card {
  min-height: 610px;
  border: 0;
  box-shadow: none;
}

.template-list-card .el-card__body {
  padding: 0;
}

.template-form-card {
  border: 1px solid var(--erp-line);
}

.template-form-card .el-card__body {
  padding: 20px 18px 18px;
}

.template-card {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--erp-text);
  text-align: left;
  cursor: pointer;
}

.template-card:hover,
.template-card.active {
  border-color: var(--erp-primary);
  background: #f8fbff;
}

.template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.template-card-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-card-meta,
.template-card-config,
.template-card-url {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--erp-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-card-config {
  color: #475467;
}

.template-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.template-form-head h3 {
  margin: 0;
  font-size: 17px;
}

.template-form-head p {
  margin: 6px 0 0;
  color: var(--erp-muted);
  font-size: 13px;
}

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

.template-config-form .wide {
  grid-column: 1 / -1;
}

.template-preset-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 18px 90px;
  color: var(--erp-muted);
  font-size: 13px;
}

.policy-manager-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 128px);
  padding: 0 22px 24px;
  border-radius: 8px;
  background: #fff;
}

.policy-manager-page .product-subtabs {
  margin: 0 -22px 8px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.policy-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.policy-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.policy-summary-card span {
  color: #667085;
  font-size: 13px;
}

.policy-summary-card strong {
  color: #101828;
  font-size: 24px;
}

.policy-filter-card {
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.policy-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 16px;
  align-items: start;
}

.policy-list-card,
.policy-form-card {
  min-height: 610px;
  border: 0;
  box-shadow: none;
}

.policy-list-card .el-card__body {
  padding: 0;
}

.policy-list-card .el-table {
  min-height: 560px;
}

.policy-list-card .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
}

.policy-filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-editor-drawer .el-drawer__body {
  overflow: auto;
  padding: 22px 26px;
}

.policy-editor-drawer .el-drawer__footer {
  padding: 14px 24px;
  border-top: 1px solid var(--erp-line);
}

.policy-page-tabs {
  display: flex;
  gap: 28px;
  margin: 4px 0 18px;
  border-bottom: 1px solid var(--erp-line);
}

.policy-page-tabs button {
  padding: 10px 0 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--erp-muted);
  cursor: pointer;
}

.policy-page-tabs button.active {
  border-bottom-color: var(--erp-primary);
  color: var(--erp-primary);
  font-weight: 600;
}

.policy-dialog-item + .policy-dialog-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--erp-line-soft);
}

.policy-form-card {
  border: 1px solid var(--erp-line);
}

.policy-form-card .el-card__body {
  padding: 20px 18px 18px;
}

.policy-form-head {
  margin-bottom: 18px;
}

.policy-form-head h3 {
  margin: 0;
  font-size: 17px;
}

.policy-form-head p {
  margin: 6px 0 0;
  color: var(--erp-muted);
  font-size: 13px;
}

.policy-template-list {
  display: grid;
  gap: 10px;
}

.policy-template-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.policy-template-item:hover {
  border-color: var(--erp-primary);
  background: #f8fafc;
}

.policy-template-item strong {
  font-size: 14px;
}

.policy-template-item span {
  color: var(--erp-muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.policy-config-form .wide {
  grid-column: 1 / -1;
}

.policy-preset-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 18px 86px;
  color: var(--erp-muted);
  font-size: 13px;
}

.navigation-manager-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 128px);
  padding: 0 22px 24px;
  border-radius: 8px;
  background: #fff;
}

.navigation-manager-page .product-subtabs {
  margin: 0 -22px 8px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.navigation-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.navigation-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.navigation-summary-card span {
  color: #667085;
  font-size: 13px;
}

.navigation-summary-card strong {
  color: #101828;
  font-size: 24px;
}

.navigation-filter-card {
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.navigation-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 16px;
  align-items: start;
}

.navigation-table-card,
.navigation-form-card {
  min-height: 610px;
  border: 0;
  box-shadow: none;
}

.navigation-table-card .el-card__body {
  padding: 0;
}

.navigation-table-card .el-table {
  min-height: 560px;
}

.navigation-table-card .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
}

.navigation-form-card {
  border: 1px solid var(--erp-line);
}

.navigation-form-card .el-card__body {
  padding: 20px 18px 18px;
}

.navigation-form-head {
  margin-bottom: 18px;
}

.navigation-form-head h3 {
  margin: 0;
  font-size: 17px;
}

.navigation-form-head p {
  margin: 6px 0 0;
  color: var(--erp-muted);
  font-size: 13px;
}

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

.navigation-config-form .wide {
  grid-column: 1 / -1;
}

.navigation-preset-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 18px 88px;
  color: var(--erp-muted);
  font-size: 13px;
}

.import-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.access-path-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 128px);
  padding: 0 22px 22px;
  border-radius: 8px;
  background: #fff;
}

.access-path-page .product-subtabs {
  margin: 0 -22px 8px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.access-path-filter {
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.path-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 4px 0;
}

.path-title-stack {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #101828;
  font-size: 16px;
}

.path-title-stack strong {
  font-weight: 700;
}

.path-parent {
  color: var(--erp-primary);
  cursor: pointer;
}

.path-separator {
  color: #98a2b3;
}

.path-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  box-shadow: none;
  color: #344054;
  font-size: 14px;
}

.access-path-table {
  min-height: 560px;
  border: 0;
  box-shadow: none;
}

.access-path-table .el-card__body {
  padding: 0;
}

.access-path-table .el-table {
  min-height: 480px;
}

.access-path-table .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
}

.access-detail-page .multiline-cell {
  display: block;
  white-space: pre-line;
  line-height: 1.45;
}

.access-detail-page .flow-more-v1 {
  padding-left: 4px;
}

.access-path-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.access-path-summary strong {
  color: #101828;
  font-size: 18px;
}

.access-path-summary span {
  color: #667085;
  font-size: 13px;
}

.path-step-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #fff;
}

.path-step-card p {
  margin: 0;
  color: #344054;
  word-break: break-all;
}

.path-step-card span {
  color: #667085;
  font-size: 12px;
}

.access-path-edit-drawer .side-form {
  max-width: 540px;
}

.access-log-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 128px);
  padding: 0 22px 18px;
  border-radius: 8px;
  background: #fff;
}

.access-log-page .product-subtabs {
  margin: 0 -22px 8px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.access-filter-card {
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.access-log-table {
  min-height: 610px;
  border: 0;
  box-shadow: none;
}

.access-log-table .el-card__body {
  padding: 0;
}

.access-log-table .el-table {
  min-height: 500px;
}

.access-log-table .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
}

.access-log-table strong,
.access-log-table .subline {
  display: block;
  line-height: 1.45;
}

.access-log-table .subline {
  color: #667085;
  font-size: 12px;
  word-break: break-all;
}

.access-path-drawer .el-drawer__header {
  margin-bottom: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--erp-line);
  color: var(--erp-text);
  font-weight: 800;
}

.access-path-drawer .el-drawer__body {
  padding: 22px;
  background: #fff;
}

.tbs-pagination-hint {
  display: flex;
  justify-content: flex-end;
  padding: 14px 12px;
  border-top: 1px solid var(--erp-line);
  color: #8b95a7;
  font-size: 13px;
}

.freight-remote-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 128px);
  padding: 0 22px 22px;
  border-radius: 8px;
  background: #fff;
}

.freight-remote-page .product-subtabs {
  margin: 0 -22px 8px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.freight-remote-page .settings-filter {
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.freight-table-card {
  min-height: 500px;
  border: 0;
  box-shadow: none;
}

.freight-table-card .el-card__body {
  padding: 0;
}

.freight-table-card .el-table {
  min-height: 440px;
}

.freight-table-card .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
}

.freight-import-dialog .el-dialog__body,
.freight-failure-dialog .el-dialog__body {
  padding-top: 12px;
}

.logistics-track-page {
  display: grid;
  gap: 14px;
}

.shipping-instruction-page {
  display: grid;
  gap: 14px;
}

.shipping-instruction-table {
  min-height: 430px;
}

.shipping-instruction-table .el-table {
  min-height: 360px;
}

.logistics-track-table {
  min-height: 350px;
}

.logistics-track-table .el-table {
  min-height: 300px;
}

.logistics-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 20px;
}

.mini-chart-card {
  min-height: 190px;
  padding: 16px 18px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #ffffff;
}

.mini-chart-card h3 {
  margin: 0 0 18px;
  font-size: 15px;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 18px;
  height: 116px;
  padding: 0 12px;
  border-bottom: 1px solid var(--erp-line);
}

.mini-bars span {
  display: block;
  width: 20px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #f26b72, #5f59ce);
}

.mini-bars.accent span {
  background: linear-gradient(180deg, #f3a33b, #3b8ff0);
}

.tbs-filterbar,
.tbs-actionbar {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tbs-filterbar .el-input,
.tbs-filterbar .el-select {
  --el-input-bg-color: #f8fafc;
  --el-fill-color-blank: #f8fafc;
}

.tbs-filterbar .tbs-inline-filter .el-input,
.tbs-filterbar .tbs-inline-filter .el-select,
.tbs-filterbar .tbs-inline-filter .el-input-number {
  width: 190px !important;
}

.tbs-filterbar .tbs-inline-filter .el-date-editor {
  width: 280px !important;
}

.tbs-actionbar {
  padding-top: 14px;
}

.order-filter .tbs-actionbar {
  padding-top: 16px;
}

.order-filter .tbs-order-actions {
  flex: 1 1 auto;
}

.order-filter .tbs-order-tools {
  flex: 0 0 auto;
}

.order-query-grid {
  display: grid;
  grid-template-columns: 166px 166px 172px 20px 172px 190px 180px;
  gap: 12px 14px;
  width: 100%;
  align-items: end;
}

.product-query-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) max-content;
  gap: 14px 16px;
  width: 100%;
  align-items: end;
}

.tbs-filterbar .product-query-grid {
  display: grid;
  flex: 1 1 100%;
}

.product-query-grid.expanded {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  align-items: start;
}

.product-query-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}

.product-query-actions.full-row {
  grid-column: 1 / -1;
}

.tbs-filter-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 600;
}

.tbs-filter-label {
  display: inline-block;
  white-space: nowrap;
}

.tbs-filter-field.no-label > span {
  visibility: hidden;
}

.tbs-filter-field .el-input,
.tbs-filter-field .el-select {
  width: 100%;
}

.button-tail-icon {
  margin-left: 4px;
  color: var(--erp-muted);
  font-size: 12px;
}

.product-row-more {
  margin-left: 6px;
  vertical-align: middle;
}

.row-more-btn {
  min-width: 18px;
  padding: 0;
  color: var(--erp-muted);
  font-size: 20px;
  line-height: 1;
}

.product-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 54px;
  padding: 10px 16px;
  border-top: 1px solid var(--erp-line-soft);
  background: #fff;
  color: var(--erp-muted);
  font-size: 13px;
}

.site-pagination {
  padding-right: 0;
}

.range-separator {
  color: var(--erp-muted);
  text-align: center;
}

.order-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.service-status-tabs {
  margin-bottom: 14px;
}

.service-main-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  line-height: 1.35;
}

.service-order-page .service-main-cell {
  gap: 0;
  max-height: 92px;
  overflow: hidden;
  line-height: 23px;
}

.service-order-page .service-main-cell strong,
.service-order-page .service-main-cell span,
.service-time-line {
  display: block;
  color: #666666;
  font-size: 12px;
  font-weight: 400;
  line-height: 23px;
}

.service-product-cell strong {
  color: var(--erp-primary);
}

.service-main-cell strong {
  color: var(--erp-text);
  font-size: 13px;
  font-weight: 600;
}

.service-main-cell span {
  color: var(--erp-muted);
  font-size: 12px;
}

.import-owner-line {
  display: block;
  color: var(--erp-muted);
  font-size: 12px;
}

.drop-arrow {
  margin-left: 4px;
  color: var(--erp-muted);
  font-size: 12px;
}

.order-row-expand {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 0;
  padding: 10px 12px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #fbfcfe;
}

.order-row-expand div {
  min-height: 54px;
  padding: 8px 12px;
  border-right: 1px solid var(--erp-line-soft);
}

.order-row-expand div:last-child {
  border-right: 0;
}

.order-row-expand span {
  display: block;
  color: var(--erp-muted);
  font-size: 12px;
}

.order-row-expand strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--erp-text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tbs-query-row {
  gap: 12px;
}

.tbs-expand.el-button.is-text {
  padding-inline: 6px;
  color: var(--erp-primary);
}

.status-tabs strong {
  min-width: 20px;
  font-size: 12px;
  text-align: right;
}

.subline {
  display: block;
  margin-top: 4px;
  color: var(--erp-muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-maintain .subline {
  max-height: 18px;
  overflow: hidden;
}

.order-maintain .tbs-row-expanded .subline {
  max-height: none;
  white-space: normal;
}

.order-maintain .order-row-expanded .subline {
  max-height: none;
  white-space: normal;
}

.order-cell-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  max-height: 92px;
  overflow: hidden;
  line-height: 23px;
}

.order-maintain .subline {
  max-height: 23px;
  margin-top: 0;
  line-height: 23px;
}

.order-maintain .order-region-stack,
.order-maintain .order-money-cell,
.order-maintain .order-product-link,
.order-maintain .order-delivery-link {
  line-height: 23px;
}

.order-cell-stack.expanded,
.tbs-row-expanded .order-cell-stack {
  max-height: none;
}

.order-inline-expand {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--erp-primary);
  font-size: 12px;
  cursor: pointer;
}

.order-maintain .tbs-reference-table td.el-table__cell > .cell {
  word-break: normal;
  overflow-wrap: normal;
}

.order-maintain .settings-table-card > .el-card__body,
.order-maintain .settings-table-card .el-table {
  width: 100%;
  min-width: 0;
}

.order-maintain .settings-table-card .el-table {
  max-width: 100%;
}

.order-number-line,
.order-operation-actions {
  display: flex;
  min-width: 0;
  align-items: center;
}

.order-number-line {
  gap: 5px;
}

.order-data-line,
.order-ip-line,
.order-location-line,
.order-address-line,
.order-sku-line,
.order-product-link,
.order-region-stack span,
.order-time-cell span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-number-line > .order-data-line {
  flex: 0 1 auto;
}

.order-copy-button.el-button.is-link {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
}

.order-copy-button .el-icon {
  font-size: 15px;
}

.order-ip-line,
.order-location-line {
  color: var(--erp-primary);
}

.order-order-no-cell .order-inline-expand {
  align-self: center;
}

.order-product-cell,
.order-delivery-cell,
.order-department-cell,
.order-time-cell {
  min-width: 0;
  line-height: 23px;
}

.order-delivery-link {
  display: -webkit-box;
  max-height: 46px !important;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-remark-text {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 23px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-remark-cell.expanded .order-remark-text,
.tbs-row-expanded .order-remark-text {
  display: block;
  overflow: visible;
  white-space: normal;
}

.order-time-cell {
  white-space: nowrap;
}

.order-operation-actions {
  gap: 10px;
  white-space: nowrap;
}

.order-operation-actions .el-button + .el-button,
.order-operation-actions .order-row-more {
  margin-left: 0;
}

.order-operation-column {
  box-shadow: -8px 0 14px -14px rgba(31, 45, 61, 0.5);
}

.order-product-link,
.order-delivery-link {
  color: var(--erp-primary);
  text-decoration: none;
}

.order-product-link:hover,
.order-delivery-link:hover {
  text-decoration: underline;
}

.order-money-cell {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.order-money-cell em {
  color: inherit;
  font-style: normal;
}

.order-region-stack {
  white-space: nowrap;
}

.order-row-more {
  margin-left: 4px;
}

.order-more-trigger.el-button {
  min-width: 20px;
  padding-inline: 2px;
  font-size: 18px;
}

.table-link-cell {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.table-link-cell.compact {
  color: #2563eb;
  font-size: 13px;
}

.table-link-cell:hover {
  text-decoration: underline;
}

.el-card.panel > .el-card__body > .el-table:first-child:last-child {
  margin: -1px;
  width: calc(100% + 2px);
}

.el-table .el-button.is-link {
  padding: 0 3px;
  font-weight: 700;
}

.el-table .el-tag {
  border-radius: 999px;
  font-weight: 700;
}

.el-pagination {
  margin-top: 12px;
  justify-content: flex-end;
}

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

.detail-grid .el-card,
.detail-grid article {
  border-radius: 8px;
}

.detail-grid p {
  margin: 8px 0 0;
  color: var(--erp-muted);
}

.system-workbench {
  display: grid;
  gap: 14px;
}

.department-workbench .el-tree-node__content {
  min-height: 40px;
}

.dept-node {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 12px;
}

.dept-node em {
  margin-left: 8px;
  color: var(--erp-muted);
  font-style: normal;
  font-size: 12px;
}

.product-editor {
  margin: -16px -18px 0;
  padding-bottom: 74px;
  background: #f7f8fc;
}

.product-editor-titlebar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 14px;
  border-bottom: 1px solid var(--erp-line);
  background: #fff;
}

.product-editor-titlebar span {
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 700;
}

.product-editor-titlebar h2 {
  margin: 4px 0 0;
  color: var(--erp-text);
  font-size: 20px;
  line-height: 1.2;
}

.product-editor-head {
  position: sticky;
  top: 76px;
  z-index: 9;
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0 26px;
  border-bottom: 1px solid var(--erp-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.product-editor-tab-title {
  flex: 0 0 auto;
  color: var(--erp-text);
  font-size: 15px;
  font-weight: 800;
}

.product-editor-head .el-tabs__header {
  margin-bottom: 0;
}

.product-editor-head .el-tabs__item {
  height: 54px;
  font-weight: 800;
}

.product-editor-body {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 20px 92px;
}

.product-editor-form {
  display: grid;
  gap: 14px;
}

.product-editor-form .form-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px 38px;
}

.product-editor-form .form-grid .wide {
  grid-column: 1 / -1;
}

.product-editor-form > .panel {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.editor-section :deep(.el-card__header),
.editor-section .el-card__header {
  border-bottom: 1px solid var(--erp-line-soft);
  padding: 22px 24px 12px;
}

.editor-section strong {
  margin-right: 14px;
  font-size: 16px;
}

.editor-section .el-form-item__label {
  color: #344054;
  font-weight: 700;
}

.editor-section .el-card__body {
  padding: 22px 24px 26px;
}

.editor-section span {
  color: var(--erp-muted);
  font-size: 13px;
}

.product-anchor {
  position: sticky;
  top: 146px;
  overflow: hidden;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(95, 99, 214, 0.12);
}

.product-anchor a {
  display: block;
  min-height: 44px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--erp-line-soft);
  color: var(--erp-text);
  font-size: 14px;
  text-decoration: none;
}

.product-anchor a:first-child {
  background: #f1efff;
  color: var(--erp-blue);
  font-weight: 800;
}

.product-anchor a:hover {
  background: #f4f8ff;
  color: var(--erp-blue);
}

.muted-option {
  float: right;
  margin-left: 18px;
  color: var(--erp-muted);
  font-size: 12px;
}

.inline-row {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.purchase-links {
  align-items: stretch;
}

.template-card-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.template-picker-inline {
  display: grid;
  width: 100%;
  grid-template-columns: max-content;
  gap: 10px;
  align-items: center;
}

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

.template-drawer-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  height: calc(100vh - 126px);
  min-height: 560px;
  padding: 0 24px;
}

.template-drawer-side {
  display: grid;
  align-content: start;
  gap: 34px;
  padding: 22px 14px;
  border: 1px solid #dfe4ee;
  border-radius: 6px;
  background: #ffffff;
}

.template-drawer-side section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.template-drawer-side h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: var(--erp-text);
  font-size: 18px;
  font-weight: 700;
}

.template-drawer-side section:first-child h4::before {
  width: 24px;
  height: 24px;
  background:
    radial-gradient(circle at 7px 7px, #68c7e5 0 5px, transparent 6px),
    radial-gradient(circle at 21px 7px, #ffc94f 0 5px, transparent 6px),
    radial-gradient(circle at 7px 21px, #68c7e5 0 5px, transparent 6px),
    radial-gradient(circle at 21px 21px, #68c7e5 0 5px, transparent 6px);
  content: "";
}

.template-intro-panel h4::before {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #635bd8;
  color: #ffffff;
  content: "+";
  font-size: 18px;
  font-weight: 700;
}

.template-intro-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.template-intro-panel dt {
  color: var(--erp-text);
  font-size: 13px;
  font-weight: 700;
}

.template-intro-panel dd {
  margin: 0 0 6px;
  color: var(--erp-muted);
  font-size: 13px;
  line-height: 1.5;
}

.template-drawer-main {
  min-width: 0;
  overflow: auto;
  padding-right: 12px;
}

.b-product-filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.b-product-filter-row > span {
  color: var(--erp-text);
  font-size: 13px;
  font-weight: 600;
}

.b-product-select-dialog {
  max-height: 690px;
  display: flex;
  flex-direction: column;
}

.b-product-select-dialog .el-dialog__body {
  overflow: auto;
}

.b-product-select-dialog .b-product-table {
  max-height: 520px;
  overflow: auto;
}

.b-product-select-dialog .b-product-table .el-table__row {
  cursor: pointer;
}

.b-product-dialog-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  min-height: 560px;
}

.b-product-category-panel {
  padding: 12px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #fff;
  overflow: auto;
}

.b-product-category-panel h4 {
  margin: 0 0 10px;
  color: var(--erp-text);
  font-size: 14px;
}

.b-product-category-panel button {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--erp-text);
  text-align: left;
  cursor: pointer;
}

.b-product-category-panel button.active,
.b-product-category-panel button:hover {
  background: #eef4ff;
  color: var(--erp-blue);
  font-weight: 700;
}

.b-product-table-panel {
  min-width: 0;
}

.template-filter-groups {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #fff;
}

.template-filter-row {
  display: grid;
  align-items: center;
  gap: 16px 22px;
  color: #525966;
  font-size: 14px;
}

.template-filter-row strong {
  grid-column: 1 / -1;
  color: var(--erp-text);
  font-size: 16px;
  font-weight: 700;
}

.template-filter-row button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4e5562;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
}

.template-filter-row button.active,
.template-filter-row button:hover {
  color: #625dd8;
  font-weight: 700;
}

.template-shape-row {
  grid-template-columns: repeat(3, max-content);
}

.template-feature-row {
  grid-template-columns: repeat(2, max-content);
  margin-top: 22px;
}

.template-shape-row button::before {
  width: 18px;
  height: 18px;
  border: 2px solid #d9dde8;
  border-radius: 50%;
  background: #ffffff;
  content: "";
}

.template-shape-row button.active::before {
  border-color: #625dd8;
  background: radial-gradient(circle, #625dd8 0 5px, #ffffff 6px);
}

.template-feature-row button::before {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #cfd5e2;
  border-radius: 3px;
  background: #ffffff;
  color: #ffffff;
  content: "";
  font-size: 14px;
  line-height: 1;
}

.template-feature-row button.active::before {
  border-color: #625dd8;
  background: #625dd8;
  content: "✓";
}

.template-drawer-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  justify-content: start;
  align-content: start;
  gap: 28px 30px;
}

.template-thumb {
  display: block;
  height: 52px;
  margin-bottom: 10px;
  border: 1px dashed #cdd8ea;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--erp-muted);
  font-size: 18px;
  line-height: 50px;
  text-align: center;
}

.template-option {
  position: relative;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 6px;
  background: #ffffff;
  color: var(--erp-text);
  text-align: center;
  cursor: pointer;
}

.template-option.active {
  border-color: #625dd8;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(98, 93, 216, 0.14);
}

.template-option strong,
.template-option span,
.template-option em {
  display: block;
}

.template-option strong {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0 10px;
  border-top: 1px solid #eef1f6;
  background: #f8f9fb;
  color: #323744;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.template-preview-frame {
  width: 100%;
  aspect-ratio: 200 / 378;
  height: auto;
  margin: 0;
  background: #f6f7fb;
}

.template-preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.template-selected-corner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: none !important;
  width: 0;
  height: 0;
  border-top: 30px solid #4cc13f;
  border-left: 30px solid transparent;
}

.template-selected-corner::after {
  position: absolute;
  top: -28px;
  right: 4px;
  width: 12px;
  height: 7px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  content: "";
  transform: rotate(45deg);
}

.template-option.active .template-selected-corner {
  display: block !important;
}

.contact-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px 14px;
}

.contact-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.contact-grid label span {
  color: var(--erp-text);
  font-size: 13px;
  font-weight: 600;
}

.google-conversion-form {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px 18px;
}

.google-conversion-form .el-form-item {
  margin-bottom: 0;
}

.google-conversion-form .el-form-item.wide {
  grid-column: 1 / -1;
}

.google-aw-row,
.google-conversion-pair {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.google-conversion-pair {
  grid-template-columns: minmax(0, 220px) auto minmax(0, 1fr);
}

.google-aw-row span,
.google-conversion-pair > span {
  color: var(--erp-text);
  font-weight: 600;
}

.google-aw-row a {
  white-space: nowrap;
  color: var(--erp-blue);
  font-size: 13px;
  text-decoration: none;
}

.google-event-name {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--erp-text);
  font-size: 14px;
}

.form-field-settings {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 12px 24px;
  padding: 8px 0;
}

.form-field-settings span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  color: var(--erp-text);
}

.purchase-link-list {
  display: grid;
  gap: 10px;
}

.purchase-link-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.product-upload-stack {
  display: grid;
  gap: 10px;
}

.product-upload-row {
  display: grid;
  grid-template-columns: 112px minmax(260px, 1fr);
  gap: 14px;
  align-items: start;
}

.product-upload-card {
  width: 104px;
  height: 104px;
  border: 1px dashed #c9d4e5;
  border-radius: 6px;
  background: #fbfdff;
  color: var(--erp-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.product-upload-card span {
  font-size: 28px;
  line-height: 1;
  color: var(--erp-primary);
}

.product-upload-card strong {
  font-size: 13px;
  font-weight: 500;
}

.upload-meta {
  display: grid;
  gap: 8px;
  color: var(--erp-muted);
  font-size: 12px;
}

.upload-meta p,
.upload-meta small,
.product-upload-stack small {
  margin: 0;
  color: var(--erp-muted);
}

.inline-action-field {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  width: 100%;
}

.inline-action-field.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-edit-dialog .el-drawer__body {
  padding-top: 8px;
}

.order-edit-section {
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.order-edit-section + .order-edit-section {
  margin-top: 14px;
}

.order-edit-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--erp-text);
}

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

.order-edit-section-head h3 {
  margin-bottom: 0;
}

.order-edit-dialog .detail-content {
  min-width: 0;
}

.order-product-name-form {
  margin-bottom: 10px;
}

.order-edit-total-list {
  display: grid;
  justify-content: end;
  gap: 10px;
  margin-top: 14px;
}

.order-edit-total-list label {
  display: grid;
  grid-template-columns: 92px 36px 128px;
  align-items: center;
  gap: 6px;
  color: var(--erp-text);
  font-size: 13px;
}

.order-edit-total-list label span {
  text-align: right;
}

.order-edit-total-list em {
  color: var(--erp-text);
  font-style: normal;
  text-align: center;
}

.order-edit-total-list .el-input-number {
  width: 128px;
}

.order-detail-total-list {
  display: grid;
  justify-content: end;
  gap: 10px;
  margin-top: 14px;
}

.order-detail-total-list label {
  display: grid;
  grid-template-columns: 92px 36px 128px;
  align-items: center;
  gap: 6px;
  color: var(--erp-text);
  font-size: 13px;
}

.order-detail-total-list label span {
  text-align: right;
}

.order-detail-total-list em {
  color: var(--erp-text);
  font-style: normal;
  text-align: center;
}

.order-detail-total-list strong {
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--erp-line);
  border-radius: 4px;
  background: #f7f8fb;
  font-weight: 500;
}

.table-upload-field {
  display: grid;
  grid-template-columns: 74px minmax(96px, 1fr);
  gap: 8px;
  align-items: center;
}

.mini-upload-card {
  width: 68px;
  height: 60px;
  border: 1px dashed #c9d4e5;
  border-radius: 6px;
  background: #fbfdff;
  color: var(--erp-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.mini-upload-card span {
  font-size: 18px;
  line-height: 1;
  color: var(--erp-primary);
}

.mini-upload-card strong {
  font-size: 11px;
  font-weight: 500;
}

.content-block-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.content-block-row .el-textarea {
  grid-column: 1 / -1;
}

.rich-editor-shell {
  border: 1px solid var(--erp-border);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.rich-editor-title {
  padding: 10px;
  border-bottom: 1px solid var(--erp-border);
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--erp-border);
  background: #f8fafc;
}

.rich-editor-toolbar button {
  height: 28px;
  border: 1px solid #d8e1ef;
  border-radius: 4px;
  background: #fff;
  color: var(--erp-text);
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
}

.rich-editor-shell .el-textarea__inner {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rich-editor-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-top: 1px solid var(--erp-border);
  color: var(--erp-muted);
  font-size: 12px;
}

.product-editor-footer {
  position: fixed;
  right: 22px;
  bottom: 0;
  left: 254px;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--erp-line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

/* Double Horse aligned product editor */
body.product-editor-active .main {
  padding: 0;
}

body.product-editor-active .tbs-page-heading {
  display: none;
}

.product-editor {
  min-height: calc(100vh - 48px);
  margin: 0;
  padding: 24px 0 78px;
  background: #f6f7fb;
}

.product-editor + * {
  display: none;
}

.product-editor-head {
  position: static;
  z-index: auto;
  min-height: 64px;
  margin: 0 166px 0 26px;
  padding: 0 38px;
  gap: 34px;
  border-bottom: 1px solid #ececf4;
  border-radius: 6px 6px 0 0;
  background: #ffffff;
  box-shadow: none;
}

.product-editor-head.no-anchor-head {
  margin-right: 26px;
}

.product-editor-tab-title {
  display: none;
  min-width: 0;
  color: #202331;
  font-size: 15px;
  font-weight: 700;
}

.product-editor-head .el-tabs {
  --el-color-primary: var(--erp-blue);
}

.product-editor-head .el-tabs__nav-wrap::after {
  height: 0;
}

.product-editor-head .el-tabs__active-bar {
  display: none;
}

.product-editor-head .el-tabs__item {
  height: 64px;
  padding: 0 38px 0 0;
  color: #303343;
  font-size: 16px;
  font-weight: 500;
}

.product-editor-head .el-tabs__item.is-active {
  color: var(--erp-blue);
  font-weight: 600;
}

.product-editor-body {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 184px;
  gap: 56px;
  align-items: start;
  max-width: 1090px;
  margin: 0 auto;
  padding: 0 26px 108px;
}

.product-editor-body.no-anchor {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin: 0;
}

.product-editor-body.no-anchor .product-editor-form {
  width: 100%;
}

.product-editor-body.no-anchor .product-editor-form > .panel {
  border-radius: 6px;
}

.product-editor-form {
  display: grid;
  min-width: 0;
  gap: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.product-editor-form > .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-editor-form > .panel:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.product-editor-form > .panel:last-child {
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.editor-section {
  scroll-margin-top: 112px;
}

.editor-section + .editor-section {
  border-top: 12px solid #f6f7fb;
}

.editor-section :deep(.el-card__header),
.editor-section .el-card__header {
  min-height: 54px;
  padding: 18px 30px 13px;
  border-bottom: 1px solid #ececf4;
  background: #ffffff;
}

.editor-section strong {
  margin-right: 12px;
  color: #202331;
  font-size: 18px;
  font-weight: 600;
}

.editor-section span {
  color: #777986;
  font-size: 14px;
}

.editor-section .el-card__body {
  padding: 24px 30px 34px;
}

.product-editor-form .form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 48px;
}

.product-editor-form .form-grid .wide {
  grid-column: 1 / -1;
}

.editor-section .el-form-item {
  margin-bottom: 0;
}

.editor-section .el-form-item__label {
  min-height: 24px;
  padding-bottom: 8px;
  color: #26314d;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.editor-section .el-form-item.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label::before,
.editor-section .el-form-item.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label-wrap > .el-form-item__label::before {
  color: #ed5c70;
}

.editor-section .el-input__wrapper,
.editor-section .el-select__wrapper,
.editor-section .el-cascader,
.editor-section .el-input-number,
.editor-section .el-textarea__inner {
  width: 100%;
}

.editor-section .el-input__wrapper,
.editor-section .el-select__wrapper,
.editor-section .el-textarea__inner,
.editor-section .el-input-number .el-input__wrapper {
  min-height: 42px;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #dfe4ee inset;
}

.editor-section .el-input__wrapper:hover,
.editor-section .el-select__wrapper:hover,
.editor-section .el-textarea__inner:hover,
.editor-section .el-input-number .el-input__wrapper:hover {
  box-shadow: 0 0 0 1px #c9c5f5 inset;
}

.field-tip {
  display: block;
  margin-top: 10px;
  color: #8991a4;
  font-size: 13px;
  line-height: 1.9;
}

.product-anchor {
  position: fixed;
  top: 170px;
  right: 24px;
  overflow: hidden;
  width: 184px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(49, 47, 84, 0.14);
}

.product-anchor a {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 0 18px;
  border-bottom: 0;
  color: #565a66;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
}

.product-anchor a:first-child {
  background: #ffffff;
  color: #565a66;
  font-weight: 400;
}

.product-anchor a.active,
.product-anchor a:hover {
  background: #e8f4f2;
  color: var(--erp-primary);
  font-weight: 500;
}

.purchase-link-list {
  display: grid;
  gap: 12px;
}

.purchase-link-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.template-picker-inline {
  grid-template-columns: minmax(180px, max-content);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.contact-grid label {
  display: grid;
  gap: 8px;
}

.contact-grid label span {
  color: #5e6472;
  font-size: 13px;
}

.form-field-settings-table {
  width: 100%;
}

.product-face-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.product-face-switch button {
  min-width: 98px;
  height: 34px;
  border: 1px solid #dfe4ee;
  border-radius: 4px;
  background: #ffffff;
  color: #3f4656;
  cursor: pointer;
  font-weight: 600;
}

.product-face-switch button.active {
  border-color: var(--erp-primary);
  background: #e8f4f2;
  color: var(--erp-primary);
}

.product-face-switch span {
  color: #7b8292;
  font-size: 13px;
}

.product-upload-stack {
  display: grid;
  width: 100%;
  gap: 14px;
}

.product-upload-row {
  display: grid;
  grid-template-columns: 104px minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.product-upload-card {
  display: flex;
  width: 120px;
  height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #cfd5e3;
  border-radius: 6px;
  background: #fafbfe;
  color: #777986;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
}

.product-upload-card input,
.mini-upload-card input,
.rich-upload-tool input {
  display: none;
}

.product-upload-card img,
.mini-upload-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-upload-card.has-image {
  border-color: transparent;
  background: transparent;
}

.product-upload-card span {
  color: #8b92a3;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.product-upload-card strong {
  display: block;
  width: 100%;
  margin: 0;
  max-width: 100%;
  color: #242936;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.product-upload-card img ~ strong,
.mini-upload-card img ~ strong {
  display: none;
}

.upload-meta {
  display: grid;
  gap: 9px;
  padding-top: 1px;
  color: #7b8292;
  font-size: 13px;
  line-height: 1.6;
}

.upload-meta p,
.upload-meta small,
.product-upload-stack small {
  margin: 0;
  color: #7b8292;
  font-size: 13px;
}

.upload-meta p::before,
.upload-meta small::before,
.product-upload-stack > small::before {
  content: "• ";
}

.rich-editor-shell {
  width: min(790px, 100%);
  border: 1px solid #d7dbe5;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
}

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

.rich-editor-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
}

.rich-editor-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px;
  padding: 3px;
  border: 1px solid #dfe4ee;
  border-radius: 6px;
  background: #f6f7fb;
}

.rich-editor-mode-switch button {
  height: 28px;
  min-width: 58px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #5f6676;
  cursor: pointer;
  font-size: 12px;
}

.rich-editor-mode-switch button.active {
  background: var(--erp-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.22);
}

.rich-editor-toolbar {
  display: flex;
  min-height: 188px;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px 10px;
  padding: 12px 14px 14px;
  border-bottom: 1px solid #d7dbe5;
  background: #ffffff;
}

.rich-tool-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
  border-right: 1px solid #e8ebf2;
}

.rich-tool-group:last-child {
  border-right: 0;
}

.rich-editor-toolbar button {
  display: inline-flex;
  height: 36px;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #ffffff;
  color: #242936;
  font-size: 16px;
  cursor: pointer;
}

.rich-editor-toolbar button:hover,
.rich-upload-tool:hover {
  border-color: #a8d0ca;
  background: #edf7f5;
  color: var(--erp-primary);
}

.rich-editor-toolbar button.text-tool {
  min-width: 90px;
  border: 1px solid #cfd5e3;
  font-size: 14px;
}

.rich-editor-toolbar button.icon-tool {
  font-weight: 600;
}

.rich-upload-tool {
  display: inline-flex;
  height: 36px;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #242936;
  cursor: pointer;
  font-size: 16px;
}

.rich-editor-shell .el-textarea__inner {
  min-height: 640px !important;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  resize: vertical;
}

.rich-editor-area {
  min-height: 640px;
  padding: 18px 20px;
  border: 0;
  background: #ffffff;
  color: #202331;
  font-size: 14px;
  line-height: 1.8;
  outline: none;
  overflow: auto;
}

.rich-editor-area:focus {
  box-shadow: inset 0 0 0 1px #a8d0ca;
}

.rich-editor-area:empty::before {
  content: attr(data-placeholder);
  color: #a8adb8;
  pointer-events: none;
}

.rich-editor-area img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto;
}

.rich-editor-area h2 {
  margin: 12px 0;
  color: #202331;
  font-size: 20px;
  line-height: 1.4;
}

.rich-editor-area blockquote {
  margin: 12px 0;
  padding: 8px 14px;
  border-left: 3px solid var(--erp-primary);
  background: #f2f8f7;
  color: #4b5263;
}

.rich-editor-area pre {
  margin: 12px 0;
  padding: 12px;
  border-radius: 4px;
  background: #f6f7fb;
  white-space: pre-wrap;
}

.rich-editor-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-top: 1px solid #d7dbe5;
  color: #8a8f9f;
  font-size: 13px;
}

.product-editor-footer {
  right: 0;
  left: 112px;
  z-index: 1200;
  min-height: 80px;
  padding: 18px 38px;
  border-top: 12px solid #f6f7fb;
  background: #ffffff;
  box-shadow: none;
}

.product-editor-footer .el-button {
  min-width: 72px;
  height: 42px;
}

.product-editor-footer .el-button--primary {
  min-width: 86px;
  background: var(--erp-primary);
  border-color: var(--erp-primary);
}

.product-editor-footer .el-button--primary + .el-button--primary {
  min-width: 120px;
}

.product-bundle-form,
.product-editor-body.no-anchor .product-editor-form {
  border-radius: 8px;
}

.product-editor-body.no-anchor .editor-section .el-card__body {
  overflow-x: auto;
}

.product-editor-body.no-anchor .editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px 24px;
  margin-bottom: 18px;
}

.spec-basic-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr);
  gap: 26px 92px;
  margin-bottom: 28px;
}

.spec-groups {
  display: grid;
  gap: 18px;
}

.spec-group-panel {
  position: relative;
}

.spec-group-panel + .spec-group-panel {
  padding-top: 20px;
  border-top: 1px solid var(--erp-line);
}

.spec-image-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-basic-grid label {
  display: grid;
  min-width: 0;
  gap: 10px;
  color: #2e3442;
  font-size: 14px;
  font-weight: 600;
}

.spec-basic-grid label span em,
.spec-option-head em,
.bundle-edit-head em,
.required-title::before {
  margin-right: 4px;
  color: #ed5c70;
  font-style: normal;
}

.spec-basic-grid .el-input-number {
  width: 100%;
}

.spec-switch-field {
  align-content: start;
}

.spec-switch-field small {
  color: #a5aab6;
  font-size: 13px;
  font-weight: 400;
}

.spec-option-panel {
  margin: 10px -2px 28px;
  padding: 26px 22px 24px;
  background: #f6f7f9;
}

.spec-option-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr) minmax(250px, 1.2fr);
  gap: 28px 46px;
  align-items: start;
}

.spec-option-head {
  margin-bottom: 12px;
}

.spec-option-head strong,
.bundle-edit-head strong {
  color: #2e3442;
  font-size: 14px;
  font-weight: 600;
}

.spec-option-name-row {
  margin-bottom: 20px;
}

.spec-image-toggle {
  display: flex;
  min-height: 40px;
  align-items: center;
}

.spec-value-row + .spec-value-row {
  margin-top: 18px;
}

.spec-image-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tbs-link-add {
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--erp-primary);
  cursor: pointer;
  font-size: 14px;
}

.outline-add-btn {
  min-width: 108px;
  height: 40px;
  border: 1px solid var(--erp-primary);
  border-radius: 4px;
  background: #ffffff;
  color: var(--erp-primary);
  font-weight: 600;
}

.product-editor-body.no-anchor .compact-toolbar {
  justify-content: flex-start;
  margin: 8px 0 16px;
  padding: 0;
}

.product-spec-detail-title {
  margin: 22px 0 12px;
  color: #202331;
  font-size: 16px;
  font-weight: 600;
}

.required-title::before {
  content: "*";
}

.bundle-edit-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(180px, 1fr)) 72px 92px 32px;
  justify-content: stretch;
  gap: 14px 20px;
  align-items: start;
}

.bundle-edit-head {
  margin-bottom: 14px;
}

.bundle-edit-row + .bundle-edit-row {
  margin-top: 22px;
}

.bundle-edit-row .el-input-number {
  width: 100%;
}

.bundle-image-cell {
  display: grid;
  gap: 8px;
}

.bundle-image-cell .mini-upload-card {
  width: 60px;
  height: 60px;
  flex-direction: column;
  gap: 0;
  border-style: dashed;
  border-color: #cfd5e3;
  background: #ffffff;
}

.bundle-image-cell .mini-upload-card span {
  font-size: 30px;
}

.bundle-image-cell .mini-upload-card strong {
  display: none;
}

.bundle-edit-row > .el-switch {
  min-height: 60px;
}

.bundle-edit-row > .el-button {
  margin-top: 17px;
}

.bundle-grid-footer {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(180px, 1fr)) 72px 92px 32px;
  justify-content: stretch;
  gap: 14px 20px;
  margin-top: 8px;
}

.bundle-grid-footer small {
  grid-column: 6 / 9;
  color: #a5aab6;
  font-size: 12px;
  white-space: nowrap;
}

.bundle-add-link {
  margin-top: 26px;
}

.bundle-detail-tabs {
  display: flex;
  gap: 46px;
  margin: 16px 0 18px;
  border-bottom: 1px solid #edf0f5;
}

.bundle-detail-tabs button {
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #333843;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.bundle-detail-tabs button.active {
  border-bottom-color: var(--erp-primary);
  color: var(--erp-primary);
}

.bundle-detail-table {
  display: grid;
  gap: 0;
}

.bundle-detail-head,
.bundle-detail-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) 110px minmax(180px, 0.9fr) minmax(220px, 1fr) 120px;
  align-items: center;
  gap: 18px;
}

.bundle-detail-head {
  min-height: 58px;
  padding: 0 14px;
  background: #f6f7f9;
  color: #2e3442;
  font-size: 14px;
  font-weight: 600;
}

.bundle-detail-row {
  min-height: 80px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f5;
  color: #606774;
}

.bundle-cover {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f2f5;
}

.bundle-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-product-select-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 24px;
}

.bundle-product-select-row .outline-add-btn {
  width: auto;
  justify-self: start;
  padding: 0 18px;
}

.product-picker-pagination {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

/* Wide basic-info layout aligned to Double Horse editor */
.product-editor-body:not(.no-anchor) {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: none;
  margin: 0;
  padding-right: 166px;
  padding-left: 26px;
}

.product-editor-body:not(.no-anchor) .product-editor-form {
  border-radius: 0;
  background: transparent;
}

.product-editor-body:not(.no-anchor) .editor-section {
  border-radius: 6px;
  background: #ffffff;
}

.product-editor-body:not(.no-anchor) .editor-section:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.product-editor-body:not(.no-anchor) .editor-section + .editor-section {
  margin-top: 16px;
  border-top: 0;
}

.product-editor-body:not(.no-anchor) .editor-section .el-card__header {
  min-height: 46px;
  padding: 18px 20px 8px;
  border-bottom: 0;
}

.product-editor-body:not(.no-anchor) .editor-section strong {
  font-size: 16px;
  font-weight: 500;
}

.product-editor-body:not(.no-anchor) .editor-section .el-card__body {
  padding: 18px 20px 28px;
}

.product-editor-body:not(.no-anchor) .form-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px 70px;
}

.product-editor-body:not(.no-anchor) .form-grid .wide {
  grid-column: 1 / -1;
}

.product-editor-body:not(.no-anchor) .field-tip {
  margin-top: 6px;
  color: #b0b4bf;
  font-size: 12px;
  line-height: 1.6;
}

.product-editor-body:not(.no-anchor) .product-anchor {
  right: 18px;
  width: 128px;
}

.product-editor-body:not(.no-anchor) .editor-section .el-form-item__label {
  color: #3f4350;
  font-weight: 500;
}

.product-editor-body:not(.no-anchor) .editor-section .el-input__wrapper,
.product-editor-body:not(.no-anchor) .editor-section .el-select__wrapper,
.product-editor-body:not(.no-anchor) .editor-section .el-cascader,
.product-editor-body:not(.no-anchor) .editor-section .el-input-number .el-input__wrapper {
  min-height: 34px;
}

#business .product-face-switch {
  display: none;
}

#base .purchase-link-list {
  max-width: none;
  gap: 14px;
}

#base .purchase-link-row {
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) 40px;
  gap: 70px;
}

#base .purchase-link-row .el-button {
  justify-self: start;
}

#template .template-picker-inline {
  display: flex;
  width: 100%;
}

#template .template-picker-inline .template-select-trigger {
  min-width: 88px;
  max-width: 280px;
  height: 34px;
  margin: 0;
  padding: 0 16px;
  border-color: #316b78;
  border-radius: 4px;
  background: #316b78;
  color: #ffffff;
  font-weight: 500;
  box-shadow: none;
}

#template .template-picker-inline .template-select-trigger:hover,
#template .template-picker-inline .template-select-trigger:focus-visible {
  border-color: #285b66;
  background: #285b66;
  color: #ffffff;
}

#template .template-select-trigger span {
  overflow: hidden;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#template .form-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  align-items: start;
}

#template .template-select-item {
  grid-column: 1 / -1;
}

#template .template-policy-item {
  grid-column: 1;
  grid-row: 2;
}

#template .template-countdown-item {
  grid-column: 2;
  grid-row: 2;
}

#template .template-sales-item {
  grid-column: 3;
  grid-row: 2;
}

#template .template-contact-item,
#template .template-form-setting-item {
  align-self: start;
}

#template .template-contact-item {
  grid-column: 1;
  grid-row: 3;
}

#template .template-form-setting-item {
  grid-column: 2;
  grid-row: 3;
}

#template .template-online-item {
  grid-column: 1;
  grid-row: 4;
}

#template .template-home-item {
  grid-column: 2;
  grid-row: 4;
}

#template .template-coupon-item {
  grid-column: 2;
  grid-row: 5;
}

#template .contact-grid {
  display: grid;
  grid-template-columns: 96px minmax(320px, 1fr);
  width: 100%;
  max-width: 560px;
  gap: 0;
  border: 1px solid #edf0f5;
}

#template .contact-grid label {
  display: contents;
}

#template .contact-grid label span {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
  background: #fbfbfc;
  color: #4a4f5c;
}

#template .contact-grid .el-input {
  border-bottom: 1px solid #edf0f5;
}

#template .contact-grid .el-input__wrapper,
#template .contact-grid .el-input__wrapper:hover {
  min-height: 32px;
  border-radius: 0;
  box-shadow: none;
}

#template .form-field-settings-table {
  width: 100%;
  max-width: 560px;
}

#template .form-field-settings-table .el-table__cell {
  padding: 5px 0;
}

#template .form-field-settings-table .cell {
  font-size: 12px;
}

#logistics .form-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

#logistics .form-grid .wide {
  grid-column: 1 / -1;
}

#logistics .field-tip {
  margin-top: 4px;
}

#ads .inline-action-field {
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
}

#content .content-media-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

#content .el-form-item {
  align-content: start;
  margin-bottom: 0;
}

#content .content-upload-item {
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f2f6;
}

#content .content-upload-item .el-form-item__label,
#content .wide .el-form-item__label {
  min-height: 28px;
  color: #222736;
  font-size: 16px;
  font-weight: 700;
}

#content .content-upload-item .el-form-item__content,
#content .wide .el-form-item__content {
  display: block;
  min-width: 0;
}

#content .product-upload-row {
  display: flex;
  min-width: 0;
  gap: 18px;
  align-items: flex-start;
}

#content .product-upload-stack {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: flex-start;
}

#content .product-upload-stack .product-upload-row {
  display: block;
  margin-bottom: 0;
}

#content .product-upload-card {
  width: 126px;
  height: 112px;
  margin-bottom: 0;
  gap: 8px;
  background: #fbfcff;
}

#content .product-upload-add-card {
  flex: 0 0 auto;
}

#content .upload-meta {
  display: block;
  min-width: 0;
  max-width: 360px;
  padding: 0;
}

#content .product-upload-stack .upload-meta {
  display: none;
}

#content .upload-meta .el-input,
#content .upload-meta .el-button {
  display: none;
}

#content .upload-meta p,
#content .upload-meta small,
#content .product-upload-stack > small {
  display: block;
  margin-top: 3px;
  color: #a0a7b5;
  font-size: 12px;
  line-height: 1.65;
}

#content .product-upload-stack > small {
  flex: 1 0 100%;
}

#content .rich-editor-shell {
  width: 100%;
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(24, 32, 56, 0.03);
}

#content .rich-editor-topbar {
  grid-template-columns: minmax(260px, 1fr) auto;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f5;
  background: #ffffff;
}

#content .rich-editor-image-input {
  display: none;
}

#content .rich-editor-ueditor-wrap {
  min-width: 0;
}

#content .rich-editor-shell .edui-editor {
  width: 100% !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#content .rich-editor-shell .edui-editor-toolbarbox {
  box-shadow: none;
}

#content .rich-editor-shell .edui-editor-toolbarboxouter {
  border: 0;
  border-bottom: 1px solid #dfe4ee;
  background: #fbfcff;
}

#content .rich-editor-shell .edui-editor-iframeholder {
  width: 100% !important;
  min-height: 460px;
}

#content.editor-section {
  margin-bottom: 42px;
}

#content .rich-editor-shell {
  margin-bottom: 0;
}

#content .rich-editor-shell .el-textarea__inner,
#content .rich-source-editor .el-textarea__inner {
  min-height: 500px !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.7;
}

@media (max-width: 1280px) {
  .product-editor-body:not(.no-anchor) {
    padding-right: 148px;
  }

  .product-editor-head {
    margin-right: 148px;
  }

  .product-editor-head.no-anchor-head {
    margin-right: 26px;
  }

  .product-editor-body:not(.no-anchor) .form-grid {
    gap: 22px 40px;
  }
}

.table-upload-field {
  display: grid;
  grid-template-columns: 74px minmax(96px, 1fr);
  gap: 8px;
  align-items: center;
}

.mini-upload-card {
  display: flex;
  width: 116px;
  height: 38px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid #d8ddff;
  border-radius: 4px;
  background: #ffffff;
  color: var(--erp-primary);
  cursor: pointer;
  text-align: center;
}

.mini-upload-card span {
  color: var(--erp-primary);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.mini-upload-card strong {
  display: block;
  max-width: 100%;
  color: var(--erp-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.field-tip {
  display: block;
  margin-top: 6px;
  color: #98a2b3;
  font-size: 12px;
}

.product-editor .field-tip {
  margin-top: 10px;
  color: #8991a4;
  font-size: 13px;
  line-height: 1.9;
}

@media (max-width: 1200px) {
  .product-editor-head {
    left: 112px;
    padding: 0 24px;
  }

  .product-editor-body {
    grid-template-columns: minmax(0, 1fr) 184px;
    gap: 24px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .product-editor-form .form-grid {
    gap: 20px 28px;
  }
}

.inner-tabs {
  margin-bottom: 14px;
}

.system-side-drawer .el-drawer__header {
  margin-bottom: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--erp-line);
  color: var(--erp-text);
  font-weight: 800;
}

.system-side-drawer .el-drawer__body {
  padding: 22px;
}

.system-side-drawer .el-drawer__footer {
  padding: 14px 22px;
  border-top: 1px solid var(--erp-line);
}

.role-permission-page {
  min-height: calc(100vh - 128px);
  background: #f5f6fb;
  padding: 0;
}

.user-org-page {
  min-height: calc(100vh - 128px);
  background: #f5f6fb;
}

.role-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 10px;
}

.role-tabs button {
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--erp-line);
  border-radius: 5px;
  background: #fff;
  color: var(--erp-text);
  cursor: pointer;
}

.role-tabs button.active {
  border-color: var(--erp-primary);
  background: #e8f4f2;
  color: var(--erp-primary);
  font-weight: 700;
}

.role-permission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  min-height: 720px;
  border: 1px solid var(--erp-line);
  background: #fff;
}

.user-org-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 720px;
  border: 1px solid var(--erp-line);
  background: #fff;
}

.org-tree-panel {
  min-width: 0;
  padding: 18px 14px;
  border-right: 1px solid var(--erp-line);
  background: #fff;
}

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

.org-tree-head strong {
  font-size: 15px;
}

.org-tree-head span {
  color: var(--erp-muted);
  font-size: 12px;
}

.org-tree-head .el-button {
  padding: 0;
}

.org-tree-search {
  margin-bottom: 14px;
}

.org-tree-all,
.org-tree-node {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #fff;
  color: var(--erp-text);
  text-align: left;
  cursor: pointer;
}

.org-tree-all.active,
.org-tree-node.active,
.org-tree-all:hover,
.org-tree-node:hover {
  border-color: var(--erp-primary);
  background: #f8fbff;
  color: var(--erp-primary);
}

.org-tree-node strong,
.org-tree-node span {
  display: block;
}

.org-tree-node span {
  margin-top: 4px;
  color: var(--erp-muted);
  font-size: 12px;
}

.user-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.user-summary-row div {
  padding: 14px 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #fff;
}

.user-summary-row span {
  display: block;
  color: var(--erp-muted);
  font-size: 12px;
}

.user-summary-row strong {
  display: block;
  margin-top: 8px;
  color: var(--erp-text);
  font-size: 22px;
  line-height: 1;
}

.role-list-panel {
  min-width: 0;
  padding: 18px;
  background: #f5f6fb;
}

.user-list-panel {
  min-width: 0;
  padding: 18px;
  background: #f5f6fb;
}

.role-list-panel .settings-filter {
  margin-bottom: 16px;
}

.user-list-panel .settings-filter {
  margin-bottom: 16px;
}

.role-table-card {
  min-height: 380px;
}

.role-page-actions {
  padding-top: 0;
}

.role-permission-dialog .el-dialog__body {
  padding-bottom: 8px;
}

.role-dialog-form {
  max-width: none;
}

.role-permission-tabs {
  width: 100%;
}

.role-dialog-tree {
  height: 420px;
  overflow: auto;
}

.role-data-permission {
  min-height: 120px;
  padding: 12px 0;
}

.role-data-permission p {
  margin: 0;
  color: var(--erp-muted);
  font-size: 13px;
  line-height: 22px;
}

.role-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.role-summary-row div {
  padding: 14px 16px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #fff;
}

.role-summary-row span {
  display: block;
  color: var(--erp-muted);
  font-size: 12px;
}

.role-summary-row strong {
  display: block;
  margin-top: 8px;
  color: var(--erp-text);
  font-size: 22px;
  line-height: 1;
}

.role-name-cell {
  display: flex;
  min-height: 46px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 2px 0;
}

.role-name-cell strong {
  color: var(--erp-text);
  font-size: 14px;
}

.role-name-cell span {
  color: var(--erp-muted);
  font-size: 12px;
}

.role-name-cell.active strong {
  color: var(--erp-primary);
}

.user-table-card {
  min-height: 380px;
}

.user-edit-dialog .el-dialog__body {
  padding-bottom: 6px;
}

.user-dialog-tip {
  width: 100%;
  margin-top: 6px;
  color: var(--erp-muted);
  font-size: 12px;
  line-height: 18px;
}

.user-switch-help {
  margin-left: 12px;
  color: var(--erp-muted);
  font-size: 13px;
}

.cross-dept-summary {
  margin: -4px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--erp-text);
}

.role-config-panel {
  position: sticky;
  top: 92px;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  border: 0;
  border-left: 1px solid var(--erp-line);
  border-radius: 0;
  box-shadow: none;
}

.user-config-panel {
  position: sticky;
  top: 92px;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  border: 0;
  border-left: 1px solid var(--erp-line);
  border-radius: 0;
  box-shadow: none;
}

.role-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--erp-line);
}

.role-config-head div {
  min-width: 0;
}

.role-config-head strong {
  display: block;
  font-size: 18px;
}

.role-config-head span {
  display: block;
  margin-top: 5px;
  color: var(--erp-muted);
  font-size: 13px;
}

.role-config-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 24px 0;
}

.role-config-metrics div {
  padding: 12px 14px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.role-config-metrics span {
  display: block;
  color: var(--erp-muted);
  font-size: 12px;
}

.role-config-metrics strong {
  display: block;
  margin-top: 7px;
  color: var(--erp-text);
  font-size: 15px;
}

.role-config-form {
  flex: 1;
  padding: 18px 24px;
}

.role-config-form .permission-list {
  width: 100%;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  padding: 10px;
}

.permission-toolbar {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.permission-toolbar span {
  margin-left: auto;
  color: var(--erp-muted);
  font-size: 12px;
}

.selected-departments {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.role-config-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--erp-line);
  background: #fff;
}

.side-form {
  max-width: 520px;
}

.side-form .el-form-item {
  margin-bottom: 18px;
}

.category-panel .el-card__body {
  min-height: 360px;
}

.drag-handle {
  display: inline-flex;
  width: 18px;
  color: #98a2b3;
  font-weight: 800;
}

.order-detail-drawer .el-drawer__body {
  padding-top: 0;
  background: #fff;
}

.order-detail-drawer .el-drawer__header {
  margin-bottom: 0;
  padding: 16px 20px 0;
  border-bottom: 0;
}

.order-detail-drawer .el-drawer__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--erp-line);
  background: #fff;
}

.drawer-tabs .el-tabs__header {
  margin-bottom: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--erp-line);
}

.drawer-tabs .el-tabs__nav-wrap::after {
  display: none;
}

.drawer-tabs .el-tabs__item {
  height: 48px;
  padding: 0 18px;
  font-size: 14px;
}

.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 18px;
  padding: 16px 20px 22px;
}

.order-expanded-filter {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 10px 14px;
  padding-top: 14px;
}

.order-expanded-filter .el-form-item {
  margin-bottom: 0;
}

.order-expanded-filter .el-form-item__label {
  padding-bottom: 4px;
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 600;
}

.product-list-filter.panel,
.order-filter.panel {
  padding: 16px 18px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.product-list-filter.panel .tbs-filterbar,
.order-filter.panel .tbs-filterbar {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.product-list-filter.panel .tbs-actionbar,
.order-filter.panel .tbs-actionbar {
  margin-top: 14px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.product-list-filter.panel .tbs-actionbar .toolbar-left,
.product-list-filter.panel .tbs-actionbar .toolbar-right,
.order-filter.panel .tbs-actionbar .toolbar-left,
.order-filter.panel .tbs-actionbar .toolbar-right {
  min-height: 36px;
}

.tbs-list-shell > .tbs-filterbar {
  margin-bottom: 0 !important;
  padding: 18px 20px 10px !important;
  border: 1px solid var(--erp-line) !important;
  border-bottom: 0 !important;
  border-radius: 8px 8px 0 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.tbs-list-shell > .tbs-filterbar + .tbs-actionbar {
  margin-top: -12px !important;
  margin-bottom: 0 !important;
  padding: 10px 20px 18px !important;
  border: 1px solid var(--erp-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 8px 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.tbs-list-shell > .tbs-filterbar + .advanced-filter + .tbs-actionbar,
.tbs-list-shell > .tbs-filterbar + .purchase-rule-note + .tbs-actionbar {
  margin-top: -12px !important;
  padding: 10px 20px 18px !important;
  border: 1px solid var(--erp-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 8px 8px !important;
  background: #ffffff !important;
}

.tbs-list-shell > .tbs-actionbar .toolbar-left,
.tbs-list-shell > .tbs-actionbar .toolbar-right {
  min-height: 36px;
}

.product-query-actions,
.order-filter-actions {
  align-self: end;
}

.product-list-filter .el-button,
.order-filter .el-button,
.tbs-list-shell > .tbs-actionbar .el-button,
.tbs-list-shell > .tbs-filterbar .el-button {
  min-height: 32px;
}

.tbs-filterbar .tbs-query-row {
  align-items: flex-end;
}

.site-query-row .site-query-actions,
.product-query-actions,
.order-filter-actions {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
}

.tbs-filterbar .tbs-query-row > .el-button,
.tbs-filterbar .tbs-query-row > .site-query-actions,
.tbs-filterbar .tbs-query-row > .product-query-actions,
.tbs-filterbar .tbs-query-row > .order-filter-actions {
  margin-bottom: 0;
}

.settings-filter.panel:not(.product-manage-filter):not(.category-filter):not(.attribute-filter) > .el-form.el-form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 0;
}

.settings-filter.panel:not(.product-manage-filter):not(.category-filter):not(.attribute-filter) > .el-form.el-form--inline .el-form-item {
  align-items: flex-end;
  margin-right: 0;
  margin-bottom: 0;
}

.settings-filter.panel:not(.product-manage-filter):not(.category-filter):not(.attribute-filter) > .el-form.el-form--inline .el-form-item__label {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content;
  padding-right: 8px;
  white-space: nowrap;
}

.settings-filter.panel:not(.product-manage-filter):not(.category-filter):not(.attribute-filter) > .el-form.el-form--inline .el-form-item__content {
  align-items: center;
}

.tbs-list-shell {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 94px);
  min-height: 0;
  overflow: hidden;
}

.tbs-list-shell > * {
  flex: 0 0 auto;
  min-height: 0;
}

.tbs-list-shell > .tbs-table-card,
.tbs-list-shell > .product-list-table,
.tbs-list-shell > .settings-table-card,
.tbs-list-shell > .panel:has(> .el-card__body > .el-table),
.order-maintain.tbs-list-shell > .panel:last-of-type,
.site-maintain.tbs-list-shell > .panel:last-of-type {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.order-filter.panel,
.product-list-filter.panel,
.settings-filter.panel {
  flex: 0 0 auto;
}

.tbs-list-shell > .panel:has(> .el-card__body > .el-table) > .el-card__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  padding: 0;
}

.tbs-list-shell > .panel:has(> .el-card__body > .el-table) .el-table {
  flex: 1 1 auto;
  min-height: 0;
}

.tbs-table-card > .el-card__body:has(> .tbs-pagination) > .el-table,
.product-list-table > .el-card__body:has(> .product-pagination) > .el-table,
.settings-table-card > .el-card__body:has(> .product-pagination) > .el-table,
.settings-table-card > .el-card__body:has(> .tbs-pagination) > .el-table,
.tbs-list-shell > .panel > .el-card__body:has(> .product-pagination) > .el-table,
.tbs-list-shell > .panel > .el-card__body:has(> .tbs-pagination) > .el-table {
  flex: 0 1 auto;
  height: calc(100% - 46px) !important;
  min-height: 0;
}

.tbs-table-card > .el-card__body:has(> .tbs-pagination) > .product-pagination,
.product-list-table > .el-card__body:has(> .product-pagination) > .product-pagination,
.settings-table-card > .el-card__body:has(> .product-pagination) > .product-pagination,
.settings-table-card > .el-card__body:has(> .tbs-pagination) > .tbs-pagination,
.tbs-list-shell > .panel > .el-card__body:has(> .product-pagination) > .product-pagination,
.tbs-list-shell > .panel > .el-card__body:has(> .tbs-pagination) > .tbs-pagination {
  flex: 0 0 46px;
  min-height: 46px;
}

.column-drawer .el-drawer__header {
  margin-bottom: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--erp-line);
  font-weight: 800;
}

.column-drawer .el-drawer__body {
  padding: 18px 20px;
}

.column-drawer-head,
.column-pref-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 82px;
  gap: 10px;
  align-items: center;
}

.column-drawer-head {
  margin: 16px 0 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 700;
}

.column-pref-row {
  min-height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid var(--erp-line-soft);
}

.column-pref-row.locked {
  color: #98a2b3;
}

.column-pref-row .el-input-number {
  width: 76px;
}

.column-config-dialog .el-dialog__body {
  padding: 8px 22px 8px;
}

.column-config-note {
  margin: 0 0 12px;
  color: #909399;
  font-size: 13px;
}

.column-dialog-head,
.column-config-dialog .column-pref-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 130px;
  gap: 10px;
  align-items: center;
}

.column-dialog-head {
  padding: 10px 12px;
  border: 1px solid var(--erp-line);
  border-bottom: 0;
  background: #f8fafc;
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 700;
}

.column-config-dialog .dialog-list {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--erp-line);
}

.column-config-dialog .column-pref-row {
  min-height: 48px;
  cursor: grab;
}

.column-config-dialog .column-pref-row.dragging {
  opacity: .55;
}

.column-config-dialog .column-pref-row.locked {
  color: #a8abb2;
  background: #fafafa;
}

.column-drag-handle {
  color: #a8abb2;
  font-weight: 800;
  letter-spacing: 2px;
}

.import-detail-card {
  margin-top: 14px;
}

.import-detail-filter {
  margin-bottom: 12px;
}

.import-file-input {
  display: none;
}

.import-upload-panel {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 108px;
  margin-bottom: 16px;
  border: 1px dashed #c8d1dc;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--erp-muted);
  cursor: pointer;
}

.import-upload-panel strong {
  color: var(--erp-text);
  font-size: 14px;
}

.status-import-setting {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
}

.status-import-setting small {
  grid-column: 1 / -1;
  color: var(--erp-muted);
}

.status-import-steps {
  margin: 6px 20px 22px;
}

.status-import-note {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #f8fafc;
  color: #475467;
  line-height: 1.65;
}

.status-import-note strong {
  color: var(--erp-text);
}

.status-import-upload {
  margin-bottom: 16px;
  cursor: pointer;
}

.status-import-upload h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.status-import-upload p {
  margin: 0 0 12px;
  color: var(--erp-muted);
}

.status-import-upload .download-btn {
  margin-bottom: 12px;
}

.order-export-template-drawer .el-drawer__header {
  height: 51px;
  margin-bottom: 0;
  padding: 14px 20px;
  color: #333333;
  font-size: 16px;
}

.order-export-template-drawer .el-drawer__body {
  padding: 20px;
  overflow: auto;
}

.order-export-template-drawer .el-drawer__footer {
  min-height: 64px;
  padding: 15px 32px;
  border-top: 1px solid #ebeef5;
  background: #ffffff;
}

.order-export-template-drawer .el-drawer__footer .el-button:first-child {
  border-color: transparent;
  background: #f2f3f5;
}

.order-export-template-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0;
}

.order-export-template-form > .el-form-item {
  min-width: 0;
  margin-bottom: 16px;
}

.order-export-template-form > .el-form-item:nth-child(3) {
  grid-column: 1 / -1;
}

.order-export-template-form .el-form-item__label {
  color: #333333;
  font-size: 12px;
}

.order-export-template-form .template-field-actions {
  margin-bottom: 12px;
}

.order-export-template-form .template-field-table th.el-table__cell,
.order-export-template-form .template-field-table td.el-table__cell {
  height: 48px;
}

.order-review-rule-dialog .el-dialog__body {
  padding: 10px 24px 8px;
}

.order-review-rule-dialog .el-form-item {
  margin-bottom: 16px;
}

.column-move-actions {
  display: flex;
  gap: 6px;
}

.detail-anchor {
  position: sticky;
  top: 16px;
  align-self: start;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--erp-line);
  border-radius: 4px;
  background: #fff;
}

.tbs-readonly-grid {
  display: grid;
  gap: 12px 16px;
}

.tbs-readonly-grid.four {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.tbs-readonly-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tbs-readonly-grid label.wide {
  grid-column: span 2;
}

.tbs-readonly-grid label span {
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 700;
}

.tbs-readonly-grid .el-input__wrapper {
  border-radius: 4px;
  background: #f7f8fb;
  box-shadow: 0 0 0 1px var(--erp-line) inset;
}

.order-total-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content minmax(90px, 1fr));
  gap: 10px 12px;
  justify-content: end;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--erp-line);
  border-radius: 4px;
  background: #fbfcfe;
}

.order-total-grid span {
  color: var(--erp-muted);
  font-weight: 700;
  text-align: right;
}

.order-total-grid strong {
  color: var(--erp-text);
}

.detail-anchor a {
  min-height: 44px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--erp-line-soft);
  color: var(--erp-text);
  font-size: 13px;
  text-decoration: none;
}

.detail-anchor a:first-child {
  background: #f5f7fb;
  color: var(--erp-primary);
  font-weight: 700;
}

.detail-anchor a:last-child {
  border-bottom: 0;
}

.detail-content h3 {
  margin: 18px 0 10px;
  font-size: 15px;
}

.detail-content {
  min-width: 0;
}

.order-detail-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--erp-line);
  background: #fff;
}

.order-detail-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--erp-muted);
  font-size: 12px;
}

.order-detail-summary strong {
  font-size: 18px;
}

.order-detail-section {
  margin-bottom: 18px;
}

.order-detail-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
}

.product-detail-media {
  display: grid;
  gap: 12px;
}

.product-detail-media-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--erp-muted);
  font-weight: 700;
}

.product-detail-media h4 {
  margin: 4px 0 -4px;
  color: var(--erp-text);
  font-size: 13px;
}

.product-detail-subtable,
.detail-subsection,
.product-spec-summary {
  margin-top: 12px;
}

.detail-subsection h4 {
  margin: 0 0 8px;
  color: var(--erp-text);
  font-size: 13px;
  font-weight: 800;
}

.order-kv-list {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  border-top: 1px solid var(--erp-line);
  border-left: 1px solid var(--erp-line);
  background: #fff;
}

.order-kv-list span,
.order-kv-list strong {
  min-height: 38px;
  padding: 11px 14px;
  border-right: 1px solid var(--erp-line);
  border-bottom: 1px solid var(--erp-line);
}

.order-kv-list span {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
}

.order-kv-list strong {
  color: var(--erp-text);
  font-weight: 500;
  word-break: break-word;
}

.order-product-name {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  margin-bottom: 12px;
  border-top: 1px solid var(--erp-line);
  border-left: 1px solid var(--erp-line);
}

.order-product-name span,
.order-product-name strong {
  padding: 11px 14px;
  border-right: 1px solid var(--erp-line);
  border-bottom: 1px solid var(--erp-line);
}

.order-product-name span {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
}

.order-product-table {
  border: 1px solid var(--erp-line);
}

.order-product-thumb {
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  background: #f8fafc;
}

.order-product-thumb img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.order-product-thumb span {
  color: #98a2b3;
  font-size: 12px;
}

.kv-table {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  border: 1px solid var(--erp-line);
  border-bottom: 0;
}

.kv-table span,
.kv-table strong {
  min-height: 38px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--erp-line);
}

.kv-table span {
  display: flex;
  align-items: center;
  background: #f8fafc;
  color: var(--erp-muted);
  font-weight: 600;
}

.kv-table strong {
  color: var(--erp-text);
  font-weight: 500;
}

.site-editor-page {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.site-editor-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  max-width: none;
  padding: 28px 54px 34px;
}

.site-editor-section {
  padding: 0 0 28px;
}

.site-editor-section + .site-editor-section {
  padding-top: 26px;
  border-top: 1px solid var(--erp-line);
}

.site-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}

.site-section-title strong {
  font-size: 16px;
}

.site-section-title span {
  color: var(--erp-muted);
  font-size: 12px;
}

.site-media-grid,
.site-media-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.site-upload-row,
.site-setting-block {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.site-upload-row label,
.site-setting-block label {
  padding-top: 8px;
  text-align: right;
  font-weight: 600;
}

.site-upload-row em,
.site-setting-block em {
  color: var(--erp-red);
  font-style: normal;
}

.upload-tile {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px dashed #cfd6e1;
  border-radius: 6px;
  background: #fafbfc;
  color: #8b95a7;
  cursor: pointer;
  overflow: hidden;
}

.upload-tile.wide {
  width: 160px;
  height: 104px;
}

.upload-tile span,
.upload-tile small {
  display: block;
}

.upload-tile span {
  margin-bottom: -18px;
  font-size: 26px;
}

.site-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.upload-tile.has-image {
  border-style: solid;
  background: #fff;
}

.upload-tile.has-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-upload-remove-text {
  display: block;
  margin-top: 4px;
}

.site-upload-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  width: 26px;
  height: 26px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.upload-tile:hover .site-upload-remove,
.upload-tile:focus-within .site-upload-remove {
  opacity: 1;
}

.site-upload-loading {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.78);
}

.site-upload-loading::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -12px 0 0 -12px;
  border: 2px solid #d8e1e8;
  border-top-color: var(--el-color-primary);
  border-radius: 50%;
  content: "";
  animation: site-upload-spin 0.8s linear infinite;
}

@keyframes site-upload-spin {
  to { transform: rotate(360deg); }
}

.site-carousel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 560px;
}

.site-upload-inline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.site-upload-tips {
  padding-top: 4px;
}

.site-upload-row p {
  margin: 8px 0 0;
  color: #98a2b3;
  font-size: 12px;
}

.site-basic-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 56px;
  max-width: 1420px;
}

.site-basic-form .el-form-item:nth-last-child(-n + 2) {
  grid-column: 1 / -1;
}

.form-hint {
  margin-left: 10px;
  color: #98a2b3;
  font-size: 12px;
}

.template-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.template-picker-row .el-select {
  flex: 1 1 280px;
  min-width: 0;
}

/* 网站模板选择抽屉：保持双马 ERP 的固定信息栏与大图纵向浏览结构。 */
.site-template-drawer .el-drawer__header {
  min-height: 76px;
  margin: 0;
  padding: 0 32px;
  border-bottom: 1px solid var(--erp-line);
  color: var(--erp-text);
  font-size: 22px;
  font-weight: 700;
}

.site-template-drawer .el-drawer__body {
  padding: 32px 40px;
  overflow: hidden;
  background: #ffffff;
}

.site-template-drawer .el-drawer__footer {
  padding: 14px 32px;
  border-top: 1px solid var(--erp-line);
}

.site-template-picker {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  height: 100%;
  min-height: 0;
}

.site-template-meta {
  align-self: stretch;
  padding: 30px 24px;
  border: 1px solid var(--erp-line);
  border-radius: 5px;
  background: #fff;
}

.site-template-meta dl,
.site-template-meta dd {
  margin: 0;
}

.site-template-meta dt {
  margin-top: 30px;
  color: var(--erp-muted);
  font-size: 16px;
  font-weight: 600;
}

.site-template-meta dt:first-child {
  margin-top: 0;
}

.site-template-meta dd {
  margin-top: 10px;
  color: var(--erp-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  word-break: break-word;
}

.site-template-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.site-template-choice {
  position: relative;
  display: block;
  flex: 0 0 clamp(280px, 38vh, 390px);
  width: 100%;
  height: clamp(280px, 38vh, 390px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e6ec;
  border-radius: 5px;
  background: #f0f2f6;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.site-template-choice:hover {
  border-color: #b9c6cc;
  box-shadow: 0 8px 22px rgba(28, 49, 58, 0.09);
}

.site-template-choice > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-template-choice.active::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(23, 30, 34, 0.5);
  content: "";
}

.site-template-selected {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: 62px;
  height: 62px;
  padding: 9px 8px 0 0;
  background: #67c23a;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  color: #fff;
  font-size: 22px;
}

.site-template-preview {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #344054;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.16);
}

.site-template-no-preview {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  gap: 8px;
  color: var(--erp-text);
  font-size: 14px;
}

.site-template-no-preview small {
  color: var(--erp-muted);
}

.site-custom-component-entry {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
  color: var(--erp-text);
  font-size: 14px;
}

/* 组件自定义抽屉：图片和链接只在点击确定后写回网站表单。 */
.site-custom-component-drawer .el-drawer__header {
  min-height: 72px;
  margin: 0;
  padding: 0 28px;
  border-bottom: 1px solid var(--erp-line);
  color: var(--erp-text);
  font-size: 20px;
  font-weight: 700;
}

.site-custom-component-drawer .el-drawer__body {
  padding: 26px;
  background: #f7f8fa;
}

.site-custom-component-drawer .el-drawer__footer {
  padding: 14px 24px;
  border-top: 1px solid var(--erp-line);
  background: #ffffff;
}

.site-custom-component-form {
  display: grid;
  gap: 20px;
  padding: 16px 22px 24px;
  background: #ffffff;
}

.site-custom-component-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.site-custom-component-row > label {
  padding-top: 10px;
  color: #667085;
  font-size: 14px;
  text-align: right;
}

.site-custom-example-frame {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #eef1f4;
  aspect-ratio: 3.4;
}

.site-custom-example-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-custom-upload-content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 136px;
}

.site-custom-upload-tile {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
}

.site-custom-upload-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-custom-upload-tips {
  color: #475467;
  font-size: 14px;
}

.site-custom-upload-tips p {
  margin: 8px 0;
}

.site-custom-link-row {
  align-items: center;
}

.site-custom-link-row > label {
  padding-top: 0;
}

.site-setting-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px 56px;
  max-width: 1420px;
}

.site-setting-form .wide,
.site-setting-form .site-carousel-item {
  grid-column: 1 / -1;
}

.site-setting-form .el-form-item {
  margin-bottom: 0;
}

.site-setting-form .el-form-item__content {
  min-width: 0;
}

.site-setting-form .site-template-item {
  grid-column: 1 / 2;
}

.site-setting-form .site-style-switch .el-form-item__content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-contact-textarea {
  max-width: 940px;
}

.site-editor-body > h3 {
  margin: 32px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--erp-line);
  font-size: 16px;
}

.site-advanced-collapse {
  margin: 0 46px 86px;
}

.site-editor-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--erp-line);
  background: rgba(255, 255, 255, 0.97);
}

.site-reference-table .el-table__header-wrapper tr,
.site-reference-table th.el-table__cell {
  height: 48px;
}

.site-reference-table td.el-table__cell {
  height: 71px;
}

.site-reference-table th.el-table__cell,
.site-reference-table td.el-table__cell {
  padding: 0;
  border-right: 0;
  font-size: 12px;
}

.site-reference-table .el-table__inner-wrapper::before {
  background: var(--erp-line-soft);
}

.site-danger-menu-item {
  color: var(--el-color-danger);
}

.site-copy-dialog .el-dialog__body {
  padding: 18px 28px 4px;
}

.site-copy-dialog .el-select {
  width: 100%;
}

.site-dns-failed-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.site-dns-failed-status .el-button {
  padding: 0;
  font-weight: 600;
}

/* 网站解析弹窗：信息层级和字段间距与参考系统保持一致。 */
.site-dns-dialog {
  border-radius: 6px;
}

.site-dns-dialog .el-dialog__header {
  margin: 0;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--erp-line);
}

.site-dns-dialog .el-dialog__title {
  color: var(--erp-text);
  font-size: 20px;
  font-weight: 700;
}

.site-dns-dialog .el-dialog__body {
  padding: 22px 28px 16px;
}

.site-dns-dialog .el-dialog__footer {
  padding: 16px 28px 22px;
}

.site-dns-intro {
  margin: 0 0 24px;
  padding: 13px 16px;
  border-radius: 5px;
  background: #f4f3ff;
  color: var(--erp-text);
  font-size: 14px;
  line-height: 1.6;
}

.site-dns-intro span {
  color: #4f63e9;
  cursor: pointer;
  font-weight: 500;
}

.site-dns-record {
  margin-top: 24px;
}

.site-dns-record > strong {
  display: block;
  margin-bottom: 16px;
  color: #5f6368;
  font-size: 15px;
  font-weight: 600;
}

.site-dns-record > label {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  color: #4b5563;
  font-size: 14px;
}

.site-dns-record .el-input-group__append {
  width: 58px;
  padding: 0;
}

.site-dns-record .el-input-group__append .el-button {
  width: 100%;
  color: #4f63e9;
}

.site-payment-drawer .el-drawer__body {
  padding-top: 24px;
}

.site-payment-drawer .el-drawer__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--erp-line);
}

.global-setting-domain-line .el-input {
  width: min(520px, 100%);
}

@media (max-width: 1600px) {
  .site-filterbar .site-query-row {
    flex-wrap: wrap;
  }

  .site-filterbar .site-query-row > .tbs-filter-field {
    flex: 0 1 220px;
  }
}

@media (max-width: 1100px) {
  .site-template-drawer {
    width: 100% !important;
  }

  .site-template-drawer .el-drawer__body {
    padding: 20px;
  }

  .site-template-picker {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .site-template-meta {
    padding: 22px 18px;
  }

  .site-custom-component-drawer {
    width: min(100%, 760px) !important;
  }
}

@media (max-width: 700px) {
  .site-template-picker {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .site-template-meta {
    align-self: auto;
  }

  .site-template-gallery {
    overflow: visible;
  }

  .site-custom-component-row {
    grid-template-columns: 1fr;
  }

  .site-custom-component-row > label {
    padding-top: 0;
    text-align: left;
  }

  .site-custom-upload-content {
    flex-wrap: wrap;
  }
}

.tbs-form-dialog .el-dialog__body {
  padding: 22px 28px;
}

.tbs-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  width: 100%;
}

.tbs-checkbox-grid .el-checkbox {
  min-width: 0;
  margin-right: 0;
}

.template-field-builder {
  width: 100%;
}

.template-field-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.template-field-table .el-table__empty-block {
  min-height: 76px;
}

.freight-remote-page.tbs-list-shell,
.payment-setting-page,
.navigation-manager-page,
.dns-record-page {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 94px);
  min-height: 0;
  overflow: hidden;
}

.payment-setting-page > .product-subtabs,
.payment-setting-page > .payment-summary-row,
.payment-setting-page > .settings-filter,
.payment-setting-page > .settings-actions,
.navigation-manager-page > .product-subtabs,
.navigation-manager-page > .navigation-summary-row,
.navigation-manager-page > .settings-filter,
.navigation-manager-page > .settings-actions,
.dns-record-page > .product-subtabs,
.dns-record-page > .dns-summary-row,
.dns-record-page > .settings-filter,
.dns-record-page > .settings-actions {
  flex: 0 0 auto;
  min-height: 0;
}

.payment-workbench,
.navigation-workbench,
.dns-workbench {
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.payment-table-card,
.navigation-table-card,
.dns-record-table {
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.payment-table-card > .el-card__body,
.navigation-table-card > .el-card__body,
.dns-record-table > .el-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}

.payment-table-card > .el-card__body > .el-table,
.navigation-table-card > .el-card__body > .el-table,
.dns-record-table > .el-card__body > .el-table,
.cloak-table-card > .el-card__body > .el-table,
.freight-table-card > .el-card__body > .el-table,
.policy-list-card > .el-card__body > .el-table,
.ip-blacklist-table > .el-card__body > .el-table,
.order-blacklist-table > .el-card__body > .el-table {
  height: calc(100% - 46px) !important;
  min-height: 0;
}

.payment-table-card > .el-card__body > .product-pagination,
.navigation-table-card > .el-card__body > .product-pagination,
.dns-record-table > .el-card__body > .product-pagination,
.cloak-table-card > .el-card__body > .product-pagination,
.freight-table-card > .el-card__body > .product-pagination,
.policy-list-card > .el-card__body > .product-pagination,
.ip-blacklist-table > .el-card__body > .product-pagination,
.order-blacklist-table > .el-card__body > .product-pagination {
  flex: 0 0 46px;
  min-height: 46px;
}

.order-remark-dialog .el-dialog__body {
  padding: 14px 28px 8px;
}

.order-remark-dialog .el-form-item {
  margin-bottom: 0;
}

.order-remark-dialog .el-dialog__footer {
  padding-top: 10px;
}

.product-list-settings-form .el-form-item {
  margin-bottom: 20px;
}

.product-list-settings-form .el-form-item__label,
.settings-section-title {
  color: var(--erp-text);
  font-weight: 700;
}

.product-list-settings-form .form-muted {
  width: 100%;
  margin: 8px 0 0;
  color: var(--erp-muted);
  font-size: 13px;
  line-height: 1.6;
}

.settings-radio-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

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

.attribute-form .el-form-item:first-child,
.attribute-form .add-line {
  grid-column: 1 / -1;
}

.add-line {
  display: grid;
  min-height: 40px;
  place-items: center;
  margin-top: 2px;
  border: 1px dashed var(--erp-line);
  border-radius: 4px;
  color: var(--erp-text);
  cursor: pointer;
}

.cloak-section {
  min-height: calc(100vh - 128px);
  padding: 0 22px 34px;
  border-radius: 8px;
  background: #fff;
}

.cloak-tabs {
  margin: 0 -22px 18px;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--erp-line);
}

.cloak-alert {
  margin-bottom: 16px;
}

.cloak-toolbar {
  flex: 0 0 auto;
  padding: 18px 20px 16px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.cloak-info-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid rgba(36, 107, 100, 0.12);
  background: #eef6f4;
  color: var(--erp-primary);
  font-size: 14px;
  font-weight: 600;
}

.cloak-info-strip .el-icon {
  font-size: 18px;
}

.cloak-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 22px;
}

.cloak-filter-field {
  flex: 1 1 260px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  max-width: 360px;
  padding: 0 16px;
  border-radius: 6px;
  background: #f7f8fa;
  color: #5f6b7a;
  font-size: 14px;
}

.cloak-filter-field .tbs-filter-label {
  color: #4f5b67;
  font-size: 14px;
  font-weight: 500;
}

.cloak-filter-field .el-input,
.cloak-filter-field .el-select {
  flex: 1 1 auto;
  min-width: 0;
}

.cloak-filter-field .el-input__wrapper,
.cloak-filter-field .el-select__wrapper {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.cloak-query-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 46px;
}

.cloak-query-actions .el-button,
.cloak-create-row .el-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  font-weight: 700;
}

.cloak-query-actions .el-button--primary,
.cloak-create-row .el-button--primary {
  --el-button-bg-color: var(--erp-primary);
  --el-button-border-color: var(--erp-primary);
  --el-button-hover-bg-color: var(--erp-teal);
  --el-button-hover-border-color: var(--erp-teal);
  --el-button-active-bg-color: #174f49;
  --el-button-active-border-color: #174f49;
}

.cloak-create-row {
  display: flex;
  align-items: center;
  margin-top: 22px;
}

.cloak-filter {
  max-width: 720px;
  margin-bottom: 14px;
  padding-top: 18px;
  border: 0;
  box-shadow: none;
}

.cloak-actions {
  margin-bottom: 16px;
}

.cloak-table-card {
  border: 0;
  box-shadow: none;
}

.cloak-table-card .el-card__body {
  padding: 0;
}

.cloak-table-card .el-table th.el-table__cell {
  background: #f8fafc;
  color: #475467;
}

.cloak-rule-table {
  --el-table-border-color: var(--erp-line-soft);
  --el-table-header-bg-color: #f7f9fa;
}

.cloak-rule-table th.el-table__cell {
  height: 48px;
  font-weight: 700;
}

.cloak-rule-table .el-table__cell {
  border-right: 0;
}

.cloak-rule-table td.el-table__cell {
  height: 64px;
}

.cloak-rule-table .cell {
  white-space: nowrap;
}

.cloak-rule-table .el-table__inner-wrapper::before {
  background: var(--erp-line-soft);
}

.cloak-dialog .el-dialog__header {
  padding: 24px 28px 10px;
}

.cloak-dialog .el-dialog__body {
  padding: 14px 28px 22px;
}

.cloak-dialog .el-dialog__footer {
  padding: 16px 28px 22px;
}

.site-maintain.tbs-list-shell,
.policy-manager-page.tbs-list-shell,
.cloak-section.tbs-list-shell {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  height: calc(100vh - 94px);
  min-height: 0 !important;
  overflow: hidden;
}

.site-maintain.tbs-list-shell > .order-filter,
.policy-manager-page.tbs-list-shell > .settings-filter,
.policy-manager-page.tbs-list-shell > .toolbar,
.cloak-section.tbs-list-shell > .cloak-toolbar,
.cloak-section.tbs-list-shell > .settings-filter,
.cloak-section.tbs-list-shell > .settings-actions {
  flex: 0 0 auto;
  min-height: 0;
}

.site-maintain.tbs-list-shell > .el-card.panel,
.site-maintain.tbs-list-shell > .panel:last-of-type,
.policy-manager-page.tbs-list-shell > .policy-list-card,
.cloak-section.tbs-list-shell > .cloak-table-card {
  display: flex;
  flex: 1 1 0;
  min-height: 0 !important;
  overflow: hidden;
}

.site-maintain.tbs-list-shell > .el-card.panel > .el-card__body,
.site-maintain.tbs-list-shell > .panel:last-of-type > .el-card__body,
.policy-manager-page.tbs-list-shell > .policy-list-card > .el-card__body,
.cloak-section.tbs-list-shell > .cloak-table-card > .el-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}

.site-maintain.tbs-list-shell > .el-card.panel > .el-card__body > .el-table,
.site-maintain.tbs-list-shell > .panel:last-of-type > .el-card__body > .el-table,
.policy-manager-page.tbs-list-shell > .policy-list-card > .el-card__body > .el-table,
.cloak-section.tbs-list-shell > .cloak-table-card > .el-card__body > .el-table {
  flex: 1 1 auto;
  height: calc(100% - 54px) !important;
  min-height: 0 !important;
}

.site-maintain.tbs-list-shell > .el-card.panel > .el-card__body > .product-pagination,
.site-maintain.tbs-list-shell > .panel:last-of-type > .el-card__body > .product-pagination,
.policy-manager-page.tbs-list-shell > .policy-list-card > .el-card__body > .product-pagination,
.cloak-section.tbs-list-shell > .cloak-table-card > .el-card__body > .product-pagination {
  flex: 0 0 54px;
  min-height: 54px;
}

.cloak-form {
  max-width: 620px;
}

.cloak-form .form-muted {
  margin: -12px 0 12px 136px;
  color: #98a2b3;
  font-size: 12px;
}

.purchase-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-rule-note {
  border: 1px solid #d7e7ff;
  border-radius: 4px;
  background: #f4f9ff;
  color: #1d4f91;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 14px;
}

.logistics-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logistics-note {
  border-left: 3px solid var(--erp-primary);
  background: #e8f4f2;
  color: #344054;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 14px;
}

.logistics-setting {
  min-height: 560px;
  padding: 28px 30px;
}

.logistics-setting .setting-row {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
}

.logistics-setting .setting-row span {
  color: #344054;
  font-size: 14px;
}

.logistics-setting p {
  color: #98a2b3;
  font-size: 13px;
  margin: 0 0 58px 185px;
}

.logistics-setting .el-textarea {
  max-width: 620px;
}

.logistics-setting .setting-actions {
  display: flex;
  justify-content: center;
  margin-top: 54px;
}

.statistics-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.statistics-note {
  color: #667085;
  font-size: 13px;
}

.statistics-mode-tabs {
  align-items: center;
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  display: flex;
  gap: 4px;
  padding: 8px;
  width: fit-content;
}

.statistics-mode-tabs button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #667085;
  cursor: pointer;
  height: 30px;
  padding: 0 14px;
}

.statistics-mode-tabs button.active {
  background: #243bb2;
  color: #fff;
}

.statistics-filterbar .tbs-query-row {
  flex-wrap: wrap;
}

.statistics-section-title {
  color: #1d2939;
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
}

.statistics-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.statistics-card {
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  min-height: 118px;
  padding: 16px 18px;
}

.statistics-card strong {
  color: #101828;
  display: block;
  font-size: 15px;
  margin-bottom: 14px;
}

.statistics-card-numbers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.statistics-card-numbers span {
  color: #667085;
  font-size: 12px;
}

.statistics-card-numbers b {
  color: #243bb2;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.statistics-card-foot {
  align-items: center;
  color: #667085;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 14px;
}

.statistics-card-foot strong {
  color: #1d2939;
  display: inline;
  font-size: 13px;
  margin: 0;
}

.statistics-card-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 32px;
}

.statistics-card-header > span {
  color: #1d2939;
  font-weight: 600;
}

.link-button {
  background: transparent;
  border: 0;
  color: #243bb2;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.statistics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.statistics-tabs {
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  padding: 0 14px;
}

.statistics-tabs .el-tabs__header {
  margin: 0;
}

.statistics-cover {
  background: #f2f4f7;
  border: 1px solid var(--erp-line);
  border-radius: 4px;
  height: 48px;
  width: 64px;
}

.tbs-date-filter .el-date-editor {
  width: 270px;
}

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

.statistics-detail-grid label {
  background: #f8fafc;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 68px;
  padding: 12px;
}

.statistics-detail-grid span {
  color: #667085;
  font-size: 12px;
}

.statistics-detail-grid strong {
  color: #1d2939;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.sms-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sms-reference-tabs {
  align-self: flex-start;
  background: transparent;
}

.sms-template-filter.panel {
  margin: 0;
  padding: 24px 18px;
}

.sms-record-filter.panel {
  margin: 0;
  padding: 24px 18px;
}

.sms-date-filter .el-date-editor {
  width: 260px;
}

.sms-template-reference .tbs-actionbar {
  margin-top: 0;
}

.sms-template-drawer .el-drawer__header {
  margin-bottom: 0;
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--erp-line);
}

.sms-template-drawer .el-drawer__body {
  padding: 24px 22px;
}

.sms-template-drawer .el-drawer__footer {
  padding: 14px 22px;
  border-top: 1px solid var(--erp-line);
}

.sms-template-drawer-form {
  max-width: 560px;
}

.sms-base-template {
  padding: 0;
}

.sms-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.sms-chart-card .el-card__body {
  min-height: 150px;
  padding: 18px 22px 22px;
}

.sms-chart-card h3 {
  margin: 0 0 16px;
  color: #1d2939;
  font-size: 14px;
  font-weight: 600;
}

.sms-rule {
  min-height: 560px;
  padding: 26px 30px;
}

.sms-rule h3 {
  color: #1d2939;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
}

.sms-rule h3:not(:first-child) {
  margin-top: 34px;
}

.sms-rule-line {
  align-items: center;
  color: #344054;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 32px;
}

.sms-rule-line .el-input-number {
  width: 120px;
}

.sms-rule p {
  color: #98a2b3;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 860px;
}

.sms-rule .el-textarea {
  margin-top: 24px;
  max-width: 680px;
}

.sms-rule-actions {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.sms-template-variable-box {
  border-top: 1px solid #eef2f7;
  margin-top: 12px;
  padding-top: 14px;
}

.sms-template-variable-title {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.sms-template-variable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sms-template-variable-actions .el-button {
  margin-left: 0 !important;
}

.sms-template-variable-hint {
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 0;
}

.fee-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fee-renew {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fee-summary {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 22px 24px;
}

.fee-summary div {
  border-right: 1px solid var(--erp-line);
  min-height: 58px;
}

.fee-summary div:last-child {
  border-right: 0;
}

.fee-summary span {
  color: #667085;
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.fee-summary strong {
  color: #1d2939;
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.fee-summary button {
  background: transparent;
  border: 0;
  color: #243bb2;
  cursor: pointer;
  font-size: 12px;
  margin-left: 6px;
  padding: 0;
}

.fee-renew-body {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 260px;
}

.fee-package,
.fee-shortcuts,
.fee-support,
.fee-recharge {
  min-height: 250px;
  padding: 22px 24px;
}

.fee-package h3,
.fee-shortcuts h3,
.fee-support h3,
.fee-recharge h3 {
  color: #1d2939;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 18px;
}

.fee-package-action {
  background: #243bb2;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  height: 34px;
  padding: 0 22px;
}

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

.fee-shortcuts h3 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.fee-shortcuts button {
  background: #f8fafc;
  border: 1px solid var(--erp-line);
  border-radius: 4px;
  cursor: pointer;
  min-height: 72px;
  padding: 14px;
  text-align: left;
}

.fee-shortcuts b,
.fee-shortcuts span {
  display: block;
}

.fee-shortcuts b {
  color: #1d2939;
  font-size: 15px;
  margin-bottom: 6px;
}

.fee-shortcuts span {
  color: #98a2b3;
  font-size: 12px;
}

.fee-qrcode {
  align-items: center;
  background: #f2f4f7;
  border: 1px solid var(--erp-line);
  color: #667085;
  display: flex;
  height: 140px;
  justify-content: center;
  margin: 4px auto 12px;
  width: 140px;
}

.fee-support p {
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.fee-amount-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 150px));
}

.fee-amount-grid button,
.fee-amount-grid label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 4px;
  color: #344054;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  height: 62px;
  justify-content: center;
  padding: 0 12px;
}

.fee-amount-grid button.active {
  border-color: #243bb2;
  box-shadow: inset 0 0 0 1px #243bb2;
  color: #243bb2;
  font-weight: 700;
}

.fee-amount-grid label {
  gap: 8px;
  grid-column: span 2;
  justify-content: flex-start;
}

.fee-amount-grid label span {
  color: #667085;
  white-space: nowrap;
}

.fee-submit {
  margin-top: 24px;
}

.fee-filterbar .tbs-query-row {
  flex-wrap: wrap;
}

.fee-note {
  border-left: 3px solid #243bb2;
  color: #344054;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 14px;
}

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

.fee-flow-detail label {
  background: #f8fafc;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 68px;
  padding: 12px;
}

.fee-flow-detail span {
  color: #667085;
  font-size: 12px;
}

.fee-flow-detail strong {
  color: #1d2939;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.fee-flow-detail-text {
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  color: #344054;
  line-height: 1.6;
  margin: 12px 0 0;
  padding: 12px;
}

@media (max-width: 1360px) {
  .home-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .home-right-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .metric-grid,
  .dashboard-grid,
  .quick-action-grid,
  .resource-grid,
  .home-dashboard-layout,
  .home-bottom-grid,
  .home-period-grid,
  .home-main-grid,
  .statistics-card-grid,
  .statistics-grid,
  .fee-summary,
  .fee-renew-body,
  .fee-amount-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .fee-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--erp-line);
    padding-bottom: 12px;
  }

  .fee-amount-grid label {
    grid-column: auto;
  }

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

  .product-subtabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-right-stack {
    grid-template-columns: 1fr;
  }

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

  .dns-auth-grid {
    grid-template-columns: 1fr;
  }

  .logistics-chart-grid {
    grid-template-columns: 1fr;
  }

  .home-topline,
  .home-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .home-mode-actions,
  .analysis-controls {
    justify-content: flex-start;
  }

  .analysis-canvas {
    grid-template-columns: 1fr;
  }

  .analysis-y-axis {
    display: none;
  }

  .aside {
    width: 208px !important;
  }

  .product-editor-body {
    grid-template-columns: 1fr;
  }

  .order-detail-layout,
  .site-basic-form,
  .site-setting-form,
  .site-upload-row,
  .site-setting-block {
    grid-template-columns: 1fr;
  }

  .site-upload-row label,
  .site-setting-block label {
    text-align: left;
  }

  .product-anchor {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }

  .template-card-grid,
  .content-block-row {
    grid-template-columns: 1fr;
  }

  .inline-row {
    align-items: stretch;
    flex-direction: column;
  }

  .product-editor-footer {
    left: 0;
  }
}

/* Final order-table metrics override later shared card/button rules. */
:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table th.el-table__cell {
  height: 48px;
  background: #f8f9fa;
  color: #333333;
}

:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table th.el-table__cell > .cell,
:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table td.el-table__cell > .cell {
  min-height: 23px;
  padding: 0 12px;
  line-height: 23px;
}

:is(.order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table td.el-table__cell {
  height: 48px;
}

:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table .el-button.is-text,
:is(.order-maintain, .order-tool-page, .order-export-setting-page, .order-review-rule-page) .tbs-reference-table .el-button.is-link {
  height: 23px;
  min-height: 23px;
  padding: 0;
}

.order-review-rule-dialog .el-dialog__body {
  padding: 10px 24px 26px;
}

.order-review-rule-dialog .el-dialog__footer {
  padding: 16px 24px;
}

:is(.service-order-dialog, .status-import-dialog, .status-import-setting-dialog, .order-review-rule-dialog, .order-payment-info-dialog, .order-export-dialog, .column-config-dialog, .order-delivery-dialog, .order-operation-dialog, .order-remark-dialog) {
  padding: 0;
}

:is(.service-order-dialog, .status-import-dialog, .status-import-setting-dialog, .order-review-rule-dialog, .order-payment-info-dialog, .order-export-dialog, .column-config-dialog, .order-delivery-dialog, .order-operation-dialog, .order-remark-dialog) .el-dialog__footer {
  min-height: 64px;
  padding: 16px 24px;
}

.order-review-rule-dialog .el-form-item:last-child {
  margin-bottom: 0;
}

.status-import-dialog .el-dialog__body {
  min-height: 494px;
}

.order-remark-dialog .el-dialog__body {
  min-height: 130px;
}

.status-import-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-import-switch em {
  color: #666666;
  font-size: 12px;
  font-style: normal;
}

/* Order workbench controls keep the reference layout and the project theme. */
.order-filter .tbs-query-row {
  width: 100%;
  align-items: center;
}

.order-filter .tbs-query-row > .tbs-filter-field {
  display: flex;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background: #fafbfc;
  color: #666666;
  font-size: 12px;
  font-weight: 400;
}

.order-filter .tbs-query-row > .tbs-filter-field:focus-within {
  box-shadow: 0 0 0 1px var(--el-color-primary) inset;
}

.order-filter .tbs-query-row > .tbs-filter-field .tbs-filter-label {
  flex: 0 0 auto;
  color: #666666;
  font-weight: 400;
}

.order-filter .tbs-query-row > .tbs-filter-field .el-input,
.order-filter .tbs-query-row > .tbs-filter-field .el-select,
.order-filter .tbs-query-row > .tbs-filter-field .el-date-editor {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
}

.order-filter .tbs-query-row > .tbs-filter-field .el-input__wrapper,
.order-filter .tbs-query-row > .tbs-filter-field .el-select__wrapper,
.order-filter .tbs-query-row > .tbs-filter-field .el-range-editor.el-input__wrapper {
  min-height: 34px;
  padding-right: 0;
  padding-left: 0;
  background: transparent;
  box-shadow: none !important;
}

.order-filter .tbs-query-row > .tbs-filter-field.no-label {
  padding-left: 10px;
}

.order-filter .tbs-query-row > .tbs-filter-field.no-label > span {
  display: none;
}

.order-tool-page .tbs-query-row > .tbs-filter-field {
  flex: 1 1 0;
}

.order-filter .tbs-query-row > .order-date-range-field {
  flex: 0 0 430px;
  width: 430px;
  min-width: 430px;
  max-width: 430px;
}

.order-filter .tbs-query-row > .order-date-range-field .el-date-editor {
  flex: 0 0 354px;
  justify-content: flex-start;
  width: 354px !important;
}

.order-date-range-field .el-range__icon,
.order-date-range-field .el-range__close-icon {
  flex: 0 0 14px;
}

.order-date-range-field .el-range-input {
  flex: 0 0 145px;
  width: 145px;
  min-width: 145px;
  background: transparent;
  font-size: 12px;
}

.order-date-range-field .el-range-separator {
  flex: 0 0 20px;
  padding: 0;
}

.order-date-range-popper .el-picker-panel__shortcut {
  color: #606266;
  font-size: 12px;
}

.order-date-range-popper .el-picker-panel__shortcut:hover {
  color: var(--erp-primary);
}

.order-query-grid {
  grid-template-columns: minmax(210px, 1fr) minmax(190px, 0.9fr) minmax(430px, 1.5fr) minmax(220px, 1fr) max-content;
}

.order-query-grid.is-pending-audit {
  grid-template-columns: minmax(200px, 1fr) minmax(170px, 0.8fr) minmax(190px, 0.9fr) minmax(430px, 1.5fr) max-content;
}

.order-filter .status-tabs,
.order-filter .service-status-tabs {
  display: flex;
  gap: 0;
  margin: -16px -18px 18px;
  padding: 0 18px;
  border-bottom: 1px solid #e4e7ed;
}

.order-filter .status-tabs button,
.order-filter .service-status-tabs button {
  height: 40px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid #e4e7ed;
  border-bottom: 0;
  border-radius: 0;
  background: #fafbfc;
  color: #333333;
  font-size: 12px;
  font-weight: 400;
}

.order-filter .status-tabs button + button,
.order-filter .service-status-tabs button + button {
  margin-left: -1px;
}

.order-filter .status-tabs button.active,
.order-filter .service-status-tabs button.active {
  position: relative;
  z-index: 1;
  border-color: #e4e7ed;
  background: #ffffff;
  color: var(--erp-primary);
}

:is(.order-maintain, .order-tool-page) .tbs-reference-table .el-empty {
  padding: 72px 0;
}

/* Product module: keep the current theme while matching the reference ERP layout. */
.product-list-host {
  width: 100%;
  min-width: 0;
}

.product-list-page.tbs-list-shell {
  gap: 0;
}

.product-list-page .product-face-tabs {
  gap: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--erp-line);
  border-radius: 0;
  background: #fff;
  overflow: visible;
}

.product-list-page .product-face-tabs button {
  min-width: auto;
  height: 48px;
  padding: 0 18px;
  border-right: 0;
  font-size: 13px;
  font-weight: 500;
}

.product-list-page .product-face-tabs button.active {
  background: #fff;
  font-weight: 600;
}

.product-list-page .product-face-tabs button.active::after {
  right: 18px;
  left: 18px;
}

.product-list-page .product-list-filter.panel {
  margin-bottom: 12px;
  padding: 16px 20px;
  border: 0;
  border-radius: 0;
}

.product-list-page .product-query-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) max-content;
  gap: 12px 16px;
}

.product-list-page .product-query-grid.expanded {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
}

.product-list-page .tbs-filter-field {
  display: flex;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background: #f8fafc;
  transition: box-shadow 0.15s ease;
}

.product-list-page .tbs-filter-field:focus-within {
  box-shadow: 0 0 0 1px var(--erp-primary) inset;
}

.product-list-page .tbs-filter-label {
  flex: 0 0 auto;
  color: #697386;
  font-size: 12px;
  font-weight: 400;
}

.product-list-page .tbs-filter-field .el-input,
.product-list-page .tbs-filter-field .el-select {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
}

.product-list-page .tbs-filter-field .el-input__wrapper,
.product-list-page .tbs-filter-field .el-select__wrapper {
  padding: 0;
  background: transparent;
  box-shadow: none !important;
}

.product-list-page .product-query-actions {
  min-height: 40px;
}

.product-list-page .product-list-filter.panel .tbs-actionbar {
  margin-top: 16px;
}

.product-list-page .product-list-table {
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

:is(.product-list-page, .category-manager, .attribute-manager) .tbs-reference-table {
  --el-table-header-bg-color: #f8f9fa;
  --el-table-header-text-color: #333333;
  --el-table-text-color: #666666;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

:is(.product-list-page, .category-manager, .attribute-manager) .tbs-reference-table::before,
:is(.product-list-page, .category-manager, .attribute-manager) .tbs-reference-table .el-table__inner-wrapper::before {
  height: 1px;
  background: #ebeef5;
}

:is(.product-list-page, .category-manager, .attribute-manager) .tbs-reference-table th.el-table__cell {
  height: 48px;
  padding: 12px 0;
  border-right: 0;
  border-bottom: 1px solid #ebeef5;
  background: #f8f9fa;
  color: #333333;
  font-size: 12px;
  font-weight: 500;
}

:is(.product-list-page, .category-manager, .attribute-manager) .tbs-reference-table td.el-table__cell {
  padding: 12px 0;
  border-right: 0;
  border-bottom: 1px solid #ebeef5;
  color: #666666;
  font-size: 12px;
}

:is(.product-list-page, .category-manager, .attribute-manager) .tbs-reference-table .cell {
  min-height: 24px;
  padding: 0 12px;
  line-height: 22px;
}

.product-list-page .tbs-reference-table td.el-table__cell {
  height: 94px;
  vertical-align: middle;
}

.product-list-page .table-link-cell {
  color: var(--erp-primary);
}

.product-list-page .table-link-cell strong,
.product-list-page .table-link-cell .subline {
  display: block;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-cell-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 22px;
}

.product-cell-stack > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-copy-code.el-button {
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  vertical-align: middle;
}

.product-cover-cell {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 2px;
  background: #f8fafc;
}

.product-price-link span {
  display: block;
  margin: 0;
  line-height: 21px;
}

.product-price-link .product-sku-count {
  color: var(--erp-primary);
}

.product-template-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
}

.product-template-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-template-link .el-icon {
  flex: 0 0 auto;
  color: var(--erp-primary);
}

.product-time-cell {
  white-space: nowrap;
}

.product-operation-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.product-operation-actions .el-button + .el-button,
.product-operation-actions .product-row-more {
  margin-left: 0;
}

.product-operation-actions .row-more-btn {
  min-width: 20px;
  padding: 0 2px;
}

.product-promotion-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.product-promotion-row label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-promotion-row label > span {
  color: #333;
}

.product-promotion-row label > strong {
  color: #666;
  font-weight: 400;
}

.product-promotion-link .el-input {
  flex: 1 1 auto;
}

.product-analysis-table {
  margin-top: 18px;
}

.category-manager,
.attribute-manager {
  gap: 0;
  padding: 0 20px 24px;
}

.category-manager > .settings-filter.category-filter,
.attribute-manager > .settings-filter.attribute-filter {
  height: 72px !important;
  max-height: 72px !important;
  margin-bottom: 0 !important;
  padding: 18px 0 8px !important;
}

.category-manager > .settings-filter.category-filter .el-form,
.attribute-manager > .settings-filter.attribute-filter .el-form {
  gap: 12px;
  height: 40px !important;
}

.category-manager > .settings-filter.category-filter .el-form-item:not(:last-child),
.attribute-manager > .settings-filter.attribute-filter .el-form-item:not(:last-child) {
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 4px;
  background: #f8fafc;
}

.category-manager > .settings-filter.category-filter .el-form-item__label,
.attribute-manager > .settings-filter.attribute-filter .el-form-item__label {
  height: 40px !important;
  color: #697386;
  font-size: 12px;
  font-weight: 400;
  line-height: 40px !important;
}

.category-manager > .settings-filter.category-filter .el-button,
.attribute-manager > .settings-filter.attribute-filter .el-button {
  height: 40px !important;
  padding: 0 16px !important;
  font-size: 13px;
}

.category-manager > .settings-filter.category-filter .el-form-item:first-child {
  width: 250px !important;
}

.attribute-manager > .settings-filter.attribute-filter .el-form-item:nth-child(1),
.attribute-manager > .settings-filter.attribute-filter .el-form-item:nth-child(2) {
  width: 250px !important;
}

.category-actions,
.attribute-actions {
  min-height: 58px;
  margin-bottom: 0;
  padding: 8px 0 16px;
}

.category-panel,
.attribute-panel {
  flex: 1 1 auto !important;
  min-height: 0;
  overflow: hidden;
}

.category-panel .el-card__body,
.attribute-panel .el-card__body {
  min-height: 0;
}

.category-manager .tbs-reference-table td.el-table__cell,
.attribute-manager .tbs-reference-table td.el-table__cell {
  height: 50px;
  vertical-align: middle;
}

.category-name-cell {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  cursor: grab;
}

.category-name-cell .drag-handle {
  width: 18px;
  color: #98a2b3;
  font-size: 15px;
}

.category-name-cell strong {
  overflow: hidden;
  color: #666;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-relation-drawer .el-drawer__header {
  margin-bottom: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--erp-line);
}

.category-relation-drawer .el-drawer__body {
  padding: 20px 24px 12px;
}

.category-relation-drawer .el-drawer__footer {
  padding: 14px 24px;
  border-top: 1px solid var(--erp-line);
}

.category-product-select-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 500px;
  border: 1px solid var(--erp-line);
}

.category-product-select-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  border-right: 1px solid var(--erp-line);
  background: #fafbfc;
}

.category-product-select-sidebar strong {
  margin-bottom: 8px;
  color: #333;
}

.category-product-select-sidebar button {
  min-height: 34px;
  padding: 0 10px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #666;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.category-product-select-sidebar button.active {
  background: color-mix(in srgb, var(--erp-primary) 10%, white);
  color: var(--erp-primary);
}

.category-product-select-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
}

.category-product-select-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.category-product-select-filter .el-input {
  width: 320px;
}

.attribute-dialog .el-dialog {
  min-height: 600px;
}

.attribute-dialog .el-dialog__body {
  min-height: 430px;
}

/* Setting module reference layout */
.system-module-page :is(.user-org-page, .role-permission-page, .region-rate-page, .system-workbench) {
  background: #fff;
}

.system-module-page .system-reference-filter {
  margin: 0;
  padding: 18px 20px 8px;
  border: 0;
  border-radius: 0;
}

.system-module-page .system-reference-filter .el-form {
  gap: 12px;
}

.system-module-page .system-reference-filter .el-form-item {
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border-radius: 4px;
  background: #f8fafc;
}

.system-module-page .system-reference-filter .el-form-item:last-child {
  padding: 0;
  background: transparent;
}

.system-module-page .system-reference-filter .el-input__wrapper,
.system-module-page .system-reference-filter .el-select__wrapper {
  min-height: 38px;
  padding-right: 0;
  padding-left: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.system-module-page .user-org-layout {
  height: 100%;
  min-height: 0;
  grid-template-columns: 240px minmax(0, 1fr);
  border: 0;
}

.system-module-page .org-tree-panel {
  padding: 20px 16px;
  border-right: 1px solid var(--erp-line);
}

.system-module-page .org-tree-head {
  margin-bottom: 14px;
}

.system-module-page .org-tree-head strong {
  color: #333;
  font-size: 14px;
}

.system-module-page .org-tree-search .el-input__wrapper {
  min-height: 36px;
  border-radius: 4px;
  background: #f8fafc;
  box-shadow: none;
}

.system-module-page :is(.org-tree-all, .org-tree-node) {
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #555;
  font-size: 13px;
}

.system-module-page :is(.org-tree-all, .org-tree-node):hover,
.system-module-page :is(.org-tree-all, .org-tree-node).active {
  border: 0;
  background: color-mix(in srgb, var(--erp-primary) 9%, white);
  color: var(--erp-primary);
}

.system-org-tree {
  --el-tree-node-hover-bg-color: color-mix(in srgb, var(--erp-primary) 7%, white);
  background: transparent;
}

.system-org-tree .el-tree-node__content {
  min-height: 36px;
  padding-right: 6px;
}

.org-tree-row {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  color: #555;
  font-size: 13px;
}

.org-tree-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-tree-row.active {
  color: var(--erp-primary);
  font-weight: 600;
}

.org-dept-edit-button {
  margin-left: auto;
  visibility: hidden;
}

.system-org-tree .el-tree-node__content:hover .org-dept-edit-button,
.org-tree-row.active .org-dept-edit-button {
  visibility: visible;
}

.org-tree-inline-input {
  flex: 1;
}

.org-tree-inline-input .el-input__wrapper {
  min-height: 28px;
  padding: 0 7px;
}

.system-module-page .user-list-panel {
  padding: 0 20px 20px;
  background: #fff;
}

.system-module-page .user-reference-actions,
.system-module-page .role-page-actions {
  min-height: 58px;
  padding: 8px 0 16px;
}

.system-module-page :is(.user-table-card, .role-table-card, .settings-table-card) {
  border: 0;
  border-radius: 0;
}

.system-module-page :is(.user-table-card, .role-table-card, .settings-table-card) > .el-card__body {
  border-top: 1px solid var(--erp-line);
}

.user-reference-form {
  max-width: none;
}

.user-edit-dialog .el-dialog__body {
  min-height: 460px;
  padding: 24px 36px 8px;
}

.user-edit-dialog .el-form-item {
  margin-bottom: 20px;
}

.cross-department-dialog .el-dialog__body {
  padding: 10px 24px 20px;
}

.cross-scope-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--erp-line);
}

.cross-scope-tabs button {
  position: relative;
  height: 42px;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
}

.cross-scope-tabs button.active {
  color: var(--erp-primary);
  font-weight: 600;
}

.cross-scope-tabs button.active::after {
  position: absolute;
  right: 20%;
  bottom: -1px;
  left: 20%;
  height: 2px;
  background: var(--erp-primary);
  content: '';
}

.cross-scope-list {
  border: 1px solid var(--erp-line);
}

.cross-scope-list .el-checkbox-group,
.cross-user-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 14px;
}

.cross-scope-list .el-checkbox {
  min-height: 38px;
  margin-right: 0;
  border-bottom: 1px solid #f1f3f5;
}

.system-capability-note {
  margin: 12px 0 4px;
  color: #98a2b3;
  font-size: 12px;
}

.reset-password-dialog .el-dialog__body {
  padding: 26px 32px 8px;
}

.password-rule-list {
  margin: -10px 0 18px 90px;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.8;
}

.password-rule-list p {
  margin: 0;
}

.department-edit-dialog .el-dialog__body,
.region-rate-dialog .el-dialog__body {
  padding: 28px 32px 12px;
}

.region-flag-symbol {
  display: inline-flex;
  min-width: 32px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.role-permission-drawer {
  --el-drawer-padding-primary: 0;
}

.role-permission-drawer .el-drawer__header {
  min-height: 58px;
  margin: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--erp-line);
  color: #333;
  font-size: 17px;
  font-weight: 600;
}

.role-permission-drawer .el-drawer__body {
  padding: 20px 20px 0;
  overflow: hidden;
}

.role-permission-drawer .el-drawer__footer {
  padding: 14px 24px;
  border-top: 1px solid var(--erp-line);
}

.role-drawer-form {
  padding: 0 12px;
}

.role-drawer-form .el-form-item__label {
  white-space: nowrap;
}

.role-drawer-form-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 18px;
}

.role-drawer-tabs {
  height: calc(100% - 116px);
  margin-top: 8px;
}

.role-drawer-tabs .el-tabs__content,
.role-drawer-tabs .el-tab-pane {
  height: calc(100% - 2px);
}

.role-drawer-tabs .el-tabs__header {
  margin-bottom: 12px;
  padding: 0 18px;
  background: #f8fafc;
}

.role-drawer-tabs .permission-toolbar {
  padding: 0 0 10px;
}

.role-permission-matrix {
  height: calc(100% - 44px);
  overflow: auto;
}

.role-permission-module-row {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.role-permission-module-name,
.role-permission-module-tree {
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid var(--erp-line);
}

.role-permission-module-name {
  color: #555;
  font-weight: 600;
}

.role-permission-module-tree .el-tree-node__content {
  min-height: 32px;
}

.operation-log-filter .operation-log-date-field {
  flex: 1 0 560px;
  max-width: 620px;
}

.operation-log-date-field .el-date-editor {
  width: 500px;
  max-width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.system-expand-query {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--erp-primary);
  cursor: pointer;
}

.global-setting-panel {
  height: calc(100vh - 94px);
  padding: 24px 20px 28px;
  overflow: auto;
  background: #fff;
}

.global-setting-card {
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.global-setting-group {
  padding: 30px 40px 32px;
  border-bottom: 1px solid var(--erp-line);
}

.global-setting-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--erp-text);
  font-size: 16px;
  line-height: 24px;
}

.global-setting-group h3::before {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--erp-primary);
  content: '';
}

.global-setting-line {
  gap: 14px;
  min-height: 40px;
  line-height: 24px;
}

.global-order-limit-line .el-input-number {
  width: 180px;
  flex: 0 0 180px;
}

.global-setting-group p {
  margin-top: 10px;
  line-height: 22px;
}

.global-setting-line + .form-muted {
  margin-bottom: 14px;
}

.global-setting-footer {
  display: flex;
  justify-content: flex-end;
  padding: 20px 40px;
}

.global-setting-footer .el-button {
  min-width: 96px;
}

@media (max-width: 768px) {
  .global-setting-panel {
    padding: 16px 12px 20px;
  }

  .global-setting-group {
    padding: 24px 18px 26px;
  }

  .global-setting-line {
    align-items: flex-start;
  }

  .global-order-limit-line .el-input-number {
    width: 144px;
    flex-basis: 144px;
  }

  .global-setting-footer {
    padding: 18px;
  }
}

/* Keep every secondary-menu list readable while allowing rich rows to grow taller. */
.tbs-reference-table {
  --erp-list-row-height: 66px;
}

.tbs-reference-table .el-table__body tr.el-table__row {
  height: var(--erp-list-row-height);
}

/* Setting lists share one quiet, scannable table header treatment. */
.system-module-page .tbs-reference-table {
  --el-table-header-bg-color: #f8f9fa;
  --el-table-header-text-color: #333333;
  --el-table-text-color: #666666;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

.system-module-page .tbs-reference-table th.el-table__cell {
  height: 48px;
  padding: 12px 0;
  border-right: 0;
  border-bottom: 1px solid #ebeef5;
  background: #f8f9fa;
  color: #333333;
  font-size: 12px;
  font-weight: 500;
}

.system-module-page .tbs-reference-table td.el-table__cell {
  border-right: 0;
  border-bottom: 1px solid #ebeef5;
  color: #666666;
  font-size: 12px;
}

.system-module-page .tbs-reference-table .cell {
  min-height: 24px;
  padding: 0 12px;
  line-height: 22px;
}

.system-module-page .role-permission-page.tbs-list-shell {
  gap: 0;
}

.system-module-page .role-page-actions {
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--erp-line);
  background: #fff;
}

.system-module-page :is(.user-filter-form, .operation-log-form) {
  width: 100%;
  align-items: center;
  flex-wrap: nowrap !important;
}

.system-module-page .operation-log-form.is-advanced {
  flex-wrap: wrap !important;
}

.system-module-page :is(.user-filter-form, .operation-log-form) .el-form-item__label {
  display: inline-flex;
  width: auto !important;
  min-width: max-content;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.system-module-page :is(.user-filter-form, .operation-log-form) .el-form-item {
  align-items: center !important;
}

.system-module-page :is(.user-filter-form, .operation-log-form) .el-form-item__content {
  min-width: 0;
  min-height: 38px;
  align-items: center;
  flex-wrap: nowrap;
}

.system-module-page .user-filter-form .el-form-item:not(:last-child),
.system-module-page .operation-log-form .el-form-item:not(:last-child) {
  min-width: 0;
  flex: 1 1 0;
}

.system-module-page :is(.user-filter-form, .operation-log-form) .el-form-item:not(:last-child) :is(.el-input, .el-select) {
  width: 100% !important;
  min-width: 0;
}

.statistics-analysis-page.tbs-list-shell {
  height: calc(100vh - 94px);
  min-height: 0;
  overflow: hidden;
}

.statistics-analysis-page > .tbs-table-card {
  flex: 1 1 auto;
  min-height: 0;
}
