/* ============ 运营后台 ============ */
body.admin-body {
  background: #f3f4f7;
  min-height: 100vh;
  display: flex;
}

/* 侧边栏 */
.side {
  width: 232px;
  flex: 0 0 232px;
  background: #14161b;
  color: #fff;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 0 16px;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.side-brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #f0713f, #c8431e);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(226, 84, 44, 0.4);
}
.side-brand .tx b { display: block; font-size: 13.5px; letter-spacing: 0.3px; }
.side-brand .tx span { font-size: 10.5px; color: #6f7784; letter-spacing: 0.5px; }

.side-nav { flex: 1; overflow-y: auto; padding: 14px 12px 0; }
.side-nav::-webkit-scrollbar { width: 4px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.nav-group { margin-bottom: 16px; }
.nav-group .g-title {
  font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #565d69; padding: 0 12px 7px; font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 12px; border-radius: 8px;
  font-size: 13px; color: #a6adb8;
  margin-bottom: 2px; cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #e6e9ee; }
.nav-item.on { background: rgba(226, 84, 44, 0.14); color: #fff; font-weight: 600; }
.nav-item.on .ic { color: #f0713f; }
.nav-item .cnt {
  margin-left: auto; font-size: 10.5px; padding: 1px 6px;
  border-radius: 6px; background: rgba(255,255,255,.1); color: #c9cfd8;
}
.nav-item.on .cnt { background: rgba(226, 84, 44, 0.3); color: #fff; }

.side-foot {
  padding: 12px 22px 0; border-top: 1px solid rgba(255,255,255,.07);
  font-size: 10.5px; color: #4f5662; line-height: 1.6;
}

/* 主区 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar2 {
  height: 62px; background: #fff; border-bottom: 1px solid #e8eaee;
  display: flex; align-items: center; padding: 0 26px; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 7px; }
.crumb b { color: #14161b; font-weight: 650; }
.topbar2 .spacer { flex: 1; }
.tb-search {
  width: 260px; height: 34px; border-radius: 9px;
  background: #f4f5f7; border: 1px solid transparent;
  display: flex; align-items: center; gap: 7px; padding: 0 11px;
  font-size: 12.5px; color: #9ca3af;
}
.tb-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; color: #6b7280;
  position: relative;
}
.tb-icon:hover { background: #f4f5f7; }
.tb-icon .dot-red {
  position: absolute; top: 7px; right: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: #e2542c; border: 1.5px solid #fff;
}
.tb-user { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid #e8eaee; }
.tb-user .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #e09a5f, #c06a34);
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
}
.tb-user .nm { font-size: 12.5px; font-weight: 600; }
.tb-user .rl { font-size: 10.5px; color: #9ca3af; }

.content { padding: 22px 26px 40px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.page-head h2 { margin: 0; font-size: 21px; letter-spacing: -0.4px; font-weight: 750; }
.page-head p { margin: 5px 0 0; font-size: 12.5px; color: #6b7280; }
.page-actions { display: flex; gap: 8px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi {
  background: #fff; border: 1px solid #eaecf0; border-radius: 13px;
  padding: 16px 17px; position: relative; overflow: hidden;
}
.kpi .lb { font-size: 11.5px; color: #6b7280; display: flex; align-items: center; gap: 5px; }
.kpi .vl { font-size: 25px; font-weight: 750; letter-spacing: -0.8px; margin-top: 8px; }
.kpi .vl small { font-size: 12px; font-weight: 500; color: #9ca3af; margin-left: 2px; }
.kpi .df { font-size: 11px; margin-top: 6px; display: flex; align-items: center; gap: 4px; color: #0e7a62; }
.kpi .df.down { color: #c0392b; }
.kpi .df .arw { font-size: 10px; }
.kpi .spark { position: absolute; right: 14px; bottom: 14px; opacity: 0.55; }

/* 卡片 */
.panel-card {
  background: #fff; border: 1px solid #eaecf0; border-radius: 13px;
  padding: 18px 20px;
}
.panel-card .pc-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.panel-card .pc-head h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }
.panel-card .pc-head .sub { font-size: 11.5px; color: #9ca3af; margin-top: 3px; }
.pc-tools { display: flex; gap: 6px; align-items: center; }

.grid-2 { display: grid; grid-template-columns: 1.62fr 1fr; gap: 16px; }
.grid-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* 图例 */
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6b7280; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* 表格容器 */
.table-wrap { overflow-x: auto; }
.tbl .tag-risk {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2px 7px; border-radius: 6px;
  background: #fbeae8; color: #c0392b; font-weight: 600;
}
.tbl .tag-ok { background: #e6f4f0; color: #0e7a62; font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.tbl .u-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: #eef0f3; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #6b7280; margin-right: 8px;
  vertical-align: middle;
}
.cell-flex { display: flex; align-items: center; }

/* 迷你条形 */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.bar-row .nm { width: 74px; font-size: 12px; color: #3d434e; }
.bar-track { flex: 1; height: 7px; background: #f1f3f6; border-radius: 4px; overflow: hidden; display: block; }
.bar-fill { display: block; height: 7px; border-radius: 4px; }
.bar-row .vv { width: 42px; text-align: right; font-size: 12px; font-weight: 600; color: #3d434e; }

/* 待办列表 */
.todo { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed #eef0f3; }
.todo:last-child { border-bottom: 0; }
.todo .td-ic {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px;
  display: grid; place-items: center; background: #fdf0e9; color: #c8431e;
}
.todo .td-b { flex: 1; }
.todo .td-b b { font-size: 12.5px; font-weight: 650; display: block; }
.todo .td-b span { font-size: 11px; color: #9ca3af; }
.todo .td-n { font-size: 16px; font-weight: 750; color: #14161b; }

/* 配置表单 */
.form-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #f2f3f5; }
.form-row:last-child { border-bottom: 0; }
.form-row .fl b { font-size: 13px; font-weight: 600; display: block; }
.form-row .fl span { font-size: 11.5px; color: #9ca3af; margin-top: 3px; display: block; line-height: 1.5; }
.form-row .fr { display: flex; align-items: center; gap: 8px; }
.inp-mini {
  width: 74px; height: 32px; border-radius: 8px; border: 1px solid #e3e6ea;
  text-align: center; font-size: 13px; font-weight: 600; outline: none;
}
.inp-mini:focus { border-color: #e2542c; }

.big-switch {
  width: 46px; height: 26px; border-radius: 14px; background: #dfe2e7; position: relative;
  transition: background 0.18s; cursor: pointer; flex: 0 0 46px;
}
.big-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s;
}
.big-switch.on { background: #e2542c; }
.big-switch.on::after { transform: translateX(20px); }

/* 等级卡 */
.lv-card {
  border: 1px solid #eaecf0; border-radius: 12px; padding: 15px 16px;
  display: flex; align-items: center; gap: 13px; background: #fff;
  margin-bottom: 10px;
}
.lv-badge2 {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; flex: 0 0 40px;
}
.lv-card .lc-m b { font-size: 13.5px; }
.lv-card .lc-m span { font-size: 11.5px; color: #9ca3af; display: block; margin-top: 3px; }
.lv-range { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #3d434e; font-weight: 600; }

/* 状态条 */
.stat-strip2 { display: flex; gap: 0; background: #fff; border: 1px solid #eaecf0; border-radius: 13px; overflow: hidden; }
.stat-strip2 .s { flex: 1; padding: 15px 18px; border-right: 1px solid #f2f3f5; }
.stat-strip2 .s:last-child { border-right: 0; }
.stat-strip2 .s .l { font-size: 11.5px; color: #6b7280; }
.stat-strip2 .s .v { font-size: 20px; font-weight: 750; letter-spacing: -0.4px; margin-top: 5px; }
.stat-strip2 .s .v small { font-size: 11px; color: #9ca3af; font-weight: 500; }

/* 审批卡 */
.audit-card {
  border: 1px solid #eaecf0; border-radius: 12px; padding: 16px;
  display: flex; gap: 14px; align-items: center; margin-bottom: 10px; background: #fff;
}
.audit-card .ac-logo {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px;
  background: linear-gradient(135deg, #e9ecf1, #d3d8e0);
  display: grid; place-items: center; color: #6b7280;
}
.audit-card .ac-m { flex: 1; }
.audit-card .ac-m b { font-size: 13.5px; }
.audit-card .ac-m .m2 { font-size: 11.5px; color: #9ca3af; margin-top: 4px; }
.audit-card .ac-tags { display: flex; gap: 6px; margin-top: 7px; }

/* 图表 */
.chart-box { position: relative; }
.chart-tip {
  position: absolute; pointer-events: none; background: #14161b; color: #fff;
  font-size: 11px; padding: 5px 9px; border-radius: 6px; opacity: 0;
  transition: opacity .12s; white-space: nowrap; z-index: 5;
}

/* 空 */
.empty2 { text-align: center; padding: 48px; color: #9ca3af; font-size: 12.5px; }

/* 顶栏小按钮 */
.seg2 { display: inline-flex; background: #f1f3f6; border-radius: 9px; padding: 3px; }
.seg2 button {
  height: 28px; padding: 0 13px; border-radius: 7px; font-size: 12px; color: #6b7280;
}
.seg2 button.on { background: #fff; color: #14161b; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.tag-line {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
  color: #0e7a62; background: #e6f4f0; padding: 3px 8px; border-radius: 6px; font-weight: 600;
}
