:root {
  --ink: #111827;
  --muted: #667085;
  --subtle: #9099aa;
  --paper: #f3f5f7;
  --panel: rgba(255, 255, 255, 0.94);
  --line: #d8dee8;
  --line-soft: rgba(216, 222, 232, 0.72);
  --accent: #0f766e;
  --accent-2: #d59a1b;
  --accent-3: #2563eb;
  --danger: #c2414b;
  --warning: #d59a1b;
  --nav: #0d1b1e;
  --nav-2: #13272b;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafb 0%, var(--paper) 52%, #f7f8fa 100%);
  color: var(--ink);
  font-family: Inter, "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea,
.el-button,
.el-input__inner {
  font-family: inherit;
}

.admin-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 240px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0c1a1e, #11262b);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 14px 0 42px rgba(4, 15, 18, 0.18);
  backdrop-filter: blur(18px);
  transition: width 0.2s ease;
}

.side-rail.collapsed {
  width: 80px;
}

.brand-mark {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-sigil,
.brief-sigil {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #0f766e, #d59a1b);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.brand-sigil {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 18px;
  position: relative;
}

.brand-copy,
.brief-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy b,
.brief-copy b {
  color: #f8fafc;
  font-size: 18px;
  letter-spacing: 0;
}

.brand-copy span,
.brief-copy span {
  color: rgba(226, 232, 240, 0.62);
  font-size: 12px;
}

.collapsed .brand-copy {
  display: none;
}

.nav-menu {
  --el-menu-bg-color: transparent;
  --el-menu-text-color: rgba(226, 232, 240, 0.76);
  --el-menu-hover-bg-color: rgba(255, 255, 255, 0.06);
  --el-menu-active-color: #ffffff;
  border: 0;
  background: transparent;
  flex: 1;
  padding: 18px 14px;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-menu .el-menu,
.nav-menu .el-menu--inline,
.nav-menu .el-sub-menu,
.nav-menu .el-sub-menu__title {
  border: 0 !important;
  box-shadow: none !important;
}

.nav-menu .el-menu--inline {
  border-radius: 0 !important;
}

.nav-menu::-webkit-scrollbar {
  width: 0;
}

.nav-menu .el-menu-item,
.nav-menu .el-sub-menu__title {
  position: relative;
  height: 48px;
  margin: 6px 0;
  padding: 0 14px !important;
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-menu .el-sub-menu {
  margin: 6px 0;
}

.nav-menu .el-sub-menu .el-menu {
  position: relative;
  margin: 4px 0 8px;
  padding: 4px 0 4px 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.nav-menu .el-sub-menu .el-menu::before,
.nav-menu .el-sub-menu .el-menu::after,
.nav-menu .el-sub-menu__title::before,
.nav-menu .el-sub-menu__title::after {
  display: none !important;
}

.nav-menu .el-sub-menu .el-sub-menu .el-menu {
  margin-left: 0;
  padding-left: 14px;
}

.nav-menu .el-sub-menu__title {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
}

.nav-menu .el-sub-menu__title:hover,
.nav-menu .el-menu-item:hover {
  background: rgba(255, 255, 255, 0.065);
}

.nav-menu .el-sub-menu .el-menu-item {
  height: 40px;
  margin: 4px 0;
  padding-left: 13px !important;
  color: rgba(226, 232, 240, 0.66);
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  box-shadow: none;
}

.nav-menu .el-sub-menu .el-sub-menu__title {
  height: 40px;
  margin: 4px 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
  background: transparent;
  box-shadow: none;
}

.nav-menu .el-sub-menu .el-sub-menu .el-menu-item {
  height: 36px;
  color: rgba(226, 232, 240, 0.62);
  font-size: 12px;
}

.nav-menu .el-menu-item .el-icon,
.nav-menu .el-sub-menu__title .el-icon {
  color: rgba(226, 232, 240, 0.72);
}

.nav-menu .el-menu-item.is-active {
  color: #fff;
  background: rgba(15, 118, 110, 0.58);
  border-color: rgba(52, 211, 153, 0.22);
  box-shadow: inset 3px 0 0 #f2b84b;
}

.nav-menu .el-menu-item.is-active::after {
  display: none;
}

.nav-menu .el-menu-item.is-active .el-icon {
  color: #f7c75b;
}

.nav-menu .el-sub-menu.is-active > .el-sub-menu__title {
  color: #fff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.nav-menu .el-sub-menu.is-opened > .el-sub-menu__title {
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
  box-shadow: none;
}

.nav-menu .el-sub-menu.is-active > .el-sub-menu__title .el-icon {
  color: #f7c75b;
}

.side-footer {
  margin: 0 14px 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  color: rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(36, 50, 92, 0.08);
}

.side-footer span,
.side-footer small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.side-footer strong {
  color: #f7c75b;
  font-size: 20px;
}

.collapsed .side-footer {
  display: none;
}

.workbench {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) minmax(240px, 340px) max-content;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.045);
  backdrop-filter: blur(18px);
}

.topbar::after {
  display: none;
}

.topbar-left,
.route-trail,
.operator {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.route-trail {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 14px;
}

.route-trail strong {
  color: var(--ink);
  font-size: 15px;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(213, 154, 27, 0.08));
  font-weight: 750;
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.route-chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  border: 1px solid rgba(216, 226, 241, 0.92);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.035);
  font-weight: 800;
  white-space: nowrap;
}

.topbar-spacer {
  min-width: 0;
}

.top-search {
  width: 100%;
}

.top-search .el-input__wrapper {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(201, 212, 232, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.045);
}

.top-search .el-input__wrapper.is-focus {
  border-color: rgba(47, 107, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.08);
}

.top-search-action {
  height: 28px;
  padding: 0 2px;
  font-weight: 800;
}

.top-search span,
.operator > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator {
  justify-content: flex-end;
  color: var(--ink);
  font-weight: 650;
  min-width: max-content;
}

.operator .el-badge {
  display: inline-flex;
}

.operator .el-button.is-circle {
  width: 34px;
  height: 34px;
}

.operator .el-tag {
  flex: none;
  border-color: rgba(47, 107, 255, 0.28);
  color: var(--accent);
  background: rgba(47, 107, 255, 0.06);
}

.page-stage {
  position: relative;
  min-height: calc(100vh - 60px);
  padding: 28px 32px 56px;
  overflow-x: hidden;
  overflow-y: auto;
}

.global-search-popper {
  border-radius: 12px !important;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.14) !important;
}

