* { margin:0; padding:0; box-sizing:border-box; font-family:"Microsoft YaHei","PingFang SC",sans-serif; }
body { min-height:100vh; }

/* ===== 登录页 ===== */
.login-page {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#1e3a5f 0%,#2c5282 50%,#2d3748 100%);
}
.login-box { width:380px; background:#fff; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.25); padding:36px 34px; }
.login-box h1 { font-size:20px; color:#1a202c; text-align:center; margin-bottom:6px; }
.login-box .sub { font-size:12px; color:#718096; text-align:center; margin-bottom:26px; }
.form-item { margin-bottom:16px; }
.form-item label { display:block; font-size:13px; color:#4a5568; margin-bottom:6px; font-weight:600; }
.form-item select,.form-item input {
  width:100%; height:40px; padding:0 12px; border:1px solid #cbd5e0; border-radius:6px;
  font-size:14px; color:#2d3748; outline:none; background:#fff;
}
.form-item select:focus,.form-item input:focus { border-color:#2c5282; box-shadow:0 0 0 2px rgba(44,82,130,.15); }
.input-wrap { position:relative; }
.input-wrap svg.icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:16px; height:16px; stroke:#9aa5b1; fill:none; stroke-width:1.8; pointer-events:none; }
.input-wrap select,.input-wrap input { padding-left:38px; }
.input-wrap input.err,.input-wrap select.err { border-color:#c53030; background:#fff5f5; box-shadow:0 0 0 2px rgba(197,48,48,.15); }
#username { ime-mode:inactive; }
.btn-login { width:100%; height:42px; margin-top:8px; background:#2c5282; color:#fff; border:none; border-radius:6px; font-size:15px; font-weight:600; cursor:pointer; }
.btn-login:hover { background:#1e3a5f; }
.msg { margin-top:12px; font-size:13px; text-align:center; min-height:18px; }
.msg.err { color:#c53030; }
.msg.ok { color:#2f855a; }

/* ===== 侧边栏主框架 ===== */
body.app-layout { background:#f0f2f5; display:flex; min-height:100vh; }
.sidebar { width:216px; background:#1e3a5f; color:#dbe4f0; flex-shrink:0; align-self:flex-start; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; }
.sidebar .brand { padding:20px 14px 16px; font-size:20px; font-weight:800; color:#d6e0ee; text-align:center; border-bottom:1px solid rgba(255,255,255,.12); letter-spacing:2px; }
.sidebar .brand small { display:block; font-size:11px; font-weight:400; color:#9fb3d1; margin-top:6px; letter-spacing:0; }
.sidebar .brand .brand-ver { font-size:12px; font-weight:600; color:#9fb3d1; letter-spacing:0; margin-left:5px; }
.menu { padding:12px 10px; flex:1; min-height:0; overflow-y:auto; }
.menu-item { display:flex; align-items:center; justify-content:center; gap:10px; padding:11px 14px; margin-bottom:4px; border-radius:6px; font-size:14px; cursor:pointer; color:#c6d3e6; }
.menu-item:hover { background:rgba(255,255,255,.08); color:#fff; }
.menu-item.active { background:#2c5282; color:#fff; font-weight:600; }
.menu-item.disabled { opacity:.45; cursor:not-allowed; }
.menu-item .mi { width:18px; text-align:center; }

.main { flex:1; min-width:0; display:flex; flex-direction:column; }
.topbar { height:52px; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.08); display:flex; align-items:center; justify-content:space-between; padding:0 22px; }
.topbar .crumb { font-size:15px; font-weight:600; color:#2d3748; }
.topbar .right { display:flex; align-items:center; gap:14px; font-size:13px; color:#4a5568; }
.topbar .tag { background:#edf2f7; padding:4px 10px; border-radius:12px; }
.topbar a { color:#2c5282; cursor:pointer; text-decoration:none; }

.content { padding:20px 22px; flex:1; }
.panel { display:none; }
.panel.active { display:block; }

/* 筛选条 */
.filter-bar { background:#fff; border-radius:8px; padding:14px 16px; margin-bottom:16px; box-shadow:0 1px 3px rgba(0,0,0,.06); display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.filter-bar label { font-size:13px; color:#4a5568; }
.filter-bar input[type=date],.filter-bar input[type=text] { height:34px; border:1px solid #cbd5e0; border-radius:6px; padding:0 10px; font-size:13px; outline:none; }
.filter-bar input[type=text] { width:220px; }
.filter-bar input:focus { border-color:#2c5282; }
.btn { height:34px; padding:0 16px; border:none; border-radius:6px; font-size:13px; cursor:pointer; }
/* 按钮按功能效果分色：蓝=保存/入库/确认/主查询；青=报表/打印/导出/查看；红=清空/删除危险；橙=新增/换单/批量辅助；白底描边=取消/关闭/刷新/重置 */
.btn-primary { background:#2b6cb0; border:1px solid #2b6cb0; color:#fff; font-weight:600; box-shadow:0 1px 3px rgba(43,108,176,.25); }
.btn-primary:hover { background:#225ea0; border-color:#225ea0; }
.btn-teal { background:#2c7a7b; border:1px solid #2c7a7b; color:#fff; font-weight:600; box-shadow:0 1px 3px rgba(44,122,123,.22); }
.btn-teal:hover { background:#235e5f; border-color:#235e5f; }
.btn-danger { background:#fff5f5; border:1px solid #fc8181; color:#c53030; font-weight:600; }
.btn-danger:hover { background:#fed7d7; border-color:#f56565; }
.btn-amber { background:#fffaf0; border:1px solid #ed8936; color:#9c4221; font-weight:600; }
.btn-amber:hover { background:#feebc8; border-color:#dd6b20; }
.btn-ghost { background:#fff; border:1px solid #cbd5e0; color:#4a5568; font-weight:500; }
.btn-ghost:hover { background:#f1f5f9; border-color:#a0aec0; }
.btn-ai { background:#2f855a; border:1px solid #2f855a; color:#fff; font-weight:600; box-shadow:0 1px 3px rgba(47,133,90,.35); }
.btn-ai:hover { background:#276749; }
.summary { margin-left:auto; font-size:13px; color:#4a5568; }
.summary b { color:#2c5282; font-size:15px; }

/* 表格 */
.table-card { background:#fff; border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,.06); overflow:auto; }
table { border-collapse:collapse; width:100%; font-size:13px; white-space:nowrap; }
thead th { background:#edf2f7; color:#2d3748; font-weight:600; padding:10px 12px; text-align:left; border-bottom:1px solid #e2e8f0; position:sticky; top:0; }
tbody td { padding:9px 12px; border-bottom:1px solid #edf2f7; color:#2d3748; }
tbody tr:hover { background:#f7fafc; }
td.num { text-align:right; font-variant-numeric:tabular-nums; }
.empty { padding:40px; text-align:center; color:#a0aec0; font-size:14px; }
.placeholder { background:#fff; border-radius:8px; padding:60px; text-align:center; color:#a0aec0; }

/* 顶栏标签内小图标 */
.tag .ic { width:14px; height:14px; vertical-align:-2px; margin-right:4px; color:#2c5282; }
.filter-bar select { height:34px; border:1px solid #cbd5e0; border-radius:6px; padding:0 8px; font-size:13px; outline:none; background:#fff; }

/* 分页栏 */
.pager { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border-top:1px solid #edf2f7; font-size:13px; color:#4a5568; }
.pager-right { display:flex; align-items:center; gap:10px; }
.pager button:disabled { opacity:.4; cursor:not-allowed; }
.btn[disabled] { opacity:.4; cursor:not-allowed; }

/* 查询条件区：固定条件行，横向单行排布、不占垂直空间 */
.cond-panel { background:#fff; border-radius:8px; padding:12px 14px; margin-bottom:16px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.cond-list { display:flex; align-items:center; flex-wrap:nowrap; gap:14px; overflow-x:auto; padding-bottom:2px; }
.cond-row { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; white-space:nowrap; flex:0 0 auto; }
.cond-row input[type=checkbox] { width:15px; height:15px; cursor:pointer; flex:0 0 auto; }
.cond-row select, .cond-row input[type=text], .cond-row input[type=date], .cond-row input[type=number] {
  height:30px; border:1px solid #cbd5e0; border-radius:6px; padding:0 8px; font-size:13px; outline:none; background:#fff;
}
.cond-row select:focus, .cond-row input:focus { border-color:#2c5282; }
.cond-row select.val-sel { min-width:180px; }
.cond-label { font-size:13px; color:#4a5568; white-space:nowrap; }
.cond-row input[type=text] { min-width:130px; }
.vline { width:1px; height:24px; background:#e2e8f0; flex:0 0 auto; }
.cond-list .inline { font-size:13px; color:#4a5568; display:flex; align-items:center; gap:6px; white-space:nowrap; flex:0 0 auto; }
.cond-list .btn { flex:0 0 auto; height:34px; min-width:88px; padding:0 14px; font-size:13px; line-height:1; text-align:center; white-space:nowrap; }
.cond-list select { height:32px; border:1px solid #cbd5e0; border-radius:6px; padding:0 8px; font-size:13px; outline:none; background:#fff; color:#2d3748; }
.cond-list select:focus { border-color:#2c5282; }
.cond-list select.val-sel { min-width:190px; }
.cond-list input[type=text] { height:32px; border:1px solid #cbd5e0; border-radius:6px; padding:0 10px; font-size:13px; outline:none; background:#fff; color:#2d3748; min-width:150px; }
.cond-list input[type=text]:focus { border-color:#2c5282; }
.cond-list select:disabled { background:#f1f5f9; color:#a0aec0; cursor:not-allowed; }
.cond-list label.inline { cursor:pointer; color:#2d3748; }
.cond-list label.inline input[type=checkbox] { margin:0; cursor:pointer; accent-color:#2c5282; }
.result-line { display:flex; align-items:baseline; gap:24px; margin-top:10px; padding-top:10px; border-top:1px solid #edf2f7; font-size:13px; color:#4a5568; white-space:nowrap; justify-content:flex-start; }
#recCount { color:#2c5282; font-weight:600; }
.result-line .sum-label { color:#4a5568; margin-right:6px; }
#sumAmount { color:#c53030; font-weight:600; }
#sumQty { color:#2c5282; font-weight:600; }
.sep { color:#a0aec0; font-size:12px; white-space:nowrap; }
#fieldSel { min-width:130px; }
#opSel { min-width:74px; }
#fieldVal { min-width:170px; }

/* 采购与合同汇总表 */
.settle-table thead th.numh { text-align:right; }
.settle-table td.num.neg { color:#c53030; }
.settle-table tr.row-total td { font-weight:700; background:#edf2f7; color:#1a202c; }

/* 采购与合同：工具条（左统计、居中标题、右导出，单行不换行） */
.settle-bar { display:flex; align-items:center; gap:12px; flex-wrap:nowrap; background:#fff; border-radius:8px; padding:10px 14px; margin-bottom:12px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.settle-stat { flex:0 0 auto; font-size:13px; font-weight:700; color:#2d3748; white-space:nowrap; }
.settle-title { flex:1 1 auto; text-align:center; font-size:14px; font-weight:700; color:#1a202c; white-space:nowrap; }
#settleExportBtn { flex:0 0 auto; }
.st-ok { color:#2f855a; font-weight:600; }
.st-no { color:#c53030; font-weight:600; }
.st-none { color:#a0aec0; }
.st-balanced { color:#000; font-weight:600; }

/* 侧边栏底部：单独的项目切换入口 */
.switch-block { margin:0 10px; padding:12px 0; border-top:1px solid rgba(255,255,255,.14); }
.switch-block .menu-item { background:rgba(255,255,255,.06); color:#e8f0fb; }
.switch-block .menu-item:hover { background:rgba(255,255,255,.14); color:#fff; }

/* 项目选择弹窗 */
.modal-mask { position:fixed; inset:0; background:rgba(15,30,55,.55); display:flex; align-items:center; justify-content:center; z-index:1000; }
.modal-card { width:360px; max-width:92vw; background:#fff; border-radius:10px; box-shadow:0 16px 48px rgba(0,0,0,.3); overflow:hidden; }
.modal-head { padding:14px 18px; font-size:15px; font-weight:700; color:#1a202c; border-bottom:1px solid #edf2f7; }
.modal-list { max-height:340px; overflow:auto; padding:10px; display:flex; flex-direction:column; gap:8px; }
.proj-item { display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; padding:11px 14px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; cursor:pointer; font-size:14px; color:#2d3748; }
.proj-item .pn { font-weight:600; }
.proj-item small { font-size:12px; color:#718096; }
.proj-item:hover { border-color:#2c5282; background:#f7fafc; }
.proj-item.cur { border-color:#2c5282; background:#ebf4ff; }
.modal-foot { padding:12px 18px; border-top:1px solid #edf2f7; text-align:right; }

/* ===== 系统主页看板 ===== */
.kpi-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin-bottom:16px; }
.kpi { background:#fff; border-radius:8px; padding:16px 18px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.k-label { font-size:12px; color:#718096; margin-bottom:6px; }
.k-value { font-size:22px; font-weight:700; color:#1e3a5f; word-break:break-all; line-height:1.3; }
.kpi-accent .k-value { color:#2c5282; }
.k-sub { font-size:11px; color:#a0aec0; margin-top:4px; }
.kpi-row .kpi { border-left:none; }
.dash-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); gap:16px; margin-bottom:16px; }
.dash-card { background:#fff; border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,.06); padding:14px 16px; }
.dash-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; border-bottom:1px solid #edf2f7; padding-bottom:8px; margin-bottom:10px; flex-wrap:wrap; }
.dash-title { font-size:14px; font-weight:600; color:#2d3748; }
.dash-total { font-size:13px; font-weight:700; color:#2c5282; white-space:nowrap; }
.dash-body { display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.pie-wrap { flex:0 0 208px; }
.pie-svg { width:208px; height:208px; display:block; }
.pie-num { font-size:15px; font-weight:700; fill:#2d3748; }
.pie-cap { font-size:11px; fill:#718096; }
.legend { flex:1 1 220px; min-width:220px; max-height:232px; overflow:auto; }
.lg-row { display:flex; align-items:center; gap:8px; font-size:12.5px; padding:3px 0; }
.lg-dot { width:10px; height:10px; border-radius:2px; flex:0 0 10px; }
.lg-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#2d3748; }
.lg-val { font-variant-numeric:tabular-nums; color:#2d3748; white-space:nowrap; }
.lg-pct { width:48px; text-align:right; color:#718096; white-space:nowrap; }
.rank-list { max-height:300px; overflow:auto; }
.rank-row { padding:7px 0; border-bottom:1px dashed #edf2f7; }
.rank-top { display:flex; justify-content:space-between; gap:10px; font-size:13px; margin-bottom:4px; }
.rank-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#2d3748; }
.rank-amt { flex:0 0 auto; font-variant-numeric:tabular-nums; font-weight:600; color:#1e3a5f; }
.rank-bar { height:6px; background:#edf2f7; border-radius:3px; overflow:hidden; }
.rank-bar i { display:block; height:100%; background:#3182ce; border-radius:3px; }
.wage-table { box-shadow:none; overflow:auto; }
.wage-table thead th.num { text-align:right; }
.wage-table tbody td, .wage-table thead th { white-space:normal; }
.block-empty { display:none; padding:14px; color:#a0aec0; font-size:13px; text-align:center; }
.wage-card { margin-bottom:16px; }
.wage-split { display:grid; grid-template-columns:1.15fr 1fr; gap:16px; align-items:stretch; }
.wage-sub { font-size:13px; font-weight:600; color:#4a5568; margin:2px 0 8px; }
.wage-left .wage-table { max-height:300px; }
.wage-table table { width:100%; border-collapse:collapse; font-size:13px; }
.wage-table th, .wage-table td { padding:6px 8px; border-bottom:1px solid #edf2f7; white-space:nowrap; }
.wage-table thead th { background:#f7fafc; color:#4a5568; font-weight:600; }
.wage-table td.num, .wage-table th.num { text-align:right; }
.bar-chart { display:flex; align-items:flex-end; gap:12px; flex-wrap:nowrap; min-height:236px; padding:6px 6px 0; overflow-x:auto; }
.bar-col { flex:1 1 0; min-width:44px; height:220px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; }
.bar-val { font-size:11px; font-weight:700; color:#c53030; margin-bottom:3px; white-space:nowrap; }
.bar-body { width:70%; max-width:44px; background:linear-gradient(180deg,#f56565 0%,#c53030 100%); border-radius:4px 4px 0 0; min-height:4px; }
.bar-name { font-size:11px; color:#4a5568; margin-top:6px; max-width:64px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; }
@media(max-width:980px){ .wage-split{ grid-template-columns:1fr; } }
.kpi-row2 { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.phase-badge { font-size:13px; font-weight:700; padding:3px 12px; border-radius:12px; white-space:nowrap; flex:0 0 auto; }
.phase-doing { background:#ebf4ff; color:#2c5282; }
.phase-done { background:#fed7d7; color:#c53030; }

/* ===== 采购对账：采购/结算左右双栏，便于截图对账 ===== */
.recon-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; align-items:stretch; }
@media (max-width:980px){
  .recon-grid{ grid-template-columns:1fr; }
  .recon-title-bar{ flex-direction:column; align-items:center; gap:6px; }
  .rt-time{ position:static; transform:none; text-align:right; }
}
.recon-col { min-width:0; display:flex; flex-direction:column; }
.recon-grid .recon-table { flex:1; display:flex; flex-direction:column; }
.recon-col-foot { margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 12px; font-weight:700; font-size:13px; background:#edf2f7; color:#1a202c; border-top:1px solid #e2e8f0; border-radius:0 0 8px 8px; }
.recon-col-foot .rcf-num { text-align:right; font-variant-numeric:tabular-nums; }
.recon-col-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:0 2px 8px; }
.recon-col-head .rc-title { font-size:14px; font-weight:700; color:#1a202c; }
.recon-col-head b { font-size:14px; font-weight:700; color:#2c5282; font-variant-numeric:tabular-nums; white-space:nowrap; }
.recon-col-stat { font-size:12.5px; color:#4a5568; margin:0 2px 8px; white-space:nowrap; overflow-x:auto; }
.recon-table table { width:100%; border-collapse:collapse; font-size:13px; }
.recon-table thead th { background:#edf2f7; color:#2d3748; font-weight:600; padding:9px 12px; text-align:left; white-space:nowrap; }
.recon-table tbody td { padding:8px 12px; border-top:1px solid #edf2f7; white-space:nowrap; }
.recon-table tbody td.num { text-align:right; font-variant-numeric:tabular-nums; }
.recon-table tr.row-total td { font-weight:700; background:#edf2f7; color:#1a202c; }
.recon-balbar { display:flex; align-items:center; flex-wrap:wrap; gap:14px 18px; background:#fff; border-radius:8px; padding:12px 16px; box-shadow:0 1px 3px rgba(0,0,0,.06); font-size:13px; color:#4a5568; }
.recon-balbar .rb-item b { color:#1a202c; font-variant-numeric:tabular-nums; margin-left:4px; }
.recon-balbar .rb-label { font-weight:600; color:#2d3748; margin-left:auto; }
.rb-bal { font-size:16px; font-weight:800; font-variant-numeric:tabular-nums; color:#1e3a5f; white-space:nowrap; }
.rb-bal.neg { color:#c53030; }
.rb-bal.ok { color:#2f855a; }
.recon-title-bar { position:relative; display:flex; justify-content:center; align-items:center; gap:14px; margin-bottom:12px; }
.rt-main { font-size:20px; font-weight:700; color:#1a202c; text-align:center; letter-spacing:1px; }
.rt-time { position:absolute; right:0; top:50%; transform:translateY(-50%); font-size:13px; color:#718096; font-variant-numeric:tabular-nums; white-space:nowrap; }
.recon-table th.c-seq, .recon-table td.c-seq { width:52px; text-align:center !important; color:#718096; }
.recon-table td.c-seq { font-variant-numeric:tabular-nums; }

/* ===== 结算统计（独立页）：KPI 三卡 + 固定列宽、表头/数据严格对齐的汇总表 ===== */
.settle-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:14px; }
.kpi { background:#fff; border-radius:8px; padding:14px 18px; box-shadow:0 1px 3px rgba(0,0,0,.06); display:flex; flex-direction:column; gap:6px; border-left:3px solid #4299e1; }
.kpi-pay { border-left-color:#38a169; }
.kpi-bal { border-left-color:#dd6b20; }
.kpi-label { font-size:12.5px; color:#718096; }
.kpi-value { font-size:22px; font-weight:800; color:#1a202c; font-variant-numeric:tabular-nums; letter-spacing:.3px; white-space:nowrap; }
.kpi-value.pos { color:#2c5282; }
.kpi-value.neg { color:#c53030; }
.kpi-value.ok { color:#718096; }
@media (max-width:980px){ .settle-kpis{ grid-template-columns:1fr; } }

.settle-card { padding:6px 14px 10px; }
.settle-table { width:100%; border-collapse:collapse; font-size:13.5px; table-layout:fixed; }
.settle-table thead th { background:#edf2f7; color:#2d3748; font-weight:600; padding:10px 14px; white-space:nowrap; }
.settle-table th.c-seq, .settle-table td.c-seq { width:64px; text-align:center; color:#718096; }
.settle-table th.th-name, .settle-table td.td-name { text-align:left; }
.settle-table th.th-num, .settle-table td.num { text-align:right; }
.settle-table th.th-num { width:185px; }
.settle-table th.th-cat, .settle-table td.td-cat { width:120px; text-align:left; }
.settle-table tbody td.td-cat { color:#4a5568; white-space:normal; word-break:break-word; }
.settle-table tbody td { padding:10px 14px; border-top:1px solid #edf2f7; font-variant-numeric:tabular-nums; }
.settle-table tbody td.num { white-space:nowrap; }
.settle-table tbody td.td-name { white-space:normal; word-break:break-all; color:#1a202c; }
.settle-table tbody tr:nth-child(even) td { background:#f9fbfd; }
.settle-table tbody tr.st-row { cursor:pointer; }
.settle-table tbody tr.st-row:hover td { background:#ebf4ff; }
.settle-table tbody td .bv.pos { color:#2c5282; font-weight:700; }
.settle-table tbody td .bv.neg { color:#c53030; font-weight:700; }
.settle-table tbody td .bv.ok { color:#718096; font-weight:700; }
.settle-table tfoot td { padding:11px 14px; border-top:2px solid #cbd5e0; background:#edf2f7; font-weight:700; color:#1a202c; white-space:nowrap; font-variant-numeric:tabular-nums; }
.settle-table tfoot td.num { text-align:right; }
.settle-table tfoot td.td-name { text-align:left; }
.settle-table tfoot .bv.pos, .settle-table tfoot .bv.neg, .settle-table tfoot .bv.ok { font-weight:800; }

/* ===== 采购监控：合同执行横道图（纯CSS，无图表库） ===== */
.kpi-value.near { color:#dd6b20; }
.monitor-legend { padding:8px 18px; font-size:12px; color:#718096; border-bottom:1px solid #edf2f7; }
.monitor-list { padding:10px 18px; display:flex; flex-direction:column; gap:8px; }
.m-row { border:1px solid #edf2f7; border-radius:8px; padding:7px 12px; background:#fff; }
.m-head { display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.m-name { font-weight:600; color:#1a202c; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.m-status { font-size:11.5px; color:#718096; background:#f7fafc; border:1px solid #edf2f7; border-radius:10px; padding:0 8px; white-space:nowrap; }
.m-pct { font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; min-width:58px; text-align:right; font-size:13px; }
.m-track { height:10px; background:#edf2f7; border-radius:5px; overflow:hidden; }
.m-fill { height:100%; border-radius:5px; }
.m-meta { margin-top:4px; font-size:12px; color:#4a5568; font-variant-numeric:tabular-nums; }

/* 供应商付款明细弹窗 */
.pay-detail-card { width:860px; max-width:96vw; display:flex; flex-direction:column; }
.pd-list { max-height:400px; overflow:auto; }
.pd-table { width:100%; border-collapse:collapse; font-size:13px; }
.pd-table thead th { position:sticky; top:0; background:#edf2f7; color:#2d3748; font-weight:600; padding:9px 12px; text-align:left; white-space:nowrap; z-index:1; }
.pd-table tbody td { padding:8px 12px; border-top:1px solid #edf2f7; white-space:nowrap; }
.pd-table thead th.num { text-align:right; }
.pd-table tbody td.num { text-align:right; font-variant-numeric:tabular-nums; }
.pd-table th.c-seq, .pd-table td.c-seq { width:48px; text-align:center !important; color:#718096; }
.pd-table td.c-seq { font-variant-numeric:tabular-nums; }
.pd-total { padding:10px 18px; font-size:13px; font-weight:700; color:#2c5282; border-top:1px solid #edf2f7; background:#f7fafc; }

/* ===== 采购登记：单条逐笔录入表单 ===== */
.reg-warn { background:#ebf4ff; border:1px solid #bee3f8; color:#2c5282; font-size:13px; border-radius:8px; padding:10px 14px; margin-bottom:12px; line-height:1.6; }
.reg-warn.ok { background:#f0fff4; border-color:#9ae6b4; color:#276749; }
.reg-record-db { font-size:12px; color:#718096; font-weight:400; margin-left:8px; }
.reg-card { padding:12px 14px 10px; }
.reg-form-body { display:flex; flex-direction:column; gap:6px; }
.reg-fgroup { border:none; background:transparent; padding:0; margin:0; }
.reg-fgroup + .reg-fgroup { border-top:1px dashed #e2e8f0; margin-top:8px; padding-top:8px; }
.reg-fgroup-title { font-size:12px; font-weight:700; color:#2c5282; margin:0 0 6px; display:flex; align-items:center; gap:6px; }
.reg-fgroup-title::before { content:""; width:3px; height:12px; background:#2c5282; border-radius:2px; }
/* 12列细网格：字段整体落位对齐，列间距恒定；span不同形成宽度主次，数量/单价/金额三等宽 */
.reg-hflow { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:10px; row-gap:8px; align-items:center; }
.reg-hfield { display:flex; align-items:center; gap:6px; min-width:0; }
.reg-hfield.w-date     { grid-column:span 3; }
.reg-hfield.w-supplier { grid-column:span 6; }
.reg-hfield.w-buyer    { grid-column:span 3; }
.reg-hfield.w-name     { grid-column:span 5; }
.reg-hfield.w-spec     { grid-column:span 3; }
.reg-hfield.w-unit     { grid-column:span 2; }
.reg-hfield.w-pay      { grid-column:span 2; }
.reg-hfield.w-num3     { grid-column:span 4; }
.reg-hfield.w-meta     { grid-column:span 4; }
.reg-hlabel { flex:0 0 66px; text-align:right; font-size:12px; color:#4a5568; font-weight:600; white-space:nowrap; }
.reg-hlabel i { color:#c53030; font-style:normal; margin-left:1px; }
.reg-hcontrol { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; }
.reg-hcontrol input, .reg-hcontrol select { height:30px; border:1px solid #cbd5e0; border-radius:5px; padding:0 9px; font-size:13px; outline:none; background:#fff; color:#2d3748; width:100%; box-sizing:border-box; transition:border-color .12s, box-shadow .12s; }
.reg-hcontrol input:focus, .reg-hcontrol select:focus { border-color:#2c5282; box-shadow:0 0 0 2px rgba(44,82,130,.12); }
.reg-hcontrol input.field-invalid { border-color:#c53030; background:#fff5f5; }
.reg-hcontrol input.money-in { background:#f0f7ff; font-weight:600; color:#1a365d; text-align:right; font-variant-numeric:tabular-nums; }
/* 供应商自定义下拉：输入框正下方、左对齐、与框同宽、模糊候选 */
.combo-wrap{position:relative;width:100%;}
.combo-wrap input{width:100%;box-sizing:border-box;padding-right:28px;}
.combo-arrow{position:absolute;right:3px;top:50%;transform:translateY(-50%);height:28px;width:24px;border:0;background:transparent;color:#4a5568;cursor:pointer;font-size:13px;line-height:1;padding:0;}
.combo-arrow:hover{color:#2c5282;}
.combo-drop{position:fixed;z-index:200;background:#fff;border:1px solid #cbd5e0;border-radius:5px;box-shadow:0 10px 26px rgba(15,23,42,.16);max-height:240px;overflow-y:auto;display:none;}
.combo-item{padding:7px 10px;font-size:13px;color:#2d3748;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.combo-item:hover,.combo-item.active{background:#ebf4ff;color:#1a365d;}
.combo-empty{padding:8px 10px;font-size:12px;color:#a0aec0;}
.cond-list .combo-wrap.recon-sup-wrap{position:relative;width:auto;min-width:230px;flex:0 0 auto;}
.cond-list .combo-wrap.recon-sup-wrap input{width:100%;box-sizing:border-box;}
/* 采购查询·字段查询：可输入模糊/拼音候选下拉，固定宽度避免横向挤压 */
.cond-row .q-combo-wrap{position:relative;width:212px;flex:0 0 auto;}
.cond-row .q-combo-wrap input{width:100%;box-sizing:border-box;}
.reg-err { font-size:11px; color:#c53030; min-height:0; line-height:1.2; }
.reg-err:empty { display:none; }
.reg-hint { font-size:11px; color:#718096; min-height:0; line-height:1.2; }
.reg-hint:empty { display:none; }
.reg-hint.warn { color:#9c4221; }
.reg-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; border-top:1px solid #edf2f7; padding-top:9px; margin-top:8px; }
.reg-actions .btn { height:30px; padding:0 14px; }
.reg-count { font-size:13px; color:#2c5282; font-weight:600; white-space:nowrap; }
.reg-msg { font-size:13px; flex:1 1 240px; min-width:200px; line-height:1.5; }
.reg-msg.ok { color:#2f855a; }
.reg-msg.err { color:#c53030; }
.reg-msg.warn { color:#9c4221; }
.reg-msg.info { color:#2c5282; }
/* 采购登记：专业化录入分组 + 已保存记录表（自动更新） */
.reg-section-title{font-size:13px;font-weight:700;color:#2c5282;letter-spacing:.5px;margin:2px 0 10px;padding-bottom:6px;border-bottom:1px solid #edf2f7;}
.reg-record{margin-top:12px;}
.reg-record-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #edf2f7;}
.reg-record-title{font-size:14px;font-weight:700;color:#1a202c;white-space:nowrap;}
.reg-record-stats{font-size:13px;color:#4a5568;flex:1 1 220px;line-height:1.6;}
.reg-record-stats b{color:#2c5282;font-variant-numeric:tabular-nums;font-weight:700;}
.reg-record-tools{display:flex;gap:8px;flex-wrap:wrap;}
.reg-record-tools .btn{height:30px;min-width:84px;padding:0 12px;font-size:12px;}
.reg-table-wrap{overflow-x:auto;}
.reg-records{width:100%;min-width:0;}
.reg-records th{white-space:nowrap;}
.reg-records td{white-space:normal;word-break:break-word;}
.reg-records td.num,.reg-records td.c-seq,.reg-records td.op-cell{white-space:nowrap;}
.reg-records th,.reg-records td{padding:8px 8px;vertical-align:middle;}
.reg-records th.num{text-align:right;}
.reg-records td.name-cell{white-space:normal;min-width:120px;max-width:220px;}
.reg-records tr.row-total td{font-weight:700;background:#edf2f7;color:#1a202c;}
.tag-draft{display:inline-block;padding:1px 9px;border-radius:10px;background:#fffaf0;color:#9c4221;font-size:12px;white-space:nowrap;}
.tag-in{display:inline-block;padding:1px 9px;border-radius:10px;background:#e6fffa;color:#234e52;font-size:12px;white-space:nowrap;}
.reg-miss-tag{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:10px;background:#fff5f5;color:#c53030;font-size:12px;white-space:nowrap;}
.link-del{border:none;background:transparent;color:#c53030;cursor:pointer;font-size:12px;padding:2px 6px;white-space:nowrap;}
.link-del:hover{text-decoration:underline;}
.cell-muted{color:#a0aec0;}
.link-edit{border:none;background:transparent;color:#2c5282;cursor:pointer;font-size:12px;padding:2px 6px;white-space:nowrap;}
.link-edit:hover{text-decoration:underline;}
/* 操作列右侧固定：宽屏自适应不出现横滚；极窄屏兜底时“修改/删除”仍可见 */
.reg-records th.op-cell,.reg-records td.op-cell{position:sticky;right:0;z-index:2;background:#fff;text-align:center;min-width:104px;box-shadow:-6px 0 8px -8px rgba(0,0,0,.28);}
.reg-records thead th.op-cell{background:#edf2f7;z-index:4;}
.reg-records td.op-cell .link-edit,.reg-records td.op-cell .link-del{padding:2px 5px;}
.reg-del-card{max-width:430px;}
.reg-del-summary{margin:10px 2px;padding:10px 12px;background:#fffaf0;border:1px solid #fed7d7;border-radius:6px;color:#742a2a;font-size:13px;line-height:1.5;}
.reg-del-field{display:block;margin:10px 2px;}
.reg-del-field span{display:block;font-size:12px;color:#4a5568;margin-bottom:4px;}
.reg-del-field input{width:100%;box-sizing:border-box;height:34px;padding:0 10px;border:1px solid #cbd5e0;border-radius:5px;font-size:14px;}
.reg-del-err{min-height:18px;margin:6px 2px;color:#c53030;font-size:12px;}
.reg-del-ok{background:#c53030;border-color:#c53030;}
@media (max-width:1100px){ /* 细网格随容器收缩，列间距保持一致，无需重映射占比 */ }
@media (max-width:980px){ .reg-record-head{padding:12px;} }
@media (max-width:680px){ .reg-hfield{grid-column:1/-1!important;} .reg-hlabel{flex-basis:60px;} }

/* 商品选择弹窗（按供应商历史商品模糊点选，回填名称/规格/单位） */
.reg-goods-row{display:flex;gap:6px;align-items:center;width:100%;}
.reg-goods-row input{flex:1 1 auto;min-width:0;}
.goods-pick-btn{flex:0 0 auto;height:30px;padding:0 12px;border:1px solid #2c5282;background:#ebf4ff;color:#2c5282;border-radius:5px;font-size:12px;cursor:pointer;white-space:nowrap;}
.goods-pick-btn:hover{background:#d6e6fc;}
.goods-card{width:540px;max-width:94vw;}
/* 计划详情·本地材料计划订单台账弹框 */
.mp-orders-card{width:min(1080px,96vw);max-width:96vw;display:flex;flex-direction:column;}
.pi-body{display:flex;gap:10px;align-items:stretch;padding:12px 14px;min-height:220px;}
.pi-list-col{flex:0 0 300px;min-width:0;max-height:64vh;overflow-y:auto;overflow-x:hidden;padding-right:4px;display:flex;flex-direction:column;gap:6px;}
.pi-detail-col{flex:1 1 auto;min-width:0;max-height:64vh;overflow-y:auto;overflow-x:hidden;padding:2px 2px 8px;}
.pi-cap{padding:2px 2px 8px;color:#4a5568;font-size:13px;line-height:1.5;}
.pi-price-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12.5px;}
.pi-price-table thead th{background:#edf2f7;color:#2d3748;font-weight:600;padding:6px 4px;text-align:left;white-space:normal;min-width:0;}
.pi-price-table tbody td{padding:4px 3px;border-top:1px solid #edf2f7;vertical-align:middle;min-width:0;}
.pi-price-table th.seq,td.seq{width:26px;text-align:center;color:#718096;}
.pi-price-table th.unit,td.unit{width:42px;}
.pi-price-table th.qty,td.qty{width:52px;}
.pi-price-table th.price,td.price{width:72px;}
.pi-price-table th.amt,td.amt{width:80px;}
.pi-price-table th.rmk,td.rmk{width:60px;}
.pi-price-table th.op,td.op{width:34px;text-align:center;}
.pi-price-table th.qty,.pi-price-table td.qty,.pi-price-table th.price,.pi-price-table td.price,.pi-price-table th.amt,.pi-price-table td.amt{text-align:right;font-variant-numeric:tabular-nums;}
.pi-in{width:100%;min-width:0;height:25px;border:1px solid #cbd5e0;border-radius:5px;padding:0 5px;font-size:12px;text-align:right;background:#fff;outline:none;box-sizing:border-box;}
.pi-in:focus{border-color:#2c5282;box-shadow:0 0 0 2px rgba(44,82,130,.12);}
.pi-in.pi-t{text-align:left;}
.pi-in.pi-unit{text-align:center;}
.pi-in.pi-num{text-align:right;}
.pi-in.pi-auto{background:#f0fff4;color:#22543d;border-color:#9ae6b4;}
.pi-del{height:24px;padding:0 8px;border:1px solid #feb2b2;background:#fff;color:#c53030;border-radius:5px;font-size:12px;cursor:pointer;white-space:nowrap;}
.pi-del:hover{background:#fff5f5;border-color:#c53030;}
.pi-rowops{padding:8px 2px 0;}
.pi-rowops .btn{height:28px;font-size:12px;}
.pi-summary{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;padding:9px 18px;border-top:1px solid #edf2f7;background:#f7fafc;font-size:13px;color:#4a5568;}
.pi-summary b{color:#2b6cb0;}
.pi-summary .pi-warn{color:#c05621;font-weight:600;}
.mp-ord-list{max-height:220px;overflow:auto;padding:10px 12px;display:flex;flex-direction:column;gap:6px;border-bottom:1px solid #edf2f7;}
.mp-ord-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px;background:#fff;}
.mp-ord-row.active{border-color:#2b6cb0;background:#ebf4ff;}
.mp-ord-no{font-weight:700;color:#2b6cb0;cursor:pointer;white-space:nowrap;}
.mp-ord-meta{flex:1;color:#4a5568;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mp-ord-ops{display:flex;gap:8px;flex-shrink:0;align-items:center;}
.pi-ord-row{align-items:flex-start;}
.pi-ord-main{flex:1;min-width:0;cursor:pointer;}
.pi-ord-top{margin-bottom:2px;}
.pi-ord-supplier{font-size:13px;color:#1f2d3d;line-height:1.4;word-break:break-all;}
.pi-ord-sub{font-size:12px;color:#6b7785;margin-top:3px;}
.mp-ord-detail{max-height:260px;overflow:auto;padding:10px 12px;}
.mp-ord-detail .pd-table td{padding:7px 10px;border-bottom:1px solid #edf2f7;font-size:13px;color:#2d3748;}
.mp-ord-detail .pd-table td.num{text-align:right;}
.mp-ord-empty{padding:14px;color:#a0aec0;font-size:13px;text-align:center;}
.gm-sup{font-size:12px;font-weight:400;color:#718096;margin-left:6px;}
.gm-searchbar{display:flex;gap:8px;padding:10px 10px 4px;}
.gm-searchbar input{flex:1 1 auto;min-width:0;height:30px;border:1px solid #cbd5e0;border-radius:5px;padding:0 9px;font-size:13px;outline:none;background:#fff;}
.gm-searchbar input:focus{border-color:#2c5282;box-shadow:0 0 0 2px rgba(44,82,130,.12);}
.gm-searchbar .btn{height:30px;padding:0 12px;flex:0 0 auto;}
.goods-item{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;padding:9px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;cursor:pointer;font-size:13px;color:#2d3748;}
.goods-item:hover{border-color:#2c5282;background:#f7fafc;}
.goods-item .gi-name{font-weight:600;color:#1a202c;}
.goods-item .gi-sub{font-size:12px;color:#718096;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.gm-empty{padding:20px 12px;text-align:center;color:#a0aec0;font-size:13px;}

/* ===== 电线电缆下单弹窗 ===== */
.cable-copper-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid #edf2f7;background:#fbfcfe;font-size:13px;color:#4a5568;}
.cable-copper-bar .cb-copper b{color:#1a202c;font-size:15px;}
.cable-copper-bar .cb-base{color:#718096;}
.cable-copper-bar input{height:30px;border:1px solid #cbd5e0;border-radius:5px;padding:0 9px;font-size:13px;outline:none;background:#fff;min-width:150px;}
.cable-copper-bar input:focus{border-color:#2c5282;box-shadow:0 0 0 2px rgba(44,82,130,.12);}
.cable-copper-bar .reg-msg{margin-left:auto;}
.goods-item.disabled{background:#f7fafc;border-color:#e2e8f0;color:#a0aec0;cursor:not-allowed;}
.goods-item.disabled:hover{border-color:#e2e8f0;background:#f7fafc;}
.gi-tag{display:inline-block;margin-left:6px;font-size:11px;font-weight:600;color:#2c7a7b;background:#e6fffa;border-radius:4px;padding:1px 6px;}
.cb-tabs{display:flex;gap:6px;padding:10px 10px 0;}
.cb-tab{flex:1 1 auto;height:30px;border:1px solid #cbd5e0;border-radius:6px;background:#fff;font-size:13px;color:#4a5568;cursor:pointer;}
.cb-tab.active{border-color:#2c5282;background:#ebf4ff;color:#2c5282;font-weight:600;}
.cb-hist-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 2px 10px;font-size:13px;color:#4a5568;}
.cb-hist-bar .cb-hist-tip{flex:1 1 auto;min-width:0;}
.cb-hist-bar .btn{flex:0 0 auto;}
.cable-total{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:10px 4px 4px;font-size:13px;color:#4a5568;}
.cable-total .cb-amt{color:#2b6cb0;font-size:15px;}
.cb-qty{width:80px;height:28px;border:1px solid #cbd5e0;border-radius:5px;padding:0 8px;font-size:13px;outline:none;background:#fff;text-align:right;}
.cb-qty:focus{border-color:#2c5282;box-shadow:0 0 0 2px rgba(44,82,130,.12);}
.cb-remark{width:100%;min-width:90px;height:28px;border:1px solid #cbd5e0;border-radius:5px;padding:0 8px;font-size:13px;outline:none;background:#fff;text-align:left;}
.cb-remark:focus{border-color:#2c5282;box-shadow:0 0 0 2px rgba(44,82,130,.12);}

/* ===== AI 智能录入批量明细弹窗 ===== */
.ai-card{width:960px;max-width:96vw;display:flex;flex-direction:column;}
.ai-common-tag{font-size:12px;font-weight:400;color:#718096;margin-left:8px;}
.ai-common{display:flex;flex-wrap:wrap;gap:8px 14px;padding:10px 16px;border-bottom:1px solid #edf2f7;background:#fbfcfe;}
.ai-common label,.ai-common-label{display:flex;align-items:center;gap:6px;font-size:13px;color:#4a5568;white-space:nowrap;}
.ai-common input,.ai-common select{height:28px;border:1px solid #cbd5e0;border-radius:5px;padding:0 8px;font-size:13px;background:#fff;min-width:0;outline:none;}
.ai-common input:focus,.ai-common select:focus{border-color:#2c5282;box-shadow:0 0 0 2px rgba(44,82,130,.12);}
.ai-common #aiDate{width:140px;}
.ai-common #wrap-aiSup{width:250px;}
.ai-common #wrap-aiBuyer{width:150px;}
.ai-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 16px 6px;}
.ai-toolbar .btn{height:28px;padding:0 11px;font-size:13px;flex:0 0 auto;}
.ai-status{margin-left:auto;font-size:12px;color:#718096;max-width:46%;text-align:right;}
.ai-status.warn{color:#9c4221;}
.ai-status.ok{color:#2f855a;}
.ai-progress{margin:8px 16px 0;}
.ai-progress-bar{height:8px;border-radius:6px;background:#edf2f7;overflow:hidden;position:relative;}
.ai-progress-ind{height:100%;width:0%;border-radius:6px;background:linear-gradient(90deg,#2c5282,#4299e1);transition:width .25s ease;}
.ai-progress-text{display:flex;justify-content:space-between;gap:12px;margin-top:5px;font-size:12px;color:#2c5282;}
.ai-progress-text .pct{font-variant-numeric:tabular-nums;font-weight:600;}
.ai-table-wrap{max-height:340px;overflow:auto;padding:4px 16px 8px;}
.ai-table{width:100%;border-collapse:collapse;font-size:13px;}
.ai-table th,.ai-table td{padding:4px 6px;vertical-align:middle;}
.ai-table th{text-align:left;color:#4a5568;font-weight:600;border-bottom:1px solid #e2e8f0;white-space:nowrap;}
.ai-table td{border-bottom:1px solid #f1f5f9;}
.ai-table input{width:100%;height:28px;border:1px solid #cbd5e0;border-radius:4px;padding:0 7px;font-size:13px;background:#fff;outline:none;min-width:0;}
.ai-table input:focus{border-color:#2c5282;box-shadow:0 0 0 2px rgba(44,82,130,.10);}

/* 图纸会审：行内可编辑控件 + 文件清单 + 附图缩略 */
.rv-inp,.rv-ta,.rv-sel{width:100%;border:1px solid #cbd5e0;border-radius:4px;padding:4px 7px;font-size:13px;background:#fff;outline:none;min-width:0;box-sizing:border-box;}
.rv-ta{resize:vertical;min-height:34px;}
.rv-inp:focus,.rv-ta:focus,.rv-sel:focus{border-color:#2c5282;box-shadow:0 0 0 2px rgba(44,82,130,.10);}
.rv-del{padding:2px 8px;font-size:12px;}
.rv-file-list{margin-top:8px;display:flex;flex-direction:column;gap:6px;}
.rv-file-row{display:flex;align-items:center;gap:10px;padding:6px 10px;border:1px solid #e2e8f0;border-radius:6px;background:#f7fafc;font-size:13px;}
.rv-file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rv-file-size{color:#718096;white-space:nowrap;}
.rv-ok{color:#2f855a;white-space:nowrap;}
.rv-err{color:#c53030;white-space:nowrap;}
.rv-wait{color:#b7791f;white-space:nowrap;}
.rv-img-cell{display:flex;flex-direction:column;align-items:center;gap:4px;}
.rv-thumb{max-width:90px;max-height:70px;border:1px solid #cbd5e0;border-radius:4px;object-fit:contain;background:#f7fafc;}

/* 会审进度条：真实批次进度（按已完成批数填充）+ 已耗时 */
.rv-progress{margin:10px 2px 2px;}
.rv-progress-bar{height:8px;border-radius:6px;background:#edf2f7;overflow:hidden;position:relative;}
.rv-progress-ind{position:absolute;top:0;left:0;height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,#2c5282,#4299e1);transition:width .3s ease;}
.rv-progress-text{display:flex;justify-content:space-between;gap:12px;margin-top:6px;font-size:13px;color:#2c5282;}
#rvProgText{flex:1;min-width:0;}
#rvProgTime{color:#718096;white-space:nowrap;}

/* 会审打印报表：屏幕隐藏，仅打印时输出；不含上传清单与编辑控件 */
.rv-print-report{display:none;}
body.rv-printing .sidebar,body.rv-printing .switch-block,body.rv-printing .topbar,body.rv-printing .panel,body.rv-printing .modal-mask,body.rv-printing .recon-action,body.rv-printing .reg-actions,body.rv-printing .rv-progress{display:none !important;}
body.rv-printing #rvPrintReport{display:block !important;}
.rv-rpt-head{margin-bottom:14px;}
.rv-rpt-title{font-size:20px;font-weight:700;text-align:center;margin-bottom:10px;}
.rv-rpt-meta{display:flex;flex-wrap:wrap;gap:6px 22px;font-size:13px;margin-bottom:8px;}
.rv-rpt-summary{font-size:13px;line-height:1.6;border:1px solid #cbd5e0;border-radius:6px;padding:8px 10px;background:#f7fafc;}
.rv-rpt-table{width:100%;border-collapse:collapse;font-size:12.5px;}
.rv-rpt-table th,.rv-rpt-table td{border:1px solid #4a5568;padding:6px 8px;vertical-align:top;}
.rv-rpt-table th{background:#edf2f7;text-align:center;white-space:nowrap;}
.rv-rpt-seq{text-align:center;}
.rv-rpt-src{font-size:11px;color:#718096;margin-top:3px;}
.rv-rpt-img img{max-width:120px;max-height:90px;margin-top:4px;border:1px solid #cbd5e0;}
.rv-rpt-empty{text-align:center;color:#718096;padding:18px;}
.rv-rpt-sign{margin-top:22px;font-size:13px;}
.ai-table .c-no{width:34px;text-align:center;color:#a0aec0;}
.ai-table .c-num{width:86px;text-align:right;}
.ai-table td.c-num input{text-align:right;}
.ai-table .c-op{width:82px;text-align:center;}
.ai-table td:nth-child(2) input{min-width:210px;}
.ai-table td:nth-child(3) input{min-width:120px;}
.ab-hint{font-size:12px;color:#718096;align-self:center;}
.ab-colmap{display:flex;flex-wrap:wrap;gap:12px;padding:8px 16px;border-bottom:1px solid #edf2f7;background:#f8fafc;}
.ab-cm{display:flex;align-items:center;gap:6px;font-size:13px;color:#4a5568;}
.ab-cm select{height:28px;border:1px solid #cbd5e0;border-radius:4px;padding:0 6px;font-size:13px;background:#fff;outline:none;min-width:130px;}
.ai-status.ab-err{color:#c53030;}
.ai-status.ab-ok{color:#2f855a;}
.ai-status.ab-info{color:#2c5282;}
.ai-table-wrap .row-bad td{background:#fff5f5;}
.ai-table-wrap .row-bad input{border-color:#fc8181;}
.abne-in[readonly]{background:#f7fafc;color:#4a5568;}
.abtm-in[readonly]{background:#f7fafc;color:#4a5568;}
.ai-del-btn{border:none;background:transparent;color:#c53030;cursor:pointer;font-size:13px;padding:2px 6px;}
.ai-del-btn:hover{text-decoration:underline;}
.ai-copy-btn{border:none;background:transparent;color:#2c5282;cursor:pointer;font-size:13px;padding:2px 6px;}
.ai-copy-btn:hover{text-decoration:underline;}
.ai-foot{display:flex;align-items:center;gap:10px;padding:10px 16px;border-top:1px solid #edf2f7;}
.ai-total{margin-right:auto;font-size:13px;color:#2c5282;font-weight:600;}
.ai-foot .btn{height:30px;}

/* ===== 价格异常提示弹窗（涨红降绿 + 历史四列） ===== */
.pa-card{width:560px;max-width:94vw;}
.pa-summary{padding:14px 18px;border-bottom:1px solid #edf2f7;font-size:13px;}
.pa-title{font-weight:700;font-size:14px;color:#1a202c;margin-bottom:8px;}
.pa-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;color:#4a5568;}
.pa-badge{display:inline-block;font-weight:700;padding:2px 12px;border-radius:12px;font-size:13px;}
.pa-up{color:#c53030;}
.pa-up .pa-badge{background:#fff5f5;color:#c53030;border:1px solid #feb2b2;}
.pa-down{color:#2f855a;}
.pa-down .pa-badge{background:#f0fff4;color:#2f855a;border:1px solid #9ae6b4;}
.pa-hint{margin-top:8px;font-size:12px;color:#a0aec0;}
.pa-table-wrap{max-height:320px;overflow:auto;padding:8px 18px 12px;}
.pa-table{width:100%;border-collapse:collapse;font-size:13px;}
.pa-table th,.pa-table td{padding:6px 8px;border-bottom:1px solid #f1f5f9;text-align:left;}
.pa-table th{color:#4a5568;font-weight:600;white-space:nowrap;}
.pa-table th.num,.pa-table td.num{text-align:right;white-space:nowrap;}
.pa-rowprice{font-weight:600;}
.pa-foot{display:flex;align-items:center;gap:10px;}
.pa-shot-tip{margin-right:auto;font-size:12px;color:#2f855a;min-height:16px;}
.pa-shot-tip.warn{color:#9c4221;}
.pa-foot .btn{height:30px;}
.pa-head{text-align:center;}
.pa-head-warn{color:#c53030;font-weight:700;}
/* 批量入库前历史单价比对汇总弹窗 */
.bp-card{width:760px;max-width:96vw;}
.bp-summary{padding:12px 18px;font-size:13px;color:#4a5568;border-bottom:1px solid #edf2f7;line-height:1.7;}
.bp-date{color:#a0aec0;font-size:12px;white-space:nowrap;}
.bp-table-wrap .pa-table th,.bp-table-wrap .pa-table td{font-size:12.5px;}

/* ===== 版本更新入口红点与弹窗 ===== */
.update-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#e53e3e;margin-left:4px;vertical-align:middle;}
.update-tip{color:#e53e3e;font-weight:700;font-size:12px;white-space:nowrap;}
.upd-card{width:480px;max-width:94vw;}
.upd-body{padding:14px 18px;}
.upd-line{font-size:13px;color:#2d3748;margin-bottom:6px;}
.upd-sub{font-size:13px;font-weight:600;color:#4a5568;margin:10px 0 4px;}
.upd-filelist{margin:0;padding-left:18px;font-size:12.5px;color:#4a5568;max-height:180px;overflow:auto;line-height:1.9;}
.upd-new{color:#2f855a;}
.upd-msg{margin-top:10px;font-size:13px;color:#9c4221;min-height:18px;white-space:pre-wrap;}

/* ===== 打印：只输出当前主内容，隐藏侧边栏与操作控件，横向 A4 ===== */
@page { size:A4 landscape; margin:10mm; }
@media print{
  body.app-layout{background:#fff !important;display:block !important;min-height:auto !important;}
  .sidebar,.switch-block,.topbar .right,.recon-action,.modal-mask{display:none !important;}
  .main{flex:none;min-width:0;width:100%;}
  .content{padding:0;}
  .topbar{box-shadow:none;height:auto;padding:4px 0;margin-bottom:8px;}
  .cond-panel,.table-card,.recon-balbar{box-shadow:none !important;}
  .panel{display:none !important;}
  .panel.active{display:block !important;}
  .recon-grid{grid-template-columns:1fr 1fr;gap:12px;}
  a{text-decoration:none;}
  *{-webkit-print-color-adjust:exact !important;print-color-adjust:exact !important;}
}

/* 工资发放：批量预览与明细 */
.pl-preview-wrap{border-top:1px solid #edf2f7;margin-top:8px;padding-top:8px;}
.pl-actual-input{width:96px;height:28px;padding:2px 6px;text-align:right;border:1px solid #cbd5e0;border-radius:4px;font-size:13px;background:#fff;}
.pl-row-paid{color:#718096;background:#f7fafc;}
.pl-row-paid .pl-actual-input{background:#edf2f7;color:#718096;}
.pl-badge{display:inline-block;padding:1px 8px;border-radius:10px;font-size:12px;white-space:nowrap;}
.pl-badge.new{background:#e6fffa;color:#234e52;}
.pl-badge.paid{background:#edf2f7;color:#718096;}
.pl-preview-foot{display:flex;gap:16px;flex-wrap:wrap;padding:8px 8px 2px;font-size:13px;color:#2d3748;}
.pl-edit-card{max-width:480px;}

/* ===== 用户管理（仅 super） ===== */
.u-form{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:flex-end;padding:10px 4px;}
.u-field{display:flex;flex-direction:column;gap:5px;min-width:190px;}
.u-field label{font-size:12.5px;color:#4a5568;}
.u-field label i{color:#c53030;font-style:normal;margin-left:2px;}
.u-field input,.u-field select,.u-sel{height:32px;padding:0 10px;border:1px solid #cbd5e0;border-radius:6px;background:#fff;font-size:13px;}
.u-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;}
.u-role-tag{display:inline-block;padding:1px 10px;border-radius:11px;font-size:12px;white-space:nowrap;}
.u-role-tag.super{background:#fed7d7;color:#9b2c2c;}
.u-role-tag.admin{background:#bee3f8;color:#2a4365;}
.u-role-tag.user{background:#edf2f7;color:#4a5568;}
.u-sql{margin-top:12px;}
.u-sql textarea{width:100%;min-height:88px;box-sizing:border-box;font-family:Consolas,Menlo,monospace;font-size:12px;line-height:1.5;padding:8px;border:1px solid #e2e8f0;border-radius:6px;background:#f7fafc;color:#2d3748;}
.u-msg{font-size:12.5px;color:#2c5282;}
.u-msg.err{color:#c53030;}
#userTbody td{vertical-align:middle;padding:9px 12px;}
.u-banner{padding:9px 14px;border-radius:8px;font-size:13px;margin-bottom:12px;line-height:1.5;}
.u-banner.ok{background:#f0fff4;border:1px solid #9ae6b4;color:#22543d;}
.u-banner.err{background:#fff5f5;border:1px solid #feb2b2;color:#9b2c2c;}
.u-list-head{display:flex;justify-content:space-between;align-items:center;padding:6px 4px 10px;font-weight:600;color:#2d3748;font-size:14px;}
.u-refresh{height:28px;padding:0 12px;font-size:12.5px;}
.u-row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
tr.vendor-highlight td{background:#fff8e6 !important;}
tr.vendor-highlight td:first-child{font-weight:600;color:#975a16;}
.vendor-new-tag{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:10px;background:#f6ad55;color:#fff;font-size:11px;font-weight:600;white-space:nowrap;}
.u-self-lock{color:#718096;font-size:12px;}
.perm-tag{display:inline-block;padding:1px 10px;border-radius:11px;font-size:12px;white-space:nowrap;}
.perm-tag.on{background:#f0fff4;border:1px solid #9ae6b4;color:#22543d;}
.perm-tag.off{background:#fff5f5;border:1px solid #feb2b2;color:#9b2c2c;}
.btn-perm-on{background:#c6f6d5;color:#22543d;border:1px solid #9ae6b4;}
.btn-perm-off{background:#fed7d7;color:#9b2c2c;border:1px solid #feb2b2;}
.btn[disabled],.u-sel:disabled{opacity:.55;cursor:not-allowed;}
.u-sql-fallback{margin-top:12px;padding:10px 12px;border:1px dashed #cbd5e0;border-radius:8px;background:#f7fafc;font-size:12.5px;}
.u-sql-fallback summary{cursor:pointer;color:#4a5568;}
.u-sql-fallback textarea{width:100%;box-sizing:border-box;min-height:96px;margin-top:8px;padding:8px;border:1px solid #cbd5e0;border-radius:6px;font-family:Consolas,Menlo,monospace;font-size:12px;line-height:1.5;resize:vertical;background:#fff;color:#2d3748;}
/* 删除入口仅 super 可见：admin/user 隐藏真实库记录删除按钮（后端 requireDelete 仍强制拦截，前端仅体验）；本地草稿/AI临时行删除不受影响 */
body.role-admin .link-del,body.role-user .link-del{display:none !important;}

/* ===== 顶部设置入口 ===== */
.lock-set-btn{display:inline-flex;align-items:center;gap:5px;background:#edf2f7;padding:4px 11px;border-radius:12px;color:#2c5282 !important;font-size:13px;}
.lock-set-btn:hover{background:#e2e8f0;}
.lock-set-btn .ic{width:14px;height:14px;color:#2c5282;}

/* ===== 锁屏设置弹窗 ===== */
.set-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 4px;}
.set-switch{display:flex;align-items:center;gap:8px;font-size:13.5px;color:#2d3748;cursor:pointer;}
.set-switch input{width:15px;height:15px;cursor:pointer;}
.set-hint{font-size:12px;color:#718096;line-height:1.6;padding:4px 14px 8px;}

/* ===== 全屏锁屏遮罩（半透明压盖，仅当前账号密码解锁；层级高于普通弹窗） ===== */
.lock-mask{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;background:rgba(18,28,48,.42);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);}
.lock-card{width:340px;max-width:92vw;background:rgba(255,255,255,.96);border-radius:12px;box-shadow:0 18px 56px rgba(10,20,40,.38);padding:26px 26px 16px;text-align:center;box-sizing:border-box;}
.lock-icon{width:46px;height:46px;margin:0 auto 10px;color:#2c5282;}
.lock-icon svg{width:46px;height:46px;}
.lock-title{font-size:17px;font-weight:700;color:#2d3748;margin-bottom:6px;}
.lock-user{font-size:13px;color:#718096;margin-bottom:14px;}
.lock-user b{color:#2d3748;}
.lock-card .reg-del-field{display:block;margin:10px 0;}
.lock-card .reg-del-field span{display:block;font-size:12.5px;color:#4a5568;margin-bottom:5px;text-align:left;}
.lock-card .reg-del-field input{width:100%;box-sizing:border-box;height:34px;padding:0 10px;border:1px solid #cbd5e0;border-radius:6px;font-size:14px;}
.lock-card .reg-del-err{color:#c53030;font-size:12.5px;min-height:18px;text-align:left;margin-top:6px;}
.lock-foot{justify-content:center;margin-top:12px;}
.lock-foot .btn{min-width:124px;}
@media print{ #lockScreen,.lock-mask{display:none !important;} }

/* ===== 采购对账 A4 竖向报表弹窗：采购汇总在上、结算汇总在下、底部货款余额、右下角对账日期；竖向打印样式由“打印”按钮临时注入，不影响其它页面横向打印 ===== */
.report-overlay{position:fixed;inset:0;z-index:2400;background:rgba(15,30,55,.55);display:flex;flex-direction:column;}
.report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;background:#1e3a5f;color:#fff;flex:0 0 auto;}
.rt-title{font-size:14px;font-weight:700;}
.rt-actions{display:flex;gap:8px;}
.report-scroll{flex:1;overflow:auto;padding:18px;display:flex;justify-content:center;align-items:flex-start;}
.report-sheet{position:relative;width:210mm;min-height:297mm;background:#fff;color:#1a202c;padding:15mm 14mm;box-shadow:0 12px 36px rgba(0,0,0,.32);font-size:12.5px;box-sizing:border-box;}
.rs-head{text-align:center;margin-bottom:10px;}
.rs-unit{font-size:12.5px;color:#4a5568;}
.rs-title{font-size:21px;font-weight:800;letter-spacing:3px;margin:6px 0 8px;}
.rs-sub{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:12px;color:#2d3748;border-bottom:1px solid #cbd5e0;padding-bottom:8px;}
.rs-sec-title{font-size:13px;font-weight:700;color:#2c5282;margin:13px 0 6px;padding-left:8px;border-left:3px solid #2c5282;}
.rs-table{width:100%;border-collapse:collapse;font-size:12.5px;}
.rs-table th,.rs-table td{border:1px solid #718096;padding:5px 8px;}
.rs-table thead th{background:#edf2f7;color:#2d3748;font-weight:600;text-align:left;}
.rs-table th.num,.rs-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
.rs-table th.c-seq,.rs-table td.c-seq{width:42px;text-align:center;}
.rs-table .rs-empty{text-align:center;color:#a0aec0;}
.rs-subtotal td{font-weight:700;background:#f7fafc;}
.rs-summary td{padding:7px 10px;}
.rs-balance-pos{color:#2b6cb0;font-weight:700;}
.rs-balance-neg{color:#9b2c2c;font-weight:700;}
.rs-balance-zero{color:#2f855a;font-weight:700;}
.rs-foot{margin-top:20px;display:flex;justify-content:flex-end;font-size:12.5px;color:#2d3748;}

/* ===== 材料计划表：商务黑白灰（仅 .material-bw / .m-* / .material-table 作用域，不影响采购对账报表配色与对齐） ===== */
.material-bw{color:#1a1a1a;background:#fff;}
.material-bw .m-proj{font-size:13px;color:#333;text-align:center;margin-bottom:4px;}
.material-bw .m-projrule{border-top:1px solid #8a8a8a;margin-bottom:10px;}
.material-bw .m-title{font-size:21px;font-weight:800;letter-spacing:3px;text-align:center;color:#000;margin:2px 0 8px;}
.material-bw .m-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:12px;color:#222;margin-bottom:8px;}
.material-table{width:100%;border-collapse:collapse;font-size:12.5px;color:#000;}
.material-table th,.material-table td{border:1px solid #8a8a8a;padding:6px 8px;}
.material-table thead th{background:#e8e8e8;color:#000;font-weight:700;text-align:center;}
.material-table td.c-seq{text-align:center;width:44px;}
.material-table td.ml{text-align:left;}
.material-table td.mc{text-align:center;white-space:nowrap;}
.material-table .m-empty{text-align:center;color:#888;}
.material-table tfoot td{background:#f0f0f0;color:#000;font-weight:700;}
.material-table tfoot td.ml{text-align:left;}
/* 材料计划明细表：固定布局，名称/规格/备注自动换行不溢出 A4 页宽（仅 mp-table，不影响考勤报表列宽） */
.material-table.mp-table{table-layout:fixed;}
.material-table.mp-table td{vertical-align:top;}
.material-table.mp-table thead th{white-space:nowrap;}
.material-table.mp-table td.ml{white-space:normal;overflow-wrap:break-word;word-break:break-all;line-height:1.45;}
.material-table.mp-table th:nth-child(1),.material-table.mp-table td.c-seq{width:6%;}
.material-table.mp-table th:nth-child(2){width:22%;}
.material-table.mp-table th:nth-child(3){width:19%;}
.material-table.mp-table th:nth-child(4){width:8%;}
.material-table.mp-table th:nth-child(5){width:10%;}
.material-table.mp-table th:nth-child(6){width:35%;}
/* 电缆计划报表：9 列（序号/商品名称/规格型号/单位/合同单价/当日单价/数量/金额/备注），仅列宽调整，版式与普通计划一致 */
.material-table.mp-table-cable th:nth-child(1),.material-table.mp-table-cable td.c-seq{width:7%;}
.material-table.mp-table-cable th:nth-child(2){width:9%;}
.material-table.mp-table-cable th:nth-child(3){width:20%;}
.material-table.mp-table-cable th:nth-child(4){width:6%;}
.material-table.mp-table-cable th:nth-child(5){width:9%;}
.material-table.mp-table-cable th:nth-child(6){width:9%;}
.material-table.mp-table-cable th:nth-child(7){width:8%;}
.material-table.mp-table-cable th:nth-child(8){width:11%;}
.material-table.mp-table-cable th:nth-child(9){width:21%;}
/* 电缆报表：表头一行不换行并居中；规格型号内容靠左，其余居中；规格型号/备注一行不折行 */
.material-table.mp-table-cable thead th{white-space:nowrap;text-align:center;}
.material-table.mp-table-cable td{text-align:center;vertical-align:middle;}
.material-table.mp-table-cable td.ml{text-align:center;}
.material-table.mp-table-cable td.num{text-align:center;}
.material-table.mp-table-cable td:nth-child(3){text-align:left;white-space:nowrap;}
.material-table.mp-table-cable td:nth-child(9){white-space:nowrap;}
.material-table.mp-table-cable th:nth-child(2),.material-table.mp-table-cable td:nth-child(2){text-align:center;}
.material-table.mp-table-cable tfoot td.ml{text-align:center;}
.material-bw .m-foot{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:#333;margin-top:14px;}
/* 考勤报表多页：每页一个块，打印自动断页、续页重复表头；落款绝对定位沉到每页可打印区右下角 */
.report-page{position:relative;background:#fff;margin-bottom:16px;page-break-after:always;break-after:page;min-height:1040px;}
.report-page.last{page-break-after:auto;break-after:auto;margin-bottom:0;}
.report-page .material-table td{padding:5px 8px;}
.report-page .material-table thead th{padding:6px 8px;}
.report-page .material-bw .m-foot{margin-top:10px;}
.m-cont{font-size:13px;font-weight:700;color:#333;text-align:center;letter-spacing:2px;margin:0 0 6px;}
.m-source{position:absolute;right:8mm;bottom:8mm;font-size:11px;color:#666;text-align:right;white-space:nowrap;}
@media print{.report-page{margin-bottom:0;min-height:273mm;}}

/* 合同附件：登记选择行 + 只读预览弹窗（iframe 原生渲染 PDF/图片，无编辑能力） */
.cm-file-pick{padding:10px 14px 2px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.cm-file-pick-body{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;}
.cm-file-name{font-size:12px;color:#718096;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.cm-file-mask{z-index:2300;padding:14px;}
.cm-file-card{width:min(1680px,98vw);height:min(94vh,1200px);max-height:96vh;background:#fff;border-radius:8px;box-shadow:0 16px 48px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden;}
.cm-file-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;border-bottom:1px solid #edf2f7;background:#f7fafc;flex:0 0 auto;}
.cm-file-bar-title{font-size:14px;font-weight:700;color:#1a202c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cm-file-card iframe{flex:1 1 auto;min-height:0;border:0;width:100%;background:#525252;}

/* ===== 全站统一居中提示弹窗（错误/警告/成功/信息，确定或回车关闭，置顶） ===== */
.app-alert-mask{position:fixed;inset:0;z-index:4000;background:rgba(15,30,55,.55);display:none;align-items:center;justify-content:center;padding:18px;}
.app-alert-card{width:min(420px,92vw);background:#fff;border-radius:10px;box-shadow:0 18px 56px rgba(0,0,0,.34);overflow:hidden;animation:appAlertIn .16s ease;}
@keyframes appAlertIn{from{opacity:0;transform:translateY(-8px) scale(.97);}to{opacity:1;transform:none;}}
.app-alert-head{display:flex;align-items:center;gap:10px;padding:16px 18px 6px;font-size:15px;font-weight:700;color:#1a202c;}
.app-alert-dot{width:10px;height:10px;border-radius:50%;background:#2b6cb0;flex:0 0 auto;}
.app-alert-mask.info .app-alert-dot{background:#2b6cb0;}
.app-alert-mask.warn .app-alert-dot{background:#c05621;}
.app-alert-mask.err  .app-alert-dot{background:#c53030;}
.app-alert-mask.ok   .app-alert-dot{background:#2f855a;}
.app-alert-body{padding:8px 18px 12px;font-size:14px;line-height:1.65;color:#2d3748;white-space:pre-wrap;word-break:break-word;max-height:56vh;overflow-y:auto;}
.app-alert-foot{padding:4px 18px 16px;text-align:right;}
.app-alert-foot .btn{min-width:96px;height:34px;}
/* 全站轻提示：顶部居中自动消失，成功/普通信息用，不遮罩不打断操作 */
.app-toast{position:fixed;top:36px;left:50%;transform:translateX(-50%) translateY(-12px);z-index:4100;background:rgba(26,32,44,.93);color:#fff;padding:12px 18px;border-radius:10px;font-size:14px;line-height:1.5;display:none;align-items:center;gap:10px;max-width:84vw;box-shadow:0 10px 30px rgba(0,0,0,.25);}
.app-toast.show{display:flex;animation:appToastIn .18s ease;}
.app-toast-dot{width:9px;height:9px;border-radius:50%;background:#2f855a;flex:0 0 auto;}
.app-toast.info .app-toast-dot{background:#63b3ed;}
@keyframes appToastIn{from{opacity:0;transform:translateX(-50%) translateY(-12px);}to{opacity:1;transform:translateX(-50%) translateY(0);}}
/* 登录/注册页内联文字提示条统一改弹窗后隐藏原条，避免小字被忽略 */
.login-box #msg,.login-box #regMsg{display:none !important;}
