/* ===== 铁人后台管理系统 样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 14px; color: #333; background: #f0f2f5; }
a { text-decoration: none; color: #2b7de9; }
code { background: #f0f0f0; padding: 1px 6px; border-radius: 3px; font-size: 12px; color: #c7254e; }

/* ===== 登录页 ===== */
.login-body { background: linear-gradient(135deg, #1a2a4a 0%, #2b5876 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; padding: 40px 45px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.3); width: 380px; }
.login-box h1 { font-size: 22px; text-align: center; color: #1a2a4a; margin-bottom: 6px; }
.login-sub { text-align: center; color: #999; font-size: 13px; margin-bottom: 25px; }
.login-tip { text-align: center; color: #aaa; font-size: 12px; margin-top: 18px; }
.login-tip a { color: #2b7de9; }

/* ===== 表单 ===== */
.form-item { margin-bottom: 16px; }
.form-item label { display: block; margin-bottom: 6px; color: #555; font-weight: bold; }
.form-item input[type=text], .form-item input[type=password], .form-item select, .toolbar input {
    width: 100%; padding: 9px 12px; border: 1px solid #dcdfe6; border-radius: 6px; font-size: 14px; outline: none; background: #fff;
}
.form-item input:focus, .toolbar input:focus { border-color: #2b7de9; box-shadow: 0 0 0 3px rgba(43,125,233,.15); }
.form-item .hint, .hint { color: #999; font-size: 12px; margin-top: 5px; }
.radio-inline { display: inline-flex; align-items: center; gap: 4px; margin-right: 18px; font-weight: normal !important; cursor: pointer; }
.form-card { background: #fff; border-radius: 8px; padding: 25px 30px; max-width: 560px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.form-actions { margin-top: 22px; border-top: 1px solid #eee; padding-top: 18px; }
.form-actions .btn { margin-right: 10px; }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 8px 18px; background: #fff; border: 1px solid #dcdfe6; border-radius: 6px; font-size: 14px; cursor: pointer; color: #333; }
.btn:hover { border-color: #2b7de9; color: #2b7de9; }
.btn-primary { background: #2b7de9; border-color: #2b7de9; color: #fff !important; }
.btn-primary:hover { background: #1f6fd0; }
.btn-danger { background: #fff; border-color: #e05b5b; color: #e05b5b; }
.btn-danger:hover { background: #e05b5b; color: #fff; }
.btn-warn { color: #d97706; border-color: #d97706; }
.btn-warn:hover { background: #d97706; color: #fff; }
.btn-ok { color: #059669; border-color: #059669; }
.btn-ok:hover { background: #059669; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 4px; }
.btn-block { width: 100%; padding: 11px; font-size: 16px; }
.inline-form { display: inline-block; }
.inline-form input { width: auto; display: inline-block; }
.inline-form .btn { margin-left: 4px; }

/* ===== 提示 ===== */
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 15px; font-size: 13px; }
.flash-ok { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.flash-err { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ===== 主框架 ===== */
.frame-body { display: flex; flex-direction: column; height: 100vh; }
.topbar { height: 52px; background: #1a2a4a; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex-shrink: 0; }
.topbar-title { font-size: 17px; font-weight: bold; letter-spacing: 1px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-user { font-size: 13px; }
.topbar-link { color: #cfe0ff; font-size: 13px; }
.topbar-link:hover { color: #fff; }
.frame-wrap { display: flex; flex: 1; overflow: hidden; }
.sidebar { width: 200px; background: #24344d; padding: 12px 0; overflow-y: auto; flex-shrink: 0; }
.menu-group { margin-bottom: 6px; }
.menu-group-title { color: #8ba0c4; font-size: 12px; padding: 10px 20px 6px; letter-spacing: 2px; }
.menu-item { display: block; color: #dce6f5; padding: 9px 20px 9px 34px; font-size: 14px; border-left: 3px solid transparent; }
.menu-item:hover { background: #2e4160; color: #fff; border-left-color: #2b7de9; }
.content-area { flex: 1; padding: 0; }
.content-area iframe { width: 100%; height: 100%; border: none; background: #f0f2f5; }

/* ===== 内容页 ===== */
.inner { background: #f0f2f5; }
.inner-wrap { padding: 20px 25px; }
.page-title { font-size: 17px; color: #1a2a4a; margin-bottom: 16px; padding-left: 10px; border-left: 4px solid #2b7de9; }
.welcome-card { background: #fff; border-radius: 10px; padding: 25px 30px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); line-height: 2; }
.welcome-card h2 { color: #1a2a4a; margin-bottom: 8px; }
.muted { color: #888; }
.stat-row { display: flex; gap: 16px; }
.stat-card { flex: 1; background: #fff; border-radius: 10px; padding: 22px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat-num { font-size: 32px; font-weight: bold; color: #2b7de9; }
.stat-label { color: #888; margin-top: 6px; }

/* ===== 表格 ===== */
/* 系统默认表头色(跟随网站顶部顶栏背景 #1a2a4a) */
:root { --th-bg: #1a2a4a; --th-fg: #ffffff; }
/* 表格横向滚动容器(超宽表格用) */
.tbl-scroll { overflow-x: auto; border-radius: 8px; }
.data-table { width: 100%; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-collapse: collapse; }
.data-table th { background: var(--th-bg); color: var(--th-fg); padding: 11px 12px; text-align: center; font-size: 13px; border-bottom: 2px solid #24365a; white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #f0f2f5; font-size: 13px; vertical-align: middle; text-align: center; }
/* 全站表格行交替: 白 + 浅蓝; 悬停浅红 */
.data-table tbody tr:nth-child(odd) td { background: #ffffff; }
.data-table tbody tr:nth-child(even) td { background: #e8f1fa; }
.data-table tbody tr:hover td { background: #fbe9e9 !important; }
/* 考勤状态弹窗内表格: 行高缩减约1/3 */
.bulk-bar .data-table th, .st-box .data-table th { padding: 7px 12px; }
.bulk-bar .data-table td, .st-box .data-table td { padding: 6px 12px; }
.data-table .row-parent td { background: #f2f6fc; }
/* 整表居中对齐 */
.tbl-center th, .tbl-center td { text-align: center !important; }
.tbl-center .op-cell a, .tbl-center .op-cell form { vertical-align: middle; }
.empty-tip { text-align: center; color: #aaa; padding: 30px !important; }
.op-cell { white-space: nowrap; }
.op-cell .inline-form { margin-left: 4px; }
.toolbar { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.toolbar input { width: auto; padding: 8px 12px; }
.perm-table td { padding: 12px; border-bottom: 1px solid #f0f2f5; }
.perm-table .perm-check { width: 30px; }
.perm-table label { cursor: pointer; }

/* ===== 徽章标签 ===== */
.lv-badge { background: #2b7de9; color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 10px; font-weight: normal; }
/* 底薪密文: 小眼睛切换 */
.s-eye { background: none; border: none; cursor: pointer; font-size: 15px; padding: 0 3px; vertical-align: middle; line-height: 1; }
.s-eye:hover { transform: scale(1.15); }
.s-eye.eye-on { background: #e3edf7; border-radius: 5px; color: #2b7de9; }
.col-eye { font-size: 14px; margin-left: 2px; }
/* 表头深蓝底: 眼睛默认白色, 解锁后彩色高亮 */
.col-eye:not(.eye-on) { filter: brightness(0) invert(1); }
.col-eye.eye-on { filter: none; }
.s-dots { letter-spacing: 2px; color: #8a94a6; font-weight: bold; }
/* 绩效 % 后缀(输入框内嵌) */
.pct-box { position: relative; display: inline-flex; width: 50%; }
.pct-box .num-inp { padding-right: 22px; }
.pct-suf { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); color: #8a94a6; font-size: 13px; pointer-events: none; }
/* 金额"元"后缀(罚款/奖金输入框内嵌) */
.unit-box { position: relative; display: inline-flex; }
.unit-box .num-inp { padding-right: 22px; }
.unit-suf { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: #8a94a6; font-size: 13px; pointer-events: none; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 4px; background: #f0f0f0; color: #666; }
/* 表格内徽标换行行距(归属大平台/平台/员工等多标签换行间隔) */
.data-table td .tag { margin: 3px 3px; }
.tag-ok { background: #ecfdf5; color: #059669; }
.tag-err { background: #fef2f2; color: #dc2626; }
.tag-warn { background: #fffbeb; color: #b45309; }
.tag-blue { background: #eff6ff; color: #2b7de9; }
.pending-banner { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; padding: 12px 18px; border-radius: 8px; margin-bottom: 15px; font-size: 14px; }
.pending-banner a { color: #2b7de9; font-weight: bold; }
.sec-title { font-size: 15px; color: #1a2a4a; margin: 18px 0 10px; }
.sec-title:first-of-type { margin-top: 6px; }
.form-card-wide { max-width: 860px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 18px; background: #fafbfc; border: 1px solid #eef0f3; border-radius: 8px; padding: 18px; align-items: flex-start; }
.check-group { background: #fff; border: 1px solid #e4e9f0; border-radius: 10px; padding: 0 0 10px; box-shadow: 0 1px 4px rgba(20,40,80,.06); border-right: none; min-width: 170px; overflow: hidden; }
.check-group-title { font-weight: bold; color: #1a2a4a; font-size: 14px; padding: 9px 14px; margin-bottom: 8px; display: flex; align-items: center; letter-spacing: 1px; }
.group-all-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: bold; width: 100%; }
.group-all-label input { margin: 0; cursor: pointer; width: 16px; height: 16px; accent-color: #2b7de9; }
.group-all-hint { font-size: 11px; font-weight: normal; opacity: .7; margin-left: auto; border: 1px dashed currentColor; border-radius: 4px; padding: 0 5px; }
.group-kids { padding: 10px 14px 0; border-top: 1px solid #dde3ea; margin-top: 2px; }
.check-item { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; font-weight: normal !important; cursor: pointer; white-space: nowrap; font-size: 13px; }
.check-item input { cursor: pointer; }
/* ★ 铁人 2026-11-05：员工勾选项拆「用户名 / 姓名」两列（姓名来自用户管理） */
.ck-un { display: inline-block; min-width: 92px; color: #1a2a4a; font-weight: 600; }
.ck-rn { display: inline-block; min-width: 66px; color: #4b5563; }
/* 平台行: 归属勾选 + 下架勾选(下架框统一右列对齐, 文字与框居中) */
.plat-line { display: flex; align-items: center; min-height: 28px; gap: 0; }
.plat-line .check-item { flex: 1; min-width: 0; }
.plat-line .check-item input,
.delist-lb input { width: 16px; height: 16px; margin: 0; flex: none; cursor: pointer; }
.delist-lb { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 74px; font-size: 12px; color: #b08a8a; cursor: pointer; white-space: nowrap; font-weight: normal; line-height: 1; }
.delist-lb input { accent-color: #e53935; }
.delist-all-lb { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 74px; margin-left: auto; font-size: 12px; cursor: pointer; white-space: nowrap; opacity: .9; line-height: 1; }
.delist-all-lb input { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: #e53935; }
/* ===== 版本流水 ===== */
/* 只读展开行流水文本(带元) */
.flow-ro { color: #0d47a1; font-size: 14px; display: inline-block; min-width: 90px; text-align: right; padding-right: 4px; }
/* 平台行评级标签 */
.plat-rating { font-size: 12px; color: #262626; font-weight: 700; }
.plat-rating .tag { margin-left: 2px; }
/* 悬浮框式评级: 背景=文字色; hover 浮框背景同文字色 */
.rv-pill { position: relative; display: inline-block; }
.rv-pill::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-4px);
    background: var(--pc); color: #fff; font-size: 12px; font-weight: normal; white-space: nowrap;
    padding: 3px 10px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.18);
    opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 60; line-height: 1.5;
}
.rv-pill::before {
    content: ''; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--pc); opacity: 0; transition: opacity .15s ease; z-index: 60;
}
.rv-pill:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.rv-pill:hover::before { opacity: 1; }
.flow-main td { cursor: pointer; }
/* 主行交替色(展开行不参与奇偶计数, 显式 alt 类; 压过全局斑马) */
.flow-main.alt td { background: #e8f1fa !important; }
.flow-main.alt:hover td, .flow-main:hover td { background: #fbe9e9 !important; }
.flow-arrow { display: inline-block; width: 14px; color: #2b7de9; }
.flow-detail td { background: #f6f8fb; }
.flow-rows { max-width: none; width: 100%; }   /* ★ 铁人 2026-10-30：段落区域要延伸到整张数据表格的宽度(原来限死 900px 右侧留白) */
/* ★ 铁人 2026-10-30：子平台按大平台分组 —— 每组一个段落区域(左侧竖条用大平台颜色)，组头显示该大平台总流水 */
.flow-grp { border: 1px solid #e3e8ef; border-left: 3px solid #90a4ae; border-radius: 6px;
    padding: 8px 10px 8px 9px; margin-bottom: 10px; background: #fff; }
.flow-grp:last-child { margin-bottom: 0; }
.flow-grp-head { display: flex; align-items: center; gap: 10px; font-size: 13px;
    padding: 6px 10px; margin: -2px -4px 8px; border-radius: 4px;
    background: #eef2f7;                      /* 兜底色；实际由行内 style 填大平台同色系浅底 */
    white-space: nowrap; }
/* 组头 = 大平台自身的深色实底 + 白字（各自用各自大平台的颜色）✓ */
.flow-grp-head .color-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: #fff !important; }
.flow-grp-head .fg-name { font-weight: 800; color: #fff; font-size: 15px; letter-spacing: .3px; }  /* ★ 2026-10-31 大平台字体加大加粗 */
.flow-grp-head .fg-sum-label { color: rgba(255, 255, 255, .85); }
/* ★ 铁人 2026-10-31：组头两枚胶囊 —— 与统计弹窗同款「白底圆角 + 大平台色文字 + 数值加粗」
   格式：本月流水: 228,422.68 ｜ 累计流水: 228,422.68（无单位，跟随铁人给的参考样式） */
.flow-grp-head .fg-pill { display: inline-flex; align-items: center; gap: 5px; background: #fff;
    border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 600;
    line-height: 18px; white-space: nowrap; }
.flow-grp-head .fg-pill b { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .2px; }
/* 两枚胶囊用不同颜色区分：本月=橙（同列表「今日实充」）/ 累计=深蓝（同列表「累计实充」） */
.flow-grp-head .fg-pill-cur { color: #c2410c; }
.flow-grp-head .fg-pill-cum { color: #0d47a1; }
/* ★ 小数部分（含小数点）统一黑色，整数部分跟随所在位置的字色 */
.fnum-d { color: #111111; }
.flow-row .flow-date .fd-val .fnum-d { color: #111111; }
.flow-grp-head .fg-name + .fg-pill { margin-left: 26px; }   /* 与大平台名拉开距离(实测 36px) */
.flow-grp-head .fg-cnt { color: rgba(255, 255, 255, .8); font-size: 12px; margin-left: auto; }
.flow-row { display: grid; grid-template-columns: 100px 72px 160px 90px 160px auto; align-items: center; gap: 6px 10px; margin-bottom: 6px; }  /* ★ 2026-10-30 删掉中间重复的子平台列后 6 列 */
.flow-row .flow-date .fd-label { font-weight: 700; color: #000; }  /* 标题加粗纯黑 */
/* 日期/运营天数 悬浮框: 仿归属平台标签(.tag)风格, 三色区分 */
.flow-row .flow-date .fd-val { display: inline-block; font-weight: 600; font-size: 12px; padding: 2px 10px; border-radius: 10px; line-height: 18px; }
.flow-row .flow-date .fd-val.fd-up { background: #e3f2fd; color: #0d47a1; }      /* 上架: 浅蓝背景 */
.flow-row .flow-date .fd-val.fd-down { background: #c62828; color: #fff; }      /* 下架: 深红背景+白字 */
.flow-row .flow-date .fd-val.fd-days { background: #e8f5e9; color: #2e7d32; }    /* 运营天数: 浅绿背景 */
.flow-row .flow-date .fd-val.fd-cum { background: #fff3e0; color: #e65100; }     /* 累计流水: 浅橙金背景 */
.flow-row .flow-dates { display: grid; grid-template-columns: 156px 156px 124px auto; align-items: center; gap: 10px; padding-left: 6px; transform: translateX(0); }  /* 日期容器: 上架/下架列固定156px(按最长'下架日期：2026-09-24'计算) → 运营天数列起点全行对齐; 列间距10px; 整体左移80px */
.flow-row .flow-date { text-align: left; font-size: 12px; color: #555; white-space: nowrap; }  /* 宽度随内容 → 后列起点自动跟随前列宽度+10px */
.flow-row:last-child { margin-bottom: 0; }
.flow-plat { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: normal; min-width: 0; overflow: hidden; white-space: nowrap; }
/* ★ 2026-10-30：子平台名改成彩色胶囊（平台色实底 + 自动反差字色；原来左侧是灰点+纯文字，颜色在中间那列重复出现） */
.flow-pill { display: inline-block; font-size: 12px; font-weight: 700; line-height: 18px;
    padding: 2px 12px; border-radius: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-row input { border: 1px solid #dcdfe6; border-radius: 6px; font-size: 13px; text-align: right; padding: 5px 8px; width: 100%; box-sizing: border-box; flex: none; }
.flow-row input:focus { border-color: #2b7de9; outline: none; }
.flow-row .flow-ro { width: 100%; box-sizing: border-box; }
/* 平台评级两列固定对齐(网格列) */
.flow-row .plat-rating { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
.flow-row .plat-rating .tag, .flow-row .plat-rating span { vertical-align: middle; }
.flow-name { font-size: 12px; color: #8a94a6; white-space: nowrap; }
/* 数字输入框(版本流水同款: 文本型右对齐细边框) */
.num-inp { box-sizing: border-box; border: 1px solid #dcdfe6; border-radius: 6px; font-size: 13px;
    text-align: right; padding: 5px 8px; width: 100%; }
.num-inp:focus { border-color: #2b7de9; outline: none; box-shadow: 0 0 0 2px rgba(43,125,233,.12); }
/* 罚款/奖金备注: 按钮 + 悬停气泡(支持多行) */
.btn-xs { padding: 2px 8px; font-size: 12px; border-radius: 5px; }
.rm-wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.rm-wrap form { display: inline-flex; align-items: center; }
.rm-btn { background: #f0f4fa; border-color: #d5dde8; color: #44546a; white-space: nowrap; }
.rm-btn:hover { border-color: #2b7de9; color: #2b7de9; }
/* 悬停仅作用于输入框(rm-tip): 有备注且鼠标移入才弹气泡 */
.rm-tip { position: relative; display: inline-flex; align-items: center; }
.rm-tip[data-tip]:not([data-tip=""]):hover::after {
    content: attr(data-tip);
    position: absolute; top: calc(100% + 5px); left: 0; z-index: 999;
    background: #1a2a4a; color: #fff; padding: 7px 11px; border-radius: 6px;
    font-size: 12px; line-height: 1.7; white-space: pre-line; max-width: 340px; width: max-content;
    pointer-events: none; box-shadow: 0 3px 12px rgba(0,0,0,.3);
}
/* 工资表允许气泡溢出表格(默认 overflow:hidden 会裁掉提示) */
.salary-tbl { overflow: visible !important; }
/* 工资页合计统计条(每项独立彩色气泡) */
.sum-bar { background: #fff; border: 1px solid #e8ecf1; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sum-chip { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px;
    font-size: 13px; font-weight: bold; white-space: nowrap; }
.bulk-bar { background: #fff; border: 1px solid #e8ecf1; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bulk-bar select { padding: 7px 10px; border: 1px solid #dcdfe6; border-radius: 6px; background: #fff; font-size: 13px; }
/* ===== 考勤表 ===== */
.att-wrap { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow-x: auto; }
.att-table { border-collapse: collapse; font-size: 13px; width: 100%; }
.att-table th, .att-table td { border: 1px solid #e8ecf1; text-align: center; white-space: nowrap; padding: 2px; }
/* 考勤表头: 同步顶栏深蓝 #1a2a4a */
.att-table thead th { background: #1a2a4a; color: #fff; font-weight: bold; position: sticky; top: 0; padding: 4px 2px; }
.att-table thead th b { font-size: 13px; color: #ffffff; display: block; line-height: 1.35; font-weight: bold; }
.att-table thead th small { display: block; font-size: 13px; color: rgba(255,255,255,.72); font-weight: bold; line-height: 1.35; margin-top: 2px; }
/* 员工列: 容纳10个汉字 */
.att-name-col { width: 145px; min-width: 145px; max-width: 145px; overflow: hidden; text-overflow: ellipsis;
    position: sticky; left: 0; text-align: left !important; z-index: 1;
    padding: 6px 8px !important; font-size: 13px; }
.att-table thead .att-name-col { text-align: center !important; background: #1a2a4a !important; }
/* ★ 铁人 2026-11-05：考勤表新增「姓名」列（与「员工」登录名分成两列） */
.salary-tbl .sal-rn { text-align: center !important; color: #1a2a4a; font-weight: 600; }
.att-rn-col { width: 92px; min-width: 92px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
              text-align: center !important; color: #1a2a4a; font-weight: 600; }
.att-table thead .att-rn-col { background: #1a2a4a !important; }
.att-pos { display: inline-block; font-size: 12px; font-weight: normal; padding: 1px 7px; border-radius: 4px; margin-left: 5px; }
/* 登记状态徽标(仿员工职务徽标样式) */
.att-st-badge { display: inline-block; font-size: 13px; font-weight: bold; padding: 4px 12px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
/* 汇总列: 2个汉字宽(标题字号继承表头统一值) */
.att-sum-col { width: 38px; min-width: 38px; font-size: 11px; line-height: 1.25; padding: 4px 2px !important; }
.att-sum { font-weight: bold; font-size: 14px; width: 38px; min-width: 38px; }
/* 考勤矩阵行交替(白/浅蓝; 状态徽标格不受影响) */
.att-table tbody tr:nth-child(odd) td { background: #ffffff; }
.att-table tbody tr:nth-child(even) td { background: #e8f1fa; }
.att-table tbody tr:hover td { background: #fbe9e9 !important; }
.att-cell { min-width: 36px; height: 30px; cursor: default; font-size: 12px; position: relative; }
.att-cell .att-txt { font-size: 12px; }
/* 格内状态徽标(仿职务徽标: 浅底深字圆角块) */
.att-txt.st-tag { display: inline-block; padding: 1px 7px; border-radius: 4px; line-height: 1.5; white-space: nowrap; }
.att-editable { cursor: pointer; }
.att-editable:hover { outline: 2px solid #2b7de9; outline-offset: -2px; }
/* 备注角标(双击输入) */
.att-rm { position: absolute; right: 2px; bottom: 2px; width: 7px; height: 7px; border-radius: 50%;
    background: #ff7043; border: 1px solid #fff; cursor: help; }
/* ===== 考勤状态设置弹窗 ===== */
.st-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 999;
    display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 26px 12px; }
.st-box { background: #fff; border-radius: 12px; width: min(960px, 96vw); padding: 18px 22px 22px;
    box-shadow: 0 12px 44px rgba(0,0,0,.22); }
.st-box .form-item { margin-bottom: 12px; }
.st-close { margin-left: auto; border: none; background: #f0f2f5; color: #666; width: 26px; height: 26px;
    border-radius: 50%; font-size: 14px; cursor: pointer; line-height: 1; flex: 0 0 auto; }
.st-close:hover { background: #e2e6ec; color: #c00; }
.color-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; margin-right: 4px; border: 1px solid rgba(0,0,0,.08); }
.color-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 10px; border: 1px solid rgba(0,0,0,.05); }
.color-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-color { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; }
.color-opt { cursor: pointer; }
.color-opt input { display: none; }
.color-swatch { display: inline-block; width: 30px; height: 30px; border-radius: 8px; border: 3px solid #fff; box-shadow: 0 0 0 1px #dcdfe6; transition: transform .1s; }
.color-opt input:checked + .color-swatch { box-shadow: 0 0 0 3px #2b7de9; transform: scale(1.1); }

/* ================= ★ 系统设置：ICP备案号页脚（铁人 2026-10-07）=================
   .icp-fixed = 登录/注册界面 → 固定在窗口底部居中
   .icp-foot  = 后台页面 → 页脚居中（跟随内容，留空时 PHP 不输出） */
/* ★ 铁人 2026-10-20：整行 flex + align-items:center —— 文字/图标统一 y 锚点 0.5 居中 ✓ */
.icp-fixed { position: fixed; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center;
    font-size: 12px; color: #7d8798; z-index: 5;
    display: flex; align-items: center; justify-content: center; gap: 8px; line-height: 16px; }
.icp-fixed a { color: #7d8798; text-decoration: none; }
.icp-fixed a:hover { color: #2b7de9; text-decoration: underline; }
.icp-foot { margin: 18px 0 6px; text-align: center; font-size: 12px; color: #8a94a6;
    display: flex; align-items: center; justify-content: center; gap: 8px; line-height: 16px; }
.icp-foot a { color: #8a94a6; text-decoration: none; }
.icp-foot a:hover { color: #2b7de9; text-decoration: underline; }

/* ★ ICP备案号：后台内容页 —— 贴在本页底部（页面短时贴窗口底部，长时跟在内容最后；不占位不遮挡）*/
.inner-wrap { position: relative; min-height: 100vh; }
.icp-foot { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; }

/* ★ 2026-10-20：备案行内元素统一中线——链接内图标+文字也是 flex 居中 ✓ */
.icp-fixed a, .icp-foot a { display: inline-flex; align-items: center; gap: 4px; line-height: 16px; }
.icp-fixed img, .icp-foot img { display: block; width: 16px; height: 16px; object-fit: contain; }
.icp-fixed .icp-sep, .icp-foot .icp-sep { display: inline-flex; align-items: center; color: #b3bccb; }

/* ===== ★ 站点 LOGO（铁人 2026-10-07）=====
   登录/注册卡片：标题左侧 60×60；后台顶栏：24px（带细白描边，避免深蓝底融在一起） */
.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.login-head h1 { text-align: left; margin: 0; font-size: 20px; line-height: 1.25; flex: 1; min-width: 0; }
.login-logo { width: 60px; height: 60px; border-radius: 14px; display: block; flex-shrink: 0; }
.topbar-title { display: flex; align-items: center; }
.topbar-logo { width: 24px; height: 24px; border-radius: 6px; display: block; margin-right: 9px;
               box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }

/* ===== ★ 数据列表：玩家 IP = 游戏端明文源 IP(222.189.24.98) 的行高亮（铁人 2026-10-15）=====
   含义：这个 IP 是游戏端 WinHttp 明文的来源 IP，出现在「玩家IP」列说明该行记的是服务器 IP、不是真玩家 IP，
   需要一眼能挑出来 → 整行淡黄底 + IP 本身加粗描深（不用渐变/发光 ✓ 与站内简洁风格一致） */
.data-table tbody tr.row-hlip > td { background: #fff7d6 !important; }
.data-table tbody tr.row-hlip:hover > td { background: #ffefb0 !important; }
.data-table tbody tr.row-hlip > td.srvip { color: #b45309; font-weight: 700; }


/* ==========================================================================
   ★ 手机适配（铁人 2026-10-29：「手机打开网页显示不全」「二级页面无法左右拖动」）
   PC 端 820px 以上完全不受影响，全部规则只在窄屏生效。
   ========================================================================== */
@media (max-width: 820px) {
    /* ---- 顶栏：允许换行，不再硬撑一行 ---- */
    .topbar { height: auto !important; flex-wrap: wrap !important; gap: 6px !important; padding: 8px 12px !important; }
    .topbar-right { gap: 10px !important; flex-wrap: wrap !important; }
    .topbar-title { font-size: 15px !important; }

    /* ---- 左侧菜单 → 顶部横向滑动条 ---- */
    .frame-wrap { flex-direction: column !important; }
    .sidebar { width: 100% !important; min-width: 0 !important; max-height: none !important;
               display: flex !important; flex-wrap: nowrap !important; align-items: center !important;
               gap: 6px !important; padding: 8px 10px !important; overflow-x: auto !important;
               overflow-y: hidden !important; border-bottom: 1px solid #e4e9f0 !important;
               -webkit-overflow-scrolling: touch; }
    .menu-group { display: inline-flex !important; align-items: center !important; gap: 6px !important;
                  flex: 0 0 auto !important; margin: 0 !important; }
    .menu-group-title { display: none !important; }
    .menu-item { flex: 0 0 auto !important; white-space: nowrap !important; border-left: none !important;
                 border-radius: 6px !important; padding: 7px 12px !important; background: #2e4160 !important; }
    .content-area { flex: 1 1 auto !important; min-width: 0 !important; min-height: 0 !important; }

    /* ---- 内容页：留白收紧 ---- */
    .inner-wrap { padding: 10px !important; }
    .page-title { font-size: 16px !important; margin-bottom: 10px !important; }
    .form-card { max-width: 100% !important; padding: 16px 14px !important; }

    /* ---- 表格：一律允许左右拖动（不再被裁掉右侧） ---- */
    .tbl-scroll, .att-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

    /* ---- ★ 关键：统计条那种 nowrap 长条会把自己撑到 1000+px，把整个布局视口顶宽，
           导致所有手机媒体查询失效、页面右侧被裁。这里强制它独占一行并在自己内部横向滚动。 ---- */
    .pd-statline { flex: 1 1 100% !important; min-width: 0 !important; max-width: 100% !important;
                   overflow-x: auto !important; overflow-y: hidden !important;
                   -webkit-overflow-scrolling: touch; }
    body { overflow-x: hidden !important; }

    /* ★ 手机端版本选择：改成【底部抽屉】
       原因：原来的绝对定位浮层会像块白板一样盖住上方的货币卡片，看起来像页面坏了 ✗
       现在固定从屏幕底部升起，完全不遮挡上方内容，点面板外面即关闭（JS 已有该逻辑） */
    .vp-wrap { position: static !important; overflow: visible !important; }
    #vp-panel {
        position: fixed !important; left: 0 !important; right: 0 !important;
        bottom: 0 !important; top: auto !important; margin: 0 !important;
        width: 100% !important; max-width: 100% !important; min-width: 0 !important;
        background: #fff !important; border-top: 1px solid #e2e8f2 !important;
        border-radius: 16px 16px 0 0 !important;
        max-height: 72vh !important; overflow-x: hidden !important;
        z-index: 100001 !important; box-shadow: 0 -10px 34px rgba(10,25,50,.26) !important;
    }
    #vp-panel > div { max-height: 60vh !important; overflow-y: auto !important; overflow-x: hidden !important; }

    /* ---- 登录页 ---- */
    .login-box { width: auto !important; max-width: 92vw !important; padding: 26px 20px !important; }

    /* ---- 首页统计卡竖排 ---- */
    .stat-row { flex-direction: column !important; gap: 10px !important; }
}