.global-search-popper .el-autocomplete-suggestion__wrap {
  max-height: 390px;
  padding: 8px;
}

.global-search-popper .el-autocomplete-suggestion li {
  min-height: 60px;
  padding: 0;
  border-radius: 10px;
  line-height: 1.25;
}

.global-search-popper .el-autocomplete-suggestion li:hover {
  background: rgba(47, 107, 255, 0.07);
}

.search-option {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 10px 54px 10px 12px;
}

.search-option span {
  color: #121a2c;
  font-size: 14px;
  font-weight: 760;
}

.search-option small {
  min-width: 0;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-option em {
  position: absolute;
  right: 10px;
  top: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.08);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.notice-popper {
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16) !important;
}

.notice-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.notice-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.notice-panel header b {
  color: #111827;
  font-size: 15px;
}

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

.notice-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  cursor: pointer;
}

.notice-item:hover {
  background: rgba(47, 107, 255, 0.06);
  border-color: rgba(47, 107, 255, 0.22);
}

.notice-item span {
  color: #111827;
  font-size: 14px;
  font-weight: 760;
}

.notice-item small {
  display: -webkit-box;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.026) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 52%);
}

.page-stage > * {
  position: relative;
  width: min(100%, 1320px);
  max-width: 1320px;
  margin: 0 auto;
}

.page-stage > div {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 108px;
  margin-bottom: 0;
  padding: 24px 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(219, 227, 242, 0.82);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(36, 50, 92, 0.08);
  backdrop-filter: blur(18px);
}

.page-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #0f766e, #d59a1b);
}

.page-head::after {
  display: none;
}

.page-head > * {
  position: relative;
  z-index: 1;
}

.page-head h1 {
  margin: 0;
  color: #0e1424;
  font-size: 32px;
  line-height: 1.22;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.page-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.page-actions,
.panel-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.member-import-dialog .el-dialog__body {
  padding-top: 8px;
}

.member-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  margin-bottom: 16px;
}

.import-uploader,
.import-summary {
  border: 1px solid rgba(210, 222, 240, 0.96);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.96));
  box-shadow: 0 14px 34px rgba(30, 41, 59, 0.06);
}

.import-uploader {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.import-uploader > div:first-child,
.upload-compact {
  display: grid;
  gap: 6px;
}

.import-uploader b,
.upload-compact b,
.import-summary span {
  color: #101828;
  font-size: 15px;
  font-weight: 850;
}

.import-uploader span,
.upload-compact span,
.import-summary small {
  color: #667085;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.import-uploader .el-upload-dragger {
  padding: 22px 18px;
  border-radius: 12px;
  border-color: rgba(184, 202, 229, 0.96);
  background: rgba(245, 248, 253, 0.84);
}

.import-summary {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.import-summary strong {
  color: #0f172a;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.import-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.import-preview-table {
  overflow: hidden;
  border: 1px solid rgba(210, 222, 240, 0.96);
  border-radius: 14px;
  background: #ffffff;
}

.page-head .page-actions {
  align-self: center;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(36, 50, 92, 0.08);
}

.toolbar .el-input,
.toolbar .el-select,
.toolbar .el-input-number {
  min-height: 40px;
  width: 100% !important;
}

.toolbar .el-button {
  min-height: 40px;
  min-width: 96px;
  justify-self: start;
}

.toolbar .el-button + .el-button {
  margin-left: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.metric {
  position: relative;
  min-height: 108px;
  padding: 18px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(36, 50, 92, 0.08);
}

.metric::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 54px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.62), rgba(213, 154, 27, 0.38));
  border-radius: 0 0 3px 3px;
}

.metric::after {
  display: none;
}

.metric span {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.metric strong {
  position: relative;
  display: block;
  margin-top: 12px;
  color: #0c1327;
  font-size: 28px;
  line-height: 1;
}

.metric small {
  position: relative;
  display: block;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 650;
}

.panel {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 253, 255, 0.92));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 18px 46px rgba(36, 50, 92, 0.09);
}

.panel::before {
  display: none;
}

.panel .el-table,
.page-stage .el-table {
  --el-table-border-color: var(--line-soft);
  --el-table-header-bg-color: #f5f7fa;
  --el-table-header-text-color: #1f2a44;
  --el-table-row-hover-bg-color: rgba(47, 107, 255, 0.045);
  color: #253049;
  font-size: 13px;
  border-radius: 12px;
  overflow: hidden;
}

.panel .el-table th.el-table__cell,
.page-stage .el-table th.el-table__cell {
  height: 46px;
  font-weight: 750;
  letter-spacing: 0;
}

.panel .el-table td.el-table__cell,
.page-stage .el-table td.el-table__cell {
  height: 48px;
}

.panel .el-pagination,
.page-stage .el-pagination {
  margin-top: 16px;
  justify-content: flex-end;
}

.business-data-table .el-table-fixed-column--right,
.module-table .el-table-fixed-column--right,
.panel .el-table-fixed-column--right {
  box-shadow: none;
}

.table-cell-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: normal;
}

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

.panel-title b {
  display: block;
  color: #111827;
  font-size: 16px;
}

.panel-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.module-metrics {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.module-toolbar {
  grid-template-columns: minmax(200px, 2fr) repeat(4, minmax(0, 1fr)) minmax(82px, 0.78fr) minmax(82px, 0.78fr);
}

.module-toolbar > .el-input:first-child {
  grid-column: span 1;
}

.module-toolbar > .el-button {
  width: 100%;
  min-width: 0;
}

.module-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.module-table {
  min-width: 0;
}

.module-table .el-table {
  width: 100%;
}

.module-table .el-table__inner-wrapper,
.module-table .el-table__header-wrapper,
.module-table .el-table__body-wrapper {
  width: 100%;
}

.logic-rules-panel {
  display: grid;
  gap: 16px;
}

.logic-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.logic-rule-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 14px;
}

.logic-rule-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logic-rule-card strong {
  color: #101828;
  font-size: 15px;
}

.logic-rule-card p {
  min-height: 40px;
  margin: 0;
  color: #536173;
  font-size: 13px;
  line-height: 1.55;
}

