/* 伊互助工作台 —— 全局样式（品牌色沿用国药蓝 / 青绿） */
:root {
  --brand: #1A54B7;
  --brand-d: #0B2A57;
  --brand-l: #2A938C;
  --ok: #17936b;
  --warn: #c8871a;
  --danger: #c0392b;
  --bg: #f3f5f9;
  --card: #ffffff;
  --line: #e3e8f0;
  --tx: #1d2735;
  --tx2: #5c6b81;
  --tx3: #93a0b4;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(16, 40, 80, .07);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
a { color: var(--brand); text-decoration: none; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.ellip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 按钮 / 表单 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--tx); font-size: 14px; cursor: pointer;
  transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #c9d3e2; background: #f7f9fc; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--brand), #2f6fd0); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--brand), #2f6fd0); }
.btn.ghost { background: #f2f5fa; }
.btn.danger { background: #fff; border-color: #f0c8c2; color: var(--danger); }
.btn.danger:hover { background: #fdf3f2; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.btn.block { width: 100%; }
.btn.send { height: 36px; margin-top: 22px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--tx2); }
input, select, textarea {
  height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--tx); font-size: 14px; font-family: inherit; outline: none; width: 100%;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 84, 183, .12); }
.inp { width: auto; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row .grow { flex: 1; }

/* ---------------- 登录页 ---------------- */
.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(42, 147, 140, .45), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(86, 182, 72, .28), transparent 60%),
    linear-gradient(160deg, #0B2A57 0%, #114B84 55%, #1c6f8a 100%);
}
.auth-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: 0 24px 60px rgba(6, 24, 56, .35);
}
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.auth-logo {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-l));
  color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.auth-brand h1 { font-size: 20px; }
.auth-brand p { margin: 2px 0 0; color: var(--tx3); font-size: 12.5px; }
.tabs { display: flex; gap: 4px; background: #f1f4f9; padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.tabs .tab {
  flex: 1; height: 32px; border: 0; background: transparent; border-radius: 7px;
  font-size: 13px; color: var(--tx2); cursor: pointer; font-family: inherit;
}
.tabs .tab.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--shadow); }
.pane { display: none; flex-direction: column; gap: 14px; }
.pane.active { display: flex; }
.pane .btn.block { margin-top: 4px; }
/* 登录按钮 + 注册独立入口（并排） */
.auth-actions { margin-top: 4px; }
.auth-actions .btn.ghost { flex: none; min-width: 92px; }
.hint { margin: 0; font-size: 12px; color: var(--tx3); line-height: 1.5; }
.auth-msg { margin-top: 14px; font-size: 13px; min-height: 20px; text-align: center; color: var(--tx2); }
.auth-msg.err { color: var(--danger); }
.auth-msg.ok { color: var(--ok); }

.reset-line { display: flex; justify-content: flex-end; margin-top: -4px; }
.linkbtn {
  border: 0; background: none; padding: 0; color: var(--brand);
  font-size: 13px; cursor: pointer; font-family: inherit;
}
.linkbtn:hover { text-decoration: underline; }
.quick > .btn { grid-column: 1 / -1; }
.quick .row { align-items: center; }

