/* ================= 全局视觉统一（在既有样式之后、移动端之前加载） =================
   只做「同一套尺度」的收敛：圆角、字号、留白、阴影、交互反馈。
   页面专属样式（表格宽窄、表单栅格）仍在各自 page-*.css 里，不在此覆盖布局。
*/
:root {
  --r-card: 12px;
  --r-ctl: 8px;
  --sh-card: 0 1px 2px rgba(28, 38, 62, .04), 0 8px 24px -18px rgba(28, 38, 62, .35);
  --sh-pop: 0 18px 48px -18px rgba(24, 32, 54, .35);
  --ink-2: #474747;
  --ink-3: #6b7688;
}

/* ---- 卡片：统一圆角与阴影，去掉显得生硬的描边 ---- */
.card {
  border-radius: var(--r-card);
  border-color: #eef1f7;
  box-shadow: var(--sh-card);
}

/* ---- 页面标题：与内容留白统一 ---- */
h2.pt { margin-bottom: 16px; letter-spacing: .2px; }
h3 { letter-spacing: .1px; }


/* ---- 表格勾选框：已并入 10-components.css 的「全站统一复选框」（白底红框 1px）---- */

/* ---- 页面标题 ---- */
h2.pt { font-weight: var(--fw-b); color: var(--ink); }

/* ---- 表格归一 + 块状看板行：行渲染成一块块白色圆角块（灰底衬托），
   保留表格结构与表头拖动列；字体整体调浅一档 ---- */
.tb,
.tb.paylist_tb,
.tb.inc_tb,
.pinvrec .tb,
#cnbody .tb,
#ptb table.tb,
#ctb table.tb,
#cabb table.tb,
#cttb table.tb {
  font-size: 12px;
  border-collapse: separate;
  border-spacing: 0 10px;
}
/* 表头：浅蓝紫圆角色带（#d1d9fa / #323e58，与丰收系统一致），带高约 31px */
.tb th,
.tb.paylist_tb th,
.tb.inc_tb th,
.pinvrec .tb th,
#cnbody .tb th,
#ptb table.tb th,
#ctb table.tb th,
#cabb table.tb th,
#cttb table.tb th {
  background: var(--th-bg);
  color: var(--th-ink);
  font-size: var(--fs-sm);
  font-weight: var(--fw-m);
  letter-spacing: .2px;
  padding: 7px 12px;
  border-bottom: 0;
  vertical-align: middle;
}
/* 所有列表一律直角：表头两端不做圆角 */
.tb th:first-child { border-radius: 0; }
.tb th:last-child { border-radius: 0; }
.tb thead tr th { box-shadow: none; }
/* 表头保持一条干净的整色带：整带同色、不响应 hover、长按不选中文字（拖动仍保留，
   拖动时用浮起卡片 + 插入竖线提示，源列只淡淡加深一档，不出现杂色块） */
