/* 按 OA 参考页统一深色侧栏、浅色工作区、紧凑表格和蓝色操作按钮。 */

.app-shell {
  grid-template-columns: 224px minmax(0, 1fr);
}

.sidebar {
  padding: 14px 10px;
  color: #c0c4cc;
  background: #0d1829;
}

.brand {
  min-height: 42px;
  padding: 0 8px;
}

.brand strong {
  font-size: 13px;
}

.brand em {
  font-size: 11px;
}

.nav-group {
  margin-top: 14px;
  margin-bottom: 3px;
  font-weight: 600;
}

.nav-item {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 2px;
  font-size: 13px;
}

.nav-item.active {
  box-shadow: inset 2px 0 0 var(--primary);
}

.topbar {
  min-height: 50px;
  padding: 0 20px;
  color: #606266;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  box-shadow: none;
}

.top-actions {
  margin-left: auto;
}

.page-tabs {
  min-height: 36px;
  padding: 0 16px;
}

.content {
  gap: 12px;
  padding: 20px;
  background: #f5f7fa;
}

.list-toolbar-actions {
  min-height: 34px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.list-toolbar-actions .toolbar-actions,
.workbench-actions .hero-actions {
  justify-content: flex-end;
}

.list-toolbar h2,
.workbench-hero h2,
.record-hero h2,
.review-console h2 {
  color: #303133;
  font-size: 18px;
  font-weight: 600;
}

.workbench-actions {
  min-height: 34px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* 按钮：对应参考站 Element UI 的普通、主要和危险按钮规格。 */
.btn {
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 20px;
  color: #606266;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
  transition: color 100ms, background 100ms, border-color 100ms, transform 100ms;
}

.btn:hover:not(:disabled) {
  color: var(--primary);
  background: #fff;
  border-color: #06f;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid rgb(0 102 255 / 20%);
  outline-offset: 1px;
}

.btn:disabled {
  color: #c0c4cc;
  background: #fff;
  border-color: #ebeef5;
  cursor: not-allowed;
}

.btn.btn-primary {
  color: #fff;
  background: #06f;
  border-color: #06f;
  box-shadow: none;
}

.btn.btn-primary:hover:not(:disabled) {
  color: #fff;
  background: #3385ff;
  border-color: #3385ff;
}

.btn.btn-danger {
  color: #f56c6c;
  background: #fff;
  border-color: #fbc4c4;
}

.btn.btn-danger:hover:not(:disabled) {
  color: #f56c6c;
  background: #fef0f0;
  border-color: #f56c6c;
}

.btn.btn-ghost {
  color: #606266;
  background: transparent;
  border-color: transparent;
}

.btn.btn-ghost:hover:not(:disabled) {
  color: #06f;
  background: #f5f7fa;
  border-color: transparent;
}

.btn.btn-small {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.filter-tabs {
  min-height: 40px;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}

.filter-tabs > a {
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #606266;
  background: transparent;
  font-size: 14px;
  white-space: nowrap;
}

.filter-tabs > a:hover {
  color: #06f;
  background: #f5f7fa;
}

.filter-tabs > a.active {
  border-bottom-color: #06f;
  color: #06f;
  background: #fff;
  font-weight: 600;
}

.table-panel {
  overflow-x: auto;
  border: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.list-filter-tabs + .table-panel {
  border-top-color: transparent;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  color: #606266;
  line-height: 1.5;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ebeef5;
  vertical-align: middle;
  text-align: left;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.data-table th {
  color: #909399;
  background: #f5f7fa;
  font-size: 14px;
  font-weight: 500;
}

.data-table td {
  overflow: hidden;
  color: #606266;
  text-overflow: ellipsis;
  word-break: break-word;
}

.data-table tbody tr:hover td {
  background: #f5f7fa;
}

.data-table td > a.btn.btn-small {
  height: 28px;
  min-height: 28px;
  padding: 5px 10px;
  color: #06f;
  background: #fff;
  border-color: #06f;
  border-radius: 14px;
}

.data-table td > a.btn.btn-small:hover {
  color: #3385ff;
  background: #fff;
  border-color: #3385ff;
}

.data-table .strong-link {
  color: #06f;
  font-weight: 600;
}

.data-table .strong-link:hover {
  color: #3385ff;
  text-decoration: underline;
}

.strong-link:hover {
  color: #3385ff;
  text-decoration: underline;
}

.panel.list-filter-panel {
  padding: 12px 14px 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
}

.panel,
.card,
.kpi-card,
.record-card,
.process-step {
  border-radius: 4px;
  box-shadow: none;
}

input,
select,
textarea {
  min-height: 40px;
  padding: 0 12px;
  color: #606266;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
}

textarea {
  min-height: 84px;
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #06f;
  outline: 0;
  box-shadow: 0 0 0 2px rgb(0 102 255 / 10%);
}

label span {
  margin-bottom: 8px;
  color: #606266;
  font-size: 14px;
  font-weight: 400;
}

.tag {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  color: #909399;
  background: #f4f4f5;
  font-size: 12px;
  font-weight: 400;
}

.status-current,
.status-paid {
  color: #409eff;
  background: #ecf5ff;
  border-color: #d9ecff;
}

.status-pending {
  color: #e6a23c;
  background: #fdf6ec;
  border-color: #faecd8;
}

.status-success {
  color: #67c23a;
}

.status-alert {
  color: #f56c6c;
  background: #fef0f0;
  border-color: #fde2e2;
}

.strong-link,
.filter-summary a,
.panel-header > a,
.shortcut-links a {
  color: #06f;
}

.member-advanced-filters {
  border-color: #ebeef5;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgb(31 45 61 / 11%);
}

.dues-year-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  padding-bottom: 12px;
}

.dues-year-filter label {
  width: 180px;
}

.dues-year-filter .btn {
  flex: 0 0 auto;
  min-width: 68px;
}

.dues-filter-tabs {
  margin: 0 -14px;
  padding: 0 8px;
  border-right: 0;
  border-bottom: 1px solid var(--line-soft);
  border-left: 0;
}

.summary-strip {
  gap: 20px;
  padding: 10px 2px 12px;
  color: #586471;
  font-size: 12px;
  font-weight: 500;
}

.summary-strip span + span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.member-filters {
  grid-template-columns: minmax(240px, 1.3fr) minmax(190px, .8fr) auto auto auto;
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.more-member-filters {
  position: relative;
}

.more-member-filters > summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.more-member-filters > summary::-webkit-details-marker {
  display: none;
}

.member-advanced-filters {
  position: absolute;
  z-index: 6;
  top: 40px;
  right: 0;
  width: min(620px, 88vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 18px rgb(33 48 64 / 10%);
}

.member-filters label span {
  font-size: 12px;
  font-weight: 500;
}

.filter-summary {
  padding: 0 0 12px;
  color: #77828e;
  font-size: 12px;
}

.login-shell {
  width: min(400px, 100%);
  min-height: 0;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 10%);
}

.login-page {
  background-color: #f5f7fa;
  background-image: url('/static/login-business-background.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.login-copy {
  padding: 42px 40px 10px;
}

.login-panel {
  padding: 22px 40px 30px;
}

.login-field {
  display: block;
}

.login-input {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #fff;
  transition: border-color 100ms, box-shadow 100ms;
}

.login-input:focus-within {
  border-color: #06f;
  box-shadow: 0 0 0 2px rgb(0 102 255 / 10%);
}

.login-input-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #909399;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-input:focus-within .login-input-icon {
  color: #06f;
}

.login-panel .form-stack .login-input input {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  color: #303133;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.login-panel .form-stack .login-input input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.login-input input::placeholder {
  color: #a6a9ad;
}

.login-panel .form-stack .btn-primary {
  border-radius: 4px;
}

@media (max-width: 980px) {
  .member-filters {
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) auto auto;
  }

  .more-member-filters { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .sidebar {
    padding: 12px;
  }

  .content {
    gap: 10px;
    padding: 12px;
  }

  .filter-tabs {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .topbar {
    min-height: 50px;
  }

  .content {
    padding: 14px;
  }

  .login-shell {
    min-height: 0;
    border-radius: 8px;
  }

  .login-copy {
    padding: 28px 24px 8px;
  }

  .login-panel {
    padding: 18px 24px 26px;
  }

  .dues-year-filter {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .dues-year-filter label {
    width: auto;
  }

  .summary-strip {
    gap: 8px 12px;
  }

  .summary-strip span + span {
    padding-left: 0;
    border-left: 0;
  }

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

  .more-member-filters { grid-column: auto; }

  .member-advanced-filters {
    position: static;
    width: auto;
    grid-template-columns: 1fr;
    box-shadow: none;
  }
}

/* 查询和维护表单采用左侧字段名、右侧控件的横向排布。 */
.app-shell > .main > .content form:not(.pagination-form) label:has(> span),
.public-application-form label:has(> span) {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(112px, 132px) minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  row-gap: 5px;
  margin: 0;
}

.app-shell > .main > .content form label:has(> span) > span,
.public-application-form label:has(> span) > span {
  margin: 0;
  text-align: right;
}

.app-shell > .main > .content form label:has(> span) > small,
.public-application-form label:has(> span) > small {
  grid-column: 2;
}

.app-shell > .main > .content .admin-maintenance-form,
.app-shell > .main > .content .list-query-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: 28px;
  row-gap: 14px;
}

.app-shell > .main > .content .admin-maintenance-form .form-actions,
.app-shell > .main > .content .list-query-form .form-actions {
  align-items: center;
  margin-top: 2px;
}

.pagination {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 10px 12px;
  color: #5b6879;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.4;
}

.pagination-summary {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pagination-controls,
.pagination-pages,
.pagination-form {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-form {
  gap: 10px;
  margin: 0 0 0 6px;
}

.pagination-form label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.pagination-form label > span {
  margin: 0;
  color: #697589;
  font-size: 13px;
  font-weight: 400;
}

.app-shell > .main > .content .pagination-form select,
.app-shell > .main > .content .pagination-form input {
  width: auto;
  min-width: 60px;
  min-height: 30px;
  height: 30px;
  padding: 3px 7px;
  font-size: 13px;
}

.pagination-form select {
  min-width: 78px;
}

.pagination-link,
.pagination-number {
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #465368;
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}

.pagination-link:hover,
.pagination-number:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.pagination-number.is-current {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.pagination-link.is-disabled {
  color: #a7afbb;
  background: #f7f8fa;
  border-color: #e7ebf1;
}

@media (max-width: 760px) {
  .app-shell > .main > .content form:not(.pagination-form) label:has(> span),
  .public-application-form label:has(> span) {
    grid-template-columns: minmax(92px, 112px) minmax(0, 1fr);
    column-gap: 10px;
  }

  .app-shell > .main > .content .admin-maintenance-form,
  .app-shell > .main > .content .list-query-form {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  .app-shell > .main > .content .admin-maintenance-form .span-2,
  .app-shell > .main > .content .list-query-form .span-2 {
    grid-column: auto;
  }

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

  .pagination-controls {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .pagination-form {
    flex-wrap: wrap;
    margin-left: 0;
  }
}

/* 按参考 OA 页面调整深色导航、白色顶栏和菜单间距。 */
:root {
  --bg: #f4f6f8;
  --paper: #fff;
  --panel: #fff;
  --panel-strong: #f5f7fa;
  --ink: #303133;
  --muted: #606266;
  --faint: #909399;
  --line: #dcdfe6;
  --line-soft: #ebeef5;
  --nav: #f7f8fa;
  --nav-soft: #f7f8fa;
  --primary: #1677f8;
  --primary-2: #409eff;
  --primary-soft: #eaf3ff;
  --blue: #1677f8;
  --blue-soft: #eaf3ff;
  --red: #f56c6c;
  --red-soft: #fef0f0;
  --amber: #e6a23c;
  --amber-soft: #fdf6ec;
  --green: #67c23a;
  --green-soft: #f0f9eb;
}

html,
body {
  background: var(--bg);
}

body {
  color: var(--ink);
  background-image: none;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.app-shell {
  min-height: 100vh;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-rows: 52px minmax(0, 1fr);
  background: var(--bg);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell > .topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px 0 16px;
  color: #40536b;
  background: linear-gradient(90deg, #0d1829 0 236px, #fff 236px 100%);
  border: 0;
  box-shadow: none;
}

.app-shell > .topbar .brand {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  width: 220px;
  flex: 0 0 220px;
  gap: 10px;
  padding-left: 2px;
  color: #fff;
}

.brand-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

.app-shell > .topbar .brand strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.app-shell > .topbar .top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.app-shell > .topbar .topbar-user {
  padding: 0;
  color: #40536b;
  font-size: 13px;
  line-height: 1;
}

.app-shell > .topbar .top-actions form {
  margin: 0;
}

.app-shell > .topbar .btn.btn-ghost {
  min-height: 32px;
  height: 32px;
  padding: 0 2px;
  color: #1677f8;
  background: transparent;
  border-color: transparent;
  font-size: 13px;
}

.app-shell > .topbar .btn.btn-ghost:hover:not(:disabled) {
  color: #0958d9;
  background: transparent;
  border-color: transparent;
}

.app-shell > .sidebar {
  position: sticky;
  top: 52px;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: 100%;
  height: calc(100vh - 52px);
  min-height: 0;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 10px 18px;
  color: #d6dfeb;
  background: #0d1829;
  border-right: 0;
  box-shadow: none;
}

.app-shell > .sidebar .nav {
  display: grid;
  gap: 1px;
  margin: 0;
}

.app-shell > .sidebar .nav-group {
  margin: 17px 10px 4px;
  color: #8e9aab;
  font-size: 12px;
  font-weight: 600;
}

.app-shell > .sidebar .nav-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 10px;
  color: #c0c4cc;
  background: transparent;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: color 100ms, background 100ms;
}

.nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #8a96a3;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

.app-shell > .sidebar .nav-item:hover {
  color: #fff;
  background: rgb(255 255 255 / 7%);
}

.app-shell > .sidebar .nav-item:hover .nav-icon,
.app-shell > .sidebar .nav-item.active .nav-icon {
  stroke: currentColor;
}

.app-shell > .sidebar .nav-item.active {
  position: relative;
  color: #fff;
  background: #102e58;
  font-weight: 600;
  box-shadow: none;
}

.app-shell > .sidebar .nav-item.active > .nav-item-label {
  color: #fff;
}

.app-shell > .sidebar .nav-item.active::before {
  position: absolute;
  inset: 4px auto 4px 0;
  width: 2px;
  content: "";
  background: #1677f8;
  border-radius: 1px;
}

.nav-item > .nav-item-label {
  width: auto;
  height: auto;
  display: block;
  overflow: hidden;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell > .main {
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr);
  align-content: start;
  background: var(--bg);
}

.app-shell > .main > .page-tabs {
  position: sticky;
  top: 52px;
  z-index: 8;
  min-height: 40px;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}

.page-tab {
  max-width: 190px;
  color: #606266;
  border-bottom-width: 2px;
}

.page-tab a {
  padding: 0 12px;
  color: inherit;
  font-size: 13px;
}

.page-tab.is-active {
  color: #1677f8;
  background: #f5f9ff;
  border-bottom-color: #1677f8;
}

.page-tab-close {
  width: 22px;
  color: #909399;
  border-radius: 2px;
}

.page-tab-close:hover {
  color: #f56c6c;
  background: #fef0f0;
}

.content {
  width: 100%;
  max-width: none;
  min-width: 0;
  gap: 12px;
  padding: 18px 20px 24px;
  background: var(--bg);
}

.content > * {
  min-width: 0;
}

.content > .workbench-actions {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.content > .workbench-actions .hero-actions {
  margin: 0;
}

.panel,
.table-panel,
.kpi-card,
.record-card,
.process-step,
.workbench-hero,
.review-console,
.list-toolbar,
.record-hero {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  box-shadow: none;
}

.panel,
.record-card {
  padding: 16px 18px;
}

.workbench-hero,
.list-toolbar,
.record-hero,
.review-console {
  min-height: 0;
  padding: 12px 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-soft);
}

.workbench-hero h2,
.list-toolbar h2,
.record-hero h2,
.review-console h2,
.panel-header h2,
.section-heading h2 {
  color: #303133;
  font-size: 16px;
  font-weight: 600;
}

.workbench-hero p,
.list-toolbar p,
.record-hero p,
.review-console p,
.panel-header p,
.muted {
  color: #7b8490;
  font-size: 12px;
  line-height: 1.6;
}

.panel-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.btn {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  color: #606266;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
}

.btn:hover:not(:disabled) {
  color: #1677f8;
  background: #fff;
  border-color: #1677f8;
}

.btn.btn-primary,
.btn.btn-primary:hover:not(:disabled) {
  color: #fff;
  background: #1677f8;
  border-color: #1677f8;
}

.btn.btn-primary:hover:not(:disabled) {
  background: #409eff;
  border-color: #409eff;
}

.btn.btn-danger,
.btn.btn-danger:hover:not(:disabled) {
  color: #f56c6c;
  background: #fff;
  border-color: #fab6b6;
}

.btn.btn-small,
.data-table .btn.btn-small {
  min-height: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 3px;
  font-size: 12px;
}

.btn.btn-ghost,
.btn.btn-ghost:hover:not(:disabled) {
  color: #606266;
  background: transparent;
  border-color: transparent;
}

input,
select,
textarea {
  min-height: 34px;
  padding: 0 10px;
  color: #606266;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  box-shadow: none;
  font-size: 13px;
}

textarea {
  min-height: 84px;
  padding: 9px 10px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1677f8;
  outline: 0;
  box-shadow: 0 0 0 2px rgb(22 119 248 / 10%);
}

label span {
  margin-bottom: 6px;
  color: #606266;
  font-size: 13px;
}

.filter-bar,
.inline-form,
.recommend-form,
.form-grid,
.form-stack {
  gap: 10px;
}

.filter-tabs {
  min-height: 38px;
  gap: 0;
  margin: 0;
  padding: 0 8px;
  overflow-x: auto;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
}

.filter-tabs > a,
.record-tabs a {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #606266;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
}

.filter-tabs > a.active,
.record-tabs a.active,
.record-tabs a[aria-current="page"] {
  color: #1677f8;
  background: #fff;
  border-bottom-color: #1677f8;
  font-weight: 600;
}

.table-panel {
  max-width: 100%;
  overflow: auto;
  padding: 0;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 860px;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  color: #606266;
  font-size: 13px;
  line-height: 1.45;
}

.data-table th,
.data-table td {
  padding: 9px 11px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  text-align: left;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.data-table th {
  height: 36px;
  color: #606266;
  background: #f5f7fa;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.data-table td {
  color: #606266;
  overflow-wrap: break-word;
  word-break: normal;
}

.data-table tbody tr:hover td {
  background: #f5f9ff;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table .strong-link,
.strong-link,
.filter-summary a,
.panel-header > a,
.shortcut-links a,
.workbench-flow-table td:last-child a {
  color: #1677f8;
}

.data-table td > a.btn.btn-small {
  height: 28px;
  min-height: 28px;
  padding: 0 9px;
  color: #1677f8;
  background: #fff;
  border: 1px solid #c8ddfb;
  border-radius: 3px;
}

.data-table td > a.btn.btn-small:hover {
  color: #1677f8;
  background: #f5f9ff;
  border-color: #1677f8;
}

.data-table .access-log-table,
.access-log-table {
  min-width: 1400px;
}

.access-log-table th,
.access-log-table td {
  white-space: nowrap;
}

.access-log-table th:nth-child(1) { min-width: 150px; }
.access-log-table th:nth-child(2) { min-width: 105px; }
.access-log-table th:nth-child(3) { min-width: 70px; }
.access-log-table th:nth-child(4) { min-width: 230px; }
.access-log-table th:nth-child(5) { min-width: 64px; }
.access-log-table th:nth-child(6) { min-width: 82px; }
.access-log-table th:nth-child(7) { min-width: 105px; }
.access-log-table th:nth-child(8) { min-width: 330px; }
.access-log-table th:nth-child(9) { min-width: 220px; }

.access-log-table .request-id {
  white-space: normal;
  overflow-wrap: anywhere;
}

.operation-log-table {
  min-width: 1120px;
}

.operation-log-table th,
.operation-log-table td {
  white-space: nowrap;
}

.operation-log-table td:nth-child(5),
.operation-log-table td:nth-child(6) {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag {
  min-height: 22px;
  padding: 1px 8px;
  color: #606266;
  background: #f4f4f5;
  border: 1px solid #e4e7ed;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 400;
}

.status-current,
.status-paid {
  color: #409eff;
  background: #ecf5ff;
  border-color: #d9ecff;
}

.status-pending {
  color: #e6a23c;
  background: #fdf6ec;
  border-color: #faecd8;
}

.status-alert {
  color: #f56c6c;
  background: #fef0f0;
  border-color: #fde2e2;
}

.status-success {
  color: #67c23a;
  background: #f0f9eb;
  border-color: #e1f3d8;
}

.kpi-grid,
.kpi-grid-wide,
.ops-grid {
  gap: 12px;
}

.kpi-card {
  min-height: 88px;
  padding: 13px 15px;
}

.kpi-card strong {
  color: #303133;
  font-size: 25px;
  font-weight: 600;
}

.process-step,
.queue-list a,
.readiness-list div,
.readiness-list .readiness-row,
.shortcut-grid a,
.workbench-link,
.record-tabs,
.assistant-panel,
.assistant-config,
.assistant-messages,
.assistant-draft,
.member-advanced-filters {
  border-radius: 3px;
  box-shadow: none;
}

.form-section {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  color: #303133;
  font-size: 15px;
  font-weight: 600;
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 50px auto minmax(0, 1fr);
  }

  .app-shell > .topbar {
    grid-column: 1;
    grid-row: 1;
    min-height: 50px;
    padding: 0 12px;
  }

  .app-shell > .sidebar {
    position: relative;
    top: auto;
    grid-column: 1;
    grid-row: 2;
    height: 54px;
    max-height: none;
    min-height: 54px;
    overflow: visible;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .app-shell > .sidebar .nav {
    display: none;
    max-height: min(65vh, 520px);
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
  }

  .app-shell > .sidebar.mobile-nav-open .nav {
    position: absolute;
    z-index: 15;
    inset: 48px 12px auto 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell > .sidebar.mobile-nav-open .nav-group {
    grid-column: 1 / -1;
  }

  .app-shell > .sidebar .mobile-nav-toggle {
    position: absolute;
    top: 8px;
    right: 12px;
    display: inline-flex;
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    color: #1677f8;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
  }

  .app-shell > .main {
    grid-column: 1;
    grid-row: 3;
  }

  .app-shell > .main > .page-tabs {
    top: 50px;
  }
}

@media (max-width: 600px) {
  .app-shell > .topbar .brand strong {
    max-width: 58vw;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
  }

  .app-shell > .topbar .top-actions {
    gap: 4px;
  }

  .app-shell > .topbar .topbar-user {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content {
    gap: 10px;
    padding: 12px;
  }

  .panel,
  .record-card {
    padding: 13px;
  }

  .workbench-hero,
  .list-toolbar,
  .record-hero,
  .review-console {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .app-shell > .sidebar.mobile-nav-open .nav {
    grid-template-columns: 1fr;
  }
}

.app-shell > .main > .content {
  align-content: start;
  padding: 12px 48px 24px;
}

.app-shell > .main > .content > .workbench-actions {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0;
}

.app-shell > .main > .content > .workbench-flow-panel {
  padding: 18px 24px 16px;
}

@media (max-width: 900px) {
  .app-shell > .main > .content {
    padding: 12px;
  }

  .app-shell > .main > .content > .workbench-flow-panel {
    padding: 14px 12px;
  }
}

/* 侧栏按用户提供的管理平台菜单截图统一：浅灰底、分组标题和彩色线性图标。 */
:root {
  --nav: #f0f2f7;
  --nav-soft: #f0f2f7;
}

.app-shell {
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-rows: 52px minmax(0, 1fr);
}

.app-shell > .topbar {
  min-height: 52px;
  padding: 0 20px 0 16px;
  color: #40536b;
  background: #fff;
  border-bottom: 1px solid #e4e8f0;
}

.app-shell > .topbar .brand {
  min-height: 52px;
  width: 180px;
  flex: 0 0 180px;
  gap: 9px;
  padding-left: 2px;
  color: #283952;
}

.app-shell > .topbar .brand-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #2878f0;
  stroke-width: 1.8;
}

.app-shell > .topbar .brand strong {
  color: #283952;
  font-size: 14px;
  font-weight: 600;
}

.app-shell > .topbar .top-actions {
  gap: 18px;
}

.app-shell > .topbar .topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #485a72;
  font-size: 13px;
}

.app-shell > .topbar .topbar-user-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #71839c;
  stroke-width: 1.7;
}

.app-shell > .topbar .btn.btn-ghost,
.app-shell > .topbar .btn.btn-ghost:hover:not(:disabled) {
  min-height: 32px;
  height: 32px;
  padding: 0 2px;
  color: #2878f0;
  background: transparent;
  border: 0;
  font-size: 13px;
}

.app-shell > .sidebar {
  top: 52px;
  height: calc(100vh - 52px);
  padding: 10px 8px 18px;
  color: #34445d;
  background: #f0f2f7;
  border-right: 1px solid #e4e8f0;
}

.app-shell > .sidebar .nav {
  gap: 1px;
}

.app-shell > .sidebar .nav-group {
  margin: 14px 8px 4px;
  color: #8691a4;
  font-size: 12px;
  font-weight: 500;
}

.app-shell > .sidebar .nav-item {
  min-height: 32px;
  gap: 10px;
  padding: 0 10px;
  color: #3f5068;
  background: transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 400;
}

.app-shell > .sidebar .nav-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.app-shell > .sidebar {
  scrollbar-width: none;
}

.app-shell > .sidebar::-webkit-scrollbar {
  display: none;
}

.app-shell > .sidebar .nav-item:hover {
  color: #315f9f;
  background: #e7ebf3;
}

.app-shell > .sidebar .nav-item.active {
  color: #2865c7;
  background: #d9e3f7;
  font-weight: 500;
}

.app-shell > .sidebar .nav-item.active::before {
  display: none;
}

.app-shell > .sidebar .nav-item.active > .nav-item-label {
  color: #2865c7;
}

.app-shell > .sidebar .nav-item[href="/"] .nav-icon,
.app-shell > .sidebar .nav-item[href="/members"] .nav-icon,
.app-shell > .sidebar .nav-item[href="/admin/ai-access"] .nav-icon,
.app-shell > .sidebar .nav-item[href="/admin/logs/access"] .nav-icon {
  color: #2878f0;
}

.app-shell > .sidebar .nav-item[href="/applications"] .nav-icon,
.app-shell > .sidebar .nav-item[href="/admin/integrations"] .nav-icon,
.app-shell > .sidebar .nav-item[href="/admin/logs/operations"] .nav-icon {
  color: #12a37a;
}

.app-shell > .sidebar .nav-item[href="/annual-dues"] .nav-icon,
.app-shell > .sidebar .nav-item[href="/admin/users"] .nav-icon {
  color: #e49425;
}

.app-shell > .sidebar .nav-item[href="/tasks"] .nav-icon,
.app-shell > .sidebar .nav-item[href="/admin/wechat"] .nav-icon,
.app-shell > .sidebar .nav-item[href="/admin/logs/ai"] .nav-icon {
  color: #725cf0;
}

@media (min-width: 701px) and (max-width: 900px) {
  .app-shell {
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-rows: 52px minmax(0, 1fr);
  }

  .app-shell > .topbar {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .app-shell > .sidebar {
    position: sticky;
    top: 52px;
    grid-column: 1;
    grid-row: 2;
    height: calc(100vh - 52px);
    padding: 10px 8px 18px;
    overflow-y: auto;
    border-right: 1px solid #e4e8f0;
    border-bottom: 0;
  }

  .app-shell > .sidebar .nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .app-shell > .sidebar .mobile-nav-toggle {
    display: none;
  }

  .app-shell > .main {
    grid-column: 2;
    grid-row: 2;
  }

  .app-shell > .main > .page-tabs {
    top: 52px;
  }
}

@media (max-width: 700px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 52px auto minmax(0, 1fr);
  }

  .app-shell > .sidebar {
    position: relative;
    top: auto;
    grid-column: 1;
    grid-row: 2;
    height: 54px;
    min-height: 54px;
    padding: 8px 12px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #e4e8f0;
  }

  .app-shell > .sidebar .nav {
    display: none;
  }

  .app-shell > .sidebar .mobile-nav-toggle {
    display: inline-flex;
  }

  .app-shell > .sidebar.mobile-nav-open .nav {
    position: absolute;
    z-index: 15;
    inset: 48px 12px auto 12px;
    display: grid;
    grid-template-columns: 1fr;
    max-height: min(65vh, 520px);
    overflow-y: auto;
    padding: 8px;
    background: #f0f2f7;
    border: 1px solid #e4e8f0;
  }

  .app-shell > .main {
    grid-column: 1;
    grid-row: 3;
  }

  .app-shell > .main > .page-tabs {
    top: 52px;
  }
}

/* 全站功能页共用一套表格、筛选、表单、操作按钮和页签规范。 */
:root {
  --bg: #f4f6fa;
  --paper: #fff;
  --panel: #fff;
  --panel-strong: #f2f4f8;
  --ink: #303b4d;
  --muted: #697589;
  --faint: #8993a3;
  --line: #dfe4ec;
  --line-soft: #ebeff5;
  --primary: #2878f0;
  --primary-2: #1d67d2;
  --primary-soft: #e8f0ff;
  --blue: #2878f0;
  --blue-soft: #e8f0ff;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 13px;
}

.app-shell > .topbar .top-actions {
  position: relative;
  gap: 0;
}

.topbar-account {
  position: relative;
}

.topbar-account > summary {
  width: auto;
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  place-items: center;
  gap: 7px;
  padding: 0 8px;
  list-style: none;
  color: #52657e;
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
}

.topbar-account > summary::-webkit-details-marker {
  display: none;
}

.topbar-account > summary::marker {
  content: "";
}

.topbar-account > summary:hover,
.topbar-account[open] > summary {
  color: #2878f0;
  background: #eef3fb;
}

.topbar-account > summary:focus-visible {
  outline: 2px solid #92b8f5;
  outline-offset: 1px;
}

.topbar-account > summary svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.topbar-account-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 5px 16px rgb(34 49 70 / 12%);
}

.topbar-account-menu form {
  margin: 0;
}

.topbar-account-menu button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  color: #45546a;
  background: transparent;
  border: 0;
  border-radius: 2px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.topbar-account-menu button:hover {
  color: #2878f0;
  background: #f1f5fb;
}

.app-shell > .main {
  min-width: 0;
  grid-template-rows: 40px minmax(0, 1fr);
}

.app-shell > .main > .page-tabs {
  min-height: 40px;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.app-shell > .main > .page-tabs::-webkit-scrollbar {
  display: none;
}

.app-shell > .main > .page-tabs .page-tab {
  min-height: 40px;
  max-width: 200px;
  color: #66748a;
  border-bottom: 2px solid transparent;
}

.app-shell > .main > .page-tabs .page-tab a {
  padding: 0 12px;
  color: inherit;
  font-size: 13px;
}

.app-shell > .main > .page-tabs .page-tab:hover {
  color: #2878f0;
  background: #f7f9fc;
}

.app-shell > .main > .page-tabs .page-tab.is-active {
  color: #2865c7;
  background: #f1f5fc;
  border-bottom-color: #2878f0;
}

.app-shell > .main > .page-tabs .page-tab-close {
  width: 22px;
  height: 22px;
  align-self: center;
  margin-right: 4px;
  color: #8a94a4;
  border-radius: 2px;
  font-size: 16px;
  line-height: 1;
}

.app-shell > .main > .page-tabs .page-tab-close:hover {
  color: #d94c4c;
  background: #fdeeee;
}

.app-shell > .main > .page-tabs .page-tab-close:disabled {
  display: none;
}

.app-shell > .main > .content {
  width: 100%;
  max-width: none;
  gap: 12px;
  padding: 16px 20px 24px;
  background: var(--bg);
}

.app-shell > .main > .content .eyebrow,
.app-shell > .main > .content .list-toolbar > div > p,
.app-shell > .main > .content .workbench-hero > div > p,
.app-shell > .main > .content .record-hero > div > p,
.app-shell > .main > .content .review-console > div > p {
  display: none;
}

.app-shell > .main > .content .list-toolbar {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.app-shell > .main > .content .list-toolbar h1,
.app-shell > .main > .content .list-toolbar h2,
.app-shell > .main > .content .record-hero h1,
.app-shell > .main > .content .record-hero h2,
.app-shell > .main > .content .review-console h1,
.app-shell > .main > .content .review-console h2 {
  color: #2f3d52;
  font-size: 16px;
  font-weight: 600;
}

.app-shell > .main > .content .panel,
.app-shell > .main > .content .record-card,
.app-shell > .main > .content .kpi-card,
.app-shell > .main > .content .process-step,
.app-shell > .main > .content .workbench-hero,
.app-shell > .main > .content .review-console,
.app-shell > .main > .content .record-hero,
.app-shell > .main > .content .list-toolbar,
.app-shell > .main > .content .table-panel {
  color: var(--ink);
  background-color: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  box-shadow: none;
}

.app-shell > .main > .content .panel {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: #c7cfda transparent;
  scrollbar-width: thin;
}

.app-shell > .main > .content .panel::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.app-shell > .main > .content .list-toolbar {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.app-shell > .main > .content .panel-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.app-shell > .main > .content .panel-header h2,
.app-shell > .main > .content .section-heading h2 {
  color: #35445a;
  font-size: 15px;
  font-weight: 600;
}

.app-shell > .main > .content .filter-tabs,
.app-shell > .main > .content .record-tabs {
  min-height: 38px;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 10px;
  padding: 0 6px;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.app-shell > .main > .content .filter-tabs > a,
.app-shell > .main > .content .record-tabs > a {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 13px;
  color: #65738a;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
}

.app-shell > .main > .content .filter-tabs > a:hover,
.app-shell > .main > .content .record-tabs > a:hover {
  color: #2878f0;
  background: #f8faff;
}

.app-shell > .main > .content .filter-tabs > a.active,
.app-shell > .main > .content .record-tabs > a.active,
.app-shell > .main > .content .record-tabs > a[aria-current="page"] {
  color: #2865c7;
  background: transparent;
  border-bottom-color: #2878f0;
  font-weight: 600;
}

.app-shell > .main > .content .table-panel {
  max-width: 100%;
  overflow: auto;
  padding: 0;
  scrollbar-color: #c7cfda transparent;
  scrollbar-width: thin;
}

.app-shell > .main > .content .table-panel::-webkit-scrollbar,
.app-shell > .main > .content .filter-tabs::-webkit-scrollbar,
.app-shell > .main > .content .record-tabs::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.app-shell > .main > .content .table-panel::-webkit-scrollbar-thumb {
  background: #c7cfda;
  border-radius: 3px;
}

.app-shell > .main > .content .data-table {
  color: #465368;
  font-size: 13px;
  line-height: 1.45;
}

.app-shell > .main > .content .data-table th {
  height: 36px;
  color: #58667b;
  background: #f2f4f8;
  border-color: #e7ebf1;
  font-size: 12px;
  font-weight: 500;
}

.app-shell > .main > .content .data-table td {
  color: #465368;
  border-color: #edf0f4;
}

.app-shell > .main > .content .data-table tbody tr:hover td {
  background: #f7faff;
}

.app-shell > .main > .content .btn {
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  color: #526178;
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 2px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
}

.app-shell > .main > .content .btn:hover:not(:disabled) {
  color: #2878f0;
  background: #f8faff;
  border-color: #9dbcf0;
}

.app-shell > .main > .content .btn.btn-primary,
.app-shell > .main > .content .btn.btn-primary:hover:not(:disabled) {
  color: #fff;
  background: #2878f0;
  border-color: #2878f0;
}

.app-shell > .main > .content .btn.btn-primary:hover:not(:disabled) {
  background: #1d67d2;
  border-color: #1d67d2;
}

.app-shell > .main > .content .btn.btn-small {
  min-height: 28px;
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.app-shell > .main > .content input,
.app-shell > .main > .content select,
.app-shell > .main > .content textarea {
  min-height: 34px;
  color: #465368;
  background: #fff;
  border: 1px solid #d5dce6;
  border-radius: 2px;
  box-shadow: none;
}

.app-shell > .main > .content input:focus,
.app-shell > .main > .content select:focus,
.app-shell > .main > .content textarea:focus {
  border-color: #7eaae9;
  outline: 2px solid #e9f1ff;
  box-shadow: none;
}

.app-shell > .main > .content .tag {
  min-height: 21px;
  padding: 2px 7px;
  color: #5d6b80;
  background: #f0f2f6;
  border: 0;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
}

.app-shell > .main > .content .status-current,
.app-shell > .main > .content .status-paid,
.app-shell > .main > .content .status-success {
  color: #23805b;
  background: #e8f5ef;
}

.app-shell > .main > .content .status-pending {
  color: #986417;
  background: #fbf2df;
}

.app-shell > .main > .content .status-alert {
  color: #bb4d4d;
  background: #fbeaea;
}

.app-shell > .main > .content .status-exempt {
  color: #65738a;
  background: #eef1f5;
}

.app-shell > .main > .content .module-tile,
.app-shell > .main > .content .workbench-link,
.app-shell > .main > .content .queue-list a,
.app-shell > .main > .content .readiness-list div,
.app-shell > .main > .content .readiness-list .readiness-row,
.app-shell > .main > .content .shortcut-grid a,
.app-shell > .main > .content .review-counters > a,
.app-shell > .main > .content .assistant-panel,
.app-shell > .main > .content .assistant-config,
.app-shell > .main > .content .assistant-messages,
.app-shell > .main > .content .assistant-draft,
.app-shell > .main > .content .member-advanced-filters,
.app-shell > .main > .content .approval-people {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  box-shadow: none;
}

.app-shell > .main > .content .module-tile:hover,
.app-shell > .main > .content .workbench-link:hover,
.app-shell > .main > .content .queue-list a:hover,
.app-shell > .main > .content .shortcut-grid a:hover {
  background: #f8faff;
  border-color: #d5e3f7;
}

.app-shell > .main > .content .summary-strip {
  gap: 18px;
  padding-top: 12px;
  color: #647187;
  font-size: 13px;
  font-weight: 400;
}

.app-shell > .main > .content .empty-state {
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  color: #7b8799;
  text-align: center;
}

.app-shell > .main > .content .empty-state strong {
  color: #4b5b71;
  font-size: 14px;
  font-weight: 500;
}

.app-shell > .main > .content .alert {
  border-radius: 2px;
}

.app-shell > .main > .content details > summary {
  color: #40516a;
  cursor: pointer;
}

.app-shell > .main > .content .dues-edit[open] .dues-edit-body {
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 5px 16px rgb(34 49 70 / 10%);
}

/* 全站统一字号：正文与操作 13px，区块标题 14px，页面标题 16px。 */
.sidebar .nav-item,
.sidebar .nav-group,
.app-shell > .topbar .brand,
.app-shell > .topbar .topbar-account > summary,
.app-shell > .main > .page-tabs .page-tab a,
.app-shell > .main > .content {
  font-size: 13px;
}

.app-shell > .main > .content p,
.app-shell > .main > .content small,
.app-shell > .main > .content label,
.app-shell > .main > .content input,
.app-shell > .main > .content select,
.app-shell > .main > .content textarea,
.app-shell > .main > .content button,
.app-shell > .main > .content .btn,
.app-shell > .main > .content .tag,
.app-shell > .main > .content .muted,
.app-shell > .main > .content .eyebrow,
.app-shell > .main > .content .data-table th,
.app-shell > .main > .content .data-table td,
.app-shell > .main > .content .filter-tabs > a,
.app-shell > .main > .content .record-tabs > a,
.app-shell > .main > .content .btn.btn-small,
.app-shell > .main > .content .empty-state strong,
.app-shell > .main > .content .assistant-heading p,
.app-shell > .main > .content .assistant-config,
.app-shell > .main > .content .chat-bubble,
.app-shell > .main > .content .assistant-status,
.app-shell > .main > .content .assistant-draft > p,
.app-shell > .main > .content .draft-warning,
.app-shell > .main > .content .wechat-user .muted,
.app-shell > .main > .content .integration-cards p,
.app-shell > .main > .content .workbench-tasks > a,
.app-shell > .main > .content .shortcut-grid > a,
.app-shell > .main > .content .queue-list small,
.app-shell > .main > .content .readiness-row small,
.app-shell > .main > .content .workbench-tasks small,
.app-shell > .main > .content .shortcut-grid small {
  font-size: 13px;
}

.app-shell > .main > .content h1,
.app-shell > .main > .content .list-toolbar h1,
.app-shell > .main > .content .list-toolbar h2,
.app-shell > .main > .content .record-hero h1,
.app-shell > .main > .content .record-hero h2,
.app-shell > .main > .content .review-console h1,
.app-shell > .main > .content .review-console h2 {
  font-size: 16px;
}

.app-shell > .main > .content h2,
.app-shell > .main > .content .panel-header h2,
.app-shell > .main > .content .section-heading h2,
.app-shell > .main > .content .assistant-heading h2 {
  font-size: 14px;
}

.app-shell > .main > .content h3,
.app-shell > .main > .content .review-counters > a strong {
  font-size: 13px;
}

.app-shell > .main > .content .review-counters > a strong {
  font-size: 16px;
}

/* 页签已经标出页面名称，页面与功能区标题下不再重复放说明副标题。 */
.app-shell > .main > .content .list-toolbar > p,
.app-shell > .main > .content .list-toolbar > div > p,
.app-shell > .main > .content .workbench-hero > p,
.app-shell > .main > .content .workbench-hero > div > p,
.app-shell > .main > .content .record-hero > p,
.app-shell > .main > .content .record-hero > div > p,
.app-shell > .main > .content .review-console > p,
.app-shell > .main > .content .review-console > div > p,
.app-shell > .main > .content .assistant-heading > p,
.app-shell > .main > .content .section-heading > p,
.app-shell > .main > .content .panel-header > p,
.app-shell > .main > .content .panel-header > div > p:not(.approval-step-meta),
.app-shell > .main > .content .kpi-card > em {
  display: none;
}

.app-shell > .main > .content .page-tab-duplicate-title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell > .main > .content > .list-toolbar.page-tab-title-only {
  display: none;
}

/* 全站正文、表单与表格的字号和间距统一。 */
:root {
  --ui-font-body: 14px;
  --ui-font-secondary: 13px;
  --ui-line-height: 1.55;
  --ui-control-height: 36px;
}

body {
  font-size: var(--ui-font-body);
  line-height: var(--ui-line-height);
  letter-spacing: 0;
}

.app-shell > .topbar .topbar-account > summary,
.app-shell > .main > .page-tabs .page-tab a {
  font-size: var(--ui-font-body);
  line-height: 1.4;
}

.app-shell > .main > .content {
  gap: 16px;
  padding: 22px 24px 28px;
  font-size: var(--ui-font-body);
  line-height: var(--ui-line-height);
}

.app-shell > .main > .content p,
.app-shell > .main > .content label,
.app-shell > .main > .content button,
.app-shell > .main > .content .btn,
.app-shell > .main > .content .data-table td,
.app-shell > .main > .content .filter-tabs > a,
.app-shell > .main > .content .record-tabs > a {
  font-size: var(--ui-font-body);
  line-height: 1.5;
}

.app-shell > .main > .content small,
.app-shell > .main > .content .muted,
.app-shell > .main > .content .filter-summary,
.app-shell > .main > .content .eyebrow {
  font-size: var(--ui-font-secondary);
  line-height: 1.5;
}

.app-shell > .main > .content h1,
.app-shell > .main > .content .list-toolbar h1,
.app-shell > .main > .content .list-toolbar h2,
.app-shell > .main > .content .record-hero h1,
.app-shell > .main > .content .record-hero h2,
.app-shell > .main > .content .review-console h1,
.app-shell > .main > .content .review-console h2 {
  font-size: 18px;
  line-height: 1.4;
}

.app-shell > .main > .content h2,
.app-shell > .main > .content .panel-header h2,
.app-shell > .main > .content .section-heading h2,
.app-shell > .main > .content .assistant-heading h2 {
  font-size: 16px;
  line-height: 1.45;
}

.app-shell > .main > .content h3,
.app-shell > .main > .content .form-section {
  font-size: 15px;
  line-height: 1.45;
}

.app-shell > .main > .content .panel,
.app-shell > .main > .content .record-card {
  padding: 20px 22px;
}

.app-shell > .main > .content .panel-header {
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.app-shell > .main > .content .form-grid {
  column-gap: 20px;
  row-gap: 17px;
}

.app-shell > .main > .content .form-stack {
  gap: 15px;
}

.app-shell > .main > .content .form-stack.compact {
  gap: 12px;
}

.app-shell > .main > .content .filter-bar,
.app-shell > .main > .content .inline-form,
.app-shell > .main > .content .recommend-form {
  column-gap: 14px;
  row-gap: 12px;
}

.app-shell > .main > .content label span {
  margin-bottom: 6px;
  color: #4e5b6d;
  font-size: var(--ui-font-body);
  font-weight: 500;
  line-height: 1.4;
}

.app-shell > .main > .content input:not([type="checkbox"]):not([type="radio"]),
.app-shell > .main > .content select,
.app-shell > .main > .content textarea {
  min-height: var(--ui-control-height);
  padding: 7px 11px;
  font-size: var(--ui-font-body);
  line-height: 1.45;
}

.app-shell > .main > .content input[type="checkbox"],
.app-shell > .main > .content input[type="radio"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
}

.app-shell > .main > .content textarea {
  min-height: 96px;
  padding: 9px 11px;
}

.app-shell > .main > .content .btn {
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  font-size: var(--ui-font-body);
  line-height: 1.3;
}

.app-shell > .main > .content .btn.btn-small,
.app-shell > .main > .content .data-table .btn.btn-small {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  font-size: var(--ui-font-secondary);
}

.app-shell > .main > .content .toolbar-actions,
.app-shell > .main > .content .hero-actions,
.app-shell > .main > .content .row-actions,
.app-shell > .main > .content .form-actions,
.app-shell > .main > .content .workflow-actions {
  gap: 10px;
}

.app-shell > .main > .content .filter-tabs,
.app-shell > .main > .content .record-tabs {
  min-height: 40px;
}

.app-shell > .main > .content .filter-tabs > a,
.app-shell > .main > .content .record-tabs > a {
  min-height: 40px;
  padding-right: 15px;
  padding-left: 15px;
}

.app-shell > .main > .content .data-table {
  font-size: var(--ui-font-body);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.app-shell > .main > .content .data-table th,
.app-shell > .main > .content .data-table td {
  padding: 11px 13px;
  line-height: 1.5;
  vertical-align: middle;
}

.app-shell > .main > .content .data-table th {
  height: 40px;
  font-size: var(--ui-font-secondary);
}

.app-shell > .main > .content .tag {
  min-height: 23px;
  padding: 2px 8px;
  font-size: var(--ui-font-secondary);
  line-height: 1.4;
}

.public-application-card {
  padding: 30px 36px;
}

.public-application-card h1 {
  font-size: 22px;
  line-height: 1.4;
}

.public-application-form {
  column-gap: 20px;
  row-gap: 17px;
}

.public-application-form label span {
  margin-bottom: 6px;
  font-size: var(--ui-font-body);
}

.public-application-form input:not([type="checkbox"]):not([type="radio"]),
.public-application-form select,
.public-application-form textarea {
  min-height: var(--ui-control-height);
  padding: 7px 11px;
  font-size: var(--ui-font-body);
}

.public-application-form .btn {
  min-height: 36px;
  height: 36px;
  font-size: var(--ui-font-body);
}

html.has-open-dialog {
  overflow: hidden;
}

.app-shell > .main > .content .maintenance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.maintenance-filter,
.app-shell > .main > .content .maintenance-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0;
}

.maintenance-filter {
  flex: 1 1 auto;
}

.app-shell > .main > .content .maintenance-filter label:has(> span),
.app-shell > .main > .content .maintenance-filters label:has(> span) {
  display: grid;
  grid-template-columns: auto minmax(150px, 240px);
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.app-shell > .main > .content .maintenance-filter label > span,
.app-shell > .main > .content .maintenance-filters label > span {
  margin: 0;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
}

.maintenance-filter .toolbar-actions {
  flex: 0 0 auto;
}

.app-shell > .main > .content .maintenance-panel .list-toolbar {
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
}

.app-shell > .main > .content .maintenance-dialog {
  position: fixed;
  inset: 0;
  width: min(620px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #303846;
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgb(22 34 56 / 18%);
  font-size: 14px;
  line-height: 1.5;
}

.app-shell > .main > .content .maintenance-dialog:not([open]) {
  display: none;
}

.maintenance-dialog::backdrop {
  background: rgb(20 30 48 / 32%);
}

.app-shell > .main > .content .maintenance-dialog > form {
  display: block;
  margin: 0;
}

.maintenance-dialog .dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8ecf1;
}

.app-shell > .main > .content .maintenance-dialog .dialog-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #303846;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.maintenance-dialog .dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #7a8492;
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.maintenance-dialog .dialog-close:hover {
  color: #1677f8;
  background: #f3f6fb;
}

.maintenance-dialog .dialog-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.app-shell > .main > .content .maintenance-dialog .dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px;
}

.app-shell > .main > .content .maintenance-dialog .form-grid,
.app-shell > .main > .content .maintenance-dialog .dialog-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.app-shell > .main > .content .maintenance-dialog label:has(> span) {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.app-shell > .main > .content .maintenance-dialog label > span {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.maintenance-dialog .required-label::after {
  content: " *";
  color: #df4b4b;
}

.maintenance-dialog .required-mark {
  color: #df4b4b;
  font-weight: 400;
}

.maintenance-dialog .span-2 {
  grid-column: 1 / -1;
}

.maintenance-dialog .dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #e8ecf1;
}

.app-shell > .main > .content [hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .app-shell > .main > .content .maintenance-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .app-shell > .main > .content .maintenance-dialog .dialog-body {
    padding: 20px 16px;
  }

  .app-shell > .main > .content .maintenance-dialog label:has(> span) {
    grid-template-columns: 80px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .app-shell > .main > .content {
    gap: 12px;
    padding: 14px;
  }

  .app-shell > .main > .content .panel,
  .app-shell > .main > .content .record-card {
    padding: 16px;
  }

  .app-shell > .main > .content .form-grid,
  .app-shell > .main > .content .form-stack {
    gap: 13px;
  }

  .public-application-card {
    padding: 22px 18px;
  }
}
