/* ===== 电网工作票生成系统 V2.1 ===== */
:root {
  --green: #0d7a4e;
  --green-d: #0a6440;
  --green-l: #e8f4ee;
  --green-b: #bfe0d0;
  --ink: #1b2430;
  --ink-2: #3b4a5a;
  --muted: #77869a;
  --line: #e2e8ef;
  --line-2: #eef2f6;
  --bg: #f4f7fa;
  --card: #ffffff;
  --warn: #c2410c;
  --warn-bg: #fff5ec;
  --shadow: 0 1px 2px rgba(16, 32, 48, .04), 0 6px 18px rgba(16, 32, 48, .06);
  --r: 10px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- 登录 / 注册 ---------- */
.login-mask {
  position: fixed; inset: 0; z-index: 100;
  background: linear-gradient(160deg, #0d3b28 0%, #0d7a4e 55%, #16a06b 100%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-mask[hidden] { display: none; }
.login-card {
  background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.35);
  width: min(430px, 94vw); padding: 28px 30px 26px;
  max-height: 92vh; overflow-y: auto;
}
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.login-brand .logo { width: 58px; height: 58px; }
.login-brand h1 { margin: 0; font-size: 17px; color: var(--ink); white-space: nowrap; }
.login-brand .ver {
  font-size: 11px; font-weight: 600; color: var(--green);
  background: var(--green-l); border: 1px solid var(--green-b);
  padding: 1px 6px; border-radius: 5px; margin-left: 6px;
}
.login-brand p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 600;
}
.login-form input {
  height: 38px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fcfdfe; outline: none; transition: .15s;
}
.login-form input:focus, .login-form select:focus {
  border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px rgba(13,122,78,.1);
}
.login-form select {
  height: 38px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fcfdfe; outline: none;
}
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.btn-code {
  height: 38px; white-space: nowrap; flex: none; font-size: 12.5px;
}
.btn-code[disabled] { opacity: .55; cursor: not-allowed; }
.reg-hint { font-size: 11.5px; color: var(--muted); font-weight: 400; line-height: 1.5; }
/* 用户管理 */
.user-search {
  height: 32px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; outline: none; width: 240px; background: #fcfdfe;
}
.user-search:focus { border-color: var(--green); background: #fff; }
.user-table-wrap { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.user-table th, .user-table td {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-2);
  white-space: nowrap; vertical-align: middle;
}
.user-table th { color: var(--muted); font-weight: 600; font-size: 12px; background: #fafcfd; }
.user-table td.wrap { white-space: normal; min-width: 140px; }
.user-table .ops { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-admin {
  font-size: 11px; font-weight: 600; color: var(--green);
  background: var(--green-l); border: 1px solid var(--green-b);
  padding: 0 6px; border-radius: 5px; margin-left: 4px;
}
.badge-super {
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #b45309, #d97706);
  border: 1px solid #b45309;
  padding: 0 6px; border-radius: 5px; margin-left: 4px;
}
.role-main { font-weight: 600; color: var(--ink-2); }
.role-perms { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* ---------- 二级管理员权限分配弹窗 ---------- */
.perm-mask {
  position: fixed; inset: 0; z-index: 120; background: rgba(9, 28, 20, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.perm-mask[hidden] { display: none; }
.perm-dialog {
  background: #fff; border-radius: 12px; width: min(520px, 94vw);
  max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden;
}
.perm-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.perm-hd h3 { margin: 0; font-size: 15px; color: var(--ink); }
.perm-x {
  border: none; background: transparent; font-size: 20px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 6px;
}
.perm-x:hover { background: #f1f5f4; color: var(--ink); }
.perm-body { padding: 12px 18px 4px; overflow-y: auto; }
.perm-tip { margin: 0 0 10px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.perm-row {
  display: grid; grid-template-columns: 18px 1fr; gap: 2px 8px;
  align-items: start; padding: 8px 8px; border-radius: 8px; cursor: pointer;
}
.perm-row:hover { background: #f6fbf9; }
.perm-row input { margin: 3px 0 0; width: 15px; height: 15px; accent-color: var(--green); }
.perm-name { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.perm-desc { grid-column: 2; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.perm-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 18px; border-top: 1px solid var(--line-2); background: #fafcfd;
}
.badge-off {
  font-size: 11px; color: #b45309; background: #fef3c7;
  border: 1px solid #fde68a; padding: 0 6px; border-radius: 5px;
}
.user-empty { padding: 26px 0; text-align: center; color: var(--muted); }
.login-err { min-height: 18px; font-size: 12px; color: #c2410c; line-height: 1.5; }
.user-chip {
  font-size: 12px; color: #22543d; background: var(--green-l);
  border: 1px solid var(--green-b); border-radius: 6px; padding: 6px 10px;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 基础数据 ---------- */
.base-form { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; padding-top: 8px; }
.base-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 600;
}
.base-form input, .base-form textarea {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px;
  background: #fcfdfe; outline: none; transition: .15s; resize: vertical;
}
.base-form input:focus, .base-form textarea:focus {
  border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px rgba(13,122,78,.1);
}
.base-item {
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; margin: 8px 0;
  background: linear-gradient(#fff, #fbfdfc); display: flex; gap: 12px; align-items: flex-start;
}
.base-item .bi-no {
  width: 24px; height: 24px; border-radius: 6px; flex: none; margin-top: 1px;
  background: var(--green-l); color: var(--green); border: 1px solid var(--green-b);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.base-item .bi-main { flex: 1; min-width: 0; }
.base-item .bi-risk { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.base-item .bi-ctrl { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.base-item .bi-ctrl span {
  display: inline-block; background: #f4f7fa; border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 8px; margin: 2px 4px 2px 0;
}
.base-item .bi-ops { display: flex; gap: 8px; flex: none; }

/* 4.3 危险点下拉选框 */
.pick-risk {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.pick-risk select {
  flex: 1; height: 34px; padding: 0 10px; border: 1px solid var(--green-b);
  border-radius: 7px; background: #f6fbf8; color: var(--ink); outline: none; cursor: pointer;
}
.pick-risk select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,122,78,.1); }
.pick-risk .pr-tip { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: flex-start;
  flex-wrap: wrap; gap: 14px 18px; padding: 10px 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16,32,48,.03);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.logo {
  width: 46px; height: 46px; flex: none;
  object-fit: contain; display: block;
  user-select: none; -webkit-user-drag: none;
}
.brand-txt h1 {
  margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .3px; color: var(--ink);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.brand-txt .ver {
  font-size: 11px; font-weight: 600; color: var(--green);
  background: var(--green-l); border: 1px solid var(--green-b);
  padding: 1px 6px; border-radius: 5px; letter-spacing: 0;
}
.brand-txt p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

.top-actions {
  display: flex; align-items: center; justify-content: flex-start;
  flex-wrap: wrap; gap: 8px 6px; flex: 1 1 auto; min-width: 0;
}
/* 顶栏按钮统一尺寸，按 DOM 顺序紧跟程序名称排列 */
.top-actions .btn {
  height: 30px; min-width: 76px; padding: 0 10px; font-size: 12.5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.top-actions .proj-chip, .top-actions .user-chip {
  height: 30px; padding: 0 10px; display: inline-flex; align-items: center;
  font-size: 12px; max-width: 240px;
}

.btn {
  height: 34px; padding: 0 14px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  cursor: pointer; transition: .16s ease; white-space: nowrap;
}
.btn:hover { border-color: #cfd8e3; background: #fbfcfd; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--green); border-color: var(--green); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(13,122,78,.22);
}
.btn.primary:hover { background: var(--green-d); border-color: var(--green-d); }
.btn.ghost { background: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }

/* ---------- 步骤导航 ---------- */
.steps {
  position: sticky; top: var(--top-h, 69px); z-index: 30;
  display: flex; gap: 6px; padding: 10px 26px 0;
  background: linear-gradient(#f4f7fa, #f4f7fa 60%, rgba(244,247,250,.86));
}
.step {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px 9px 14px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer;
  border-radius: 9px 9px 0 0; font-size: 14px; transition: .15s;
}
.step i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e7edf3; color: #7b8798; font-size: 12px; font-weight: 700;
}
.step:hover { color: var(--ink-2); background: #eef3f7; }
.step.active {
  background: #fff; color: var(--green); font-weight: 600;
  border-color: var(--line); border-bottom-color: #fff;
  box-shadow: 0 -1px 0 var(--line);
}
.step.active i { background: var(--green); color: #fff; }
.step .dot {
  width: 6px; height: 6px; border-radius: 50%; background: transparent; flex: none;
}
.step .dot.on { background: #f59e0b; }
.step.active .dot.on { box-shadow: 0 0 0 3px rgba(245,158,11,.16); }

/* ---------- 内容区 ---------- */
.wrap { padding: 0 26px 40px; max-width: 1280px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.banner {
  display: flex; gap: 10px; align-items: baseline;
  background: var(--green-l); border: 1px solid var(--green-b);
  border-radius: var(--r); padding: 10px 16px; margin: 14px 0 16px;
  font-size: 12.5px; color: #22543d; line-height: 1.7;
}
.banner strong { color: var(--green-d); flex: none; }
.badge-link {
  font-style: normal; font-size: 11px; color: var(--green);
  background: #fff; border: 1px solid var(--green-b); border-radius: 4px; padding: 0 5px;
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden;
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(#fff, #fcfdfe);
}
.card-hd h2 {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.card-hd h2::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--green);
}
.card-bd { padding: 6px 18px 16px; }

/* ---------- 表单 ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.f { padding: 8px 0; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f label {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; font-weight: 600;
}
.f .hint { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.f input[type=text], .f input[type=date], .f input[type=datetime-local], .f textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 7px; background: #fcfdfe; color: var(--ink);
  transition: .15s; outline: none;
}
.f textarea { resize: vertical; line-height: 1.65; min-height: 38px; }
.f input:focus, .f textarea:focus {
  border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px rgba(13,122,78,.1);
}
.f input::placeholder, .f textarea::placeholder { color: #b3bfcc; }
.f input[readonly] { background: var(--line-2); color: var(--muted); }

.tag-link {
  font-size: 10.5px; font-weight: 600; color: var(--green);
  background: var(--green-l); border: 1px solid var(--green-b);
  border-radius: 4px; padding: 0 5px; line-height: 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 3px;
}
.tag-link.off { color: var(--muted); background: #f2f5f8; border-color: var(--line); }
.tag-link:hover { filter: brightness(.97); }
.f .act { margin-left: auto; }

.f.hl input, .f.hl textarea { border-color: #f0b27a; background: var(--warn-bg); }

/* ---------- 行编辑表格 ---------- */
.rows-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.rows { width: 100%; border-collapse: collapse; min-width: 520px; }
table.rows th {
  background: #f6f9fb; font-size: 12px; font-weight: 600; color: var(--ink-2);
  text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.rows td { padding: 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.rows tr:last-child td { border-bottom: none; }
table.rows td input, table.rows td textarea, table.rows td select {
  width: 100%; border: 0; background: transparent; padding: 7px 8px; outline: none;
  resize: vertical; line-height: 1.55;
}
table.rows td input:focus, table.rows td textarea:focus, table.rows td select:focus { background: #f4fbf7; box-shadow: inset 0 0 0 1px var(--green-b); }
table.rows td select { cursor: pointer; appearance: auto; }
table.rows td.idx {
  width: 34px; text-align: center; color: var(--muted); font-size: 12px; padding-top: 8px;
  background: #fafcfe;
}
table.rows td.op { width: 34px; text-align: center; }
.row-del {
  border: 0; background: transparent; color: #c2ccd8; cursor: pointer; font-size: 15px;
  line-height: 1; padding: 8px 6px;
}
.row-del:hover { color: #dc2626; }
.rows-foot {
  display: flex; align-items: center; gap: 8px; padding: 8px 4px 2px;
}
.rows-foot .cnt { font-size: 12px; color: var(--muted); }
.rows-foot select.pick-row {
  max-width: 320px; padding: 4px 8px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; cursor: pointer;
}
.rows-foot select.pick-row.pick-pos { max-width: 300px; }
.rows-foot select.pick-row:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,122,78,.1); }

/* ---------- 生成页 ---------- */
.gen-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px 18px 4px; }
.gen-card {
  border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px;
  background: linear-gradient(#fff, #fbfdfc); display: flex; flex-direction: column; gap: 10px;
}
.gen-card .t { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.gen-card .t .ic {
  width: 24px; height: 24px; border-radius: 6px; background: var(--green-l);
  color: var(--green); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 1px solid var(--green-b);
}
.gen-card .d { font-size: 12px; color: var(--muted); line-height: 1.6; flex: 1; }
.gen-card .fn {
  font-size: 11.5px; color: var(--ink-2); background: #f4f7fa; border: 1px dashed var(--line);
  border-radius: 5px; padding: 4px 8px; word-break: break-all; font-family: Consolas, monospace;
}
.gen-tip {
  margin: 8px 18px 16px; padding: 10px 14px; border-radius: 8px;
  background: #f8fafc; border: 1px dashed var(--line); color: var(--muted); font-size: 12px; line-height: 1.7;
}
.fname-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.fname-label input {
  height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px;
  background: #fcfdfe; outline: none; width: 180px;
}
.fname-label input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,122,78,.1); }

.check-list { padding: 8px 18px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 0; }
.check-item .st {
  width: 16px; height: 16px; border-radius: 50%; flex: none; font-size: 10px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.check-item .st.ok { background: var(--green); }
.check-item .st.no { background: #e2b93b; }
.check-item .st.na { background: #cdd6e0; }
.check-item .nm { color: var(--ink-2); }
.check-item .nm b { color: var(--warn); font-weight: 600; }
.chk-warn { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.chk-warn input { accent-color: var(--green); }

/* ---------- 项目首页 ---------- */
.proj-chip {
  font-size: 12px; color: var(--green-d); background: var(--green-l);
  border: 1px solid var(--green-b); border-radius: 6px; padding: 6px 10px;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-list { padding: 6px 18px 16px; }
.proj-empty { padding: 18px 6px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.proj-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; margin: 8px 0;
  background: linear-gradient(#fff, #fbfdfc); transition: .15s;
}
.proj-item:hover { border-color: var(--green-b); box-shadow: 0 2px 10px rgba(13,122,78,.08); }
.proj-item.cur { border-color: var(--green); }
.pi-main { flex: 1; min-width: 0; }
.pi-name { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.pi-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
/* 工程列表类型徽标 */
.pi-type {
  display: inline-block; margin-right: 8px; padding: 1px 8px;
  font-size: 11px; line-height: 18px; border-radius: 9px;
  background: rgba(13,122,78,.08); color: var(--green); white-space: nowrap;
}
.pi-ops { display: flex; gap: 8px; }

/* ---------- 添加一行 / 单元格放大 ---------- */
.addline { margin-top: 6px; }
td { position: relative; }
table.rows td .cell-exp {
  position: absolute; right: 2px; bottom: 2px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 4px; font-size: 11px; line-height: 1; padding: 2px 4px; cursor: pointer;
  opacity: 0; transition: .15s;
}
table.rows td:hover .cell-exp { opacity: 1; }
table.rows td .cell-exp:hover { color: var(--green); border-color: var(--green-b); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(15, 28, 40, .45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 12px; width: min(860px, 94vw);
  display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(0,0,0,.25);
  max-height: 88vh;
}
.modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 14px;
}
.modal-x { border: 0; background: transparent; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-x:hover { color: var(--ink); }
.modal textarea {
  margin: 14px 18px 0; flex: 1; min-height: 220px; resize: vertical;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  font: 14px/1.7 inherit; outline: none; background: #fcfdfe;
}
/* 新建工程：工作票类型选择 */
.modal-type {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 18px 0; font-size: 13px; color: var(--ink); flex: none;
}
.modal-type select {
  min-width: 220px; padding: 6px 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px; background: #fcfdfe;
  color: var(--ink); outline: none; cursor: pointer;
}
.modal-type select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,122,78,.1); }
.modal textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,122,78,.1); }
.modal-ft { display: flex; align-items: center; gap: 10px; padding: 12px 18px 16px; }

/* ---------- 状态栏 ---------- */
.statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 26px; font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.statusbar .sep { color: #d5dde6; }
.statusbar .ok { color: var(--green); font-weight: 600; }
body { padding-bottom: 34px; }

/* ---------- 提示条 ---------- */
#toast {
  position: fixed; left: 50%; bottom: 56px; transform: translate(-50%, 12px);
  background: #1f2b38; color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .22s; z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: 70vw; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: #9a2c1a; }

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .gen-list { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; padding: 10px 14px; }
  .steps { top: 0; padding: 8px 14px 0; overflow-x: auto; position: relative; }
  .wrap { padding: 0 14px 40px; }
  .top-actions { flex-wrap: wrap; }
  .base-form { grid-template-columns: 1fr; }
}

/* 工作地点/内容配对表格表头副提示 */
table.rows th .th-sub {
  display: block; white-space: normal; font-weight: 400; font-size: 11px;
  color: var(--ink-3, #8a97a5); margin-top: 2px; line-height: 1.4;
}