.logic-rule-card code {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  color: #0f766e;
  background: #ffffff;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.logic-rule-card footer {
  display: grid;
  gap: 4px;
  color: #667085;
  font-size: 12px;
}

.logic-rule-card footer span {
  color: #344054;
  font-weight: 800;
}

.module-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.module-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(36, 50, 92, 0.08);
}

.module-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  width: 54px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.68), rgba(213, 154, 27, 0.42));
}

.module-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.module-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.3;
}

.module-card ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line);
}

.module-card li {
  position: relative;
  padding-left: 16px;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
}

.module-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(36, 50, 92, 0.065);
}

.workflow-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  color: #344054;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(216, 222, 232, 0.72);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.workflow-strip b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--accent);
  border-radius: 7px;
  font-size: 12px;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  white-space: nowrap;
}

.business-data-table .action-cell .cell {
  padding-left: 18px;
  padding-right: 18px;
}

.business-data-table .action-cell .row-actions {
  justify-content: flex-start;
  white-space: normal;
}

.row-actions .el-button {
  min-height: 30px;
  padding: 4px 10px;
  margin-left: 0;
  border-radius: 7px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.row-actions .el-button + .el-button {
  background: rgba(37, 99, 235, 0.055);
  border-color: rgba(37, 99, 235, 0.12);
}

.billing-records-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  align-items: stretch;
}

.summary-side {
  min-width: 0;
}

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

.summary-card-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 12px;
}

.summary-card-item span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.summary-card-item strong {
  color: #101828;
  font-size: 20px;
  line-height: 1;
}

.summary-card-item small {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

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

.detail-list label {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.detail-list strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

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

.form-grid .el-input-number,
.form-grid .el-select {
  width: 100%;
}

.column-checks {
  display: grid;
  gap: 10px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-top: 0;
  align-items: stretch;
}

.chart-box {
  min-height: 330px;
}

.plan-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background:
    radial-gradient(420px 220px at 24% 0%, rgba(15, 118, 110, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 253, 255, 0.92));
}

.plan-filter {
  grid-template-columns: minmax(240px, 1.4fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) auto auto;
}

.plan-matrix-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.plan-matrix-title b {
  color: #111827;
  font-size: 16px;
}

.plan-matrix-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.plan-column {
  position: relative;
  min-width: 0;
  padding: 24px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0));
  border-right: 1px solid rgba(216, 222, 232, 0.58);
}

.plan-column::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.64), rgba(213, 154, 27, 0.34));
  border-radius: 0 0 999px 999px;
}

.plan-column:last-child {
  border-right: 0;
}

.plan-column-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 8px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.plan-column-head span {
  width: fit-content;
  padding: 5px 10px;
  color: #0d5f59;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(213, 154, 27, 0.08));
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.plan-column-head b {
  width: fit-content;
  align-self: center;
  justify-self: start;
  padding: 3px 8px;
  color: #8b5e08;
  background: rgba(213, 154, 27, 0.12);
  border: 1px solid rgba(213, 154, 27, 0.2);
  border-radius: 999px;
  font-size: 11px;
}

.plan-column-head .el-input {
  grid-column: 1 / -1;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: -4px 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px dashed var(--line-soft);
}

.plan-price strong {
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.plan-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.plan-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.plan-matrix .el-input,
.plan-matrix .el-input-number {
  width: 100%;
}

.plan-matrix .el-input-number .el-input__inner {
  text-align: right;
}

.plan-save {
  width: 100%;
  margin-top: 8px;
}

.el-button--primary {
  --el-button-bg-color: var(--accent);
  --el-button-border-color: var(--accent);
  --el-button-hover-bg-color: #0b625d;
  --el-button-hover-border-color: #0b625d;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.16);
}

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

.el-input__wrapper:hover,
.el-select__wrapper:hover,
.el-textarea__inner:hover {
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.35) inset;
}

.el-drawer {
  --el-drawer-bg-color: #fbfcff;
}

.el-drawer pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #24314f;
  background: #f4f7fd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-scene {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: 48px;
  padding: 56px 72px;
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #f9fbff 0%, #f3f6fb 100%);
}

.login-brief {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  min-height: 560px;
  padding: 54px;
  gap: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(226, 232, 242, 0.86);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(30, 41, 59, 0.08);
}

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

.brief-sigil {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 18px;
}

.brief-copy b {
  color: #101828;
  font-size: 20px;
}

.brief-copy span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.login-brief h1 {
  max-width: 680px;
  margin: 0;
  color: #0b1224;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-brief > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brief-meta span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  color: #2457ff;
  background: #eef3ff;
  border: 1px solid #d8e2ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.brief-points {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.brief-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #24314f;
  font-size: 14px;
  font-weight: 650;
}

.brief-points i {
  width: 8px;
  height: 8px;
  border: 2px solid #2f6bff;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
}

.login-card {
  align-self: center;
  width: 100%;
  max-width: 430px;
  justify-self: center;
  margin: 0;
  padding: 38px 34px 30px;
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(30, 41, 59, 0.12);
}

.login-card-head {
  margin-bottom: 22px;
}

.login-card-head h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 26px;
  letter-spacing: 0;
}

.login-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.login-card-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

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

.login-card .el-input__wrapper {
  min-height: 48px;
  border-radius: 12px;
}

.login-card .el-button {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 800;
}

.login-scene .brief-copy b {
  color: #101828;
}

.login-scene .brief-copy span {
  color: #667085;
}

.status-active {
  color: var(--accent-3);
}

.status-disabled {
  color: var(--danger);
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(280px, 1fr) auto;
  }

  .route-trail {
    display: none;
  }

  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .module-toolbar,
  .plan-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-toolbar > .el-input:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 1100px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

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

  .plan-column:nth-child(odd) {
    border-right: 1px solid rgba(216, 222, 232, 0.58);
  }

  .login-scene {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }

  .login-brief {
    min-height: auto;
    padding: 36px;
    gap: 20px;
  }

  .login-brief h1 {
    font-size: 34px;
  }

  .login-card {
    margin: 0;
  }
}

