/* ============================================================
   考勤排班模块 · 共享样式（view/v2/clock/attendance/ 各页面共用）
   Bootstrap 5 之上；设计令牌集中在 :root，浅色主题。
   2026-11-13 v2：整体视觉重做（软阴影 / 圆角 / 拖拽态），类名保持向后兼容。
   ============================================================ */
:root {
  --att-bg: #f5f6f8;
  --att-card: #ffffff;
  --att-line: #eceef1;
  --att-txt: #1f2329;
  --att-sub: #6b7280;
  --att-brand: #2563eb;
  --att-brand-soft: #eef4ff;
  --att-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .06);
  --att-shadow-lg: 0 8px 30px rgba(16, 24, 40, .14);
  --att-radius: 12px;
}

/* ---------- 模块二级导航 ---------- */
.att-nav { display: flex; flex-wrap: wrap; gap: .3rem; margin: .9rem 0 1rem; padding: .3rem;
           background: var(--att-card); border: 1px solid var(--att-line); border-radius: 2rem;
           box-shadow: var(--att-shadow); width: fit-content; max-width: 100%; }
.att-nav-link { padding: .34rem 1rem; border-radius: 2rem; font-size: .85rem; font-weight: 500;
                color: var(--att-sub); text-decoration: none; transition: all .15s ease; }
.att-nav-link:hover { background: var(--att-brand-soft); color: var(--att-brand); }
.att-nav-link.active { background: var(--att-brand); color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .35); }

/* ---------- 卡片 ---------- */
.att-card { background: var(--att-card); border: 1px solid var(--att-line); border-radius: var(--att-radius);
            padding: 1.1rem 1.15rem; margin-bottom: 1rem; box-shadow: var(--att-shadow); }
.att-card h6 { font-weight: 700; margin-bottom: .8rem; color: var(--att-txt); letter-spacing: .01em; }
.att-card h6 i { color: var(--att-brand); }

/* ---------- 提示条 ---------- */
.att-tip { border-radius: 10px; padding: .55rem .95rem; font-size: .85rem; margin-bottom: .85rem;
           display: flex; align-items: center; gap: .5rem; }
.att-tip.green { background: #e8f7ee; color: #0f5132; border: 1px solid #bfe8cf; }
.att-tip.red   { background: #fdeef0; color: #842029; border: 1px solid #f5c6cb; }

/* ---------- 日历（v2 拖拽版） ---------- */
.sch-wrap { background: var(--att-card); border: 1px solid var(--att-line); border-radius: var(--att-radius);
            box-shadow: var(--att-shadow); padding: 1rem 1.1rem 1.2rem; }
.sch-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.sch-month { font-size: 1.15rem; font-weight: 800; color: var(--att-txt); min-width: 108px; text-align: center; }
.sch-nav-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--att-line);
               background: #fff; color: var(--att-sub); display: inline-flex; align-items: center;
               justify-content: center; cursor: pointer; transition: all .15s; }