/* ---------------- 应用外壳 ---------------- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; color: #fff;
  background: linear-gradient(120deg, var(--brand-d), var(--brand) 60%, var(--brand-l));
}
.tb-left { display: flex; align-items: center; gap: 10px; }
.tb-logo {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px;
}
.tb-title { font-size: 16px; font-weight: 600; line-height: 1.2; }
.tb-title em { display: block; font-style: normal; font-size: 11.5px; opacity: .8; font-weight: 400; }
.tb-right { display: flex; align-items: center; gap: 12px; }
.who { font-size: 13px; opacity: .92; }
.tb-right .btn.ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); color: #fff; }
.tb-right .btn.ghost:hover { background: rgba(255, 255, 255, .26); }

.body { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: 208px; flex: none; background: #fff; border-right: 1px solid var(--line);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 2px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px;
  border: 0; background: transparent; border-radius: 8px; cursor: pointer;
  color: var(--tx2); font-size: 14px; font-family: inherit; text-align: left; width: 100%;
}
.nav-item i { font-style: normal; width: 18px; text-align: center; opacity: .75; }
.nav-item:hover { background: #f2f5fa; color: var(--tx); }
.nav-item.active { background: rgba(26, 84, 183, .1); color: var(--brand); font-weight: 600; }
.nav-item.active i { opacity: 1; }
/* 危险入口（系统重置）：红色高亮 + 呼吸圆点，仅超级管理员可见 */
.nav-item.danger { color: #c0392b; font-weight: 600; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding-top: 10px; height: 46px; }
.nav-item.danger i { opacity: 1; font-size: 15px; }
.nav-item.danger:hover { background: #fdeceb; }
.nav-item.danger.active { background: rgba(192, 57, 43, .12); color: #c0392b; }
.nav-item.danger .dot { width: 6px; height: 6px; border-radius: 50%; background: #c0392b; margin-left: auto; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.content { flex: 1; padding: 20px; min-width: 0; overflow-x: auto; }
.tabbar { display: none; }

/* ---------------- 页面元素 ---------------- */
/* 后台管理子页签 / 列表辅助 */
.subtabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
/* ---------- 登录页 · 申请注册 ---------- */
.auth-card .req { color: #c0392b; margin-left: 3px; font-weight: 600; }
/* 修复：label 全局为 column flex，导致标签文字与必填星号被拆成两行。
   auth-card 内改用 block：文字与星号同行，输入控件独占一行。 */
.auth-card label { display: block; font-size: 13px; color: var(--tx2); }
.auth-card label > input,
.auth-card label > select,
.auth-card label > textarea { display: block; margin-top: 6px; }
.auth-card label > .row { margin-top: 6px; }
.reg-tip {
  font-size: 13px; color: #5c6b81; background: #F4F7FC; border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; margin: 0 0 14px; line-height: 1.65;
}
.auth-card select {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; font: inherit; font-size: 15px; background: #fff; color: var(--tx); margin-top: 6px;
}
.auth-card textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
  font: inherit; font-size: 15px; margin-top: 6px; resize: vertical; line-height: 1.6;
}
/* 警示行：红色提示（对外域名未部署、危险操作等） */
.warnx { color: #c0392b; background: #fdf3f2; border: 1px solid #f0c2bc;
  border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.7; margin: 10px 0; }
.stab.danger { color: #c0392b; border-color: #f0c2bc; font-weight: 600; }
.stab.danger.active { background: #c0392b; border-color: #c0392b; color: #fff; }
.stab {
  height: 32px; padding: 0 14px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--tx2); font-family: inherit;
}
.stab:hover { background: #f7f9fc; }
.stab.active { background: rgba(26, 84, 183, .1); border-color: transparent; color: var(--brand); font-weight: 600; }
.listinfo { color: var(--tx2); font-size: 13px; margin-bottom: 10px; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.tip { color: var(--tx3); font-size: 12.5px; margin-left: 10px; }
b.ok { color: var(--ok); }

.page-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.page-hd h2 { font-size: 19px; }
.page-sub { color: var(--tx3); font-size: 13px; }
.actions { margin-bottom: 14px; }
.loading { padding: 40px; text-align: center; color: var(--tx3); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.k-label { font-size: 12.5px; color: var(--tx3); }
.k-num { font-size: 26px; font-weight: 700; line-height: 1.3; }
.k-num small { font-size: 12px; font-weight: 500; color: var(--tx3); margin-left: 4px; }
.kpi.run .k-num { color: var(--brand); }
.kpi.ok .k-num { color: var(--ok); }
.kpi.warn .k-num { color: var(--warn); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.card-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.card-hd h3 { font-size: 15px; }
.card-hd .tag { font-size: 12px; color: var(--tx3); }
.card-hd .link { font-size: 13px; }
.card-bd { padding: 14px 16px; }
b.danger { color: var(--danger); }

.empty { padding: 30px 16px; text-align: center; color: var(--tx3); }
.empty-ico { font-size: 26px; color: #cfd8e6; margin-bottom: 4px; }
.empty p { margin: 0; font-size: 14px; }
.empty small { font-size: 12px; }

/* 表格 */
.tbl-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { background: #f7f9fc; color: var(--tx2); font-weight: 600; text-align: left; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fafcff; }
.tbl .rowlink { cursor: pointer; }
.tbl .rowlate { background: #fff8f6; }
.tbl .ops { white-space: nowrap; text-align: right; }
.tbl .ops .btn { margin-left: 6px; }

/* 进度条 */
.bar { height: 6px; background: #eef2f8; border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-l)); border-radius: 4px; }
.bar.big { height: 10px; flex: 1; max-width: 320px; }
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-row .bl { width: 110px; flex: none; font-size: 13px; color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar { flex: 1; }
.bar-row b { width: 34px; text-align: right; font-size: 13px; }

/* 状态标签 */
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; line-height: 1.7; background: #eef1f6; color: var(--tx2); }
.pill.ok { background: #e6f6ef; color: var(--ok); }
.pill.run { background: #e8f0fd; color: var(--brand); }
.pill.warn { background: #fdf3e2; color: var(--warn); }
.pill.danger { background: #fdeceb; color: var(--danger); }
.pill.off { background: #eff1f5; color: var(--tx3); }

/* 待办列表 */
.todo { list-style: none; margin: 0; padding: 0; }
.todo li {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; border-bottom: 1px solid #f2f5f9;
}
.todo li:last-child { border-bottom: 0; }
.todo li:hover { background: #f7faff; }
.todo li.late { background: #fff8f6; }
.td-no { font-weight: 600; flex: none; width: 108px; }
.td-ord { flex: 1; color: var(--tx2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-date { flex: none; font-size: 12.5px; color: var(--tx3); }
.todo li.late .td-date { color: var(--danger); }

/* 筛选条 */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filters .inp { height: 36px; }
.filters #f-kw { min-width: 240px; flex: 1; }

/* 工单详情 */
.detail-hd { margin-bottom: 14px; }
.detail-hd .back { font-size: 13px; }
.detail-hd h2 { font-size: 20px; margin: 6px 0 4px; display: flex; align-items: center; gap: 10px; }
.detail-sub { color: var(--tx2); font-size: 13px; }
.prog { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.prog b { font-size: 18px; }
.prog span { color: var(--tx2); font-size: 13px; }
.prog .btn { margin-left: auto; }

.nodes { display: flex; flex-direction: column; gap: 10px; }
.node { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fcfdff; }
.node.run { border-color: #c7dbf8; background: #f5f9ff; }
.node.done { border-color: #c9ecdc; background: #f6fcf9; }
.node.skip { opacity: .68; }
.n-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.n-seq {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none;
}
.node.done .n-seq { background: var(--ok); }
.n-hd b { font-size: 14px; }
.n-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.n-form .inp { height: 32px; font-size: 13px; }
.n-form .grow { flex: 1; min-width: 160px; }

/* 迷你列表 / 卡片内列表 */
.mini-tbl { display: flex; flex-direction: column; }
.mini-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid #f2f5f9; font-size: 13px; flex-wrap: wrap;
}
.mini-row:last-child { border-bottom: 0; }
.mini-row small { color: var(--tx3); font-size: 12px; flex: 1; min-width: 120px; }
.mini-row .bar { flex: 1; max-width: 180px; }

/* 注册审批 */
.ap-group { margin-bottom: 18px; }
.ap-group:last-child { margin-bottom: 0; }
.ap-ghd {
  font-size: 13px; font-weight: 600; color: var(--tx);
  padding: 8px 12px; background: #f4f7fb; border-radius: 8px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ap-ghd small { color: var(--tx3); font-weight: 400; font-size: 12px; }
.ap-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid #f2f5f9;
}
.ap-item:last-child { border-bottom: 0; }
.ap-main { flex: 1; min-width: 220px; }
.ap-name { font-size: 15px; font-weight: 600; color: var(--tx); }
.ap-meta { font-size: 13px; color: var(--tx2); margin-top: 3px; }
.ap-meta.small { font-size: 12px; color: var(--tx3); }
.ap-meta code { background: #f4f7fb; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.ap-note {
  font-size: 13px; color: var(--tx2); margin-top: 6px; padding: 7px 10px;
  background: #fbfcfe; border-left: 3px solid var(--line); border-radius: 0 6px 6px 0;
}
.ap-ops { display: flex; gap: 8px; flex-shrink: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chipx { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; font-size: 13px; color: var(--tx2); }
.chipx b { color: var(--brand); }

.rec { display: flex; flex-direction: column; grid-column: 1 / -1; }
.rec-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f2f5f9; font-size: 13.5px; }
.rec-row:last-child { border-bottom: 0; }
.rk { width: 96px; flex: none; color: var(--tx3); }
.rv { flex: 1; white-space: pre-wrap; }
.sub { margin: 14px 0 8px; font-size: 14px; grid-column: 1 / -1; }

/* ---------------- 弹窗 ---------------- */
.mask {
  position: fixed; inset: 0; background: rgba(12, 26, 48, .5); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto;
}
.modal {
  width: 100%; max-width: 520px; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(10, 26, 56, .35);
  display: flex; flex-direction: column; max-height: 88vh;
}
.modal.wide { max-width: 760px; }
.modal.narrow { max-width: 380px; }
.modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-hd h3 { font-size: 16px; }
.modal-hd .x { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--tx3); cursor: pointer; }
.modal-bd { padding: 16px 18px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal.narrow .modal-bd { display: block; }
.modal-bd label.full { grid-column: 1 / -1; }
.modal-bd .chk { flex-direction: row; align-items: center; gap: 8px; }
.modal-bd .chk input { width: 16px; height: 16px; }
.confirm-text { margin: 0; font-size: 14px; line-height: 1.7; }
.modal-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
label small { font-weight: 400; font-size: 11.5px; color: var(--tx3); }

/* 内联「快捷新建」建档区 */
.quick {
  margin-top: 2px; padding: 10px 12px; border: 1px dashed #bfd0e8; border-radius: 10px;
  background: #f6f9ff; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.quick .q-tip { grid-column: 1 / -1; font-size: 12px; color: var(--brand); line-height: 1.5; }
.quick label { gap: 4px; }
.quick label.full { grid-column: 1 / -1; }
.quick input, .quick select, .quick textarea { background: #fff; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: #22314a; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .22s; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 移动端 ---------------- */
/* ---------- 个人中心 · 键值对 ---------- */
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.kv { display: flex; gap: 10px; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv > span { flex: 0 0 104px; color: var(--tx3); font-size: 13px; }
.kv > b { font-weight: 600; word-break: break-all; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { padding: 14px 12px 84px; }
  .grid2 { grid-template-columns: 1fr; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--line); padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .tabbar .nav-item { flex-direction: column; gap: 2px; height: auto; padding: 6px 2px; font-size: 11px; flex: 0 0 66px; justify-content: center; }
  .tabbar .nav-item i { font-size: 15px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .filters { gap: 8px; }
  .filters .inp, .filters .btn { flex: 1; min-width: 140px; }
  .ellip { max-width: 150px; }
}
@media (max-width: 640px) {
  .modal-bd { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
  .modal { max-height: 92vh; }
  .n-form .inp { width: 100%; }
  .td-ord { display: none; }
  /* 顶栏换行：标题/账号占第一行，全局搜索独占第二行。
     原先搜索框 min-width:140px 在窄屏被挤到只剩几个字，实际不可用。 */
  .topbar { height: auto; flex-wrap: wrap; padding: 8px 12px; row-gap: 8px; }
  .tb-left { min-width: 0; }
  .tb-title { font-size: 15px; }
  .tb-search { flex: 1 1 100%; max-width: none; min-width: 0; order: 3; }
}

/* ============ 顶部全局搜索 ============ */
.tb-search { flex: 1; max-width: 420px; min-width: 140px; }
.tb-search input {
  width: 100%; height: 34px; padding: 0 12px; border: 1px solid #dfe6ef;
  border-radius: 999px; background: #f6f8fb; font-size: 13px; color: #1f2d3d; outline: none;
}
.tb-search input:focus { border-color: #1a54b7; background: #fff; }

/* ============ 工作流步骤条 ============ */
.stepper { display: flex; gap: 0; overflow-x: auto; padding: 6px 0 2px; }
.step {
  flex: 1 1 0; min-width: 132px; text-align: center; position: relative; padding: 4px 8px 0;
}
.step::after {
  content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: #e3e9f2; z-index: 0;
}
.step:last-child::after { display: none; }
.s-dot {
  position: relative; z-index: 1; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%;
  background: #eef2f7; color: #8a97a8; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #e3e9f2;
}
.s-name { font-size: 13px; font-weight: 600; color: #46536a; }
.s-meta { font-size: 11.5px; color: #95a1b3; margin-top: 2px; }
.s-desc { font-size: 11.5px; color: #7c8899; margin-top: 4px; line-height: 1.45; }
.step.done .s-dot { background: #2a938c; border-color: #2a938c; color: #fff; }
.step.done .s-name { color: #2a938c; }
.step.run .s-dot { background: #1a54b7; border-color: #1a54b7; color: #fff; box-shadow: 0 0 0 4px rgba(26,84,183,.12); }
.step.run .s-name { color: #1a54b7; }
.step.skip .s-dot { background: #f2f5f9; color: #b3bdcc; }
.step.skip .s-name { color: #b3bdcc; text-decoration: line-through; }
.flow-ops { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0f3f8; }
.n-desc { font-size: 12px; color: #7c8899; margin: 2px 0 6px; }

/* ============ 业务看板 ============ */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.bcol { flex: 0 0 224px; background: #f7f9fc; border: 1px solid #e8edf5; border-radius: 12px; display: flex; flex-direction: column; }
.bcol-hd { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e8edf5; }
.bcol-hd b { font-size: 13px; color: #33415c; }
.bcol-hd .cnt { background: #1a54b7; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.bcol-bd { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.bcol-empty { color: #c2cad6; font-size: 12px; text-align: center; padding: 12px 0; }
.bcard {
  background: #fff; border: 1px solid #e8edf5; border-radius: 10px; padding: 10px; cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.bcard:hover { box-shadow: 0 4px 14px rgba(26,84,183,.12); transform: translateY(-1px); }
.bcard.late { border-color: #f3c3c3; background: #fffafa; }
.bc-no { font-size: 12px; font-weight: 700; color: #1a54b7; font-family: ui-monospace, Consolas, monospace; }
.bc-cli { font-size: 13px; font-weight: 600; color: #2b3548; margin-top: 3px; }
.bc-pat { font-size: 11.5px; color: #7c8899; margin-top: 2px; }
.bc-ft { display: flex; justify-content: space-between; font-size: 11.5px; color: #95a1b3; margin-top: 4px; }
.bcard .bar { margin-top: 8px; }

/* ============ 权限管理 ============ */
.perm-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.perm-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 14px; }
.perm-grid .chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #3a465c; cursor: pointer; }
.perm-grid .chk input { width: 15px; height: 15px; accent-color: #1a54b7; }

/* ============ 审核拦截页 ============ */
.blocked { max-width: 560px; margin: 60px auto; text-align: center; padding: 32px 24px; background: #fff; border: 1px solid #e8edf5; border-radius: 16px; }
.blk-ico { font-size: 42px; margin-bottom: 10px; }
.blocked h3 { font-size: 18px; color: #2b3548; margin-bottom: 8px; }
.blk-acc { font-size: 13px; color: #5c6a80; margin-bottom: 10px; }
.blk-hint { font-size: 13px; color: #7c8899; line-height: 1.7; margin-bottom: 18px; }
.blocked .btn { margin: 0 5px; }

/* ============ 其他 ============ */
.card.alert { border-color: #f0d9a8; }
.card.alert .card-hd { background: #fff9ee; border-bottom-color: #f4e6c8; }
.tbl tr.rowlate { background: #fffafa; }
.rowlink { cursor: pointer; }
.link { color: #1a54b7; text-decoration: none; font-size: 12.5px; }
.link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .tb-search { max-width: none; min-width: 72px; }
  .tb-title em { display: none; }
  .tb-right { gap: 6px; }
  .tb-right .btn.ghost.sm { padding: 4px 8px; font-size: 12px; }
  .who { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .step { min-width: 108px; }
}

/* ============ 渠道需求：二维码 + 进度时间线 ============ */
.qrline { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 12px; }
.qrline .qr, .qr { width: 180px; height: 180px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qrline .qr-side { flex: 1; min-width: 220px; }
.qrline code { display: block; word-break: break-all; background: #f7f9fc; border: 1px solid var(--line);
  padding: 8px 10px; border-radius: 8px; font-size: 12.5px; color: var(--tx2); margin-bottom: 10px; }
.tl { margin-top: 10px; border-left: 2px solid var(--line); padding-left: 18px; }
.tl-row { position: relative; padding: 5px 0; font-size: 13.5px; color: var(--tx); }
.tl-row::before { content: ''; position: absolute; left: -24px; top: 11px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand); }
.tl-time { color: var(--tx3); margin-left: 10px; font-size: 12.5px; }
.tl-note { color: var(--tx2); }
@media (max-width: 900px) { .qrline .qr { width: 140px; height: 140px; } }

/* 团队管理：权限分组标题 + 协作看板快捷卡 */
.perm-sub { margin: 12px 0; }
.perm-sub > b { display:block; font-size: 13px; color: var(--tx2); margin-bottom: 6px; }
.quick-card .card-bd { padding: 14px 16px; }
