/* HDCWY 在线工具 - 轻量样式（严格前后端分离，纯静态）· 蓝白渐变主题 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e293b;
  background: linear-gradient(160deg, #eef4ff 0%, #e2ecff 100%);
  font-size: 14px;
}
.hidden { display: none !important; }

/* ---------- 登录页 ---------- */
.login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0ea5e9 100%);
}
.login-card {
  width: 360px; max-width: 92vw;
  background: #fff; border-radius: 16px;
  padding: 36px 30px; text-align: center;
  box-shadow: 0 20px 50px rgba(30,58,138,.3);
}
.login-logo { font-size: 46px; }
.login-title { font-size: 20px; margin: 8px 0 2px; color: #1e3a8a; }
.login-sub { color: #64748b; font-size: 13px; margin-bottom: 22px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-error { color: #dc2626; font-size: 13px; min-height: 18px; }
.login-hint { margin-top: 14px; color: #94a3b8; font-size: 12px; }

/* ---------- 布局 ---------- */
.wb-shell { height: 100vh; display: flex; flex-direction: column; }
/* 全站统一导航 / 页脚占位（2026-09-15 修复）：
   本页是 100vh 的 flex 纵列，导航与页脚作为 flex item 默认 flex-shrink:1，
   内容稍多就会被压扁，导航栏高度与全站其它页面不一致。这里禁止收缩，保持原生高度。 */
#header-placeholder, #footer-placeholder { flex-shrink: 0; }

/* 站点头部「排版基准」与全站对齐（2026-09-15 修复）
   本页只引了自己的 assets/css/style.css，没有引全站 /css/style.css，
   而站点头部模板的行高与限宽恰好依赖全站那两行：
     body { font-size:16px; line-height:1.6; font-family:"Segoe UI",Roboto,… }
     .container { max-width:1280px; margin:0 auto }
   缺了它们，本页导航栏实测：
     · 行高 = normal（标准页 29.44px）→ 导航栏高 65px，标准页 73px
     · 容器 max-width = none（标准页 1280px）→ 导航内容铺满全宽、不居中
     · 基准字体 14px / -apple-system（标准页 16px / "Segoe UI",Roboto）
   表现就是「字体和间距跟别的页面不一样」。
   以下只作用于站点头部作用域，不动工具自身的排版与字号。 */
#header-placeholder .header {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
#header-placeholder .header .container { max-width: 1280px; margin: 0 auto; }

.app { display: flex; flex: 1; min-height: 0; }
.sidebar {
  width: 248px; flex-shrink: 0;
  background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 100%);
  color: #e5e7eb;
  display: flex; flex-direction: column;
}
.brand {
  padding: 18px 18px; font-size: 18px; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
/* 侧栏导航 —— 必须限定在 .sidebar 内。
   2026-09-15 修复：全站统一导航模板 templates/header.html 里也有一个 <div class="nav">，
   而 site-nav.css 用「裸 .nav」定义它。这里的裸 .nav 规则会同时命中 header 的导航区，
   把全站导航强行变成 flex:1 撑满 + 上下各 10px 内边距 + 竖向滚动，
   于是本页顶部导航的字体观感、间距、整体高度都和别的页面不一样。
   收窄到 .sidebar 后，两条 .nav 各管各的，互不干扰。 */
.sidebar .nav { display: block; flex: 1; overflow-y: auto; padding: 10px 0; }
.nav-group { margin-bottom: 6px; }
.nav-group-title {
  padding: 11px 18px 5px; font-size: 13px; letter-spacing: .08em;
  color: #bfdbfe; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; cursor: pointer; color: #dbeafe; font-size: 16px;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,.22); color: #fff;
  border-left-color: #fff;
}
.nav-ico { width: 22px; text-align: center; font-size: 16px; }
.side-foot {
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 12px 18px; display: flex; align-items: center; justify-content: space-between;
}
.cur-user { font-size: 13px; color: #dbeafe; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-actions { display: flex; align-items: center; gap: 8px; }

/* 侧栏底部：备份 / 同步说明（2026-09-15 从页面顶端移入）。
   顶端原本横着这条浅蓝提示条，紧贴全站导航栏、外观自成一派，
   看上去就是"第二个顶部导航栏"；移入侧栏底部后顶端只留全站统一导航栏。 */
.side-tip {
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 10px 14px 12px;
  font-size: 11px; line-height: 1.7; color: #c7dbfb;
}
.side-tip-btns { display: flex; gap: 6px; margin-top: 8px; }
.side-tip-btns button,
.side-tip-btns label {
  flex: 1; text-align: center; padding: 5px 6px;
  font-size: 11px; line-height: 1.4; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.12);
  color: #fff; cursor: pointer; font-family: inherit;
}
.side-tip-btns button:hover,
.side-tip-btns label:hover { background: rgba(255,255,255,.24); }

.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 56px; flex-shrink: 0;
  background: linear-gradient(90deg, #f8fbff 0%, #eaf2ff 100%);
  border-bottom: 1px solid #dbeafe; display: flex; align-items: center;
  justify-content: space-between; padding: 0 22px; gap: 12px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-center { flex: 1; text-align: center; min-width: 0; }
.tool-name { font-size: 18px; font-weight: 700; color: #1e3a8a; white-space: nowrap; }
.user-avatar { font-size: 17px; }
.user-name { font-size: 14px; font-weight: 600; color: #1e40af; white-space: nowrap; }
.top-btn { border: 1px solid #bfdbfe; background: #fff; color: #1e40af; border-radius: 20px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
.top-btn:hover { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; border-color: transparent; }
.crumb-bar { padding: 8px 22px; background: #f1f6ff; border-bottom: 1px solid #e2ecff; }
.crumb { font-size: 14px; font-weight: 600; color: #1e40af; }
.container { flex: 1; overflow-y: auto; padding: 22px; }
/* 防止 footer 模板中的 .container 被误伤 */
.footer .container { flex: none; overflow-y: visible; max-width: 1200px; margin: 0 auto; }

/* ---------- 模块头 ---------- */
.module-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.module-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.module-icon { font-size: 22px; }
.module-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 数据表 ---------- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(30,58,138,.1); }
.data-table th, .data-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.data-table th { background: #eff6ff; color: #1e40af; font-weight: 600; }
.data-table tr:hover td { background: #f5f9ff; }
.cell-img { max-width: 64px; max-height: 48px; border-radius: 4px; }
.muted { color: #94a3b8; }
.ops { white-space: nowrap; }
.ops .link { margin-right: 10px; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  padding: 8px 14px; font-size: 13px; font-weight: 600; background: #e0e7ff; color: #3730a3;
  transition: all .15s;
}
.btn:hover { filter: brightness(.97); }
.btn.primary { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; border: none; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: #fff; border-color: #bfdbfe; color: #1e40af; }
.btn.danger { background: #dc2626; color: #fff; }
.btn.block { width: 100%; padding: 11px; font-size: 15px; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.link { background: none; border: none; color: #2563eb; cursor: pointer; font-size: 13px; padding: 0; }
.link.danger { color: #dc2626; }

/* ---------- 表单 / 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(30,58,138,.4);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.modal {
  width: 560px; max-width: 94vw; max-height: 90vh; overflow: hidden;
  background: #fff; border-radius: 14px; display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(30,58,138,.3);
}
.modal-head { padding: 16px 20px; border-bottom: 1px solid #eef2f7; font-weight: 700; font-size: 15px; color: #1e3a8a; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; color: #1e40af; font-weight: 600; }
.form-error { color: #dc2626; font-size: 12px; min-height: 16px; margin-top: 2px; }
.warn-box {
  background: #fff7ed; border: 1px solid #fdba74; border-radius: 10px;
  padding: 14px 16px; color: #9a3412; font-size: 13px; line-height: 1.7;
}
.warn-box strong { color: #7c2d12; }
.warn-box ul { margin: 8px 0 0 18px; padding: 0; }
.warn-box li { margin-bottom: 4px; }
.input {
  border: 1px solid #c7d6f5; border-radius: 8px; padding: 9px 11px;
  font-size: 14px; font-family: inherit; width: 100%; background: #fff; color: #1e293b;
}
.input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
textarea.input { resize: vertical; min-height: 70px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #eef2f7; }
.img-field { display: flex; flex-direction: column; gap: 6px; }
.file-input { font-size: 12px; }
.img-thumb { max-width: 120px; max-height: 90px; border-radius: 6px; border: 1px solid #e5edff; }

/* ---------- 分页 / 统计 / 状态 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.pager-info { color: #64748b; font-size: 13px; }
.empty, .loading, .error { text-align: center; padding: 40px; color: #64748b; }
.error { color: #dc2626; }
.summary-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 160px; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(30,58,138,.1); border-left: 4px solid #3b82f6; }
.stat-card.up { border-left-color: #dc2626; }
.stat-card.down { border-left-color: #16a34a; }
.stat-card.bal { border-left-color: #2563eb; }
/* 考勤统计专用语义色（2026-09-16 新增）：红涨绿跌是股票语义，用在「出勤/缺勤」上会反读，
   这里改用「好=绿 / 差=红 / 需注意=橙 / 中性=蓝」的业务语义。 */
.stat-card.good { border-left-color: #16a34a; }
.stat-card.bad { border-left-color: #dc2626; }
.stat-card.warn { border-left-color: #f59e0b; }
.stat-card.info { border-left-color: #2563eb; }
.stat-card.good .stat-val { color: #15803d; }
.stat-card.bad .stat-val { color: #b91c1c; }
.stat-card.warn .stat-val { color: #b45309; }
.stat-title { color: #64748b; font-size: 13px; }
.stat-val { font-size: 24px; font-weight: 700; margin-top: 6px; }
.center { text-align: center; }

/* ---------- 统计报表（2026-09-15 新增） ---------- */
/* 综合统计看板 / 档案统计看板共用：分节标题、分组单元格、横向条形图 */
.sec-title { font-size: 15px; font-weight: 700; color: #1e3a8a; margin: 24px 0 12px; padding-left: 10px; border-left: 4px solid #3b82f6; }
.grp-cell { font-weight: 600; color: #1e3a8a; background: #f8fbff; vertical-align: middle; text-align: center; }
.bar-chart { background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: 0 1px 3px rgba(30,58,138,.08); }
.bar-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.bar-label { width: 132px; flex: none; font-size: 13px; color: #475569; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 14px; background: #eef2f7; border-radius: 7px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: 7px; transition: width .35s; }
.bar-val { width: 56px; flex: none; font-size: 13px; font-weight: 600; color: #1e293b; }

/* ---------- 数据导入导出（2026-09-15 新增） ---------- */
.io-panel { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 3px rgba(30,58,138,.08); }
.io-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.io-tips { margin: 6px 0 0; padding-left: 22px; color: #475569; font-size: 13px; line-height: 1.9; }
.io-result { margin-top: 10px; }
.io-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.io-err-title { margin-top: 8px; font-size: 13px; font-weight: 600; color: #b91c1c; }
.io-err { font-size: 12px; color: #b91c1c; line-height: 1.7; }

/* ---------- 分享弹窗 ---------- */
.share-tip { font-size: 13px; color: #475569; line-height: 1.6; margin-bottom: 14px; }
.share-actions { display: flex; gap: 10px; margin: 4px 0 16px; flex-wrap: wrap; }
.share-steps { background: #f5f9ff; border: 1px solid #e2ecff; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #334155; line-height: 1.5; }
.share-steps ol { margin: 6px 0 0; padding-left: 20px; }
.share-steps li { margin-bottom: 4px; }

/* ---------- Toast ---------- */
.toast-box { position: fixed; top: 18px; right: 18px; z-index: 99; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1e3a8a; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; opacity: 0; transform: translateY(-8px); transition: all .25s; box-shadow: 0 6px 20px rgba(30,58,138,.3); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.info { background: #2563eb; }

/* ---------- 全站统一头部 ----------
   2026-09-15 修复：此处原先复制了一整份 .header / .header-inner / .header .nav ... 的样式，
   存在两个问题：
     ① 选择器用的是 .header .header-inner，而 templates/header.html 的真实结构是
        <div class="header"><div class="container">…，根本没有 header-inner 这个类，
        整段（含媒体查询）等于废码；
     ② 与 navigation-loader.js 自动注入的 /css/site-nav.css 重复定义同一批类，
        样式来源变成两处，容易打架。
   现全部删除，头部样式唯一来源 = /css/site-nav.css，与全站其它页面完全一致。 */

/* ---------- 全站统一底部（蓝白渐变，与顶部呼应） ---------- */
.wb-site-footer { flex-shrink: 0; background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 100%); color: #e0e7ff; font-size: 12px; text-align: center; padding: 16px 20px; }
.wb-foot-links { margin-bottom: 8px; line-height: 1.9; }
.wb-foot-links a { color: #bfdbfe; text-decoration: none; margin: 0 4px; }
.wb-foot-links a:hover { text-decoration: underline; }
.wb-foot-links span { color: rgba(255,255,255,.45); margin: 0 2px; }
.wb-foot-icp { color: #c7d2fe; }
.wb-foot-icp a { color: #c7d2fe; text-decoration: none; border-bottom: 1px dotted rgba(199,210,254,.6); }
.wb-foot-icp a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- 左侧分组默认折叠 ---------- */
.nav-group-title { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 4px; }
.nav-arrow { display: inline-block; font-size: 9px; transition: transform .15s; }
.nav-group:not(.collapsed) .nav-arrow { transform: rotate(90deg); }
.nav-group.collapsed .nav-item { display: none; }
.nav-home { font-weight: 600; }

/* ---------- 社区首页（默认视图） ---------- */
.home-panel { background: #fff; border: 1px solid #e0ecff; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(30,58,138,.06); }
.home-panel-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; color: #1e3a8a; }
.home-more { font-size: 13px; color: #2563eb; text-decoration: none; font-weight: 600; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.rent-card { border: 1px solid #e0ecff; border-radius: 10px; padding: 12px; background: #f8fbff; }
.rent-type { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-bottom: 8px; }
.rent-type.rent { background: #dcfce7; color: #166534; }
.rent-type.sale { background: #fee2e2; color: #991b1b; }
.rent-addr { font-size: 14px; font-weight: 600; color: #1e293b; }
.rent-price { font-size: 15px; color: #2563eb; font-weight: 700; margin: 4px 0; }
.phone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.phone-item { border: 1px solid #e0ecff; border-radius: 10px; padding: 10px 12px; background: #f8fbff; }
.phone-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.phone-num { font-size: 16px; color: #1e3a8a; font-weight: 700; margin-top: 2px; }
.phone-addr { font-size: 12px; margin-top: 2px; color: #64748b; }

/* ---------- 响应式 ---------- */
/* 头部响应式统一由 /css/site-nav.css 负责（2026-09-15 修复：
   原先这里 1100px / 980px 两个断点写的都是 .header .header-inner / .header .nav，
   类名与模板对不上，属废码，已删除，避免与 site-nav.css 的断点逻辑打架） */
@media (max-width: 980px) {
  .sidebar { width: 210px; }
}
/* 平板竖屏 / 大手机：顶栏三段式仍保持单行，适当缩小 */
@media (max-width: 720px) {
  .sidebar { width: 66px; }
  .nav-group-title, .nav-txt, .brand, .side-foot .cur-user { display: none; }
  .nav-item { justify-content: center; padding: 13px 0; font-size: 0; }
  .nav-item .nav-ico { font-size: 20px; margin: 0; }
  .side-foot { justify-content: center; padding: 12px 6px; }
  .side-foot .btn { padding: 6px 8px; font-size: 11px; }
  .topbar { padding: 0 10px; gap: 6px; }
  .tool-name { font-size: 15px; }
  .user-avatar { font-size: 15px; }
  .user-name { display: none; }
  .top-btn { padding: 6px 9px; font-size: 11px; }
  .container { padding: 14px; }
  .wb-foot-links { font-size: 12px; line-height: 2; }
}
/* 小手机：顶栏三段式紧凑化，工具名可省略过长部分 */
@media (max-width: 480px) {
  .topbar { gap: 4px; padding: 0 8px; }
  .topbar-center { min-width: 0; overflow: hidden; }
  .tool-name { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .top-btn { padding: 5px 7px; font-size: 10px; }
  .home-cards, .phone-grid { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ==================================================================
   考勤 / WIFI 打卡（2026-09-16）
   对应小程序 pages/personnel/attendance/index 与 pages/admin/index 的界面元素。
   ================================================================== */

/* 字段下方的补充说明（浏览器限制提示等） */
.field-hint { font-size: 12.5px; color: #6b7280; line-height: 1.6; margin-top: 6px; }

/* 「复选框 + 说明文字」一行 */
.check-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: #374151; cursor: pointer; }
.check-line input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* ---- WIFI 状态区（对应小程序 wifi-status 区块的四项指示） ---- */
.wifi-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.wifi-item { display: flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0; }
.wifi-k { color: #6b7280; flex: none; }
.wifi-v { font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wifi-v.ok { color: #15803d; }
.wifi-v.bad { color: #b91c1c; }

/* ---- 打卡按钮 ---- */
.checkin-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.checkin-btn { min-width: 118px; padding: 10px 18px; font-size: 15px; }

/* ---- 今日打卡时间线（每天 4 次：1上/1下/2上/2下） ---- */
.slot-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.slot-row {
  display: grid;
  grid-template-columns: 62px 1fr 130px 88px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
}
.slot-row.done { background: #f6fdf8; border-color: #c7e9d0; }
.slot-round { font-weight: 700; color: #0f766e; }
.slot-label { color: #374151; }
.slot-time { color: #6b7280; font-variant-numeric: tabular-nums; }
.slot-status { text-align: right; font-weight: 600; font-size: 13px; }
.slot-status.ok { color: #15803d; }
.slot-status.warn { color: #b45309; }
.slot-status.bad { color: #b91c1c; }
.slot-status.todo { color: #9ca3af; font-weight: 400; }

/* ---- 多条文本编辑器（允许的 WIFI 名称 / 公司网段） ---- */
.list-editor { display: flex; flex-direction: column; gap: 8px; }
.le-row { display: flex; gap: 8px; align-items: center; }
.le-input { flex: 1 1 auto; min-width: 0; }
.le-del { flex: none; }
.le-wrap { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; width: 100%; }
.le-wrap > .btn { align-self: flex-start; }

/* ---- 打卡须知（对应小程序 showCheckInNotice 弹窗内容） ---- */
.notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px 18px;
  line-height: 1.9;
  color: #78350f;
  font-size: 14px;
}
.notice-title { font-weight: 700; margin-bottom: 4px; }
.notice-line { color: #92400e; }

@media (max-width: 720px) {
  .wifi-status { grid-template-columns: 1fr; }
  .slot-row { grid-template-columns: 54px 1fr; row-gap: 4px; }
  .slot-time, .slot-status { text-align: left; }
}

/* ================= 维护记录汇总（对应小程序 pages/public-maintenance/maintenance-records） ================= */
.ms-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 14px;
}
.ms-field { display: flex; flex-direction: column; gap: 5px; }
.ms-label { font-size: 13px; color: #475569; }
.ms-field .input { min-width: 132px; }
.ms-btns { display: flex; gap: 8px; align-items: flex-end; }

/* ================= 打印 / 导出 PDF（对应小程序 generatePdf / compressImageToPDF 云函数） =================
   网页端不引第三方 PDF 库，走浏览器原生打印：在打印对话框里选「另存为 PDF」即为 PDF 导出。
   打印时侧栏、顶栏、工具条、面包屑一律隐藏，只留模块标题与内容，A4 友好。 */
@media print {
  #header-placeholder,
  #footer-placeholder,
  .sidebar,
  .topbar,
  .crumb-bar,
  .module-tools,
  .pager,
  .pagination,
  .toast-box,
  .modal-overlay,
  .side-tip { display: none !important; }

  body { background: #fff !important; }
  .app { display: block !important; }
  .main { padding: 0 !important; margin: 0 !important; }
  #container .module-head { border: none !important; padding-left: 0 !important; }
  .data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .data-table th, .data-table td { border: 1px solid #999 !important; padding: 4px 6px !important; }
  .stat-card, tr, .slot-row { break-inside: avoid; page-break-inside: avoid; }
  a { text-decoration: none; color: #000 !important; }
}

@media (max-width: 720px) {
  .ms-filter { flex-direction: column; align-items: stretch; }
  .ms-field .input { width: 100%; }
}

/* ================= 系统配置（2026-09-16 新增；替代原先的「空台账」页面） ================= */
.sys-form { max-width: 1080px; }
.sys-form .form-row { align-items: flex-start; }
.sys-form .section-title { margin-top: 22px; }
.sys-form .section-title:first-child { margin-top: 0; }

/* 只读摘要 chips（考勤联动区，配置本体在「WIFI打卡设置」里改） */
.cfg-readonly { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe;
  font-size: 12.5px; line-height: 1.7; white-space: nowrap;
}
.cfg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* 系统信息表（只读） */
.cfg-info-table { margin-top: 6px; }
.cfg-info-table th:first-child, .cfg-info-table td:first-child { width: 210px; color: #475569; }
.cfg-info-table td { word-break: break-all; }

/* ================= 首页轮播（数据源：门户配置 / 首页轮播图，两端同源） ================= */
.home-carousel { position: relative; margin-bottom: 16px; }
.carousel-track {
  position: relative; width: 100%; height: 210px;
  border-radius: 12px; overflow: hidden; background: #f1f5f9;
}
.carousel-slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0; transition: opacity .5s ease;
  display: block; text-decoration: none;
}
.carousel-slide.on { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  display: flex; flex-direction: column; gap: 2px;
}
.carousel-cap b { font-size: 16px; }
.carousel-cap span { font-size: 12.5px; opacity: .9; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1;
  cursor: pointer; transition: all .2s;
}
.carousel-dot.on { width: 20px; border-radius: 4px; background: #2563eb; }

/* ================= 首页公告条（数据源：信息公示 / 通知公告） ================= */
.home-notice-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; margin-bottom: 16px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  font-size: 13.5px; color: #78350f;
}
.hn-ico { flex: none; }
.hn-phone { flex: none; color: #92400e; font-weight: 600; }
.hn-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-more { flex: none; color: #2563eb; text-decoration: none; font-size: 13px; }
.hn-more:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .carousel-track { height: 150px; }
  .cfg-info-table th:first-child, .cfg-info-table td:first-child { width: 120px; }
  .sys-form .form-row { flex-direction: column; }
}


/* ============================================================
   【2026-09-16 新增】侧栏「管理后台」入口
   指向物业管理工具的专属后台（同目录下的 admin/），
   该后台不在工具箱首页注册，仅作为本工具的配套后台使用。
   ============================================================ */
.side-admin{
  display:flex;align-items:center;justify-content:center;gap:7px;
  margin:10px 12px 0;padding:9px 10px;
  border:1px dashed rgba(255,255,255,.22);border-radius:8px;
  color:#b9c5d3;font-size:12.5px;text-decoration:none;
  transition:background .15s,color .15s,border-color .15s;
}
.side-admin:hover{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.42)}

/* ============================================================
   【2026-09-16 权限整改】侧栏「未登录 / 无模块权限」引导
   权限改由后端裁剪后，未登录时后端不下发任何模块（侧栏只剩首页），
   这里给出明确提示与登录入口，避免一片空白让人以为工具坏了。
   ============================================================ */
.nav-empty{
  margin:14px 12px 0;padding:14px 12px;
  border:1px dashed rgba(255,255,255,.2);border-radius:8px;
  color:#aebacb;font-size:12.5px;line-height:1.7;text-align:center;
}
.nav-empty .btn{margin-bottom:8px}
.nav-empty-tip{color:#8b98a8;font-size:11.5px;margin-top:4px}