.sch-nav-btn:hover { border-color: var(--att-brand); color: var(--att-brand); background: var(--att-brand-soft); }
.sch-legend { display: flex; flex-wrap: wrap; gap: .35rem .8rem; font-size: .78rem; color: var(--att-sub); margin-left: auto; }
.sch-legend .lg { display: inline-flex; align-items: center; gap: .3rem; }
.sch-legend .lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.sch-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sch-cal .wd { text-align: center; font-size: .75rem; font-weight: 600; color: var(--att-sub); padding: 6px 0 8px; }
.sch-cal .wd.wend { color: #f59e0b; }
.sch-cell { min-height: 106px; border: 1.5px solid var(--att-line); border-radius: 10px; padding: 5px 6px;
            font-size: .74rem; background: #fff; cursor: pointer; overflow: hidden; position: relative;
            transition: border-color .12s, box-shadow .12s, background .12s; }
.sch-cell:hover { border-color: #c9d4e3; box-shadow: 0 2px 10px rgba(16, 24, 40, .08); }
.sch-cell.wend { background: #fafbfc; }
.sch-cell.out { background: #f6f7f9; opacity: .55; cursor: default; }
.sch-cell .d { font-weight: 700; color: var(--att-txt); display: inline-flex; align-items: center;
               justify-content: center; min-width: 22px; height: 22px; border-radius: 7px; }
.sch-cell.today { border-color: var(--att-brand); background: var(--att-brand-soft); }
.sch-cell.today .d { background: var(--att-brand); color: #fff; }
/* 拖拽悬停态 */
.sch-cell.drop-ok { border-color: var(--att-brand); border-style: dashed; background: var(--att-brand-soft);
                    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .15); }
.sch-cell.dragging-src { opacity: .4; }

/* 班次事件块：浅底 + 左色条（替代旧实色块） */
.sch-ev { border-radius: 6px; padding: 2px 5px 2px 7px; margin-top: 3px; white-space: nowrap;
          overflow: hidden; text-overflow: ellipsis; cursor: grab; position: relative;
          border-left: 3px solid transparent; font-weight: 500; line-height: 1.5;
          transition: transform .12s, filter .12s; }
.sch-ev:hover { filter: brightness(.97); transform: translateY(-1px); }
.sch-ev:active { cursor: grabbing; }
.sch-ev small { font-weight: 400; opacity: .8; margin-left: 3px; }
.sch-more { font-size: .7rem; color: var(--att-sub); padding-left: 4px; margin-top: 2px; cursor: pointer; }
.sch-more:hover { color: var(--att-brand); }
.sch-ev-t { font-weight: 600; }
.sch-cal.can-edit .sch-cell { cursor: pointer; }
.sch-scope { font-size: .78rem; color: var(--att-brand); background: var(--att-brand-soft);
             border-radius: 2rem; padding: .15rem .6rem; }
.sch-foot { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--att-sub);
            margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--att-line); }
.sch-body { position: relative; }
.sch-lock { position: absolute; inset: 34px 0 0; z-index: 3; display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: .3rem; border-radius: 10px;
            background: rgba(255, 255, 255, .72); text-align: center; }
.sch-lock i { font-size: 2.1rem; color: #c7d0dc; }
.sch-lock b { font-size: .98rem; color: var(--att-txt); }
.sch-lock small { font-size: .78rem; color: var(--att-sub); }

/* ---------- 左侧部门栏（排班页主结构） ---------- */
.sch-page { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 1rem; align-items: start; }
.sch-depts { background: var(--att-card); border: 1px solid var(--att-line); border-radius: var(--att-radius);
             box-shadow: var(--att-shadow); padding: .55rem; position: sticky; top: 3.4rem; }
.dept-head { display: flex; align-items: center; font-size: .78rem; font-weight: 700; color: var(--att-sub);
             padding: .3rem .35rem .5rem; letter-spacing: .03em; }
.dept-list { display: flex; flex-direction: column; gap: 2px; max-height: 58vh; overflow: auto; }
.dept-item { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; cursor: pointer;
             border: 1px solid transparent; background: transparent; border-radius: 9px; padding: .45rem .45rem;
             transition: background .13s, border-color .13s; }
.dept-item:hover { background: #f8fafc; }
.dept-item.on { background: var(--att-brand-soft); border-color: #c7dbff; }
.dept-ico { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
            background: #eef1f5; color: #64748b; font-size: .8rem; transition: all .13s; }
.dept-item.on .dept-ico { background: var(--att-brand); color: #fff; }
.dept-name { display: flex; flex-direction: column; min-width: 0; font-size: .85rem; line-height: 1.2;
             color: var(--att-txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dept-item.on .dept-name { color: var(--att-brand); font-weight: 700; }
.dept-name small { font-size: .69rem; color: var(--att-sub); font-weight: 400; margin-top: 2px; }
.dept-n { margin-left: auto; flex: none; font-size: .7rem; color: var(--att-sub); background: #f1f3f5;
          border-radius: 6px; padding: .05rem .3rem; }
.dept-none { font-size: .76rem; color: var(--att-sub); padding: .8rem .5rem; line-height: 1.5;
             display: flex; gap: .35rem; }
.dept-foot { margin-top: .5rem; padding: .45rem .5rem; border-top: 1px solid var(--att-line);
             font-size: .74rem; color: var(--att-sub); line-height: 1.4; }
@media (max-width: 900px) {
  .sch-page { grid-template-columns: 1fr; }
  .sch-depts { position: static; }
  .dept-list { flex-direction: row; flex-wrap: wrap; max-height: none; }
  .dept-item { width: auto; }
  .dept-n { margin-left: 0; }
}


/* ---------- 排班弹层：人员双栏（左可选 → 右已排，拖拽） ---------- */
.pk { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pk-col { border: 1px solid var(--att-line); border-radius: 10px; overflow: hidden;
          display: flex; flex-direction: column; background: #fff; }
.pk-head { display: flex; flex-direction: column; gap: .35rem; padding: .45rem .6rem;
           background: #fafbfc; border-bottom: 1px solid var(--att-line);
           font-size: .82rem; font-weight: 600; color: var(--att-txt); }
.pk-title { display: flex; align-items: center; gap: .4rem; }
.pk-head b { color: var(--att-brand); }
.pk-search { width: 100%; max-width: none; height: 30px; font-size: .78rem; }
.sch-pick-head { display: flex; align-items: baseline; gap: .5rem; margin: 1rem 0 .35rem;
                 font-size: .85rem; font-weight: 700; color: var(--att-txt); }
.sch-pick-head small { font-weight: 400; color: var(--att-sub); font-size: .76rem; }

/* 同日重复排班开关（花名册头部） */
.mini-sw { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 500;
           color: var(--att-sub); cursor: pointer; user-select: none; margin-left: auto;
           border: 1px solid var(--att-line); background: #fff; border-radius: 2rem; padding: .1rem .45rem; }
.mini-sw .k { width: 24px; height: 13px; border-radius: 8px; background: #d6dbe3; position: relative;
              flex: none; transition: background .15s; }
.mini-sw .k::after { content: ''; position: absolute; top: 2px; left: 2px; width: 9px; height: 9px;
                     border-radius: 50%; background: #fff; transition: left .15s; }
.mini-sw.on { border-color: #bfe8cf; background: #f2fbf5; color: #0f5132; font-weight: 600; }
.mini-sw.on .k { background: #16a34a; }
.mini-sw.on .k::after { left: 13px; }
.mini-sw.disabled { opacity: .6; pointer-events: none; }

/* 已排标注 */
.att-member.is-busy { opacity: .66; }
.att-member.is-busy:hover { opacity: 1; }
.tag-busy { background: #fdeef0; color: #b42318; border-radius: .3rem; padding: 0 .3rem; font-size: .66rem;
            font-weight: 700; margin-left: .1rem; white-space: nowrap; }

.pk-list { padding: .45rem .5rem; min-height: 180px; max-height: 320px; overflow: auto; }
.pk-drop { background: #fcfdff; }
.pk-over { background: var(--att-brand-soft); outline: 2px dashed var(--att-brand); outline-offset: -4px; }
.pk-grp { font-size: .72rem; font-weight: 700; color: var(--att-sub); margin: .4rem .1rem .15rem;
          display: flex; align-items: center; gap: .35rem; }
.pk-grp span { background: #f1f3f5; border-radius: 6px; padding: 0 .3rem; font-weight: 500; }
.pk-empty { color: var(--att-sub); font-size: .8rem; text-align: center; padding: 3.4rem 0; }
@media (max-width: 640px) { .pk { grid-template-columns: 1fr; } }

/* ---------- 人员面板 ---------- */
.att-member { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--att-line);
              border-radius: 2rem; padding: .22rem .75rem .22rem .28rem; margin: .18rem; font-size: .82rem;
              cursor: pointer; background: #fff; transition: all .13s; user-select: none; }
.att-member:hover { border-color: #c9d4e3; background: #f8faff; box-shadow: 0 2px 8px rgba(16, 24, 40, .08); }
.att-member[draggable="true"] { cursor: grab; }
.att-member[draggable="true"]:active { cursor: grabbing; }
.att-member.dragging-src { opacity: .4; }
.att-member .dot { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; flex: none;
                   box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.att-member.picked { border-color: var(--att-brand); background: var(--att-brand-soft); }
.att-member .badge-soft { font-size: .72rem; }
.sch-side { position: sticky; top: 3.2rem; }
.sch-hint { font-size: .78rem; color: var(--att-sub); background: var(--att-brand-soft);
            border-radius: 8px; padding: .45rem .7rem; margin-bottom: .6rem; }
.att-picked { border: 1.5px dashed #c9d4e3; border-radius: 10px; padding: .5rem; min-height: 2.6rem;
              background: #fafbfc; }
.att-picked.over { border-color: var(--att-brand); background: var(--att-brand-soft); }

/* ---------- 表格 ---------- */
.att-table { width: 100%; font-size: .85rem; }
.att-table th { font-weight: 600; color: var(--att-sub); white-space: nowrap; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.att-table td, .att-table th { padding: .5rem .55rem; border-bottom: 1px solid var(--att-line); vertical-align: middle; }

/* ---------- 弹层（不依赖 bootstrap.bundle，纯 Vue 控制） ---------- */
.att-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px);
            z-index: 1050; display: flex; align-items: flex-start; justify-content: center;
            padding: 5vh 1rem; overflow: auto; }
.att-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
             padding: 1.25rem 1.35rem; box-shadow: var(--att-shadow-lg); animation: att-pop .18s ease; }
@keyframes att-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.att-modal h6 { font-weight: 700; margin-bottom: .9rem; font-size: 1.02rem; }
.att-modal .fl { font-size: .8rem; font-weight: 600; color: var(--att-sub); margin: .6rem 0 .25rem; }
/* 只读字段（日期 / 归属部门：由日历点击位置与左栏部门决定，不可改） */
.ro-field { display: flex; align-items: center; gap: .4rem; height: 31px; padding: .2rem .55rem;
            border: 1px dashed #dfe3e8; border-radius: 8px; background: #fafbfc;
            font-size: .84rem; font-weight: 600; color: var(--att-txt);
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-field i { color: #9aa4b2; font-size: .78rem; flex: none; }
/* 尺寸：xl = 1140（排班表单）；day = 日期动作小窗 */
.att-mask .att-modal.modal-xl { max-width: 1140px; padding: 1.35rem 1.6rem 1.5rem; }
.att-mask .att-modal.modal-day { max-width: 460px; }
.att-mask .att-modal.modal-xl .pk-list { max-height: 380px; }
.att-mask .att-modal.modal-xl .pk-empty { padding: 6rem 0; }

/* ---------- 复制以往班次（二级弹层） ---------- */
.att-mask.cp-mask { z-index: 1065; background: rgba(15, 23, 42, .38); }
.att-mask .att-modal.cp-modal { max-width: 720px; }
/* 弹层头部小按钮：复制以往班次 */
.btn-copy { display: inline-flex; align-items: center; border: 1px solid var(--att-line);
            background: #f7f9fc; color: var(--att-sub); border-radius: 999px;
            font-size: .76rem; font-weight: 600; padding: .22rem .68rem; white-space: nowrap;
            transition: all .13s; }
.btn-copy:hover { border-color: var(--att-brand); color: var(--att-brand); background: #eef4ff; }
.cp-note { display: flex; align-items: center; gap: .2rem; margin: -.35rem 0 .7rem;
           padding: .4rem .55rem; border-radius: 8px; font-size: .78rem;
           background: #eef6ff; color: #1d4ed8; border: 1px solid #d8e7ff; }
.cp-list { max-height: 52vh; overflow: auto; border: 1px solid var(--att-line); border-radius: 10px; }
.cp-row { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; cursor: pointer;
          border-bottom: 1px solid var(--att-line); transition: background .12s; }
.cp-row:last-child { border-bottom: 0; }
.cp-row:hover { background: #f5f9ff; }
.cp-row:hover .cp-pick { opacity: 1; color: var(--att-brand); }
.cp-date { flex: none; width: 52px; text-align: center; line-height: 1.1;
           border-right: 1px solid var(--att-line); padding-right: .5rem; }
.cp-date b { display: block; font-size: .92rem; color: var(--att-txt); }
.cp-date small { color: var(--att-sub); font-size: .66rem; }
.cp-main { min-width: 0; flex: 1; }
.cp-title { font-size: .86rem; font-weight: 700; color: var(--att-txt);
            display: flex; align-items: center; gap: .35rem; }
.cp-sub { margin-top: .18rem; font-size: .74rem; color: var(--att-sub);
          display: flex; flex-wrap: wrap; gap: .45rem; }
.cp-sub span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cp-pick { color: #c2ccd8; opacity: .55; font-size: 1rem; flex: none; }
.cp-pager { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .78rem;
            color: var(--att-sub); }
.cp-hint { margin-top: .55rem; padding: .45rem .6rem; border-radius: 8px; font-size: .75rem;
           background: #f8fafc; color: var(--att-sub); border: 1px dashed var(--att-line); }

/* 日期动作小窗 */
.day-act { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .1rem 0 .7rem; }
.day-act-btn { display: flex; align-items: center; gap: .6rem; text-align: left; cursor: pointer;
               border: 1.5px solid var(--att-line); background: #fff; border-radius: 12px;
               padding: .7rem .8rem; transition: all .13s; }
.day-act-btn:hover { border-color: #c9d4e3; background: #f8faff; transform: translateY(-1px); }
.day-act-btn.primary { border-color: #c7dbff; background: var(--att-brand-soft); }
.day-act-btn i { font-size: 1.35rem; color: var(--att-brand); flex: none; }
.day-act-btn b { display: block; font-size: .9rem; color: var(--att-txt); }
.day-act-btn small { font-size: .73rem; color: var(--att-sub); }
.day-list { border-top: 1px solid var(--att-line); padding-top: .3rem; max-height: 44vh; overflow: auto; }
.day-row { display: flex; align-items: center; gap: .55rem; padding: .5rem .45rem; border-radius: 9px;
           cursor: pointer; }
.day-row:hover { background: #f8faff; }
.day-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.day-main { min-width: 0; flex: 1; }
.day-t { font-size: .86rem; font-weight: 600; color: var(--att-txt); }
.day-s { font-size: .75rem; color: var(--att-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-team { font-size: .72rem; color: var(--att-sub); background: #f1f3f5; border-radius: 6px;
            padding: .05rem .35rem; flex: none; }


/* 班次类型分段选择 */
.sch-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: #f1f3f5;
           border-radius: 10px; padding: 4px; }
.sch-seg button { border: 0; background: transparent; border-radius: 8px; padding: .42rem .3rem;
                  font-size: .82rem; color: var(--att-sub); cursor: pointer; font-weight: 500; transition: all .13s; }
.sch-seg button.on { background: #fff; color: var(--att-txt); font-weight: 700; box-shadow: 0 1px 6px rgba(16,24,40,.12); }

/* ---------- 打卡终端（竖屏手机） ---------- */
.punch-wrap { max-width: 430px; margin: 0 auto; }
.punch-btn { width: 100%; padding: 1rem; font-size: 1.15rem; border-radius: 1rem; }
.punch-sched { border: 2px solid var(--att-line); border-radius: .8rem; padding: .7rem .9rem;
               margin-bottom: .6rem; cursor: pointer; background: #fff; transition: all .13s; }
.punch-sched.picked { border-color: var(--att-brand); background: var(--att-brand-soft); }
.punch-tag { font-size: .72rem; border-radius: .35rem; padding: .05rem .45rem; color: #fff; }

/* ---------- 通用小件 ---------- */
.badge-soft { background: #f1f3f5; color: var(--att-sub); border-radius: .35rem; padding: .1rem .45rem; font-size: .75rem; }
.text-brand { color: var(--att-brand); }
.btn-att { background: var(--att-brand); border: 0; color: #fff; font-weight: 600; border-radius: 10px; }
.btn-att:hover { background: #1d4ed8; color: #fff; }
.btn-ghost { border: 1px solid var(--att-line); background: #fff; color: var(--att-sub); border-radius: 10px; }
.btn-ghost:hover { border-color: #c9d4e3; color: var(--att-txt); background: #fafbfc; }

/* 保留旧日历类名（兼容未重做页面） */
.att-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.att-cal .wd { text-align: center; font-size: .75rem; color: var(--att-sub); padding: 4px 0; }
.att-cal .cell { min-height: 84px; border: 1px solid var(--att-line); border-radius: 6px; padding: 4px;
                 font-size: .72rem; background: #fff; cursor: pointer; overflow: hidden; }
.att-cal .cell.out { background: #f8f9fa; color: #ced4da; }
.att-cal .cell .d { font-weight: 600; }
.att-ev { border-radius: 4px; padding: 1px 4px; margin-top: 2px; white-space: nowrap; overflow: hidden;
          text-overflow: ellipsis; color: #fff; }


/* ============================================================
   2026-11-16 全模块视觉重做（config / approve / report / my / punch）
   —— 只新增类名，上面 schedule 页在用的 .sch-* / .att-nav / .att-card 一行没动
   ============================================================ */

/* ---------- 页面骨架：页头 ---------- */
.att-page { max-width: 1320px; margin: 0 auto; }
.att-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin: 1rem 0 .85rem; }
.att-head .t { font-size: 1.3rem; font-weight: 800; color: var(--att-txt); line-height: 1.2; letter-spacing: .01em; }
.att-head .t i { color: var(--att-brand); margin-right: .3rem; }
.att-head .s { font-size: .82rem; color: var(--att-sub); margin-top: .3rem; line-height: 1.5; }
.att-head .acts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }

/* ---------- KPI 数字卡 ---------- */
.att-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-bottom: .9rem; }
@media (max-width: 900px) { .att-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.att-kpi { position: relative; overflow: hidden; background: var(--att-card); border: 1px solid var(--att-line);
           border-radius: var(--att-radius); padding: .72rem .85rem; box-shadow: var(--att-shadow); }
.att-kpi::after { content: ''; position: absolute; right: -22px; top: -22px; width: 66px; height: 66px;
                  border-radius: 50%; background: #f4f7fb; }
.att-kpi .k { position: relative; font-size: .75rem; color: var(--att-sub); display: flex; align-items: center; gap: .28rem; }
.att-kpi .v { position: relative; margin-top: .1rem; font-size: 1.5rem; font-weight: 800; color: var(--att-txt);
              line-height: 1.3; font-variant-numeric: tabular-nums; }
.att-kpi .v small { font-size: .72rem; font-weight: 600; color: var(--att-sub); margin-left: .18rem; }
.att-kpi .h { position: relative; font-size: .72rem; color: #98a2b3; }
.att-kpi.brand .v { color: var(--att-brand); }
.att-kpi.ok .v { color: #0f5132; }
.att-kpi.warn .v { color: #b45309; }
.att-kpi.bad .v { color: #b42318; }

/* ---------- 分段切换 ---------- */
.att-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: #f1f3f5; border-radius: 10px; }
.att-seg button { border: 0; background: transparent; border-radius: 8px; padding: .36rem .8rem;
                  font-size: .82rem; font-weight: 500; color: var(--att-sub); cursor: pointer; transition: all .13s; }
.att-seg button:hover { color: var(--att-txt); }
.att-seg button.on { background: #fff; color: var(--att-txt); font-weight: 700;
                     box-shadow: 0 1px 6px rgba(16, 24, 40, .12); }
.att-seg button .n { font-size: .72rem; margin-left: .22rem; color: #98a2b3; }
.att-seg button.on .n { color: var(--att-brand); }

/* ---------- 工具条 / 搜索 ---------- */
.att-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.att-toolbar .sp { margin-left: auto; }
.att-search { position: relative; }
.att-search > i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%);
                  color: #9aa4b2; font-size: .8rem; pointer-events: none; }
.att-search input { height: 32px; min-width: 11rem; padding: .2rem .6rem .2rem 1.75rem;
                    font-size: .82rem; border: 1px solid var(--att-line); border-radius: 9px; background: #fff; }
.att-search input:focus { outline: none; border-color: var(--att-brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.att-sel { height: 32px; font-size: .82rem; border: 1px solid var(--att-line); border-radius: 9px;
           background: #fff; padding: .1rem .5rem; color: var(--att-txt); }
.att-sel:focus { outline: none; border-color: var(--att-brand); }

/* ---------- 表格容器（粘性表头 / 合计行 / 数字列） ---------- */
.att-tbl { border: 1px solid var(--att-line); border-radius: 10px; overflow: auto; }
.att-tbl .att-table { margin: 0; }
.att-tbl .att-table thead th { position: sticky; top: 0; z-index: 1; background: #fafbfc;
                               font-size: .74rem; text-transform: none; letter-spacing: .02em; }
.att-table tbody tr:hover { background: #f8faff; }
.att-table td.num, .att-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.att-table tfoot td { font-weight: 700; background: #fafbfc; border-top: 1px solid var(--att-line); }
.att-table th.sortable { cursor: pointer; user-select: none; }
.att-table th.sortable:hover { color: var(--att-brand); }
.att-table th .ar { font-size: .68rem; color: #b6bfcc; margin-left: .15rem; }

/* ---------- 状态 pill ---------- */
.pill { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px;
        padding: .05rem .55rem; font-size: .73rem; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.pill-ok { background: #e8f7ee; color: #0f5132; }
.pill-warn { background: #fff4e5; color: #b45309; }
.pill-bad { background: #fdeef0; color: #b42318; }
.pill-info { background: #eef4ff; color: #1d4ed8; }
.pill-inspect { background: #f2ecfd; color: #5b2c91; }
.pill-mute { background: #f1f3f5; color: #5b6472; }

/* ---------- 进度条 ---------- */
.att-bar { height: 6px; min-width: 56px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.att-bar > i { display: block; height: 100%; border-radius: 99px; background: var(--att-brand); }
.att-bar.ok > i { background: #16a34a; }
.att-bar.warn > i { background: #f59e0b; }
.att-bar.bad > i { background: #dc2626; }

/* ---------- 空状态 / 骨架屏 ---------- */
.att-empty { text-align: center; padding: 2.4rem 1rem; color: var(--att-sub); }
.att-empty > i { display: block; font-size: 2rem; color: #c7d0dc; margin-bottom: .45rem; }
.att-empty > b { display: block; font-size: .9rem; color: var(--att-txt); margin-bottom: .2rem; }
.att-empty > span { font-size: .78rem; }
.att-skel { border-radius: 6px; background: linear-gradient(90deg, #f1f3f5 25%, #f8f9fa 37%, #f1f3f5 63%);
            background-size: 400% 100%; animation: att-shimmer 1.2s ease infinite; }
@keyframes att-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- 说明条（页内小提示） ---------- */
.att-note { display: flex; align-items: flex-start; gap: .45rem; padding: .5rem .7rem; margin-bottom: .75rem;
            border-radius: 9px; font-size: .78rem; line-height: 1.6;
            background: #f7f9fc; color: #475467; border: 1px solid var(--att-line); }
.att-note > i { color: var(--att-brand); flex: none; margin-top: .1rem; }
.att-note.warn { background: #fffaf2; border-color: #f7e2c0; color: #8a5300; }
.att-note.warn > i { color: #d97706; }
.att-note.ok { background: #ecfdf5; border-color: #a7f3d0; color: #0f5132; }
.att-note.ok > i { color: #0f5132; }

/* ---------- 主从两栏（审批页） ---------- */
.md-wrap { display: grid; grid-template-columns: 348px minmax(0, 1fr); gap: .9rem; align-items: start; }
@media (max-width: 991px) { .md-wrap { grid-template-columns: 1fr; } }
.md-list { background: var(--att-card); border: 1px solid var(--att-line); border-radius: var(--att-radius);
           box-shadow: var(--att-shadow); overflow: hidden; }
.md-list-h { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem;
             background: #fafbfc; border-bottom: 1px solid var(--att-line);
             font-size: .8rem; font-weight: 700; color: var(--att-txt); }
.md-items { max-height: calc(100vh - 300px); overflow: auto; }
.md-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--att-line);
           background: #fff; padding: .6rem .8rem; cursor: pointer; transition: background .12s; }
.md-item:last-child { border-bottom: 0; }
.md-item:hover { background: #f8faff; }
.md-item.on { background: var(--att-brand-soft); box-shadow: inset 3px 0 0 var(--att-brand); }
.md-item .l1 { display: flex; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 700; color: var(--att-txt); }
.md-item .l1 .pill { margin-left: auto; }
.md-item .l2 { display: flex; flex-wrap: wrap; gap: .2rem .55rem; margin-top: .22rem;
               font-size: .75rem; color: var(--att-sub); }
.md-pane { background: var(--att-card); border: 1px solid var(--att-line); border-radius: var(--att-radius);
           box-shadow: var(--att-shadow); padding: 1rem 1.1rem; min-height: 320px; }

/* ---------- 审批链路时间轴 ---------- */
.att-flow { list-style: none; margin: 0; padding: 0; }
.att-flow li { position: relative; padding: 0 0 .75rem 1.25rem; font-size: .8rem; color: var(--att-txt); }
.att-flow li::before { content: ''; position: absolute; left: 2px; top: .34rem; width: 8px; height: 8px;
                       border-radius: 50%; background: #cbd5e1; }
.att-flow li:not(:last-child)::after { content: ''; position: absolute; left: 5.5px; top: 1.2rem; bottom: .1rem;
                                       width: 1px; background: #e5e9f0; }
.att-flow li.ok::before { background: #16a34a; }
.att-flow li.bad::before { background: #dc2626; }
.att-flow li.now::before { background: var(--att-brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
.att-flow .who { font-weight: 700; }
.att-flow .tm { color: var(--att-sub); font-size: .73rem; margin-left: .35rem; }
.att-flow .op { display: block; color: var(--att-sub); font-size: .76rem; margin-top: .1rem; }

/* ---------- 图片灯箱 ---------- */
.att-light { position: fixed; inset: 0; z-index: 1080; background: rgba(15, 23, 42, .84);
             display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.att-light img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.att-light .x { position: absolute; top: 1rem; right: 1.1rem; color: #fff; font-size: 1.5rem; cursor: pointer; opacity: .8; }
.att-light .x:hover { opacity: 1; }

/* ---------- 打卡缩略图（打卡记录 / 佐证） ---------- */
.att-shots { display: flex; flex-wrap: wrap; gap: .45rem; }
.att-shot { width: 96px; border: 1px solid var(--att-line); border-radius: 9px; overflow: hidden; background: #fff; }
.att-shot img { width: 100%; height: 66px; object-fit: cover; display: block; cursor: zoom-in; }
.att-shot .cap { padding: .1rem .3rem; font-size: .68rem; color: var(--att-sub); text-align: center; line-height: 1.5; }

/* ---------- 打卡终端（竖屏常置平板的形态） ---------- */
.term { max-width: 520px; margin: 0 auto; }
.term-card { background: #fff; border: 1px solid var(--att-line); border-radius: 16px;
             box-shadow: var(--att-shadow); padding: 1rem 1.05rem; margin-bottom: .85rem; }
.term-bind { display: flex; align-items: center; gap: .7rem; }
.term-bind .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
                 background: var(--att-brand-soft); color: var(--att-brand); font-size: 1.15rem; }
.term-bind .nm { font-size: .95rem; font-weight: 700; color: var(--att-txt); line-height: 1.35; }
.term-bind .sub { font-size: .76rem; color: var(--att-sub); line-height: 1.5; }
.term-clock { display: flex; align-items: baseline; gap: .45rem; }
.term-clock b { font-size: 2.05rem; font-weight: 800; line-height: 1; color: var(--att-txt);
                font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.term-clock span { font-size: .78rem; color: var(--att-sub); }
.term-sched { border: 1.5px solid var(--att-line); border-radius: 12px; padding: .62rem .72rem;
              margin-bottom: .5rem; background: #fff; cursor: pointer; transition: all .13s; }
.term-sched:hover { border-color: #c9d4e3; }
.term-sched.on { border-color: var(--att-brand); background: var(--att-brand-soft); }
.term-shot { display: block; border: 1.5px dashed #c9d4e3; border-radius: 14px; padding: 1.3rem .8rem;
             text-align: center; background: #fafbfc; cursor: pointer; transition: all .13s; }
.term-shot:hover { border-color: var(--att-brand); background: #f7faff; }
.term-shot.has { border-style: solid; border-color: #bfe8cf; background: #f7fdf9; padding: .4rem; }
.term-big { width: 100%; border: 0; border-radius: 14px; padding: .95rem; font-size: 1.05rem; font-weight: 700;
            color: #fff; background: var(--att-brand); box-shadow: 0 6px 18px rgba(37, 99, 235, .3); }
.term-big:disabled { background: #c7d0dc; box-shadow: none; }
.term-big.dark { background: #0f172a; box-shadow: 0 6px 18px rgba(15, 23, 42, .22); }
.term-big.dark:disabled { background: #c7d0dc; }
.term-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
            padding: 4px; background: #f1f3f5; border-radius: 12px; }
.term-seg button { border: 0; background: transparent; border-radius: 9px; padding: .5rem .3rem;
                   font-size: .85rem; font-weight: 500; color: var(--att-sub); cursor: pointer; }
.term-seg button.on { background: #fff; color: var(--att-txt); font-weight: 700; box-shadow: 0 1px 6px rgba(16, 24, 40, .12); }
.term-result { text-align: center; padding: .8rem .4rem .3rem; }
.term-result .ok-ic { font-size: 2.6rem; color: #16a34a; }
.term-result .bad-ic { font-size: 2.6rem; color: #dc2626; }

/* 小工具 */
.tnum { font-variant-numeric: tabular-nums; }
.tiny { font-size: .72rem; }
.sub { color: var(--att-sub); }


/* ================================================================
   配置页（2026-11-16 v2 重做）
   —— 与 /attendance（排班日历）同构：左边「选择门店」，右边只显示这一家店的配置；
      栅格 / 左栏 / 卡片直接复用 .sch-page .sch-depts .dept-* .sch-wrap .sch-toolbar，
      两页看起来是同一个系统，而不是各画一套。
   —— 概念上不再有「终端设备」这个可登记对象：一店只配「门店打卡账号」+「打卡机账号」。
   ================================================================ */

/* 左栏：通用设置的分组标题（与「选择门店」同款，加一条分隔线） */
.dept-head-split { margin-top: .5rem; padding-top: .7rem; border-top: 1px solid var(--att-line); }

/* 左栏：门店的打卡机状态点（绿=能打卡 / 橙=还没指定打卡机） */
.dept-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dept-dot.ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }
.dept-dot.no { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .14); }

/* 右区标题（放在 .sch-toolbar 里，替代日历的月份按钮组）；吃掉剩余宽度，状态 pill 自然靠右 */
.cfg-title { min-width: 0; flex: 1 1 auto; }
.cfg-title .t { font-size: 1.02rem; font-weight: 800; color: var(--att-txt); line-height: 1.2; }
.cfg-title .s { font-size: .75rem; color: var(--att-sub); margin-top: .15rem; }

/* 一个配置区块 */
.cfg-sec { border: 1px solid var(--att-line); border-radius: 12px;
           padding: .85rem .95rem; margin-bottom: .8rem; }
.cfg-sec.is-main { border-color: #d9e5fb; background: linear-gradient(180deg, #f9fbff, #fff); }
.cfg-sec .sec-h { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .75rem; }
.cfg-sec .sec-h .ico { width: 28px; height: 28px; border-radius: 8px; flex: none;
                       display: grid; place-items: center;
                       background: var(--att-brand-soft); color: var(--att-brand); font-size: .82rem; }
.cfg-sec .sec-h .h { font-size: .9rem; font-weight: 700; color: var(--att-txt); line-height: 1.3; }
.cfg-sec .sec-h .h-sub { font-size: .72rem; color: var(--att-sub); margin-top: .12rem; line-height: 1.5; }
.cfg-sec .sec-h > .pill { margin-left: auto; flex: none; }

/* 键值行：左标签 / 中间值 / 右操作；分隔线只画在行与行之间 */
.cfg-kv { display: flex; align-items: flex-start; gap: .8rem; padding: .55rem 0; }
.cfg-kv + .cfg-kv { border-top: 1px dashed var(--att-line); }
.cfg-kv > .k { flex: none; width: 5.2rem; font-size: .76rem; color: var(--att-sub); padding-top: .22rem; }
.cfg-kv > .v { flex: 1; min-width: 0; font-size: .86rem; color: var(--att-txt); }
.cfg-kv > .a { flex: none; }

/* 已绑定的打卡机：头像圈 + 名字 + 手机号（一店可多个，用 .cfg-list 竖排） */
.cfg-list { display: flex; flex-direction: column; gap: .45rem; }
.cfg-who { display: flex; align-items: center; gap: .65rem;
           padding: .6rem .7rem; border: 1px solid #dfe9fa; border-radius: 10px; background: #fff; }
.cfg-who .av { width: 34px; height: 34px; border-radius: 50%; flex: none;
               display: grid; place-items: center; font-size: .85rem; font-weight: 700;
               background: var(--att-brand); color: #fff; }
.cfg-who .nm { font-size: .9rem; font-weight: 700; color: var(--att-txt); line-height: 1.25; }
.cfg-who .mt { font-size: .72rem; color: var(--att-sub); margin-top: .1rem; }

/* 未指定：虚线空位 + 右侧按钮 */
.cfg-empty { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
             padding: .6rem .7rem; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fbfcfe; }
.cfg-empty > i { color: #94a3b8; }
.cfg-empty .tx { flex: 1; min-width: 0; font-size: .78rem; color: var(--att-sub); }
.cfg-empty .btn { flex: 0 0 auto; white-space: nowrap; }

/* 内联绑定表单 */
.cfg-form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cfg-form input { flex: 1; min-width: 11rem; }
.cfg-form .btn { flex: 0 0 auto; white-space: nowrap; }
.cfg-hint { font-size: .72rem; color: var(--att-sub); margin-top: .4rem; line-height: 1.55; }

/* 待注册（已预授权但还没登录） */
.cfg-pend { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
            margin-top: .5rem; padding: .45rem .65rem; border-radius: 8px;
            background: #fffaf2; border: 1px solid #f7e2c0; font-size: .74rem; color: #8a5300; }
.cfg-pend .btn { flex: 0 0 auto; }

/* 添加打卡机弹层：只读的「打卡部门」+ 打卡方式单选卡片 */
.cfg-readonly { display: flex; align-items: center; gap: .45rem; padding: .45rem .6rem;
                border: 1px dashed #cbd5e1; border-radius: 9px; background: #f8fafc;
                font-size: .86rem; color: var(--att-txt); }
.cfg-readonly .lk { color: #94a3b8; }
.cfg-modes { display: flex; gap: .5rem; flex-wrap: wrap; }
.cfg-mode { flex: 1 1 9rem; display: flex; align-items: flex-start; gap: .5rem; cursor: pointer;
            border: 1px solid var(--att-line); border-radius: 10px; padding: .55rem .65rem;
            background: #fff; margin: 0; transition: border-color .13s, background .13s; }
.cfg-mode.on { border-color: var(--att-brand); background: var(--att-brand-soft); }
.cfg-mode input { margin: .15rem 0 0; flex: none; }
.cfg-mode .t { display: block; font-size: .84rem; font-weight: 600; color: var(--att-txt); }
.cfg-mode .d { display: block; font-size: .68rem; color: var(--att-sub); margin-top: .1rem; line-height: 1.4; }

/* 职位配色：一行一个色块 */
.cfg-color { display: flex; align-items: center; gap: .6rem; background: #fff;
             border: 1px solid var(--att-line); border-radius: 10px; padding: .5rem .6rem; }
.cfg-color input[type=color] { width: 2rem; height: 1.7rem; border: 0; background: none; padding: 0; flex: none; }
.cfg-color .jb { min-width: 0; flex: 1; }
.cfg-color .jb .n { font-size: .84rem; font-weight: 600; color: var(--att-txt);
                    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-color .jb .c { font-size: .68rem; color: var(--att-sub); font-family: ui-monospace, monospace; }

@media (max-width: 900px) {
  /* 手机上左栏变成横向 chip：通用设置标题独占一行 */
  .dept-head-split { flex-basis: 100%; margin-top: .35rem; }
  .cfg-kv { display: block; }
  .cfg-kv > .k { width: auto; margin-bottom: .3rem; padding-top: 0; }
}

/* ================================================================
   打卡机工作台（/attendance/kiosk，2026-11-16）
   从 odoo 首页卡片进来：先选「今天在哪个部门打卡」，再打卡。
   骨架沿用 .term / .term-card（终端风的一套；原来那页 /attendance/punch 已于
   2026-11-17 下线，这些类名保留给 kiosk 用），这里只补三块新东西。
   ================================================================ */

/* ① 拦住时的整屏提示（运营商身份 / 没有公司归属） */
.kiosk-block { text-align: center; padding: 1.6rem .8rem .6rem; }
.kiosk-block > i { display: block; font-size: 2.2rem; color: #d97706; margin-bottom: .6rem; }
.kiosk-block .t { font-size: .95rem; font-weight: 700; color: var(--att-txt); }
.kiosk-block .d { font-size: .8rem; color: var(--att-sub); line-height: 1.6; margin-top: .5rem; }

/* ② 选打卡点的表头 */
.kiosk-head { margin-bottom: .7rem; }
.kiosk-head .t { font-size: .95rem; font-weight: 700; color: var(--att-txt); }
.kiosk-head .d { font-size: .78rem; color: var(--att-sub); line-height: 1.55; margin-top: .25rem; }
.kiosk-head .d b { color: var(--att-brand); }

/* ③ 一个打卡点 = 一行按钮（全公司那项图标底色不同，一眼区分） */
.kiosk-point { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
               background: #fff; border: 1.5px solid var(--att-line); border-radius: 12px;
               padding: .62rem .7rem; margin-bottom: .5rem; transition: .15s; }
.kiosk-point:hover { border-color: var(--att-brand); background: var(--att-brand-soft); }
.kiosk-point .ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid;
                   place-items: center; background: #eef4ff; color: #1d4ed8; font-size: 1rem; }
.kiosk-point .ic.all { background: #f2ecfd; color: #5b2c91; }
.kiosk-point .tx { min-width: 0; flex: 1; }
.kiosk-point .tx b { display: block; font-size: .88rem; color: var(--att-txt);
                     overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kiosk-point .tx small { display: block; font-size: .68rem; color: var(--att-sub);
                         margin-top: .1rem; line-height: 1.4; }
.kiosk-point .go { color: #c7d0dc; font-size: .9rem; flex: none; }

/* 班次卡上的部门小标签（全公司打卡点时才有，跨部门要能分清） */
.dept-tag { display: inline-block; background: #f2ecfd; color: #5b2c91; border-radius: 6px;
            padding: 0 .3rem; margin-right: .35rem; font-size: .68rem; }

/* ④ 首屏「搜人」输入框（2026-11-17）：名录里没有的人靠手机号 / 邮箱搜全公司 */
.roster-search { display: flex; align-items: center; gap: .45rem;
                 background: #f6f8fb; border: 1.5px solid var(--att-line);
                 border-radius: 12px; padding: .55rem .7rem; }
.roster-search > i { flex: none; color: var(--att-sub); font-size: .9rem; }
.roster-search > i.spin { animation: att-spin 1s linear infinite; }
@keyframes att-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.roster-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
                       font-size: .9rem; color: var(--att-txt); }
.roster-search input::placeholder { color: #a9b3c1; }
.roster-search button { flex: none; border: 0; background: transparent; color: #c7d0dc;
                        padding: 0; line-height: 1; font-size: .95rem; }
.roster-search button:hover { color: var(--att-sub); }

/* ⑤ 班次 chips：选一个就只看这个班的人 */
.kiosk-shifts { display: flex; flex-wrap: wrap; gap: .4rem; }
.kiosk-chip { border: 1.5px solid var(--att-line); background: #fff; border-radius: 10px;
              padding: .38rem .6rem; font-size: .82rem; font-weight: 600; color: var(--att-txt);
              line-height: 1.25; text-align: left; transition: .15s; }
.kiosk-chip small { display: block; font-size: .66rem; font-weight: 500;
                    color: var(--att-sub); margin-top: .1rem; font-variant-numeric: tabular-nums; }
.kiosk-chip:hover { border-color: #c9d4e3; }
.kiosk-chip.on { border-color: var(--att-brand); background: var(--att-brand-soft); color: var(--att-brand); }
.kiosk-chip.on small { color: var(--att-brand); }

/* ⑥ 人员目录一行（点一下就是「选这个人打卡」） */
.roster-row { display: flex; align-items: flex-start; gap: .55rem; width: 100%; text-align: left;
              background: #fff; border: 1.5px solid var(--att-line); border-radius: 12px;
              padding: .5rem .55rem; margin-bottom: .4rem; transition: .15s; }
.roster-row:hover { border-color: var(--att-brand); background: var(--att-brand-soft); }
/* 已打完卡的沉到最后 → 样式也淡一档，一眼看出「这些已经打过了」 */
.roster-row.done { opacity: .6; }
.roster-row .av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid;
                  place-items: center; background: #eef4ff; color: #1d4ed8;
                  font-weight: 700; font-size: .85rem; }
.roster-row.done .av { background: #f1f3f5; color: #94a3b8; }
.roster-row .tx { min-width: 0; flex: 1; }
.roster-row .tx b { display: block; font-size: .88rem; color: var(--att-txt); line-height: 1.4; }
.roster-row .tx b .pill { font-size: .62rem; padding: .05rem .3rem; vertical-align: middle; }
.roster-row .tx small { display: block; font-size: .7rem; color: var(--att-sub); line-height: 1.5;
                        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-row .st { flex: none; }
.roster-row .st .pill { font-size: .66rem; }

/* 分页条：一页 50 人，多了就翻 */
.roster-page { display: flex; align-items: center; justify-content: center; gap: .6rem;
               padding-top: .5rem; font-size: .78rem; color: var(--att-sub); }
.roster-page .btn { padding: .12rem .4rem; }

/* ⑦ 摄像头弹层：video 占满卡片宽度，按 4:3 裁切，别把弹层撑出竖屏 */
.cam-box { position: relative; background: #0f172a; border-radius: 14px; overflow: hidden;
           margin-top: .2rem; }
.cam-box video { display: block; width: 100%; max-height: 56vh; object-fit: cover;
                 transform: scaleX(-1); }   /* 前置摄像头做镜像，看着像照镜子 */
.cam-tip { position: absolute; inset: 0; display: grid; place-items: center;
           color: #cbd5e1; font-size: .82rem; }
.cam-err { margin-top: .6rem; font-size: .78rem; line-height: 1.6; color: #b42318;
           background: #fdeef0; border-radius: 10px; padding: .5rem .6rem; }

/* 打卡结果弹层「迟到 / 时间窗外」用琥珀色：已落库但不是一切正常（.term-result 已有 ok/bad 两个图标色） */
.term-result .warn-ic { font-size: 2.6rem; color: #d97706; }

/* ================================================================
   审批页（/attendance/approve，2026-11-17 改为与配置页同构）
   —— 左栏选门店、右栏只显示这家店的单据，栅格与卡片全部复用
      .sch-page / .sch-depts / .dept-* / .cfg-sec，这里只补两处新东西：
      整行可点的单据行、单据行里那行截断的原因摘要。
   ================================================================ */

/* 单据行：复用配置页的 .cfg-who（头像圈 + 名字 + 副行），改成整行可点 */
.cfg-who.app-row { width: 100%; text-align: left; cursor: pointer;
                   transition: border-color .13s, box-shadow .13s; }
.cfg-who.app-row:hover { border-color: #b9d0f7; box-shadow: 0 2px 10px rgba(37, 99, 235, .08); }
.cfg-who.app-row:focus-visible { outline: 2px solid var(--att-brand); outline-offset: 1px; }
.cfg-who.app-row .nm { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }

/* 原因摘要：单据行第三行，只占一行，超出省略 */
.app-reason { margin-top: .18rem; font-size: .74rem; color: var(--att-sub); line-height: 1.4;
              overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* grid 子项默认 min-width:auto，内容一宽就把整列撑破（手机上整页横向滚）；
   两栏布局统一压到 0，内容自己该截断的截断 */
.sch-page > * { min-width: 0; }

/* ================================================================
   报表页（/attendance/report，2026-11-17 改为与配置页同构）
   —— 左栏选门店、右栏看这家店的报表；表格仍在 .cfg-sec 卡片里，
      这里只补「工具栏里的月份切换」和「卡片里表格的高度上限」。
   ================================================================ */

/* 月份切换：放在 .sch-toolbar 里，占配置页状态 pill 那个位置 */
.rep-month { display: inline-flex; align-items: center; gap: 2px; flex: none;
             padding: 2px; background: #f1f3f5; border-radius: 10px; }
.rep-month strong { min-width: 4.8rem; text-align: center; font-size: .82rem; font-weight: 700;
                    font-variant-numeric: tabular-nums; }
.rep-month .btn { padding: .1rem .28rem; color: var(--att-sub); }

/* 宽表放在卡片里：给自己一个滚动上限，别把整页拉成一条 */
.rep-tbl { max-height: 62vh; }

/* 报表表格在窄屏会把「组织」列压成一字一行：给表格一个下限，让 .att-tbl 自己横滚 */
.rep-tbl .att-table { min-width: 640px; }

/* 弹层提示（toast）：主行给结论，副行给下一步，meta 给补充信息。
   原来一整段挤在 560px 里，末尾的「打卡方式：拍照」会被折得七零八落，所以收窄到 420px 分三行说 */
.att-mask .att-modal.toast-box { max-width: 420px; padding: 1.4rem 1.3rem 1.2rem; }
.toast-msg { font-size: .95rem; font-weight: 700; }
.toast-sub { margin-top: .6rem; font-size: .82rem; color: #475569; line-height: 1.85; }
.toast-meta { margin-top: .4rem; font-size: .76rem; color: var(--att-sub); line-height: 1.7; }
@media (max-width: 575.98px) {
  .att-mask .att-modal.toast-box { max-width: 92vw; padding: 1.25rem 1rem 1rem; }
  .toast-sub { font-size: .8rem; }
}