@media (max-width: 760px) {
  .side-rail {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 14px;
  }

  .operator {
    justify-content: flex-start;
  }

  .top-search {
    display: none;
  }

  .page-stage {
    padding: 18px;
  }

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

  .toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .module-toolbar,
  .plan-filter {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .plan-matrix {
    grid-template-columns: 1fr;
  }

  .plan-column {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

/* Admin/Web visual alignment: match the public web console shell and component
   rhythm while preserving a distinct operations colorway. */
:root {
  --ink: #15131f;
  --muted: #4b5864;
  --subtle: #8a94a6;
  --paper: #f6f7fb;
  --panel: #ffffff;
  --line: #e6eaed;
  --line-soft: #edf0f6;
  --accent: #0f766e;
  --accent-2: #d59a1b;
  --accent-3: #1664ff;
  --nav: #ffffff;
  --nav-2: #fbfcff;
  --shadow: 0 10px 30px rgba(37, 31, 63, 0.05);
}

body,
.admin-shell {
  background: #f6f7fb;
}

.side-rail {
  width: 220px;
  background: #fbfcff;
  border-right: 1px solid #dfe3ee;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-mark {
  height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid #dfe3ee;
}

.brand-sigil,
.brief-sigil {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #d59a1b);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.16);
}

.brand-copy b,
.brief-copy b {
  color: #111827;
  font-size: 17px;
}

.brand-copy span,
.brief-copy span {
  color: #667085;
  font-size: 12px;
}

.nav-menu {
  --el-menu-text-color: #344054;
  --el-menu-hover-bg-color: #f0f3fa;
  --el-menu-active-color: #0f766e;
  padding: 14px 12px;
}

.nav-menu .el-menu-item,
.nav-menu .el-sub-menu__title {
  height: 40px;
  margin: 4px 0;
  padding: 0 12px !important;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
  border: 0;
}

.nav-menu .el-sub-menu .el-menu {
  margin: 2px 0 8px;
  padding: 2px 0 2px 18px;
}

.nav-menu .el-sub-menu .el-menu-item,
.nav-menu .el-sub-menu .el-sub-menu__title {
  height: 36px;
  color: #4b5864;
  font-size: 13px;
}

.nav-menu .el-sub-menu .el-sub-menu .el-menu-item {
  height: 34px;
  color: #667085;
  font-size: 12px;
}

.nav-menu .el-menu-item .el-icon,
.nav-menu .el-sub-menu__title .el-icon {
  color: #667085;
}

.nav-menu .el-sub-menu__title:hover,
.nav-menu .el-menu-item:hover,
.nav-menu .el-sub-menu.is-opened > .el-sub-menu__title {
  background: #f3f6fb;
  color: #111827;
}

.nav-menu .el-menu-item.is-active {
  color: #0f766e;
  background: #e9f6f3;
  border: 0;
  box-shadow: inset 3px 0 0 #0f766e;
}

.nav-menu .el-menu-item.is-active .el-icon,
.nav-menu .el-sub-menu.is-active > .el-sub-menu__title .el-icon {
  color: #0f766e;
}

.nav-menu .el-sub-menu.is-active > .el-sub-menu__title {
  color: #111827;
}

.side-footer {
  margin: auto 14px 16px;
  padding: 14px 16px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  box-shadow: none;
}

.side-footer span,
.side-footer small {
  color: #667085;
}

.side-footer strong {
  color: #d59a1b;
}

.topbar {
  min-height: 48px;
  grid-template-columns: minmax(320px, 1fr) auto auto;
  gap: 16px;
  padding: 0 18px;
  background: #ffffff;
  border-bottom: 1px solid #dfe3ee;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
}

.product-chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  color: #0f766e;
  background: #e9f6f3;
  border-color: #cde8e1;
  font-size: 13px;
}

.top-search {
  width: min(420px, 32vw);
  height: 34px;
  border-radius: 6px;
  border-color: #d6dbe7;
  box-shadow: none;
}

.route-trail,
.operator {
  font-size: 13px;
}

.operator .el-tag {
  color: #0f766e;
  background: #e9f6f3;
  border-color: #bfe3da;
}

.page-stage {
  min-height: calc(100vh - 48px);
  padding: 24px 28px 48px;
}

.page-stage::before {
  display: none;
}

.page-stage > * {
  max-width: 1280px;
}

.page-stage > div {
  gap: 16px;
}

.page-head {
  min-height: auto;
  padding: 22px 28px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e6eaed;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.page-head::before {
  width: 4px;
  background: linear-gradient(180deg, #0f766e, #d59a1b);
}

.page-head h1 {
  font-size: 28px;
  font-weight: 750;
  line-height: 1.25;
  color: #15131f;
  text-shadow: none;
}

.page-head p {
  margin-top: 6px;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
}

.toolbar,
.workflow-strip,
.metric,
.panel,
.module-card {
  background: #ffffff;
  border: 1px solid #e6eaed;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.toolbar {
  padding: 12px 14px;
}

.toolbar .el-input,
.toolbar .el-select,
.toolbar .el-input-number,
.topbar .el-button {
  --el-border-radius-base: 6px;
}

.metric {
  min-height: 96px;
  padding: 16px 18px;
}

.metric::before,
.module-card::before {
  display: none;
}

.metric span,
.module-card span,
.panel-title span {
  color: #667085;
}

.metric strong {
  color: #15131f;
  font-size: 28px;
}

.workflow-strip {
  padding: 10px;
  box-shadow: none;
}

.workflow-strip span {
  min-height: 36px;
  border-color: #e6eaed;
  background: #fbfcff;
  color: #344054;
}

.workflow-strip b {
  background: #0f766e;
}

.panel {
  padding: 18px;
}

.panel .el-table,
.page-stage .el-table {
  --el-table-header-bg-color: #f8f9fb;
  --el-table-header-text-color: #1f2937;
  --el-table-row-hover-bg-color: #f6f9ff;
  border-radius: 8px;
}

.row-actions .el-button {
  background: #ffffff;
  border: 1px solid #dfe3ee;
  color: #1664ff;
}

.row-actions .el-button + .el-button {
  background: #e9f6f3;
  border-color: #cde8e1;
  color: #0f766e;
}

.el-button--primary {
  --el-button-bg-color: #0f766e;
  --el-button-border-color: #0f766e;
  --el-button-hover-bg-color: #0b625d;
  --el-button-hover-border-color: #0b625d;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.14);
}

/* Refined admin visual language: aligned with the public console's clean
   geometry, with a darker operations rail and no left-edge marker motifs. */
:root {
  --ink: #111827;
  --muted: #536173;
  --subtle: #8b95a7;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --line: #e2e8f2;
  --line-soft: #edf1f7;
  --accent: #0f766e;
  --accent-2: #2f6bff;
  --accent-3: #6d5dfc;
  --shadow: 0 18px 42px rgba(30, 41, 59, 0.075);
}

body,
.admin-shell {
  background: #f5f7fb;
}

.side-rail {
  width: 232px;
  background:
    radial-gradient(360px 220px at 28% 0%, rgba(47, 107, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #111827 0%, #0d1726 56%, #0b1420 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 20px 0 42px rgba(15, 23, 42, 0.16);
}

.brand-mark {
  height: 76px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.brand-sigil,
.brief-sigil {
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f6bff 0%, #0f766e 58%, #d59a1b 100%);
  box-shadow: 0 16px 30px rgba(47, 107, 255, 0.22);
}

.brand-copy b,
.brief-copy b {
  color: #f8fafc;
  font-size: 18px;
}

.brand-copy span,
.brief-copy span {
  color: rgba(226, 232, 240, 0.68);
}

.nav-menu {
  --el-menu-text-color: rgba(226, 232, 240, 0.78);
  --el-menu-hover-bg-color: rgba(255, 255, 255, 0.08);
  --el-menu-active-color: #ffffff;
  padding: 16px 12px;
}

.nav-menu .el-menu,
.nav-menu .el-menu--inline,
.nav-menu .el-sub-menu,
.nav-menu .el-sub-menu__title {
  background: transparent !important;
}

.nav-menu .el-menu-item,
.nav-menu .el-sub-menu__title {
  height: 42px;
  margin: 5px 0;
  padding: 0 13px !important;
  color: rgba(226, 232, 240, 0.78);
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: none !important;
}

.nav-menu .el-sub-menu .el-menu {
  margin: 4px 0 10px;
  padding: 2px 0 2px 14px;
}

.nav-menu .el-sub-menu .el-menu-item,
.nav-menu .el-sub-menu .el-sub-menu__title {
  height: 38px;
  color: rgba(203, 213, 225, 0.76);
  font-size: 13px;
}

.nav-menu .el-sub-menu .el-sub-menu .el-menu-item {
  height: 34px;
  color: rgba(203, 213, 225, 0.64);
  font-size: 12px;
}

.nav-menu .el-menu-item .el-icon,
.nav-menu .el-sub-menu__title .el-icon {
  color: rgba(203, 213, 225, 0.72);
}

.nav-menu .el-sub-menu__title:hover,
.nav-menu .el-menu-item:hover,
.nav-menu .el-sub-menu.is-opened > .el-sub-menu__title {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(148, 163, 184, 0.12);
}

.nav-menu .el-menu-item.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(15, 118, 110, 0.9));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22) !important;
}

.nav-menu .el-menu-item.is-active::before,
.nav-menu .el-menu-item.is-active::after,
.nav-menu .el-sub-menu__title::before,
.nav-menu .el-sub-menu__title::after,
.nav-menu .el-sub-menu .el-menu::before,
.nav-menu .el-sub-menu .el-menu::after,
.page-head::before,
.page-head::after,
.metric::before,
.metric::after,
.module-card::before {
  display: none !important;
  content: none !important;
}

.nav-menu .el-menu-item.is-active .el-icon,
.nav-menu .el-sub-menu.is-active > .el-sub-menu__title .el-icon {
  color: #ffffff;
}

.nav-menu .el-sub-menu.is-active > .el-sub-menu__title {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.side-footer {
  margin: auto 14px 16px;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.side-footer span,
.side-footer small {
  color: rgba(203, 213, 225, 0.62);
}

.side-footer strong {
  color: #f8c857;
}

.topbar {
  min-height: 58px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 242, 0.9);
  box-shadow: 0 10px 30px rgba(30, 41, 59, 0.055);
  backdrop-filter: blur(20px);
}

.product-chip {
  height: 36px;
  padding: 0 14px;
  color: #2457ff;
  background: #eef3ff;
  border-color: #d8e2ff;
  border-radius: 8px;
}

.top-search {
  height: 38px;
  border-color: #d9e1ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(30, 41, 59, 0.045);
}

.operator .el-tag {
  color: #0f766e;
  background: #e7f7f4;
  border-color: #c2e9df;
}

.page-stage {
  min-height: calc(100vh - 58px);
  padding: 28px 34px 56px;
}

.page-stage::before {
  display: none;
}

.page-stage > * {
  max-width: 1360px;
}

.page-stage > div {
  gap: 18px;
}

.page-head {
  min-height: 126px;
  align-items: center;
  padding: 30px 34px;
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.page-head h1 {
  color: #101828;
  font-size: 32px;
  font-weight: 800;
}

.page-head p {
  color: #64748b;
  font-size: 15px;
}

.toolbar,
.workflow-strip,
.metric,
.panel,
.module-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.workflow-strip {
  padding: 12px;
}

.workflow-strip span {
  min-height: 40px;
  border: 1px solid #dfe7f3;
  border-radius: 12px;
  background: #f8fbff;
  color: #344054;
}

.workflow-strip b {
  border-radius: 9px;
  background: linear-gradient(135deg, #2f6bff, #0f766e);
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.18);
}

.metric {
  min-height: 112px;
  padding: 20px 22px;
}

.metric-action-number,
.ops-action-number {
  display: inline-flex;
  width: fit-content;
  margin: 8px 0 6px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.metric-action-number:hover strong,
.ops-action-number:hover strong {
  color: #2457ff;
}

.metric-action-number strong,
.ops-action-number strong {
  margin: 0;
}

.metric-action-number:focus-visible,
.ops-action-number:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.18);
  outline-offset: 4px;
}

.metric span,
.module-card span,
.panel-title span {
  color: #667085;
}

.metric strong {
  color: #101828;
  font-size: 30px;
  font-weight: 800;
}

.toolbar {
  padding: 14px 16px;
}

.panel {
  padding: 20px;
}

.panel-title b {
  color: #101828;
  font-size: 17px;
}

.panel .el-table,
.page-stage .el-table {
  --el-table-header-bg-color: #f6f8fc;
  --el-table-header-text-color: #1d2939;
  --el-table-row-hover-bg-color: #f4f8ff;
  border-radius: 12px;
}

.row-actions .el-button {
  border-radius: 9px;
}

.el-button--primary {
  --el-button-bg-color: #0f766e;
  --el-button-border-color: #0f766e;
  --el-button-hover-bg-color: #0c655f;
  --el-button-hover-border-color: #0c655f;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.dashboard-page {
  display: grid;
  gap: 18px;
}

.dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(420px, 0.78fr);
  gap: 28px;
  align-items: stretch;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    #ffffff;
  border: 1px solid #dfe8f6;
  border-radius: 24px;
  box-shadow: 0 22px 56px rgba(16, 24, 40, 0.08);
}

.dashboard-command-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.dashboard-eyebrow {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  color: #0f766e;
  background: #eefbf8;
  border: 1px solid #cfeee7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-command h1 {
  margin: 0;
  color: #101828;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.dashboard-command p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #5b6b82;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.7;
}

.dashboard-command-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.dashboard-command-pill,
.dashboard-today-card {
  font: inherit;
  cursor: pointer;
}

.dashboard-command-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #dfe8f6;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.dashboard-command-pill:hover {
  color: #2457ff;
  border-color: #c8d7f5;
  transform: translateY(-1px);
}

.dashboard-command-pill span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-command-pill b {
  color: inherit;
  font-size: 14px;
}

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

.dashboard-today-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 116px;
  padding: 18px 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dfe8f6;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.055);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-today-card:hover {
  border-color: #c8d7f5;
  box-shadow: 0 20px 42px rgba(16, 24, 40, 0.085);
  transform: translateY(-2px);
}

.dashboard-today-card span,
.dashboard-today-card small {
  grid-column: 1;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-today-card strong {
  grid-column: 1;
  color: #101828;
  font-size: 30px;
  line-height: 1;
}

.dashboard-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #475467;
  background: #f5f8fc;
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  font-size: 15px;
  flex: 0 0 auto;
}

.dashboard-today-card > .dashboard-card-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: end;
  color: #344054;
  background: #ffffff;
}

.dashboard-card-label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-card-label .dashboard-card-icon {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.dashboard-card-label span {
  min-width: 0;
  overflow: hidden;
  color: inherit !important;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-section {
  display: grid;
  gap: 12px;
}

.dashboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 24px;
}

.dashboard-section-head b,
.dashboard-section-head span {
  display: block;
}

.dashboard-section-head b {
  color: #101828;
  font-size: 18px;
  line-height: 1.2;
}

.dashboard-section-head span {
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-metrics .metric {
  position: relative;
  min-height: 124px;
  padding: 22px 24px;
  overflow: hidden;
  border-color: #dfe8f6;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.055);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-metrics .metric:hover {
  transform: translateY(-2px);
  border-color: #c8d7f5;
  box-shadow: 0 22px 44px rgba(16, 24, 40, 0.09);
}

.dashboard-metrics .metric span,
.ops-card span {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-metrics .metric strong {
  margin-top: 10px;
  color: #101828;
  font-size: 34px;
}

.dashboard-metrics .metric .metric-action-number {
  display: flex;
  width: max-content;
  margin: 12px 0 9px;
}

.dashboard-metrics .metric small {
  color: #7b8798;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-more-link,
.dashboard-panel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #98a2b3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.dashboard-more-link {
  position: absolute;
  top: 14px;
  right: 14px;
  margin-top: 0;
}

.dashboard-more-link::before,
.dashboard-panel-more::before {
  content: ">";
  font-size: 16px;
  line-height: 1;
  transform: translateX(1px);
}

.dashboard-more-link:hover,
.dashboard-panel-more:hover {
  color: #2457ff;
  background: #eef3ff;
  border-color: #dce6ff;
  transform: translateY(-1px);
}

.dashboard-more-link:focus-visible,
.dashboard-panel-more:focus-visible,
.dashboard-command-pill:focus-visible,
.dashboard-today-card:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.18);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.ops-card {
  position: relative;
  min-height: 116px;
  padding: 18px 18px 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ops-card:hover {
  transform: translateY(-2px);
  border-color: #c9d8ef;
  box-shadow: 0 22px 42px rgba(16, 24, 40, 0.085);
}

.ops-card::after {
  display: none;
  content: none;
}

.ops-card span,
.ops-card small {
  position: relative;
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.ops-card .dashboard-card-label {
  display: inline-flex !important;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.ops-card strong {
  position: relative;
  display: block;
  margin: 12px 0 10px;
  color: #101828;
  font-size: 28px;
  line-height: 1;
}

.ops-card .ops-action-number {
  display: flex;
  width: max-content;
  margin: 12px 0 10px;
}

.ops-card small {
  color: #7b8798;
}

.ops-card.tone-green {
  background: linear-gradient(180deg, #ffffff, #fbfefd);
}

.ops-card.tone-orange {
  background: linear-gradient(180deg, #ffffff, #fffdf9);
}

.ops-card.tone-blue {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.dashboard-chart-grid {
  grid-template-columns: minmax(0, 1.52fr) minmax(400px, 0.88fr);
  gap: 18px;
}

.dashboard-panel {
  overflow: hidden;
  padding: 24px;
  border-color: #dfe8f6;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.06);
}

.dashboard-panel .panel-title {
  gap: 16px;
  margin-bottom: 12px;
}

.dashboard-panel .panel-title > div {
  min-width: 0;
}

.dashboard-panel .panel-title b {
  font-size: 20px;
}

.dashboard-panel .panel-title span {
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
}

.trend-panel {
  min-width: 0;
}

.model-panel {
  display: flex;
  flex-direction: column;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) minmax(340px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.chart-lg {
  min-height: 380px;
}

.chart-sm {
  min-height: 292px;
}

.model-chart-box {
  min-height: 236px;
}

.model-consumption-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.model-consumption-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 52px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 14px;
}

.model-consumption-row span {
  min-width: 0;
}

.model-consumption-row b,
.model-consumption-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-consumption-row b {
  color: #1d2939;
  font-size: 14px;
}

.model-consumption-row small {
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.model-consumption-row strong {
  color: #101828;
  font-size: 16px;
}

.model-consumption-row em {
  color: #0f766e;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.insight-panel {
  min-width: 0;
}

.insight-list {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
}

.insight-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 13px;
}

.insight-row span {
  padding: 5px 9px;
  color: #2457ff;
  background: #eef3ff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.insight-row strong {
  overflow: hidden;
  color: #1d2939;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-row small {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.billing-preview-panel {
  margin-top: 18px;
}

.billing-preview-panel .el-table {
  margin-top: 10px;
}

.tenant-hero {
  min-height: 128px;
}

.tenant-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tenant-title-line h1 {
  margin: 0;
}

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

.tenant-tabs {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tenant-tabs > .el-tabs__header {
  margin: 0 0 16px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.tenant-tabs .el-tabs__nav-wrap::after {
  display: none;
}

.tenant-tabs .el-tabs__active-bar {
  display: none;
}

.tenant-tabs .el-tabs__nav {
  gap: 8px;
}

.tenant-tabs .el-tabs__item {
  height: 38px;
  padding: 0 16px !important;
  color: #536173;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
}

.tenant-tabs .el-tabs__item.is-active {
  color: #2457ff;
  background: #eef3ff;
}

.tenant-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

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

.quota-mini-card {
  min-height: 82px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 14px;
}

.quota-mini-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.quota-mini-card strong {
  display: block;
  margin-top: 10px;
  color: #101828;
  font-size: 24px;
  line-height: 1;
}

.tenant-form-toolbar {
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1fr) minmax(180px, 0.9fr) auto;
  box-shadow: none;
}

.usage-panel {
  min-height: 440px;
}

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

.segmented-actions .el-button {
  min-width: 86px;
  margin-left: 0 !important;
  border-radius: 10px;
}

.segmented-actions .el-button--primary,
.segmented-actions .el-button--primary:hover,
.segmented-actions .el-button--primary:focus {
  color: #ffffff;
  background: #0f766e;
  border-color: #0f766e;
}

.segmented-actions .el-button--primary span {
  color: #ffffff;
}

.tenant-usage-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.tenant-usage-chart {
  min-height: 300px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 14px;
}

.empty-business-state {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 32px;
  color: #667085;
  text-align: center;
  background: #f8fbff;
  border: 1px dashed #d7e0ed;
  border-radius: 16px;
}

.empty-business-state b {
  color: #1d2939;
  font-size: 18px;
}

.empty-business-state p {
  max-width: 560px;
  margin: 10px auto 0;
  line-height: 1.7;
}

@media (max-width: 1280px) {
  .billing-records-grid {
    grid-template-columns: 1fr;
  }

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

  .tenant-section-grid,
  .tenant-usage-grid {
    grid-template-columns: 1fr;
  }
}

.insight-panel {
  min-width: 0;
}

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

.insight-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 12px;
}

.insight-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  color: #2457ff;
  background: #eef3ff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.insight-row strong {
  overflow: hidden;
  color: #1d2939;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-row small {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.business-dialog {
  --el-dialog-border-radius: 18px;
}

.business-dialog .el-dialog {
  overflow: hidden;
  border: 1px solid #dce5f1;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.business-dialog .el-dialog__header {
  margin: 0;
  padding: 22px 26px 18px;
  border-bottom: 1px solid #e7edf6;
}

.business-dialog .el-dialog__title {
  color: #101828;
  font-size: 22px;
  font-weight: 900;
}

.business-dialog .el-dialog__body {
  max-height: min(68vh, 720px);
  padding: 22px 26px 8px;
  overflow: auto;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 34%);
}

.business-dialog .el-dialog__footer {
  padding: 18px 26px 22px;
  border-top: 1px solid #e7edf6;
}

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

.business-form-grid .span-2 {
  grid-column: 1 / -1;
}

.business-form-grid .el-form-item {
  min-width: 0;
  margin-bottom: 16px;
}

.business-form-grid .el-form-item__label {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.business-form-grid .el-select,
.business-form-grid .el-date-editor,
.business-form-grid .el-input-number {
  width: 100%;
}

.business-form-grid .el-input__wrapper,
.business-form-grid .el-textarea__inner {
  border-radius: 12px;
  box-shadow: 0 0 0 1px #dce5f1 inset;
}

.business-radio-group,
.business-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.business-radio-group .el-radio-button__inner {
  border-radius: 10px !important;
  border-left: var(--el-border) !important;
}

.business-check-group .el-checkbox {
  height: 34px;
  margin-right: 0;
  border-radius: 10px;
}

.business-upload {
  width: 100%;
}

.business-upload .el-upload,
.business-upload .el-upload-dragger {
  width: 100%;
}

.business-upload .el-upload-dragger {
  min-height: 132px;
  padding: 22px;
  background: #f8fbff;
  border-color: #cbd8ea;
  border-radius: 14px;
}

.business-upload .el-icon--upload {
  margin-bottom: 6px;
  color: #2457ff;
  font-size: 28px;
}

.business-upload .el-upload__text {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.business-upload .el-upload__tip {
  margin-top: 8px;
  color: #8a96a8;
  font-size: 12px;
}

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

.hierarchy-card {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.07);
}

.hierarchy-card b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.hierarchy-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hierarchy-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.hierarchy-card li {
  position: relative;
  padding-left: 14px;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.hierarchy-card li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.relation-cell,
.permission-stack {
  display: grid;
  gap: 5px;
  align-items: start;
}

.relation-cell strong,
.permission-stack strong {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
}

.relation-cell small,
.permission-stack small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.relation-cell .el-tag + .el-tag {
  margin-left: 6px;
}

.table-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

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

.org-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e4eaf3;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.org-row-main {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.1fr) minmax(180px, 0.9fr);
  gap: 14px;
  min-width: 0;
}

.org-tenant-block,
.org-user-block,
.org-member-block,
.org-permission-block {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}

.org-row label {
  color: #7a8699;
  font-size: 12px;
  font-weight: 800;
}

.org-row strong {
  min-width: 0;
  color: #101828;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.org-row span {
  min-width: 0;
  color: #5d6b82;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.org-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.org-permission-block {
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #edf2f8;
  border-radius: 12px;
}

.quota-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.quota-strip span {
  padding: 4px 8px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  font-size: 12px;
}

.org-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
  min-width: 0;
}

.org-actions .el-button {
  width: 100%;
  margin-left: 0 !important;
  border-radius: 10px;
  box-shadow: none;
}

.org-detail {
  display: grid;
  gap: 16px;
}

.org-detail-hero,
.org-detail-section {
  padding: 16px;
  border: 1px solid #e3eaf4;
  border-radius: 14px;
  background: #ffffff;
}

.org-detail-hero {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.org-detail-hero span,
.org-detail-grid span {
  color: #7a8699;
  font-size: 12px;
  font-weight: 800;
}

.org-detail-hero strong {
  display: block;
  margin-top: 6px;
  color: #101828;
  font-size: 24px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.org-detail-hero p,
.org-detail-section p {
  margin: 8px 0 0;
  color: #5d6b82;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

.org-detail-hero div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.org-detail-section b {
  display: block;
  margin-bottom: 12px;
  color: #101828;
  font-size: 16px;
}

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

.org-detail-grid label {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #edf2f8;
  border-radius: 10px;
  background: #f8fbff;
}

.org-detail-grid strong {
  color: #1f2a44;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.org-detail-actions .el-button {
  margin-left: 0 !important;
}

.page-actions .el-button--primary,
.panel-title .el-button--primary,
.business-dialog .el-button--primary,
.el-dialog__footer .el-button--primary,
.toolbar .el-button--primary {
  color: #ffffff !important;
  background: #0f766e !important;
  border-color: #0f766e !important;
}

.page-actions .el-button--primary span,
.panel-title .el-button--primary span,
.business-dialog .el-button--primary span,
.el-dialog__footer .el-button--primary span,
.toolbar .el-button--primary span {
  color: #ffffff !important;
}

.el-button--primary.is-plain {
  color: #0f766e !important;
  background: #ecf8f6 !important;
  border-color: #9fd8ce !important;
}

.el-button--primary.is-plain span {
  color: #0f766e !important;
}

.row-actions {
  max-width: 100%;
  flex-wrap: wrap;
}

.row-actions .el-button--danger,
.row-actions .el-button--danger span {
  color: #c2414b !important;
}

.report-rule-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 68vh;
  padding-right: 4px;
  overflow-y: auto;
}

.report-rule-edit-card {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.report-rule-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.report-rule-edit-head strong {
  color: #101828;
  font-size: 16px;
}

.report-rule-edit-actions {
  display: flex;
  justify-content: flex-start;
}

.content-preview-dialog .el-dialog__body {
  padding: 0;
  background: #f3f6fb;
}

.content-preview-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 560px;
  background: #f6f8fc;
}

.content-preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 22px;
  color: #d9e4f5;
  background: linear-gradient(180deg, #0e1a2e, #07111f);
}

.content-preview-sidebar span {
  color: #8ea0ba;
  font-size: 13px;
  font-weight: 800;
}

.content-preview-sidebar strong {
  color: #ffffff;
  font-size: 24px;
}

.content-preview-sidebar button {
  width: fit-content;
  padding: 8px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #2f6bff, #0f766e);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.content-preview-sidebar small {
  margin-top: auto;
  color: #98a9c1;
  font-size: 12px;
}

.content-preview-article {
  padding: 34px 46px 42px;
  background: #ffffff;
}

.content-preview-article header {
  padding-bottom: 22px;
  border-bottom: 1px solid #e4eaf3;
}

.content-preview-article h1 {
  margin: 18px 0 12px;
  color: #101828;
  font-size: 34px;
  line-height: 1.22;
}

.content-preview-article header p {
  max-width: 720px;
  margin: 0;
  color: #536173;
  font-size: 15px;
  line-height: 1.7;
}

.content-preview-article header div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: #7a8699;
  font-size: 13px;
  font-weight: 700;
}

.content-preview-body {
  display: grid;
  gap: 14px;
  padding-top: 24px;
}

.content-preview-body p {
  margin: 0;
  color: #24314f;
  font-size: 15px;
  line-height: 1.9;
}

.content-preview-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e4eaf3;
}

.template-步骤指南 .content-preview-body {
  counter-reset: step;
}

.template-步骤指南 .content-preview-body p {
  position: relative;
  min-height: 36px;
  padding-left: 48px;
}

.template-步骤指南 .content-preview-body p::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: #2457ff;
  border-radius: 10px;
  font-weight: 900;
}

.template-强制确认弹窗 .content-preview-article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 44px;
  border: 1px solid #dfe7f3;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.template-新闻资讯卡片 .content-preview-article {
  background:
    linear-gradient(180deg, rgba(238, 243, 255, 0.88), rgba(255, 255, 255, 0.96) 34%),
    #ffffff;
}

.template-新闻资讯卡片 .content-preview-article h1 {
  max-width: 680px;
}

@media (max-width: 1100px) {
  .content-preview-shell {
    grid-template-columns: 1fr;
  }

  .content-preview-sidebar {
    min-height: auto;
  }
}

@media (max-width: 1280px) {
  .hierarchy-grid {
    grid-template-columns: 1fr;
  }

  .org-row {
    grid-template-columns: 1fr;
  }

  .org-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-command,
  .dashboard-chart-grid,
  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-today-grid,
  .dashboard-metrics,
  .ops-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-command {
    padding: 26px;
  }
}

/* Final topbar pass: keeps the global action area compact after page-level style overrides. */
.topbar {
  min-height: 64px;
  grid-template-columns: auto minmax(120px, 1fr) minmax(240px, 340px) max-content;
  gap: 14px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 242, 0.92);
  box-shadow: 0 10px 28px rgba(30, 41, 59, 0.052);
  backdrop-filter: blur(20px);
}

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

.route-chip {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  border: 1px solid rgba(216, 226, 241, 0.92);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.035);
  font-weight: 800;
  white-space: nowrap;
}

.topbar-spacer {
  min-width: 0;
}

.top-search {
  width: 100%;
}

.top-search .el-input__wrapper {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(201, 212, 232, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.045);
}

.route-trail {
  justify-content: flex-end;
}

.operator {
  gap: 9px;
  min-width: max-content;
}

.operator .el-tag {
  flex: none;
}

.operator .el-tag__content {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: auto minmax(220px, 1fr) max-content;
  }

  .topbar-spacer {
    display: none;
  }

  .route-trail {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 10px 14px;
  }

  .topbar-left,
  .operator {
    justify-content: flex-start;
  }

  .top-search {
    display: block;
  }

  .member-import-layout {
    grid-template-columns: 1fr;
  }
}
