/* ============ 空管人员资质资料管理系统 · 浅色主题 ============ */
:root{
  --bg:#f4f6f9; --card:#ffffff; --line:#e3e8ef; --line-2:#eef2f7;
  --text:#1f2937; --muted:#6b7280; --muted-2:#9aa4b2;
  --primary:#1e5aa8; --primary-d:#17497f; --primary-l:#eaf1fb;
  --ok:#1f8a54; --ok-l:#e7f6ee; --warn:#b26a00; --warn-l:#fff4e0;
  --bad:#c0392b; --bad-l:#fdecea;
  --radius:10px; --shadow:0 1px 3px rgba(16,24,40,.06),0 1px 2px rgba(16,24,40,.04);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--text);
  font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB","Segoe UI",system-ui,sans-serif;
  font-size:14px; line-height:1.6;
}
a{color:var(--primary); text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1240px; margin:0 auto; padding:0 20px}
.mono{font-family:Consolas,"Courier New",monospace; font-size:13px}
.c{text-align:center}
.nowrap{white-space:nowrap}
.inline{display:inline}

/* ---------- 顶栏 ---------- */
.topbar{background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; height:64px; gap:16px}
.brand{display:flex; align-items:center; gap:12px; color:var(--text)}
.brand:hover{text-decoration:none}
.brand-mark{
  width:40px;height:40px;border-radius:9px;background:linear-gradient(135deg,#1e5aa8,#3e7cc9);
  color:#fff;font-weight:700;font-size:13px;letter-spacing:.5px;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
}
.brand-text b{display:block; font-size:15px}
.brand-text small{display:block; color:var(--muted-2); font-size:11px}
.nav{display:flex; align-items:center; gap:4px; flex-wrap:wrap; justify-content:flex-end}
.nav a{padding:8px 12px; border-radius:7px; color:#425063; font-size:13.5px; flex:0 0 auto}
.nav a:hover{background:var(--line-2); text-decoration:none}
.nav a.on{color:var(--primary); background:var(--primary-l); font-weight:600}
.nav a.btn{margin-left:8px}

/* ---------- 通用 ---------- */
.main{padding:22px 20px 10px; min-height:calc(100vh - 150px)}
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:16px 18px; margin-bottom:16px}
.card-h{font-weight:700; font-size:15px; margin:-2px 0 12px; padding-bottom:10px; border-bottom:1px solid var(--line-2)}
.card-h small{font-weight:400; color:var(--muted-2); font-size:12px; margin-left:6px}
.card-h.with-action{display:flex; align-items:center; justify-content:space-between}

.page-head{display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; flex-wrap:wrap}
.page-head h1{font-size:21px; margin:0 0 4px; display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.page-head .sub{margin:0; color:var(--muted); font-size:13px}
.head-actions{display:flex; gap:8px; flex-wrap:wrap}

/* ---------- 按钮 ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:5px;
  padding:7px 14px; border-radius:7px; border:1px solid var(--line);
  background:#fff; color:#38465a; font-size:13.5px; cursor:pointer;
  font-family:inherit; line-height:1.4; transition:.15s; white-space:nowrap}
.btn:hover{border-color:#c4cdda; background:#f8fafc; text-decoration:none}
.btn-primary{background:var(--primary); border-color:var(--primary); color:#fff; font-weight:600}
.btn-primary:hover{background:var(--primary-d); border-color:var(--primary-d); color:#fff}
.btn-ghost{background:#fff; color:#425063}
.btn-danger{background:#fff; border-color:#eccad0; color:var(--bad)}
.btn-danger:hover{background:var(--bad-l); border-color:#e2a9b2}
.btn.sm{padding:6px 12px; font-size:13px}
.btn.xs{padding:3px 9px; font-size:12.5px; border-radius:6px}

/* ---------- 标签 ---------- */
.tag{display:inline-block; padding:1px 9px; border-radius:20px; background:var(--primary-l);
  color:var(--primary); font-size:12.5px; font-weight:600; border:1px solid #d5e3f7}
.tag.big{font-size:13px; padding:2px 11px}
.pill{display:inline-block; margin-left:6px; padding:1px 8px; border-radius:20px;
  background:var(--line-2); color:var(--muted); font-size:12px}
.cnt{display:inline-block; min-width:24px; padding:1px 7px; border-radius:6px;
  background:var(--ok-l); color:var(--ok); font-weight:600; font-size:12.5px}
.cnt.zero{background:var(--line-2); color:var(--muted-2)}
.mini{font-size:11px; margin-left:5px; padding:0 5px; border-radius:4px}
.mini.warn{background:var(--warn-l); color:var(--warn)}
.mini.bad{background:var(--bad-l); color:var(--bad)}

/* ---------- 表格 ---------- */
.tablecard{padding:0; overflow-x:auto}
.grid{width:100%; border-collapse:collapse; font-size:13.5px}
.grid th{background:#f7f9fc; color:#48566b; font-weight:600; text-align:left;
  padding:11px 12px; border-bottom:1px solid var(--line); white-space:nowrap; font-size:13px}
/* 居中的表头(体检合格证/复训合格证/操作/附件/大小…)。
   必须写成 .grid th.c —— 单独的 .c{text-align:center} 权重是 (0,1,0),
   会被上面的 .grid th{text-align:left} 的 (0,1,1) 压掉,
   结果表头左对齐、下面的数据居中,看起来整列错位。 */
.grid th.c{text-align:center}
/* 数据列居中(如体检日期/有效期至)。写 .grid td.c 是为了和上面的 th.c 成对,
   避免以后给 .grid td 加 text-align 时把居中压掉。 */
.grid td.c{text-align:center}
.grid td{padding:10px 12px; border-bottom:1px solid var(--line-2); vertical-align:middle}
.grid tbody tr:hover{background:#fafcff}
.grid tr:last-child td{border-bottom:none}
tr.subrow td{background:#fbfcfe; color:var(--muted); font-size:12.5px; padding-top:0; border-bottom:1px solid var(--line-2)}
.sub-label{color:#8794a6; margin-right:6px}
.name-link{font-weight:600}
.avatar{width:34px;height:34px;border-radius:8px;object-fit:cover;display:block;border:1px solid var(--line)}
.avatar-ph{display:flex;align-items:center;justify-content:center;background:var(--primary-l);
  color:var(--primary);font-weight:700;font-size:15px}
.datecell.ok{color:var(--text)}
.datecell.warn{color:var(--warn); font-weight:600}
.datecell.expired{color:var(--bad); font-weight:600}

/* ---------- 筛选 ---------- */
.filterbar{padding:12px 14px}
.filters{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
/* 放大镜做成背景图,不用额外的 DOM;颜色 #9aa4b2 与占位文字同档。
   宽度限到 460px 不让搜索框横贯整页,按钮紧跟其后 */
.filters input[type=text]{flex:0 1 460px; min-width:220px; padding-left:36px; border-radius:9px;
  background:#fbfcfe url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4b2' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-4.2-4.2'/></svg>") no-repeat 12px center;
  background-size:15px 15px}
.filters input[type=text]:focus{background-color:#fff}
.filter-hint{margin-left:auto; color:var(--muted-2); font-size:12px}
input,select,textarea{
  font-family:inherit; font-size:13.5px; color:var(--text);
  padding:8px 11px; border:1px solid var(--line); border-radius:7px; background:#fff; width:100%;
}
/* 单选框 / 复选框不适用上面的「整宽表单」样式,否则会被撑满容器把文字挤出 */
input[type=radio],input[type=checkbox]{
  width:auto; padding:0; margin:0 6px 0 0; background:none; vertical-align:-2px;
}
input:focus,select:focus,textarea:focus{outline:none; border-color:#93b6e3; box-shadow:0 0 0 3px rgba(30,90,168,.1)}
.filters input,.filters select{width:auto}
@media (max-width:820px){
  .filter-hint{display:none}
  /* 窄屏让搜索框吃掉剩余宽度,按钮才不会掉到第二行 */
  .filters input[type=text]{flex:1 1 auto; min-width:0}
}
.filters select{min-width:130px}

/* ---------- 提醒 ---------- */
.alertcard{border-left:4px solid var(--warn)}
.alertcard-h{font-weight:700; font-size:13.5px; color:var(--warn); margin-bottom:10px}
.alertlist{display:flex; flex-wrap:wrap; gap:8px}
.alertchip{display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius:20px;
  font-size:12.5px; border:1px solid var(--line); background:#fff; color:var(--text)}
.alertchip:hover{text-decoration:none; border-color:#c4cdda}
.alertchip span{color:var(--muted)}
.alertchip.warn{background:var(--warn-l); border-color:#f0d7a8}
.alertchip.warn span{color:var(--warn)}
.alertchip.expired{background:var(--bad-l); border-color:#eec2bd}
.alertchip.expired span{color:var(--bad); font-weight:600}
.alertchip.ok{background:var(--ok-l); border-color:#c4e6d5}
.alertchip.ok span{color:var(--ok)}

/* ---------- Tab ---------- */
.tabs{display:flex; gap:4px; border-bottom:2px solid var(--line); margin-bottom:16px; flex-wrap:wrap}
.tab{background:none; border:none; border-bottom:2px solid transparent; margin-bottom:-2px;
  padding:10px 15px; font-size:14px; font-family:inherit; color:#55637a; cursor:pointer; border-radius:7px 7px 0 0}
.tab:hover{background:var(--line-2); color:var(--text)}
.tab.on{color:var(--primary); border-bottom-color:var(--primary); font-weight:700; background:var(--primary-l)}
.tabbadge{display:inline-block; margin-left:5px; padding:0 6px; border-radius:9px;
  background:#e6ecf4; color:#5a6a80; font-size:11px; font-weight:600}
.tab.on .tabbadge{background:var(--primary); color:#fff}

/* ---------- 一级页签:药丸式(2026-11-24 只留技术档案/安全档案两档) ---------- */
/* 写在 .tab.on 之后,靠同权重后置 + .tabs-main 前缀压掉下划线样式 */
.tabs.tabs-main{display:inline-flex; gap:3px; padding:3px; margin-bottom:16px;
  background:#eef2f8; border:1px solid #e1e8f1; border-radius:11px;
  box-shadow:inset 0 1px 2px rgba(16,24,40,.045)}
.tabs-main .tab{margin:0; padding:7px 16px; border:none; border-radius:8.5px;
  font-size:13.5px; color:#54637a; background:transparent;
  transition:background .15s ease, color .15s ease, box-shadow .15s ease}
.tabs-main .tab:hover{background:rgba(255,255,255,.8); color:var(--text)}
.tabs-main .tab.on{background:#fff; color:var(--primary); font-weight:700; border:none;
  box-shadow:0 1px 2px rgba(16,24,40,.13),0 2px 6px rgba(16,24,40,.06)}

/* 页签行:返回 + 药丸页签 + 右侧编辑/删除(同一行,不额外占高度) */
.tabs-row{display:flex; align-items:center; gap:10px;
  margin-bottom:16px; flex-wrap:wrap}
.tabs-row .tabs.tabs-main{margin-bottom:0}
.tabs-row .tabs-tools{margin-left:auto}

/* 返回按钮:与页签槽等高,白底细边,悬浮变主色 */
.tabs-back{display:inline-flex; align-items:center; gap:5px; height:36px;
  padding:0 14px 0 10px; font-size:13px; font-weight:600; color:#54637a;
  background:#fff; border:1px solid #e1e8f1; border-radius:10px;
  box-shadow:0 1px 2px rgba(16,24,40,.05); white-space:nowrap;
  transition:color .15s ease, border-color .15s ease, background .15s ease,
    transform .12s ease, box-shadow .15s ease}
.tabs-back:hover{color:var(--primary); border-color:#bcd5f0; background:var(--primary-l);
  text-decoration:none; transform:translateX(-1px);
  box-shadow:0 2px 6px rgba(24,95,165,.12)}
.tabs-back:active{transform:translateX(0)}
.tabs-back svg{display:block; flex:0 0 auto}
/* 与页签槽之间的竖分隔线 */
.tabs-sep{flex:0 0 auto; width:1px; height:20px; background:#dfe6ef; margin:0 2px}

.tabs-tools{display:flex; align-items:center; gap:6px}
/* 上传中:按钮置灰,防止重复提交 */
.btn.is-loading{opacity:.65; cursor:progress; pointer-events:none}

@media (max-width:520px){
  /* 窄屏省掉两个字,只留箭头,给页签腾位置 */
  .tabs-back{padding:0 11px}
  .tabs-back span{display:none}
}

.pane{display:none}
.pane.on{display:block; animation:fade .18s ease}
@keyframes fade{from{opacity:0; transform:translateY(3px)} to{opacity:1; transform:none}}

/* ---------- 两级 Tab:技术档案 / 安全档案 ---------- */
.group{display:none}
.group.on{display:block; animation:fade .18s ease}
/* 二级页签同款药丸,底色更浅一档,和一级区分层次 */
.tabs.sub{display:inline-flex; gap:2px; padding:3px; margin:0 0 14px;
  background:#f2f5fa; border:1px solid var(--line-2); border-radius:9px}
.subtab{background:none; border:none; margin:0;
  padding:6px 13px; font-size:13px; font-family:inherit; color:#55637a;
  cursor:pointer; border-radius:7px; white-space:nowrap}
.subtab:hover{background:rgba(255,255,255,.8); color:var(--text)}
.subtab.on{color:var(--primary); font-weight:700; background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.1)}
.subtab .tabbadge{background:#e6ecf4; color:#5a6a80}
.subtab.on .tabbadge{background:var(--primary); color:#fff}
.muted{color:var(--muted-2); font-size:12.5px}
.muted2{color:var(--muted-2)}
.grid th small{display:block; font-weight:400; color:var(--muted-2); font-size:11px; margin-top:1px}
.mini.ok{background:var(--ok-l); color:var(--ok)}

/* ---------- 首页:人员姓名卡片墙 ----------
   2026-11-24 首版是黑框方块;同日晚按「尽量美化」要求改为浅边框卡片:
   白底 + 细边框 + 轻阴影,悬浮时上浮、描边变主色、姓名变主色并展开一条短横线。 */
.people-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(136px, 1fr));
  gap:14px; margin-top:2px}
.person-card{position:relative; display:flex; align-items:center; justify-content:center;
  min-height:76px; padding:10px 12px; text-align:center;
  background:#fff; border:1px solid #dbe3ee; border-radius:14px;
  color:#1b2432; font-size:15px; font-weight:600; letter-spacing:.6px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
  transition:transform .14s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease}
.person-card::after{content:""; position:absolute; left:50%; bottom:13px;
  width:0; height:2px; border-radius:2px; background:var(--primary);
  transform:translateX(-50%); transition:width .18s ease}
.person-card:hover,.person-card:focus-visible{
  color:var(--primary); border-color:#9cbde4; text-decoration:none; outline:none;
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(30,90,168,.14),0 1px 2px rgba(16,24,40,.06)}
.person-card:hover::after,.person-card:focus-visible::after{width:24px}
@media (max-width:900px){
  .people-grid{grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); gap:10px}
  .person-card{min-height:56px; font-size:14px; border-radius:12px}
  .person-card::after{bottom:9px}
}

/* ---------- 技术档案:19 项目录表 ---------- */
.arc-table td:nth-child(2){white-space:normal; line-height:1.5}
.arc-table tbody tr:hover{background:#fafcff}
.place-tag{display:inline-block; padding:2px 8px; border-radius:6px;
  font-size:12px; white-space:nowrap}
.place-tag.p0{background:#E6F1FB; color:#185FA5}
.place-tag.p1{background:#E1F5EE; color:#0F6E56}
.place-tag.p2{background:#FAEEDA; color:#854F0B}
.arc-place{margin:0 0 12px; font-size:12.5px; color:var(--muted)}
.field-label{font-size:13px; color:#4a586e; font-weight:600; margin-bottom:6px}

/* ---------- 技术档案:目录表份数标记 ---------- */
.arc-title{line-height:1.5}
.arc-count{display:inline-block; margin-left:8px; padding:1px 8px; border-radius:10px;
  background:#eef2f7; color:var(--muted); font-size:11.5px; vertical-align:1px;
  white-space:nowrap}

/* ---------- 技术档案:材料查看面板 ---------- */
/* 左列材料清单 + 右预览,单份和多份用同一套外壳 */
/* 必须写成 .modal-box.arc-box:基础规则 .modal-box{max-width:640px} 定义在本文件靠后,
   单类选择器同权重会比它晚生效,弹窗会被压回 640px */
.modal-box.arc-box{max-width:1080px}
.arc-head-n{margin-left:10px; font-size:12px; font-weight:400; color:var(--muted)}
.arc-main{display:flex; height:min(68vh, 640px); min-height:320px}

.arc-side{flex:0 0 218px; display:flex; flex-direction:column; overflow:hidden;
  background:#fbfcfe; border-right:1px solid var(--line-2)}
.arc-side-h{display:flex; align-items:center; justify-content:space-between;
  padding:9px 12px; font-size:12px; color:var(--muted);
  border-bottom:1px solid var(--line-2)}
.arc-side-h small{font-size:11px; color:var(--muted-2)}
.arc-items{flex:1; overflow-y:auto}
.arc-li{display:block; width:100%; padding:9px 12px; text-align:left; font:inherit;
  background:none; border:none; border-bottom:1px solid var(--line-2);
  border-left:2px solid transparent; cursor:pointer}
.arc-li:hover{background:#f4f7fb}
.arc-li.on{background:#eef4fd; border-left-color:#378ADD}
.arc-li-d{display:block; margin-bottom:2px; font-size:11px; color:var(--muted-2)}
.arc-li.on .arc-li-d{color:#185FA5}
/* 最多两行,超出用省略号。原来 word-break:break-all 会把扩展名拆成
   「xxx.pd」+「f」两行,很难看;改成按词断 + 行数截断,完整名看 title */
.arc-li-n{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; font-size:12.5px; line-height:1.45; color:var(--text);
  word-break:break-word; overflow-wrap:anywhere}
.arc-li-m{display:block; margin-top:2px; font-size:11px; color:var(--muted-2)}

.arc-stage{flex:1; display:flex; flex-direction:column; min-width:0; background:#f4f6f9}

.arc-preview{flex:1; display:flex; align-items:center; justify-content:center;
  min-height:0; overflow:auto}
.arc-frame{display:block; width:100%; height:100%; border:0; background:#fff}
.arc-img{display:block; max-width:100%; max-height:100%; margin:auto; cursor:zoom-in}
/* 管制室图片:点图开新窗口看原图(走 /room/<id>/view) */
.arc-img-link{display:flex; align-items:center; justify-content:center;
  width:100%; height:100%; text-decoration:none}
.arc-empty{padding:30px 20px; text-align:center}
.arc-t{margin-bottom:6px; font-size:13.5px; color:var(--muted)}
.arc-s{font-size:12.5px; color:var(--muted-2)}

.arc-tools{display:flex; align-items:center; gap:12px; min-height:44px;
  padding:8px 12px; background:#fff; border-top:1px solid var(--line-2)}
.arc-file{flex:1; min-width:0; font-size:12.5px; color:var(--muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.arc-file small{margin-left:8px; font-size:11.5px; color:var(--muted-2)}
.arc-btns{display:flex; flex:0 0 auto; gap:6px; align-items:center}

.arc-foot{display:flex; align-items:center; gap:8px; padding:12px 18px;
  background:#fbfcfe; border-top:1px solid var(--line-2);
  border-radius:0 0 12px 12px}
/* 全局 input{width:100%} 会把这两个撑满一行,这里收回自适应 */
.arc-foot input[type=file]{flex:1 1 240px; width:auto; min-width:180px; font-size:12.5px}
.arc-foot input[type=text]{flex:0 1 210px; width:auto; min-width:120px; font-size:12.5px}
.arc-foot .btn{flex:0 0 auto}

/* ---------- 管制室资料库 ---------- */
.room-upload{display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  padding-bottom:14px; border-bottom:1px solid var(--line-2); margin-bottom:14px}
.room-upload input[type=file]{flex:1 1 260px; min-width:220px}
.room-upload input[type=text]{flex:0 1 260px; min-width:170px; width:auto}
.room-upload .btn{flex:0 0 auto}
.room-hint{margin:-4px 0 12px}

/* ---------- 基本信息 ---------- */
.two-col{display:grid; grid-template-columns:1.4fr 1fr; gap:16px; align-items:start}
.dl{display:grid; grid-template-columns:1fr 1fr; gap:0 20px; margin:0}
.dl-row{display:flex; gap:10px; padding:7px 0; border-bottom:1px dashed var(--line-2)}
.dl-row.full{grid-column:1/-1}
.dl dt{width:110px; flex:0 0 auto; color:var(--muted); font-size:13px; margin:0}
.dl dd{margin:0; flex:1; word-break:break-all}
.photo-box{text-align:center}
.photo-box img{width:150px;height:190px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.photo-ph{width:150px;height:190px;margin:0 auto;border-radius:8px;border:1px dashed #c8d2e0;
  background:#f8fafc;color:#a8b4c4;font-size:44px;font-weight:700;
  display:flex;align-items:center;justify-content:center}
.photo-form{margin-top:12px; display:flex; flex-direction:column; gap:8px; align-items:center}
.photo-form input[type=file]{font-size:12px; width:100%}
.hint{color:var(--muted-2); font-size:12px; margin:8px 0 0}

/* ---------- 表单 ---------- */
.grid-form{display:grid; grid-template-columns:1fr 1fr; gap:12px 16px}
.field{display:flex; flex-direction:column; gap:5px}
.field.full{grid-column:1/-1}
.field label{font-size:13px; color:#4a586e; font-weight:600}
.field label i{color:var(--bad); font-style:normal}
.form-actions{margin-top:18px; padding-top:16px; border-top:1px solid var(--line-2); display:flex; gap:10px}

/* ---------- 弹窗 ---------- */
.modal{display:none; position:fixed; inset:0; background:rgba(17,24,39,.45);
  z-index:100; align-items:flex-start; justify-content:center; padding:40px 16px; overflow-y:auto}
.modal.show{display:flex}
.modal-box{background:#fff; border-radius:12px; width:100%; max-width:640px;
  box-shadow:0 20px 50px rgba(16,24,40,.22); animation:pop .16s ease}
@keyframes pop{from{opacity:0; transform:translateY(-8px) scale(.99)} to{opacity:1; transform:none}}
.modal-h{display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border-bottom:1px solid var(--line-2); font-weight:700; font-size:15px}
.modal-x{background:none;border:none;font-size:22px;line-height:1;color:#9aa4b2;cursor:pointer;padding:0 4px}
.modal-x:hover{color:var(--text)}
.modal-b{padding:18px}
.modal-f{display:flex; gap:10px; padding:14px 18px; border-top:1px solid var(--line-2); background:#fbfcfe; border-radius:0 0 12px 12px}
body.modal-open{overflow:hidden}

/* ---------- 附件 ---------- */
.att-upload{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.att-upload input[type=file]{flex:1; min-width:220px}
.att-list{margin-top:14px; border-top:1px solid var(--line-2); padding-top:12px}
.att-item{display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--line-2);
  border-radius:8px; margin-bottom:8px; background:#fbfcfe}
.att-ico{flex:0 0 auto}
.att-name{flex:1; word-break:break-all; font-size:13px}
.att-size{color:var(--muted-2); font-size:12px; white-space:nowrap}

/* 附件缩略图 + 点开即看的图片预览 */
.att-thumb{flex:0 0 auto; width:34px; height:34px; object-fit:cover; border-radius:6px;
  border:1px solid var(--line); background:#fff; cursor:zoom-in; transition:.15s}
.att-thumb:hover{border-color:var(--primary); box-shadow:0 0 0 2px var(--primary-l)}
.imgbox{position:fixed; inset:0; z-index:3000; display:none; align-items:center; justify-content:center;
  padding:58px 24px 24px; background:rgba(12,20,33,.84)}
.imgbox.on{display:flex}
.imgbox-bar{position:absolute; top:0; left:0; right:0; display:flex; align-items:center; gap:8px;
  padding:12px 20px; background:linear-gradient(rgba(12,20,33,.55), rgba(12,20,33,0))}
.imgbox-name{flex:1; min-width:0; color:#fff; font-size:13px; opacity:.92;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.imgbox-img{max-width:min(1200px,94vw); max-height:calc(100vh - 110px); width:auto; height:auto;
  background:#fff; border-radius:8px; box-shadow:0 24px 64px rgba(0,0,0,.45)}
/* ---------- 外部填报(公开页) ---------- */
.fill-body{background:linear-gradient(180deg,#eef3f9,#f6f8fb 220px); min-height:100vh}.fill-wrap{max-width:720px; margin:0 auto; padding:28px 16px 40px}
.fill-head{display:flex; align-items:center; gap:12px; margin-bottom:16px}
.fill-head b{display:block; font-size:16px}
.fill-head small{display:block; color:var(--muted-2); font-size:12px}
.fill-card{padding:20px 20px 18px}
.fill-foot{margin-top:16px; padding-top:14px; border-top:1px solid var(--line-2);
  display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.fill-foot .hint{margin:0}
.fill-copy{text-align:center; color:var(--muted-2); font-size:12px; margin-top:18px}
.req{color:var(--bad)}
.fill-done{text-align:center; padding:26px 8px 12px}
.fill-done-ico{font-size:42px; margin-bottom:6px}
.fill-done h2{margin:0 0 8px; font-size:19px}
.fill-done p{color:var(--muted); margin:0 0 18px}

/* 填报链接一行 */
.linkrow{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.linkinput{flex:1 1 320px; min-width:220px}
.navpill{display:inline-block; min-width:18px; padding:0 5px; margin-left:4px; border-radius:9px;
  background:var(--bad); color:#fff; font-size:11px; line-height:18px; text-align:center}

/* 轻提示 */
.toast{position:fixed; left:50%; bottom:44px; transform:translate(-50%,10px); opacity:0;
  background:rgba(31,41,55,.94); color:#fff; padding:9px 18px; border-radius:20px;
  font-size:13px; transition:.2s; z-index:4000; pointer-events:none}
.toast.on{opacity:1; transform:translate(-50%,0)}

@media (max-width:900px){
  .fill-wrap{padding:16px 12px 30px}
  .fill-card{padding:16px 14px}
  .imgbox{padding:52px 10px 14px}
  .imgbox-img{max-width:98vw; max-height:calc(100vh - 90px)}
}

/* ---------- 年度筛选(按时间排列的模块,如安全教育培训) ---------- */
.card-h .head-actions{align-items:center}
.yearsel{width:auto; min-width:106px; padding:5px 9px; font-size:13px}
.datehint{color:var(--muted-2); font-size:12px; white-space:nowrap}

/* ---------- 一键放置表格 PDF ---------- */
.btn-accent{background:#0f766e; border-color:#0f766e; color:#fff; font-weight:600}
.btn-accent:hover{background:#0b5d57; border-color:#0b5d57; color:#fff}
.modal-box.wide{max-width:740px}
.radios{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px}
.rd{display:inline-block; flex:0 0 auto; white-space:nowrap;
  font-size:13.5px; line-height:1.5; cursor:pointer;
  background:#f8fafc; border:1px solid var(--line); border-radius:8px; padding:8px 13px}
.rd:hover{border-color:#c7d5e8; background:#fff}
.rd small{color:var(--muted-2); margin-left:3px}
.picklist{display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:4px;
  max-height:196px; overflow-y:auto; border:1px solid var(--line); border-radius:8px;
  padding:10px; background:#fbfcfe}
.picklist[hidden]{display:none}
.pick{display:block; font-size:13px; line-height:1.5; cursor:pointer;
  padding:5px 8px; border-radius:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pick:hover{background:#fff}
.pick small{color:var(--muted-2); margin-left:5px; font-size:11.5px}
.chk{display:block; font-size:13px; line-height:1.5; color:#4a586e;
  margin-top:12px; cursor:pointer; white-space:nowrap}
.field code{background:var(--line-2); padding:1px 5px; border-radius:4px; font-size:12px}
#placeSummary{color:var(--primary); font-weight:600}

/* ---------- 空状态 ---------- */
.empty{text-align:center; padding:54px 20px}
.empty-ico{font-size:44px; margin-bottom:8px}
.empty h3{margin:0 0 6px; font-size:17px}
.empty p{color:var(--muted); margin:0 0 18px}
.empty-actions{display:flex; gap:10px; justify-content:center; flex-wrap:wrap}
.mini-empty{color:var(--muted-2); font-size:13px; text-align:center; padding:28px 10px}
.danger-zone{margin:26px 0 24px; color:var(--muted-2); font-size:12.5px; display:flex; align-items:center; gap:10px}

/* ---------- flash ---------- */
.flashbox{margin-top:14px}
.flash{padding:10px 15px; border-radius:8px; font-size:13.5px; margin-bottom:8px; border:1px solid}
.flash.ok{background:var(--ok-l); border-color:#c4e6d5; color:var(--ok)}
.flash.error{background:var(--bad-l); border-color:#eec2bd; color:var(--bad)}

/* ---------- 页脚 ---------- */
.foot{margin-top:26px; padding:16px 0 26px; color:var(--muted-2); font-size:12px; text-align:center}

@media (max-width:900px){
  .two-col,.grid-form,.dl{grid-template-columns:1fr}
  .topbar-inner{height:auto; flex-direction:column; align-items:flex-start; padding:12px 0; gap:8px}
  /* nav 在纵向布局里原本会收缩成内容宽度,长菜单直接溢出到屏幕外 */
  .brand-text small{display:none}
  .nav{width:100%; justify-content:flex-start}
  .main{padding:16px 12px}
}

/* ---------- 登录页 ---------- */
.login-page{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px}
.login-card{width:100%; max-width:390px; background:var(--card); border:1px solid var(--line);
  border-radius:12px; box-shadow:var(--shadow); padding:26px 26px 18px;
  display:flex; flex-direction:column; gap:14px}
.login-head{display:flex; align-items:center; gap:12px; margin-bottom:4px}
.login-head-text b{display:block; font-size:15px}
.login-head-text small{display:block; color:var(--muted-2); font-size:11.5px}
.login-card .flash{margin:0}
.login-btn{width:100%; margin-top:2px; padding:10px 14px; font-size:14px}
.login-note{margin:4px 0 0; color:var(--muted-2); font-size:12px; line-height:1.6; text-align:center}

/* ---------- 顶栏登录态 ---------- */
.nav .who{color:var(--muted-2); font-size:12.5px; padding-left:12px; margin-left:4px;
  border-left:1px solid var(--line)}
.nav a.quit{color:#55637a}

/* ---------- 会议签到 ---------- */
.signin-new{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.signin-new select{flex:0 0 220px; width:auto}
.signin-new input[type=date]{flex:0 0 150px; width:auto}
.signin-new input[type=text]{flex:1 1 180px; min-width:150px; width:auto}
.signin-new .btn{flex:0 0 auto}
.signin-scope{display:flex; align-items:center; gap:12px; flex-wrap:wrap; flex:1 1 100%; margin:2px 0 2px}
.signin-scope label{display:inline-flex; align-items:center; gap:4px; font-size:13px; color:#3d4a5e; cursor:pointer}
.signin-scope input[type=checkbox]{width:auto; margin:0 2px 0 0}

/* ---------- 记录表(会议签到详情,仿纸质表格) ---------- */
.recform{width:100%; border-collapse:collapse; font-size:13.5px}
.recform td{border:1px solid #d7e0ec; padding:6px 8px; vertical-align:middle}
.recform td.title{border:none; text-align:center; font-size:17px; font-weight:700;
  letter-spacing:3px; padding:6px 0 10px}
.recform td.no{border:none; text-align:right; color:#48566b; font-size:13px; padding:0 0 8px}
.recform td.lb{width:92px; background:#f7f9fc; color:#48566b; text-align:center; white-space:nowrap}
.recform td.fillcell{background:#fbfcfe}
.recform input,.recform select,.recform textarea{margin:0; font-size:13.5px; padding:8px 10px}
.recform textarea{resize:vertical}
.roster{display:flex; flex-wrap:wrap; gap:2px 16px; font-size:13px; line-height:1.9}
.roster .chip{display:inline-block; white-space:nowrap; color:#2a3646}
.roster .chip i{font-style:normal; color:#93a0b1; font-size:11.5px; margin-left:4px}
.roster .chip.warn{color:#8a5a12}
.recform-actions{margin-top:14px; text-align:right}

/* ---------- 表格管理:表格类型切换 ---------- */
.type-pick{display:flex; align-items:center; gap:10px; margin-bottom:14px}
.type-pick select{width:auto; min-width:230px; font-size:13.5px; padding:9px 11px}
