/* ============ 基础 ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #070b16;
  --bg2: #0d1428;
  --panel: rgba(20, 28, 48, 0.82);
  --panel-solid: #131b31;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --txt: #e8edfb;
  --muted: #8b98b8;
  --pri: #6c8cff;
  --pri2: #9b6bff;
  --ok: #2ee6a8;
  --warn: #ffb020;
  --bad: #ff5f7a;
  --cyan: #33d6ff;
  --radius: 16px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
html, body {
  margin: 0; padding: 0;
  background: radial-gradient(1200px 700px at 12% -10%, #1b2a5e 0%, transparent 55%),
              radial-gradient(900px 600px at 100% 0%, #3a1e5e 0%, transparent 50%),
              var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pri); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; gap: 16px; color: var(--muted); }
.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12); border-top-color: var(--pri);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 登录 ============ */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 400px;
  background: linear-gradient(160deg, rgba(28,38,64,0.95), rgba(15,21,38,0.95));
  border: 1px solid var(--line2);
  border-radius: 24px;
  padding: 34px 28px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; inset: -60% -40% auto auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(108,140,255,0.35), transparent 70%);
  border-radius: 50%;
}
.logo {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--pri), var(--pri2));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(108,140,255,0.4);
  overflow: hidden;
  flex: 0 0 auto;
}
.logo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.mark {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 36px;
  background: linear-gradient(135deg, var(--pri), var(--pri2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; overflow: hidden;
}
.mark img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.mobile-head .mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; }
.login-card h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: 0.5px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.4px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(8, 13, 26, 0.75);
  border: 1px solid var(--line2);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--pri);
  box-shadow: 0 0 0 3px rgba(108,140,255,0.18);
  background: rgba(8, 13, 26, 0.95);
}
.textarea { resize: vertical; min-height: 74px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 18px; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--pri), var(--pri2));
  color: #fff; font-weight: 600; cursor: pointer;
  transition: transform .12s, opacity .18s, box-shadow .18s;
  box-shadow: 0 8px 22px rgba(108,140,255,0.3);
  white-space: nowrap;
}
.btn:hover { opacity: .93; }
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; padding: 14px; font-size: 15.5px; }
.btn.ghost { background: rgba(255,255,255,0.06); border-color: var(--line2); box-shadow: none; color: var(--txt); }
.btn.ghost:hover { background: rgba(255,255,255,0.1); }
.btn.ok { background: linear-gradient(135deg, #14b87a, var(--ok)); color: #04150f; box-shadow: 0 8px 22px rgba(46,230,168,0.25); }
.btn.bad { background: linear-gradient(135deg, #d43a55, var(--bad)); box-shadow: 0 8px 22px rgba(255,95,122,0.25); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.login-hint { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.9; border-top: 1px dashed var(--line2); padding-top: 14px; }
.login-hint code { background: rgba(255,255,255,0.07); padding: 2px 6px; border-radius: 5px; color: var(--cyan); }

/* ============ 布局 ============ */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 224px; flex: 0 0 224px;
  border-right: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.72);
  backdrop-filter: blur(10px);
  padding: 22px 14px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 36px;
  background: linear-gradient(135deg, var(--pri), var(--pri2));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.brand .name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand .name small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 11px;
  color: var(--muted); cursor: pointer; font-size: 14px;
  transition: background .16s, color .16s;
  border: 1px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--txt); }
.nav-item.active {
  background: linear-gradient(100deg, rgba(108,140,255,0.22), rgba(155,107,255,0.12));
  color: #fff; border-color: rgba(108,140,255,0.35);
  font-weight: 600;
}
.nav-item .ico { font-size: 17px; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto; background: var(--bad); color: #fff;
  font-size: 11px; padding: 1px 7px; border-radius: 20px; font-weight: 700;
}
.side-foot { padding-top: 14px; border-top: 1px solid var(--line); margin-top: 12px; }
.who { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: linear-gradient(135deg, #2b3f7a, #5a3f9a);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.who .meta { line-height: 1.35; overflow: hidden; }
.who .meta b { font-size: 13.5px; display: block; }
.who .meta span { font-size: 11.5px; color: var(--muted); }
.main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 22px; letter-spacing: 0.4px; }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

/* ============ 卡片 ============ */
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(8px);
}
.card.pad0 { padding: 0; overflow: hidden; }
.card h3 { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card h3 .tag { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.stat { position: relative; overflow: hidden; }
.stat .k { font-size: 12.5px; color: var(--muted); margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat .d { margin-top: 7px; font-size: 12px; color: var(--muted); }
.stat.pri { background: linear-gradient(150deg, rgba(108,140,255,0.2), rgba(20,28,48,0.9)); }
.stat.ok { background: linear-gradient(150deg, rgba(46,230,168,0.16), rgba(20,28,48,0.9)); }
.stat.warn { background: linear-gradient(150deg, rgba(255,176,32,0.16), rgba(20,28,48,0.9)); }
.stat.bad { background: linear-gradient(150deg, rgba(255,95,122,0.16), rgba(20,28,48,0.9)); }
.stat .ico-bg { position: absolute; right: -10px; bottom: -14px; font-size: 62px; opacity: .07; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 12px 14px; text-align: left; white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line2); letter-spacing: 0.3px; background: rgba(255,255,255,0.02); }
td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty .e-ico { font-size: 34px; display: block; margin-bottom: 10px; opacity: .5; }

/* ============ 状态标签 ============ */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.pending { color: #ffc247; background: rgba(255,176,32,0.13); border-color: rgba(255,176,32,0.28); }
.pill.approved { color: #3ef0b6; background: rgba(46,230,168,0.13); border-color: rgba(46,230,168,0.28); }
.pill.rejected, .pill.absent { color: #ff7b90; background: rgba(255,95,122,0.13); border-color: rgba(255,95,122,0.28); }
.pill.cancelled { color: var(--muted); background: rgba(255,255,255,0.06); border-color: var(--line2); }
.pill.late { color: #ffa94d; background: rgba(255,140,50,0.13); border-color: rgba(255,140,50,0.28); }
.pill.normal, .pill.complete { color: #4ad8ff; background: rgba(51,214,255,0.12); border-color: rgba(51,214,255,0.26); }
.pill.working { color: #9b8cff; background: rgba(155,107,255,0.14); border-color: rgba(155,107,255,0.3); }
.pill.early { color: #ffa94d; background: rgba(255,140,50,0.13); border-color: rgba(255,140,50,0.28); }

/* ============ 表单行 ============ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 140px; }

/* ============ 选项卡 ============ */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  padding: 8px 15px; border-radius: 10px; font-size: 13.5px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--muted);
  transition: all .16s;
}
.tab:hover { color: var(--txt); border-color: var(--line2); }
.tab.active { background: linear-gradient(135deg, rgba(108,140,255,0.9), rgba(155,107,255,0.85)); color: #fff; border-color: transparent; font-weight: 600; }
.tab .n { opacity: .75; font-size: 12px; margin-left: 4px; }

/* ============ 排行榜 ============ */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; align-items: end; }
.podium .p {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; position: relative; overflow: hidden;
}
.podium .p.first { border-color: rgba(255,196,60,0.5); background: linear-gradient(170deg, rgba(255,196,60,0.16), rgba(20,28,48,0.9)); padding-top: 24px; }
.podium .p.second { border-color: rgba(180,200,255,0.35); }
.podium .p.third { border-color: rgba(255,150,90,0.35); }
.podium .medal { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.podium .nm { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.podium .dp { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.podium .amt { font-size: 17px; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; letter-spacing: -0.4px; }
.podium .cnt { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.rank-me {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(100deg, rgba(108,140,255,0.18), rgba(155,107,255,0.1));
  border: 1px solid rgba(108,140,255,0.3);
}
.rank-me .rk { font-size: 26px; font-weight: 800; color: var(--pri); }
.rank-me .txt { font-size: 13px; color: var(--muted); }
.rank-me .txt b { color: var(--txt); font-size: 15px; }
.rank-1 { color: #ffc93c; font-weight: 700; }
.rank-2 { color: #cfd8f5; font-weight: 700; }
.rank-3 { color: #ff9f5a; font-weight: 700; }
tr.is-me td { background: rgba(108,140,255,0.1) !important; }
tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--pri); }

/* ============ 打卡 ============ */
.checkin-card {
  background: linear-gradient(150deg, rgba(51,214,255,0.14), rgba(20,28,48,0.92));
  border: 1px solid rgba(51,214,255,0.28);
}
.checkin-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.clock { font-size: 34px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1; }
.clock small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.ci-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ci-meta b { color: var(--txt); font-size: 14px; }
.code-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.code-row .input { flex: 1; min-width: 150px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; font-size: 17px; text-align: center; }

.qr-box { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.qr-canvas-wrap {
  background: #fff; padding: 14px; border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4); line-height: 0;
}
.qr-canvas-wrap canvas { display: block; width: 260px; height: 260px; image-rendering: pixelated; }
.qr-info { flex: 1; min-width: 240px; }
.qr-code-big {
  font-size: 30px; font-weight: 800; letter-spacing: 6px; color: var(--cyan);
  font-variant-numeric: tabular-nums; margin: 4px 0 12px;
}
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.1); overflow: hidden; margin: 10px 0 6px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pri)); transition: width .4s linear; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.85; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line2); font-size: 12.5px; margin: 4px 6px 0 0;
  cursor: pointer;
}
.chip:hover { border-color: var(--pri); color: var(--pri); }

/* 迷你柱状图 */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; max-width: 42px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--pri), rgba(155,107,255,0.4)); display: block; min-height: 4px; transition: height .5s; }
.bars .b span { font-size: 11px; color: var(--muted); }
.bars .b b { font-size: 11.5px; color: var(--txt); }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(3, 6, 14, 0.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100;
  animation: fade .18s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 470px; max-height: 88vh; overflow-y: auto;
  background: linear-gradient(165deg, #1a2440, #111829);
  border: 1px solid var(--line2); border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow); animation: pop .2s;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal h3 { margin: 0 0 18px; font-size: 17px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ============ 提示 ============ */
.toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 440px; }
.toast {
  padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 500;
  background: rgba(24, 33, 56, 0.97); border: 1px solid var(--line2);
  box-shadow: 0 12px 34px rgba(0,0,0,0.45); animation: drop .24s;
  max-width: 100%; text-align: center;
}
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }
.toast.ok { border-color: rgba(46,230,168,0.45); color: #7ff5cc; }
.toast.bad { border-color: rgba(255,95,122,0.45); color: #ffa2b2; }
.toast.warn { border-color: rgba(255,176,32,0.45); color: #ffd07a; }

/* ============ 移动端 ============ */
.mobile-head { display: none; }
@media (max-width: 900px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .side { display: none; }
  .main { padding: 0 0 84px; }
  .mobile-head {
    display: flex; align-items: center; gap: 11px;
    padding: 14px 16px; position: sticky; top: 0; z-index: 40;
    background: rgba(9, 13, 25, 0.94); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-head .name { font-weight: 700; font-size: 15px; }
  .mobile-head .name small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
  .mobile-head .avatar { margin-left: auto; }
  .page-head, .card, .tabs { margin-left: 16px; margin-right: 16px; }
  .page-head h2 { font-size: 19px; }
  .card.pad0 { margin-left: 0; margin-right: 0; border-radius: 0; border-left: none; border-right: none; }
  .grid { margin: 0 16px; }
  .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat .v { font-size: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 16px 16px; }
  .podium .p { padding: 12px 6px; }
  .podium .nm { font-size: 13px; }
  .podium .amt { font-size: 14px; }
  .podium .cnt { font-size: 10.5px; }
  .rank-me { margin: 0 16px 16px; }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    background: rgba(10, 15, 28, 0.97); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav .nav-item { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 10.5px; border-radius: 10px; }
  .bottom-nav .nav-item .ico { font-size: 19px; }
  .bottom-nav .nav-item.active { background: transparent; color: var(--pri); border-color: transparent; }
  .bottom-nav .nav-badge { position: absolute; transform: translate(9px, -8px); font-size: 9px; padding: 0 5px; }
  .bottom-nav .nav-item { position: relative; }
  .qr-canvas-wrap canvas { width: 210px; height: 210px; }
  .checkin-row { gap: 14px; }
  .clock { font-size: 28px; }
}
@media (min-width: 761px) { .bottom-nav { display: none; } }

/* ============ 结算预览 ============ */
.preview-box {
  padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.7;
  background: rgba(51, 214, 255, 0.07);
  border: 1px dashed rgba(51, 214, 255, 0.28);
  color: var(--muted);
}
.preview-box b { font-variant-numeric: tabular-nums; }

/* 状态标签补充 */
.pill.to_submit { color: #9b8cff; background: rgba(155,107,255,0.14); border-color: rgba(155,107,255,0.3); }
.pill.cold { color: #6fd7ff; background: rgba(51,150,255,0.12); border-color: rgba(51,150,255,0.28); }
.pill.completed { color: #3ef0b6; background: rgba(46,230,168,0.13); border-color: rgba(46,230,168,0.28); }
.pill.refunded { color: #ffa94d; background: rgba(255,140,50,0.13); border-color: rgba(255,140,50,0.28); }
.pill.cancelled { color: var(--muted); background: rgba(255,255,255,0.06); border-color: var(--line2); }

/* 角色标签 */
.pill.boss { color: #ffd166; background: rgba(255,196,60,0.14); border-color: rgba(255,196,60,0.35); }
.pill.manager { color: #9b8cff; background: rgba(155,107,255,0.16); border-color: rgba(155,107,255,0.34); }

/* 已消失（来源删除） */
.pill.vanished { color: #8b98b8; background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); text-decoration: line-through; }
tr.row-vanished td { opacity: 0.55; }

/* 扫码打卡提示 */
.scan-tip {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(51, 214, 255, 0.08);
  border: 1px dashed rgba(51, 214, 255, 0.32);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
}
.scan-tip .scan-ico { font-size: 26px; }

/* 打卡页工资卡片 */
.ci-pay { text-align: right; }
.ci-pay > div:first-child { margin-bottom: 4px; }
.pill.late { color: #ffb020; background: rgba(255,176,32,.12); border-color: rgba(255,176,32,.35); }
.pill.early { color: #ff7b90; background: rgba(255,95,122,.12); border-color: rgba(255,95,122,.35); }

/* 可点击编辑的值 */
.editable {
  cursor: pointer;
  border-bottom: 1px dashed rgba(51, 214, 255, 0.5);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.editable:hover { color: #7ff5cc; border-color: #7ff5cc; }
.editable::after { content: " ✎"; font-size: 10px; opacity: .55; }

/* 警告/冻结按钮 */
.btn.warn { background: linear-gradient(135deg, #e0a020, #ffb020); color: #1a1200; box-shadow: 0 8px 22px rgba(255,176,32,0.25); }
.btn.warn:hover { filter: brightness(1.08); }
.pill.bad { color: #ff7b90; background: rgba(255,95,122,.12); border-color: rgba(255,95,122,.35); }

/* 实时标识 */
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: #7ff5cc;
  background: rgba(46,230,168,.12); border: 1px solid rgba(46,230,168,.3);
  border-radius: 99px; padding: 3px 9px; transition: opacity .3s;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #2ee6a8; animation: livePulse 1.4s infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