.tb th, .tb thead th:hover { background: var(--th-bg) !important; color: var(--th-ink) !important; }
.tb th.coldrag { background: #c3cdf0 !important; color: var(--th-ink) !important; }
.tb th { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* 表头勾选框已并入全站统一复选框（10-components.css） */
/* 行：白块 + 轻阴影 + 圆角，行与行之间由 border-spacing 拉开 */
.tb td,
.tb.paylist_tb td,
.tb.inc_tb td,
.pinvrec .tb td,
#cnbody .tb td,
#ptb table.tb td,
#ctb table.tb td,
#cabb table.tb td,
#cttb table.tb td {
  padding: 8px 12px;
  background: #fff;
  color: #5a6377;   /* 列表正文 = 表头统一色号 */
  font-size: 12px;
  font-weight: var(--fw-r);
  line-height: var(--lh-base);
  vertical-align: middle;
  border-bottom: 0;
}
/* 行块同样直角（不做左右圆角），与参考列表一致 */
.tb tbody td:first-child { border-radius: 0; }
.tb tbody td:last-child { border-radius: 0; }
.tb tbody tr:first-child td:first-child { border-radius: 0; }
.tb tbody tr:first-child td:last-child { border-radius: 0; }
/* 宽表（列多）左右留白略收，行高与字号保持一致，表格始终撑满内容区 */
#ptb table.tb td, #ctb table.tb td,
#cabb table.tb td, #cttb table.tb td { padding: 8px 10px; }
/* 发票记录等嵌在小面板里的紧凑表 */
.pinvrec .tb td, .pinvrec .tb th { padding: 6px 9px; }
/* 行为对齐丰收系统：鼠标划过不高亮整行（行块保持白色），只有勾选选中的行
   才整块染成参考色 #e2f4ff；行间空隙不着色，圆角随块 */
.tb tbody tr:hover td { background: #e2f4ff; }   /* 光标悬停 = 选中同色 */
.tb tbody tr.selrow td,
#ptb table.tb tbody tr.selrow td,
#ctb table.tb tbody tr.selrow td,
#cabb table.tb tbody tr.selrow td,
#cttb table.tb tbody tr.selrow td,
#cnbody .tb tbody tr.selrow td { background: #e2f4ff !important; }
.tb tbody tr.selrow:hover td,
#ptb table.tb tbody tr.selrow:hover td,
#ctb table.tb tbody tr.selrow:hover td,
#cabb table.tb tbody tr.selrow:hover td,
#cttb table.tb tbody tr.selrow:hover td { background: #e2f4ff !important; }
.tb td b, .tb td strong { font-weight: var(--fw-m); color: #5a6377; }   /* 加粗列与正文同色，靠字重区分 */
.tb td .pill,
.tb td .pill.g, .tb td .pill.r, .tb td .pill.gr, .tb td .pill.b, .tb td .pill.o {
  background: transparent; border: 0; padding: 0; border-radius: 0;
  font-size: 12px; font-weight: var(--fw-r); color: #5a6377;
}
.tb .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 表格内的标签块（点位名/柜机系统等）也按参考图收敛成纯文字，避免一行里出现多种色块 */
.tb td .atag, .tb td .atag.sys, .tb td .atag.one {
  background: transparent; border: 0; padding: 0; border-radius: 0;
  color: #5a6377; font-size: 12px; font-weight: var(--fw-r);
}
.tb td .atag.more { background: #eef2fa; color: #4a6ea8; font-weight: var(--fw-m); padding: 1px 6px; border-radius: 5px; }
/* 列表容器对齐丰收系统：整块浅灰面板，无白卡片夹层；
   表头带下移 8px 与首行无缝衔接（border-spacing 的纵向间隙被带子盖住） */
.boardwrap { background: transparent; padding: 0; margin-top: 2px; width: 100%; }
.boardwrap > table.tb { width: 100%; }
.tb { width: 100%; }
.boardwrap table.tb th { position: relative; top: 10px; }
.card:has(> .boardwrap),
.card:has(> div > .boardwrap) {
  background: var(--bg);
  border: 0;
  box-shadow: none;
  border-radius: 12px;
  padding: 4px 14px 14px;
}
/* 面板内的工具行/统计行自带左右留白 */
.card:has(> .boardwrap) > *:not(.boardwrap),
.card:has(> div > .boardwrap) > *:not(.boardwrap) { padding-left: 0; padding-right: 0; }


/* ---- 排版归一：标题 / 标签 / 详情字段 / 手机卡片 共用一套字号与字重 ---- */
h2.pt { font-size: var(--fs-xl); font-weight: var(--fw-b); color: var(--ink); }
.df > h4, #cnbody .df > h4 {
  font-size: var(--fs-lg); font-weight: var(--fw-b); color: var(--ink); letter-spacing: .1px;
}
.fi label, .ctmore-lb { font-size: var(--fs-xs); color: var(--sub); font-weight: var(--fw-r); }
.fi .ro { font-size: var(--fs-md); color: var(--ink); }
.agrid .kv span { font-size: var(--fs-xs); color: var(--sub); }
.agrid .kv b, .pstep b, .pstep.on b { font-weight: var(--fw-m); color: var(--ink); }
.poiit b { font-size: var(--fs-sm); font-weight: var(--fw-m); }
.crumb, .uchip, .uchip a { font-size: var(--fs-sm); }
.btn.pri, .paytool .cnt .amt, .paychip .amt, .paychip b { font-weight: var(--fw-m); }
/* 表格悬停色各页面统一 */
.tb.paylist_tb tbody tr:hover td,
.tb.inc_tb tbody tr:hover td,
.pinvrec .tb tbody tr:hover td,
#cnbody .tb tbody tr:hover td,
#ptb table.tb tbody tr:hover td,
#ctb table.tb tbody tr:hover td,
#cabb table.tb tbody tr:hover td,
#cttb table.tb tbody tr:hover td { background: #e2f4ff; }   /* 各页 hover 统一 = 选中同色 */

/* ---- 表单控件：圆角统一 8px + 聚焦细光环 ---- */
.inp, select.sel, textarea.inp { border-radius: var(--r-ctl); }
.inp:focus, select.sel:focus, textarea.inp:focus {
  border-color: #b9c9f5;
  box-shadow: 0 0 0 3px rgba(59, 110, 246, .10);
  background: #fff;
}

/* ---- 按钮：统一尺寸 / 圆角 / 层次 ----
   次要＝白底细描边；主要＝蓝色渐变＋投影；危险＝红字；小号＝26px（表格行内、弹窗底部）
   全站统一 32px 高、8px 圆角、14px 图标，不再出现「一半胶囊一半方块」 */
.btn {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-ctl);
  border-color: #e3e9f3;
  background: #fff;
  color: #46536b;
  font-weight: 500;
  gap: 6px;
  line-height: 1;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .06s;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn:hover {
  background: #f7f9fe;
  border-color: #c8d8f8;
  color: var(--org);
  box-shadow: 0 3px 10px -4px rgba(59, 110, 246, .22);
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59, 110, 246, .18); }
.btn.pri {
  background: linear-gradient(180deg, #729af9, #5f86f7);
  border-color: #5f86f7;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px -6px rgba(95, 134, 247, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn.pri:hover {
  background: linear-gradient(180deg, #5f86f7, #4a76f2);
  border-color: #4a76f2;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(95, 134, 247, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn.sm { height: 26px; padding: 0 10px; font-size: 11.8px; border-radius: 7px; gap: 5px; }
.btn.sm svg { width: 12.5px; height: 12.5px; }
/* 与输入框同排的「查询 / 检索」按钮：跟输入框同高（34px），避免一高一矮错位 */
.inp + .btn, select + .btn, select.sel + .btn { height: 34px; border-radius: var(--r-ctl); padding: 0 18px; font-size: 12.5px; }
/* 弹窗底部操作条：32px 高，比表格行内的小号按钮更有分量 */
.mf .btn { height: 32px; padding: 0 18px; }
.btn.danger { color: var(--red); border-color: #f0d6d7; }
.btn.danger:hover { background: #fdf3f3; border-color: #e9b6b8; color: var(--red); box-shadow: 0 3px 10px -4px rgba(229, 72, 77, .22); }
.btn[disabled], .btn.dis { opacity: .5; box-shadow: none; transform: none; cursor: default; pointer-events: none; }

/* ---- 空状态：统一留白与语气 ---- */
.empty {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.9;
}

/* ---- 标签胶囊：高度更稳 ---- */
.pill { line-height: 19px; letter-spacing: .2px; }

/* ---- 弹层：阴影更柔和 ---- */
.mod .mbox, .mbox { box-shadow: var(--sh-pop); }

/* ---- 滚动条：细一点，避免表格横向滚动条突兀 ---- */
.card::-webkit-scrollbar, .mod .mbox::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 8px; height: 8px;
}
.card::-webkit-scrollbar-thumb, .mod .mbox::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
  background: #d8dee9; border-radius: 8px;
}
.card::-webkit-scrollbar-track { background: transparent; }

/* ---- 顶部栏：与卡片阴影同一层次 ---- */
.top { /* 与页面背景融为一体，无分隔线（2026-11-18） */ }

/* ---- 票据台账（收款管理）---- */
#recbody .tb td { vertical-align: middle; }
#recbody .pill { background: #eef2fe; color: #4a63c8; }

/* ===== 全站「可点击蓝字」统一调浅一档 =====
   只动可点击的文字（链接 / 单号 / 附件名 / 日历日期等），不动按钮蓝底、金额强调、状态标签；
   hover 时恢复原深蓝 #3b6ef6 作为可点反馈 */
:root { --link: #0077ff; }   /* 可点击蓝字：与丰收列表实测 (0,119,255) 一致 */

/* 静态就显示为蓝色的可点文字 */
.tb .lnk,
.tb .payno,
.tb.paylist_tb a.payno,
.ops a,
.fl .f a,
.pcmeta .payno,
.dtp-ft a,
.dtp-days button.td,
.payatt-stat a,
.pasl2-all { color: var(--link); }

/* 原本 hover 才变蓝的可点文字：改为浅蓝，不再突然跳深 */
.btn:hover,
.ctbtn:hover,
.ctbtn.blu:hover,
.ctmenu a:hover,
.crumb a:hover,
.payseg a:hover,
.payatt .pfinfo a:hover,
.inc-fchip a:hover,
.term-refresh:hover,
.copyico:hover { color: var(--link); }

/* 可点蓝字的 hover：稍深一点 + 下划线，保证「能点」的反馈仍然清楚 */
.tb .lnk:hover,
.tb .payno:hover,
.tb.paylist_tb a.payno:hover,
.ops a:hover,
.fl .f a:hover,
.pcmeta .payno:hover,
.dtp-ft a:hover,
.pasl2-all:hover { color: #3b6ef6; }

/* 其余文字型可点蓝控件一并调浅（页码 / 历史展开 / 日历导航；合同操作下拉已在页面级定为靛蓝胶囊） */
details.hist summary,
details.hist[open] summary { color: var(--link); }
.dtp-nav:hover,
.dtp-mon button:hover,
#bill_zv:hover { color: var(--link); }

/* ===== 全站直角（M294）：看板卡片、弹窗、表单组、文本框/下拉/文本域一律直角 ===== */
.card, .df, .mod .mbox, .dashk>div, .uiask-box, .uchip.topchip, .entpick,
.inp, select.sel, textarea.inp, .pgn select, .pgn .inp,
input[type=text], input[type=number], input[type=password], input[type=date],
input[type=search], input[type=tel], select, textarea { border-radius: 0 !important; }

/* 底栏/弹窗橙胶囊、.btn.cabadd → 62-ui-kit.css */

/* ===== M310 顶栏改版（参考丰收「场地中台」）=====
   桌面端顶栏常驻（52px）：面包屑居左、页签居中、账号信息居右；
   页内吸顶页头整体下移到顶栏下方；页签已上移的页面去掉吸顶头里的分隔线 */
@media (min-width:901px){
  .cthead,.sthead,.paystick{top:52px}
}
/* 页签上移顶栏后吸顶头只剩工具行：去分隔线 / 收紧留白已并入 41-page-contract.css
   （.cthead .ctbar,.sthead .ctbar,.paystick .sticktool 统一 margin-top:2px;padding:2px 14px 4px） */
/* 手机端顶栏页签：不再绝对居中（右侧悬浮账号信息会压住页签），改为靠左排布、可横向滑动；
   右侧预留账号信息悬浮区，页签汇总在窄屏隐藏（列表内已有同口径汇总） */
@media (max-width:900px){
  .toptabs{position:static;transform:none;flex:1;min-width:0;justify-content:flex-start;
    gap:20px;max-width:none;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    /* 手机端账号区：头像 + 修改密码 + 退出登录都保留（用户名在窄屏由 90-mobile.css 隐藏），
       用 margin-right 把页签滚动区缩到悬浮账号区左侧（padding 无法防止滚动起点重叠），
       JS 渲染时按账号区真实宽度动态再校准 */
    margin-right:210px}
  .toptabs::-webkit-scrollbar{display:none}
  .toptabs a{font-size:12.5px;padding:6px 0}
  .toptabs a.on::after{width:26px;bottom:0}
  .toptabs .paytabs-sum{display:none}
}
/* 顶栏页签角标（付款审核/已付完结待办数）：沿用原页签角标呈现——橙色小圆点悬在文字右上角 */
.toptabs .tab-badge{position:absolute;top:-5px;right:-11px;display:inline-flex;align-items:center;justify-content:center;
  min-width:16px;height:16px;padding:0 4px;border-radius:9px;z-index:1;
  background:#fc9930;color:#fff;font-size:10.5px;font-weight:400;line-height:1;letter-spacing:0;
  box-shadow:0 0 0 2px #fff,0 1px 3px rgba(252,153,48,.35)}

/* 按钮不加粗清单 → 62-ui-kit.css 第 8 节 */

/* ===== 工具行与表格间距统一收窄（参考丰收：筛选行紧贴表格） ===== */
.ctbar{margin-bottom:4px}
