/* ============================================================================
 * b20：平台一般管理员「新增 / 启用 / 停用」页面样式
 * 复用 v105（身份标签 / 操作链接）、v106（权限矩阵 / 台账状态）的既有视觉，
 * 只补本页新增的：头部操作条、启用状态片、待注册邀请表、新增表单。
 * ========================================================================== */

/* 卡片头部右侧按钮组 */
.v108-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}
.v108-bar .btn-p,
.v108-bar .btn-o {
  height: 28px;
  line-height: 26px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.v108-bar .btn-p { line-height: 28px; }

/* 一般管理员启用状态 */
.v108-st {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.v108-st.on { color: #0b7d5e; background: #e8f7f4; border-color: #bfe9e1; }
.v108-st.off { color: #b23636; background: #fbeeec; border-color: #f0d6d1; }
.v108-st.pending { color: #9a6414; background: #fdf6e7; border-color: #f0e0bd; margin-left: 6px; }

/* 模块标签：与 v106 的管理员页保持同一样式（选择器带表名，故需重写一份） */
.v108-at .mods { display: flex; flex-wrap: wrap; gap: 4px; }
.v108-at .mods span {
  font-size: 11px;
  color: #43617a;
  background: #f1f5f9;
  border: 1px solid #e3eaf1;
  border-radius: 4px;
  padding: 0 6px;
  line-height: 1.7;
  white-space: nowrap;
}
.v108-mods { font-size: 12px; color: #5b6b7a; }
.v108-mods.all { color: #0b7d5e; }
.v108-mods.off { color: #9aa7b4; }

/* 表格：操作列不换行、姓名列不被压扁 */
.v108-at .v105-op,
.v108-it .v105-op { white-space: nowrap; }
.v108-at th, .v108-it th { white-space: nowrap; }
.v108-invhd {
  margin: 20px 0 8px;
  padding-top: 14px;
  border-top: 1px dashed #cfdce8;
  font-size: 12.5px;
  font-weight: 600;
  color: #17364d;
}
.v108-invhd span { margin-left: 8px; font-weight: 400; color: #93a3b3; }
.v108-it thead th { background: #f7fafc; }

/* 操作链接：停用用橙色区分于「收回」的红色 */
.v105-act.warn { color: #b8791a; }

/* 新增表单 */
.v108-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 10px 0 14px;
}
.v108-form label {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #46586a;
}
.v108-form label:nth-child(3) { grid-column: 1 / -1; }
.v108-form label > span { text-align: right; white-space: nowrap; }
.v108-form label > span i { color: #b23636; font-style: normal; }
.v108-form input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d8e2ea;
  border-radius: 6px;
  font-size: 13px;
  color: #17364d;
  outline: none;
  box-sizing: border-box;
}
.v108-form input:focus { border-color: #1289c2; box-shadow: 0 0 0 3px rgba(18, 137, 194, .12); }
.v108-perm-t {
  font-size: 12.5px;
  font-weight: 600;
  color: #17364d;
  margin: 4px 0 8px;
}

@media (max-width: 760px) {
  .v108-form { grid-template-columns: minmax(0, 1fr); }
  .v108-bar { flex-wrap: wrap; }
}

/* 弹窗底部按钮：全局 .btn-p/.btn-o 只有配色，没有尺寸（裸 <a> 会被压成 21px 高），这里补齐 */
.v104-ft .btn-p,
.v104-ft .btn-o {
  display: inline-block;
  height: 32px;
  line-height: 30px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}
.v104-ft .btn-p { line-height: 32px; border: 1px solid transparent; }

/* ---------- b21：委派维护权 / 微信绑定列 ---------- */
/* 模块标签里单独标出「管理员维护」（可编辑权），与查看模块区分 */
.v108-at .mods span.ed {
  color: #8a5a12;
  background: #fdf6e7;
  border-color: #f0e0bd;
  font-weight: 600;
}

/* 微信绑定状态 */
.v108-wx {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.v108-wx.on { color: #0b7d5e; background: #e8f7f4; border-color: #bfe9e1; }
.v108-wx.no { color: #77889a; background: #f2f5f8; border-color: #e3eaf1; }
.v108-at .v105-act[href="#/me"] { margin-left: 2px; }

/* 仅最高管理员可授予的项：琥珀色提示，勾选后仍是普通卡片 */
.v106-perm-list label.lock {
  border-color: #f0e0bd;
  background: #fffdf7;
}
.v106-perm-list label.lock.on { border-color: #e6c477; background: #fdf6e7; }

/* 微信列：状态片与「去绑定」不拆行 */
.v108-at .v108-wxc { white-space: nowrap; }
.v108-at .v108-wxc .v105-act { margin-left: 6px; }
