/* 团队版 SAAS 附加样式：启动屏、登录注册、顶部协作状态栏、成员管理 */
#bootScreen { position: fixed; inset: 0; z-index: 9999; background: #eef3fa; display: flex; align-items: center; justify-content: center; }
.boot-card { background: #fff; border: 1px solid #e3e9f2; border-radius: 14px; box-shadow: 0 12px 40px rgba(31, 56, 100, .10); padding: 34px 46px; text-align: center; min-width: 260px; }
.boot-logo { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; background: #2f5597; color: #fff; font-size: 26px; font-weight: 700; line-height: 52px; }
.boot-txt { color: #44546a; font-size: 14px; margin-bottom: 14px; }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { display: flex; width: 900px; max-width: 94vw; min-height: 500px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 60px rgba(31, 56, 100, .18); }
.auth-side { width: 46%; padding: 44px 38px; background: linear-gradient(155deg, #2f5597 0%, #1f3864 62%, #16305c 100%); color: #fff; display: flex; flex-direction: column; }
.auth-logo { width: 48px; height: 48px; border-radius: 13px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); text-align: center; line-height: 46px; font-size: 24px; font-weight: 700; }
.auth-side h1 { font-size: 24px; line-height: 1.45; margin: 26px 0 8px; font-weight: 700; }
.auth-sub { font-size: 13px; color: #c9d8f2; margin: 0 0 30px; }
.auth-feat > div { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; font-size: 13px; color: #e4ecfa; line-height: 1.6; }
.auth-feat b { color: #9fc0ff; font-size: 12px; letter-spacing: 1px; padding-top: 2px; }
.auth-foot-note { margin-top: auto; font-size: 11px; color: #a9c0e6; line-height: 1.7; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 14px; }
.auth-card { flex: 1; padding: 42px 44px; display: flex; flex-direction: column; }
.auth-head h2 { font-size: 21px; margin: 0 0 6px; color: #1f2d3d; }
.auth-head p { font-size: 12px; color: #7b8698; margin: 0 0 22px; }
.auth-tabs { display: flex; border-bottom: 1px solid #e3e9f2; margin-bottom: 22px; }
.auth-tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 0; font-size: 14px; color: #7b8698; cursor: pointer; }
.auth-tabs button.on { color: #2f5597; border-bottom-color: #2f5597; font-weight: 700; }
.auth-form label { display: block; font-size: 12px; color: #5b6572; margin-bottom: 14px; }
.auth-form input, .auth-form select { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; height: 38px; padding: 0 11px; border: 1px solid #d8e0ec; border-radius: 7px; font-size: 13px; color: #26313f; background: #fbfcfe; outline: none; }
.auth-form input:focus, .auth-form select:focus { border-color: #2f5597; background: #fff; }
.auth-msg { min-height: 18px; font-size: 12px; color: #5b6572; margin: 2px 0 8px; }
.auth-msg.err { color: #c0392b; }
.auth-submit { width: 100%; height: 40px; font-size: 14px; margin-top: 4px; }
.auth-first { margin-top: 16px; padding: 10px 12px; background: #eef4ff; border: 1px solid #d6e4ff; border-radius: 7px; color: #2f5597; font-size: 12px; line-height: 1.6; }

/* ---------- 顶部协作状态栏 ---------- */
/* 团队状态栏加入后，长面包屑改为单行省略，避免顶栏被撑成两行 */
.topbar h2, .topbar .today { white-space: nowrap; flex-shrink: 0; }
.topbar .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 300px; }
.saas-bar { display: flex; align-items: center; gap: 10px; margin-right: 12px; white-space: nowrap; flex-shrink: 0; }
.sb-team { display: flex; align-items: center; gap: 5px; }
.sb-lb { font-size: 11px; color: #8a94a3; }
.sb-team select { height: 28px; max-width: 190px; border: 1px solid #d8e0ec; background: #fff; border-radius: 6px; font-size: 12px; color: #26313f; padding: 0 6px; }
.sb-sep { width: 1px; height: 20px; background: #e3e9f2; }
.sb-user { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #44546a; }
.sb-avatar { width: 24px; height: 24px; border-radius: 50%; background: #dce8fb; color: #2f5597; font-weight: 700; text-align: center; line-height: 24px; }
.sb-role { font-size: 10px; padding: 2px 6px; border-radius: 9px; background: #eef1f5; color: #6b7280; }
.sb-role.is-admin { background: #e4f4ea; color: #2b7a4b; }
.sb-sync { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #3aa76d; }
.sb-sync i { width: 7px; height: 7px; border-radius: 50%; background: #3aa76d; }
.sb-sync.busy { color: #c07a10; } .sb-sync.busy i { background: #e0a020; }
.sb-sync.off { color: #c0392b; } .sb-sync.off i { background: #d9534f; }

/* ---------- 成员管理 ---------- */
.invite-box { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.invite-code { display: inline-block; padding: 8px 18px; border: 1px dashed #2f5597; border-radius: 8px; background: #f2f7ff; color: #1f3864; font-size: 19px; font-weight: 700; letter-spacing: 3px; font-family: Consolas, monospace; }
@media (max-width: 1280px) { .sb-name, .sb-sync span { display: none; } .saas-bar { gap: 6px; } }
@media (max-width: 900px) {
  .auth-wrap { flex-direction: column; min-height: 0; }
  .auth-side { width: auto; padding: 22px; } .auth-feat, .auth-foot-note { display: none; }
  .auth-side h1 { margin: 12px 0 4px; font-size: 19px; } .auth-sub { margin-bottom: 0; }
  .auth-card { padding: 24px; }
  .saas-bar .sb-team, .saas-bar .sb-sep { display: none; }
}

/* ---------- 进度总表：未授权步骤 / 资料占位 ---------- */
.locked-cell {
  background: repeating-linear-gradient(135deg, #f4f6fa 0, #f4f6fa 5px, #eef1f6 5px, #eef1f6 10px);
  color: #9aa5b5; text-align: center; vertical-align: middle; cursor: not-allowed;
  font-size: 12px; min-width: 46px; user-select: none;
}
.locked-cell span { opacity: .72; font-size: 13px; }
.ops-cell { white-space: nowrap; }
.ops-cell .btn { padding: 2px 6px; font-size: 11px; }

/* ---------- 管理员全员总览 ---------- */
.ov-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.ov-kpi { background: #fff; border: 1px solid #e3e9f2; border-radius: 10px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(31, 56, 100, .04); }
.ov-kpi span { display: block; font-size: 12px; color: #7b8698; margin-bottom: 6px; }
.ov-kpi b { font-size: 26px; color: #1f3864; line-height: 1; }
.ov-scroll { max-height: 330px; overflow: auto; border: 1px solid #e3e9f2; border-radius: 8px; }
.ov-scroll .tbl { min-width: 780px; }
.ov-scroll .tbl thead th { position: sticky; top: 0; background: #f7f9fc; z-index: 1; }
@media (max-width: 1100px) { .ov-kpis { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 步骤可见设置弹窗 ---------- */
.acl-switch { display: flex; align-items: center; gap: 14px; margin: 12px 0 4px; padding: 10px 12px; background: #f2f7ff; border: 1px solid #d6e4ff; border-radius: 8px; font-size: 13px; color: #1f3864; }
.acl-switch label { font-weight: 700; cursor: pointer; }
.acl-switch .muted { font-size: 11px; }
.acl-title { font-size: 13px; font-weight: 700; color: #1f3864; margin: 16px 0 8px; }
.acl-people { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; border: 1px solid #e3e9f2; border-radius: 8px; font-size: 12px; }
.acl-people label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.acl-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #7b8698; margin-bottom: 8px; }
.acl-legend span { flex: 1; }
.acl-grid { border: 1px solid #e3e9f2; border-radius: 8px; max-height: 330px; overflow: auto; }
.acl-head, .acl-row { display: grid; grid-template-columns: var(--acl-cols); align-items: center; }
.acl-head { position: sticky; top: 0; z-index: 1; background: #f7f9fc; border-bottom: 1px solid #e3e9f2; }
.acl-head > div { padding: 7px 8px; font-size: 11px; font-weight: 700; color: #44546a; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acl-head > div:first-child { text-align: left; }
.acl-row > div { padding: 5px 8px; font-size: 12px; color: #44546a; border-top: 1px solid #f0f3f8; }
.acl-row > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acl-row .ctr, .acl-head .ctr { text-align: center; }
.acl-row input[type="checkbox"] { cursor: pointer; }
.acl-stage { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #eef4fc; border-top: 1px solid #dde7f5; font-size: 12px; font-weight: 700; color: #2f5597; }
.acl-stage > div { flex: 1; }
.acl-stage .btn { padding: 1px 7px; font-size: 11px; }

/* ---------- 功能管理：数据可见范围矩阵 ---------- */
.perm-title { font-size: 13px; font-weight: 700; color: #1f3864; margin: 15px 0 8px; padding-left: 9px; border-left: 3px solid #2f5597; }
.perm-hint { font-size: 12px; color: #6b7280; background: #f4f8ff; border: 1px solid #e0ebfa; border-radius: 7px; padding: 9px 12px; margin-bottom: 10px; line-height: 1.75; }
.perm-matrix td { vertical-align: middle; }
.perm-matrix tbody tr:hover { background: #fafcff; }
.perm-now { font-size: 11px; color: #2f5597; font-weight: 700; margin-top: 3px; }
.perm-btns { white-space: nowrap; }
.perm-btn { margin: 0 4px 3px 0; padding: 2px 7px; font-size: 11px; min-width: 52px; }

/* ---------- 功能管理：公海周期自定义 ---------- */
.pool-cfg { border: 1px solid #e3e9f2; border-radius: 8px; padding: 12px 14px; background: #fbfdff; }
.pool-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12.5px; color: #44546a; }
.pool-row:last-child { margin-bottom: 0; }
.pool-lb { width: 132px; flex: 0 0 132px; font-weight: 700; color: #1f3864; }
.pool-row input[type="number"] { width: 92px; height: 30px; padding: 0 8px; border: 1px solid #d8e0ec; border-radius: 6px; background: #fff; font-size: 13px; }
.pool-row input[type="number"]:disabled { background: #eef1f5; color: #9aa5b5; }
.pool-row > span { color: #6b7280; }
.pool-same { display: flex; align-items: center; gap: 5px; font-weight: 400; color: #44546a; cursor: pointer; }

/* ---------- 服务到期停用页（纯联系说明，不含任何计费数据） ---------- */
.suspend-card { width: 560px; max-width: 92vw; background: #fff; border: 1px solid #f0ccc7; border-top: 5px solid #c0392b;
  border-radius: 12px; box-shadow: 0 18px 60px rgba(31, 56, 100, .16); padding: 30px 34px; text-align: center; }
.suspend-ico { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: #fdeaea; color: #c0392b;
  font-size: 30px; font-weight: 700; line-height: 52px; }
.suspend-card h2 { margin: 0 0 10px; font-size: 21px; color: #a83228; }
.suspend-card p { font-size: 13px; color: #5b6572; line-height: 1.9; margin: 0 0 16px; text-align: left; }
.suspend-line { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f0f3f8; font-size: 12.5px; text-align: left; }
.suspend-line span { width: 128px; flex: 0 0 128px; color: #7b8698; }
.suspend-line b { flex: 1; color: #26313f; font-weight: 600; }
.suspend-tip { margin: 16px 0; padding: 10px 12px; background: #f7faff; border: 1px solid #e0ebfa; border-radius: 8px;
  font-size: 12px; color: #2f5597; line-height: 1.7; }
.suspend-btns { display: flex; justify-content: center; gap: 10px; }

/* ---------- 项目权限弹窗：项目级可见范围 ---------- */
.acl-scope { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 10px 12px; border: 1px solid #e3e9f2; border-radius: 8px; background: #fbfdff; }
.acl-scope label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #44546a; }
.acl-scope select { height: 30px; border: 1px solid #d8e0ec; border-radius: 6px; background: #fff; padding: 0 6px; font-size: 12px; }
.acl-scope .muted { font-size: 11px; color: #9aa5b5; }
