/* ===== 8780 网页版：登录 / 系统管理 / 弹窗（仅补充，不覆盖报表原有样式） ===== */
* { box-sizing: border-box; }

/* 登录后整体外壳（含 header + 报表主体），未登录时隐藏 */
#appShell { display: flex; flex-direction: column; flex: 1 1 auto; overflow: hidden; height: 100%; }
#appShell.hidden { display: none !important; }
.hidden { display: none !important; }

/* header 右侧（用户 / 退出） */
header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.hdr-right { display: flex; align-items: center; gap: 14px; }
.hdr-user { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .95; }
#logout { padding: 6px 14px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
#logout:hover { background: rgba(255,255,255,.15); }

/* ===== 登录遮罩（参照 8789 系统管理登录风格） ===== */
.login-wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f4e8c, #2f6fd0); z-index: 200; }
.login-card { background: #fff; padding: 38px 34px; border-radius: 14px; width: 360px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.login-brand { font-size: 22px; font-weight: 700; color: #1B6CA8; letter-spacing: 1px; }
.login-sub { color: #6b7785; margin: 4px 0 22px; font-size: 14px; }
.login-card input { width: 100%; padding: 11px 12px; margin-bottom: 12px; border: 1px solid #e3e8ef; border-radius: 8px; font-size: 14px; outline: none; box-sizing: border-box; }
.login-card input:focus { border-color: #1B6CA8; }
.login-card button { width: 100%; padding: 11px; border: 0; border-radius: 8px; background: #1B6CA8; color: #fff; font-size: 15px; cursor: pointer; font-weight: 600; }
.login-card button:hover { background: #155a8a; }
.lg-err { color: #c0392b; font-size: 13px; min-height: 18px; margin-top: 6px; }
.login-extra { display: flex; flex-direction: column; }
.login-extra .extra-title { font-size: 15px; color: #1B6CA8; font-weight: 600; margin-bottom: 14px; text-align: center; }
.login-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.icon-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(31,78,140,.08) !important; border: 1px solid #52BCEC !important; color: #1B6CA8 !important; cursor: pointer; padding: 9px 16px !important; width: auto !important; font-weight: 600 !important; border-radius: 8px; font-size: 13px; line-height: 1; }
.icon-btn span { font-size: 12px; }
.link-btn { background: none !important; border: 0 !important; color: #2f6fd0; cursor: pointer; font-size: 13px; padding: 4px 6px !important; width: auto !important; }
.link-btn:hover { text-decoration: underline; }

/* ===== 登录页：注册入口 / 密码规则 / 审核提示 ===== */
.login-card { width: 380px; }
.login-split { display: flex; align-items: center; gap: 10px; color: #98a2b3; font-size: 12px; margin: 16px 0 10px; }
.login-split::before, .login-split::after { content: ''; flex: 1; height: 1px; background: #e3e8ef; }
.login-card button.btn-reg-entry { background: #fff !important; color: #1B6CA8 !important; border: 1px solid #1B6CA8 !important; font-size: 14px !important; }
.login-card button.btn-reg-entry:hover { background: #eef3fb !important; }
.login-extra-title { font-size: 15px; color: #1B6CA8; font-weight: 600; margin-bottom: 14px; text-align: center; }
.pw-rules { list-style: none; margin: -4px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 12px; }
.pw-rules li { font-size: 12px; color: #98a2b3; padding-left: 15px; position: relative; }
.pw-rules li::before { content: '○'; position: absolute; left: 0; top: 0; font-size: 10px; }
.pw-rules li.on { color: #2e9e6b; }
.pw-rules li.on::before { content: '●'; }
.reg-note { font-size: 12px; color: #8a6d3b; background: #fdf7e3; border: 1px solid #f3e3b3; border-radius: 6px; padding: 7px 10px; margin: 2px 0 8px; line-height: 1.5; }
.reg-ok { font-size: 13px; color: #1e7d4f; background: #e6f4ea; border: 1px solid #bfe5cd; border-radius: 6px; padding: 8px 10px; margin: 2px 0 8px; line-height: 1.6; }
.reg-ok-sub { color: #4a7a5f; font-size: 12px; }
.lg-err.ok-tip { color: #8a6d3b; }
.review-bar { background: #fff8e6; border: 1px solid #f3d98b; color: #8a6d3b; border-radius: 8px; padding: 9px 14px; font-size: 13px; margin: 0 0 12px; }
.nav-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: #e8a33d; color: #fff; font-size: 11px; text-align: center; vertical-align: middle; }
.nav-badge.hidden { display: none !important; }
.hzj-bad.pending { background: #fff4e0; color: #b9770e; }
.hzj-bad.rejected { background: #fdecea; color: #c0392b; }
.hzj-btn.ok { background: #2e9e6b; }
.hzj-btn.ok:hover { background: #248457; }

/* ===== 系统管理面板 ===== */
.hzj-panel { background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; padding: 18px 22px; box-shadow: 0 1px 3px rgba(16,24,40,.06); max-width: 940px; }
.hzj-admin-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hzj-admin-head h2 { margin: 0; font-size: 18px; color: #001E50; }
.hzj-admin-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hzj-admin-add input, .hzj-admin-add select { padding: 7px 10px; border: 1px solid #e3e8ef; border-radius: 7px; font-size: 13px; }
.hzj-btn { display: inline-block; padding: 9px 18px; border: 0; border-radius: 7px; background: #1B6CA8; color: #fff; cursor: pointer; font-size: 14px; font-weight: 600; }
.hzj-btn:hover { background: #155a8a; }
.hzj-btn.sm { padding: 6px 12px; font-size: 13px; }
.hzj-btn.ghost { background: #fff; color: #1B6CA8; border: 1px solid #1B6CA8; }
.hzj-btn.ghost:hover { background: #eef3fb; }
.hzj-btn.danger { background: #c0392b; }
.hzj-btn.danger:hover { background: #a93226; }
.hzj-btn:disabled { opacity: .5; cursor: not-allowed; }
.hzj-tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; margin-top: 6px; }
.hzj-tbl th, .hzj-tbl td { border: 1px solid #e3e8ef; padding: 9px 12px; text-align: left; white-space: nowrap; }
.hzj-tbl th { background: #eef3fb; color: #1B6CA8; font-weight: 600; }
.hzj-tbl tr:hover td { background: #f7faff; }
.hzj-muted { color: #6b7785; font-size: 13px; }
.hzj-bad { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; }
.hzj-bad.ok { background: #e6f4ea; color: #2e9e6b; }
.hzj-bad.disabled { background: #f1f3f5; color: #8a94a0; }
.hzj-admin-add code { background: #f1f3f5; padding: 1px 6px; border-radius: 4px; }

/* ===== 登录后整体布局（#appShell → header + #app） ===== */
html, body { height: 100%; margin: 0; }
body { font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif; background: #f4f6f9; }
#app { display: flex; flex: 1 1 auto; min-height: 0; }
.main { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 16px; }
.sidebar { flex: 0 0 auto; }

/* ===== 弹窗（导入方式选择 / 通用） ===== */
.hzj-modal-mask { position: fixed; inset: 0; background: rgba(8,15,30,.45); display: flex; align-items: center; justify-content: center; z-index: 300; }
.hzj-modal-mask.hidden { display: none !important; }
.hzj-modal { background: #fff; border-radius: 12px; width: 480px; max-width: 92vw; padding: 22px 24px; box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.hzj-modal-title { font-size: 17px; font-weight: 700; color: #001E50; margin-bottom: 12px; }
.hzj-modal-body { font-size: 14px; color: #1d2733; line-height: 1.7; margin-bottom: 16px; }
.hzj-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.hzj-modal-actions.row { flex-direction: row; justify-content: flex-end; align-items: center; }

/* ===== 数据抓取页 ===== */
.hz-sec-t { margin: 0 0 8px; color: #1B6CA8; font-size: 17px; }
.cap-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.cap-row input { flex: 1; min-width: 240px; padding: 8px 10px; border: 1px solid #c9d4de; border-radius: 6px; font-size: 14px; font-family: Consolas, "Courier New", monospace; }
.cap-files { margin-top: 12px; }
.cap-danger { margin-top: 16px; border-color: #f2c9c4; background: #fffdfd; }
.fs-err { padding: 10px 0; color: #c0392b; font-size: 13px; }

/* ===== 文件夹浏览器 ===== */
.hzj-modal.wide { width: 800px; max-width: 94vw; }
.fs-body { line-height: 1.6; }
.fs-note { background: #eef3fb; color: #1B5E8C; padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.fs-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.fs-chip { border: 1px solid #cfe0ef; background: #f7fbff; color: #1B6CA8; border-radius: 14px; padding: 4px 11px; font-size: 12px; cursor: pointer; line-height: 1.4; }
.fs-chip:hover { background: #e4f0fb; }
.fs-bar { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.fs-bar input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid #d6dee7; border-radius: 7px; font-size: 13px; font-family: Consolas, "Courier New", monospace; }
.fs-list { height: 230px; overflow: auto; border: 1px solid #e3e8ef; border-radius: 8px; background: #fbfcfe; }
.fs-row { padding: 7px 12px; cursor: pointer; border-bottom: 1px solid #f0f3f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.fs-row:hover { background: #e9f2fc; color: #1B6CA8; }
.fs-empty { padding: 22px 12px; text-align: center; color: #98a0ab; font-size: 13px; }
.fs-detect { margin-top: 10px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fs-ok { color: #2e9e6b; font-weight: 600; }
.fs-no { color: #c0392b; font-weight: 600; }
.fs-marks { color: #6b7785; }

/* ===== 日志查看（仅管理员） ===== */
.log-actions { display: flex; gap: 8px; }
.log-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.log-filters input, .log-filters .log-sel { padding: 7px 10px; border: 1px solid #c9d4de; border-radius: 6px; font-size: 13.5px; background: #fff; color: #1d2733; }
.log-filters input { min-width: 150px; }
.log-tbl td { white-space: normal; vertical-align: top; }
.log-time { width: 96px; font-family: Consolas, "Courier New", monospace; color: #475569; white-space: nowrap; }
.log-detail { max-width: 620px; word-break: normal; overflow-wrap: break-word; }
.log-ip { width: 110px; font-family: Consolas, "Courier New", monospace; color: #7b8794; font-size: 12.5px; white-space: nowrap; }
.log-tbl th:nth-child(3), .log-tbl td:nth-child(3) { white-space: nowrap; width: 76px; }
.log-role { white-space: nowrap; }
.log-tag { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.log-tag.plain { background: #eef1f5; color: #4b5563; }
.log-tag.ok { background: #e6f7ef; color: #1e8a5c; }
.log-tag.bad { background: #fdecea; color: #c0392b; }
.log-tag.danger { background: #fdecea; color: #a93226; border: 1px solid #f2c9c4; }
.log-role.adm { color: #b45309; font-weight: 600; }
.log-empty { padding: 40px 12px; text-align: center; color: #98a0ab; font-size: 13.5px; background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; }

/* ===== 选项管理（仅管理员） ===== */
.opt-card { border: 1px solid #e3e8ef; border-radius: 9px; padding: 11px 13px; background: #fbfcfe; margin-bottom: 11px; }
.opt-card-t { font-weight: 600; color: #1B6CA8; font-size: 14px; margin-bottom: 2px; }
/* 「自由手动输入」开关：勾上后录入页这一项可直接手输任意值 */
.opt-card-t .opt-free { float: right; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 400; color: #334155; cursor: pointer; background: #f1f7fd; border: 1px solid #dbe4ef; border-radius: 13px; padding: 3px 10px; user-select: none; }
.opt-card-t .opt-free:hover { background: #e6f1fc; }
.opt-card-t .opt-free input { margin: 0; cursor: pointer; vertical-align: middle; }
.opt-card-t .opt-free-tag { color: #98a0ab; }
.opt-card-t .opt-free input:checked ~ .opt-free-tag { color: #0b7a3e; font-weight: 600; }
.opt-card-t .opt-key { color: #98a0ab; font-weight: 400; font-size: 12px; margin-left: 6px; }
.opt-card-t .opt-hint { display: block; color: #7b8794; font-weight: 400; font-size: 12px; margin-top: 3px; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt-chip { display: inline-flex; align-items: center; gap: 4px; background: #eef3fb; border: 1px solid #dbe4ef; border-radius: 12px; padding: 3px 10px; font-size: 13px; color: #1d2733; }
.opt-chip .opt-del { background: none; border: 0; color: #c0392b; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.opt-chip .opt-del:hover { background: #c0392b; color: #fff; border-radius: 50%; }
.opt-add-row { display: flex; gap: 8px; margin-top: 9px; align-items: center; }
.opt-add { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid #c9d4de; border-radius: 6px; font-size: 13.5px; color: #1d2733; background: #fff; }
.opt-add:focus { outline: none; border-color: #1B6CA8; box-shadow: 0 0 0 2px rgba(27,108,168,.12); }
.opt-accident { margin-top: 14px; padding: 11px 13px; background: #fbfcfe; border: 1px solid #e3e8ef; border-radius: 9px; font-size: 13.5px; color: #475569; }
.opt-accident select { margin-left: 8px; padding: 6px 10px; border: 1px solid #c9d4de; border-radius: 6px; font-size: 13.5px; color: #1d2733; background: #fff; }
.opt-ok { color: #1e8a5c; font-weight: 600; }

/* 未结明细：可点切换的单元格（在厂维修） */
.us-clk { cursor: pointer; }
.us-clk:hover { opacity: .7; text-decoration: underline dotted; }

/* ===== 车辆结算明细：表头筛选（Excel 式下拉） ===== */
.tf-btn { display: inline-block; margin-left: 5px; padding: 0 4px; border-radius: 3px; color: #9aa3af; cursor: pointer; font-size: 10px; line-height: 15px; vertical-align: middle; user-select: none; }
.tf-btn:hover { background: #e8eef7; color: #2f6fd0; }
.tf-btn.on { background: #2f6fd0; color: #fff; }
.tf-pop { position: fixed; z-index: 9999; width: 280px; max-height: 420px; display: none; flex-direction: column; background: #fff; border: 1px solid #d7dde6; border-radius: 8px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); font-size: 13px; color: #1d2733; }
.tf-hd { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-bottom: 1px solid #eef1f5; }
.tf-hd b { flex: 1; font-weight: 600; }
.tf-x { cursor: pointer; color: #9aa3af; padding: 0 4px; }
.tf-x:hover { color: #e2574c; }
.tf-q { margin: 8px 10px 4px !important; padding: 6px 9px !important; width: calc(100% - 20px) !important; border: 1px solid #d7dde6 !important; border-radius: 6px !important; font-size: 12.5px !important; height: auto !important; box-sizing: border-box; }
.tf-allrow { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid #f1f5f9; cursor: pointer; font-size: 12.5px; }
.tf-allrow i { margin-left: auto; color: #9aa3af; font-style: normal; font-size: 11.5px; }
.tf-list { overflow: auto; max-height: 230px; padding: 4px 6px; flex: 1; }
.tf-item { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 5px; cursor: pointer; font-size: 12.5px; }
.tf-item:hover { background: #f3f7fd; }
.tf-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-item i { color: #9aa3af; font-style: normal; font-size: 11.5px; }
.tf-empty { padding: 16px; text-align: center; color: #9aa3af; font-size: 12.5px; }
.tf-pop input[type="checkbox"] { width: 14px !important; height: 14px !important; margin: 0 !important; flex: 0 0 14px; cursor: pointer; }
.tf-ft { display: flex; gap: 8px; justify-content: flex-end; padding: 8px 10px; border-top: 1px solid #eef1f5; background: #fafbfc; border-radius: 0 0 8px 8px; }
.tf-ft button { padding: 5px 14px; border-radius: 6px; font-size: 12.5px; cursor: pointer; border: 1px solid #d7dde6; background: #fff; color: #475569; }
.tf-ft button:hover { border-color: #b9c6d6; }
.tf-ft .tf-ok { background: #2f6fd0; border-color: #2f6fd0; color: #fff; }
.tf-ft .tf-ok:hover { background: #2760b8; }


/* ===== 用户管理：菜单 / SA 权限分配弹窗 + 密码列（2026-10-26） ===== */
#u-list { overflow-x: auto; }
.perm-body { max-height: 62vh; overflow: auto; }
.perm-sec { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 14px; color: #001E50; border-top: 1px solid #eef1f6; padding-top: 12px; }
.perm-sec:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.perm-tip { font-size: 12px; color: #7b8697; font-weight: 400; }
.perm-quick { margin-left: auto; font-size: 12px; color: #2f6fd0; white-space: nowrap; }
.perm-quick a { color: #2f6fd0; text-decoration: none; }
.perm-quick a:hover { text-decoration: underline; }
.perm-grp { font-size: 12px; color: #8a94a6; margin: 10px 0 4px; }
.perm-items { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.perm-ck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #1d2733; cursor: pointer; }
.perm-ck input { width: 14px !important; height: 14px !important; margin: 0 !important; }
.perm-sas { max-height: 220px; overflow: auto; }
.pwd-val { font-family: Consolas, Monaco, monospace; letter-spacing: 1px; color: #7b8697; }
.pwd-val.pwd-shown { color: #001E50; background: #fff8e1; padding: 1px 6px; border-radius: 4px; letter-spacing: 0; }
