/* ============ 基础与变量 ============ */
* { box-sizing: border-box; }
:root {
  --bg: #eef2f6;
  --panel: #ffffff;
  --ink: #0f1c2b;
  --ink-2: #4a5b6e;
  --ink-3: #7d8b9b;
  --line: #dfe6ee;
  --line-2: #eef2f7;
  --navy-1: #0a1725;
  --navy-2: #10263b;
  --navy-3: #17354f;
  --brand: #1a6fb0;
  --brand-dark: #14588d;
  --brand-soft: #e8f2fa;
  --amber: #e8930c;
  --amber-soft: #fdf3e0;
  --green: #199a6c;
  --green-soft: #e6f6ef;
  --red: #d24545;
  --red-soft: #fdecec;
  --blue: #2f7bbf;
  --blue-soft: #eaf3fb;
  --purple: #6a5acd;
  --shadow-sm: 0 1px 2px rgba(15, 28, 43, .05), 0 1px 3px rgba(15, 28, 43, .04);
  --shadow-md: 0 4px 16px rgba(15, 28, 43, .08);
  --shadow-lg: 0 18px 48px rgba(9, 22, 36, .18);
  --radius: 10px;
  --radius-sm: 7px;
  --sidebar-w: 238px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
svg { display: block; }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c3cfdb; border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a8b8c8; background-clip: content-box; border: 3px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 登录页 ============ */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(460px, 1fr);
  background: #f5f8fb;
}
.login-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(38, 110, 165, .38), transparent 62%),
    radial-gradient(700px 620px at 92% 96%, rgba(232, 147, 12, .16), transparent 60%),
    linear-gradient(155deg, #07131f 0%, #0c2133 55%, #10293e 100%);
  color: #eaf2f9;
  padding: 54px 58px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 168, 205, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 168, 205, .10) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 40% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.login-brand::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border: 1px solid rgba(232, 147, 12, .28);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(232, 147, 12, .05), 0 0 0 88px rgba(232, 147, 12, .035);
  pointer-events: none;
}
.login-brand > * { position: relative; z-index: 1; }
.lb-logo { display: flex; align-items: center; gap: 13px; }
.lb-mark {
  width: 46px; height: 46px; border-radius: 11px;
  background: linear-gradient(150deg, #f0a52a, #d97c05);
  display: grid; place-items: center;
  color: #16233a; font-weight: 800; font-size: 21px;
  box-shadow: 0 8px 22px rgba(232, 147, 12, .35), inset 0 1px 0 rgba(255,255,255,.5);
}
.lb-name { font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.lb-sub { font-size: 11px; color: #7f9bb2; letter-spacing: .22em; text-transform: uppercase; }
.lb-title { font-size: 42px; line-height: 1.24; font-weight: 800; letter-spacing: -.01em; margin-top: 8px; }
.lb-title em { font-style: normal; color: #f3a72c; }
.lb-desc { margin-top: 18px; color: #9db3c6; font-size: 15px; max-width: 470px; line-height: 1.85; }
.lb-features { margin-top: 40px; display: grid; gap: 18px; max-width: 470px; }
.lb-feature { display: flex; gap: 14px; align-items: flex-start; }
.lb-feature-ico {
  flex: 0 0 36px; height: 36px; border-radius: 9px;
  background: rgba(120, 168, 205, .10);
  border: 1px solid rgba(140, 185, 220, .18);
  display: grid; place-items: center; color: #8fc4e8;
}
.lb-feature-ico svg { width: 19px; height: 19px; fill: currentColor; }
.lb-feature h4 { font-size: 14px; font-weight: 600; color: #dce9f4; }
.lb-feature p { font-size: 12.5px; color: #7f99ad; margin-top: 2px; }
.lb-stats { display: flex; gap: 42px; padding-top: 26px; border-top: 1px solid rgba(140, 180, 215, .16); margin-top: 42px; }
.lb-stat b { display: block; font-size: 27px; font-weight: 700; color: #f0f6fb; letter-spacing: .02em; }
.lb-stat span { font-size: 11.5px; color: #7c97ac; letter-spacing: .08em; }
.lb-foot { margin-top: 26px; font-size: 11.5px; color: #5d7a90; letter-spacing: .03em; }

.login-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
}
.login-box { width: 100%; max-width: 428px; }
.login-kicker { font-size: 12px; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }
.login-title { font-size: 27px; font-weight: 700; margin-top: 8px; letter-spacing: -.01em; }
.login-tip { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.login-form { margin-top: 28px; display: grid; gap: 16px; }
.login-error {
  display: none; align-items: center; gap: 8px;
  background: var(--red-soft); color: #a52d2d;
  border: 1px solid #f3caca; border-radius: 8px;
  padding: 10px 12px; font-size: 13px;
}
.login-error.show { display: flex; }
.login-error svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.quick-login { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.quick-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quick-head h4 { font-size: 12.5px; color: var(--ink-2); font-weight: 600; letter-spacing: .04em; }
.quick-head span { font-size: 11.5px; color: var(--ink-3); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-item {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 8px 10px; cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.quick-item:hover { border-color: #b9d3e8; box-shadow: 0 3px 10px rgba(20, 88, 141, .10); transform: translateY(-1px); }
.quick-item:active { transform: none; }
.quick-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-dark);
}
.quick-item[data-role="director"] .quick-avatar { background: #fdf0d8; color: #a9700a; }
.quick-item[data-role="dispatcher"] .quick-avatar { background: #e8f0fd; color: #315da8; }
.quick-item[data-role="hr"] .quick-avatar { background: #f0ecfb; color: #5d4da8; }
.quick-item[data-role="leader"] .quick-avatar { background: #e7f6ef; color: #177a56; }
.quick-item[data-role="employee"] .quick-avatar { background: #eef2f6; color: #55687b; }
.quick-meta b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.quick-meta span { font-size: 11px; color: var(--ink-3); line-height: 1.3; }
.login-foot { margin-top: 26px; font-size: 11.5px; color: var(--ink-3); text-align: center; }

/* ============ 应用骨架 ============ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none;
  background: linear-gradient(180deg, var(--navy-1), var(--navy-2) 60%, #0d2236);
  color: #b9cbdb;
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0;
  z-index: 40;
  border-right: 1px solid rgba(255,255,255,.04);
}
.sb-brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 18px; }
.sb-mark {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, #f0a52a, #d97c05);
  display: grid; place-items: center; color: #17263a; font-weight: 800; font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.sb-name { font-size: 15px; font-weight: 700; color: #f2f7fc; letter-spacing: .03em; line-height: 1.3; }
.sb-tag { font-size: 10px; color: #6f8aa0; letter-spacing: .14em; }
.sb-nav { flex: 1; overflow-y: auto; padding: 6px 10px 16px; }
.sb-nav::-webkit-scrollbar { width: 6px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); }
.nav-group { margin-top: 16px; }
.nav-group:first-child { margin-top: 4px; }
.nav-label {
  font-size: 10px; letter-spacing: .16em; color: #5d7a90;
  padding: 0 10px 7px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 7px; cursor: pointer;
  color: #a9becf; font-size: 13.5px; position: relative;
  transition: background .15s, color .15s;
  border: none; background: none; width: 100%; text-align: left;
}
.nav-item svg { width: 17px; height: 17px; fill: currentColor; flex: none; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #eaf3fa; }
.nav-item.active { background: linear-gradient(90deg, rgba(232,147,12,.17), rgba(232,147,12,.04)); color: #ffd18a; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--amber);
}
.nav-badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: grid; place-items: center; padding: 0 5px;
}
.sb-user { padding: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.sb-user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.04); }
.sb-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: rgba(232,147,12,.16); color: #f7b843;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  border: 1px solid rgba(232,147,12,.25);
}
.sb-user-meta b { display: block; font-size: 13px; color: #eaf3fa; font-weight: 600; line-height: 1.3; }
.sb-user-meta span { font-size: 11px; color: #7b94a9; display: block; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-logout {
  margin-left: auto; background: none; border: none; color: #6f8aa0; cursor: pointer;
  padding: 4px; border-radius: 5px; display: grid; place-items: center;
}
.sb-logout:hover { color: #ffb3b3; background: rgba(210, 69, 69, .12); }
.sb-logout svg { width: 16px; height: 16px; fill: currentColor; }

.main-wrap { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
  padding: 0 26px; position: sticky; top: 0; z-index: 30;
}
.tb-title h1 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.tb-title p { font-size: 12px; color: var(--ink-3); line-height: 1.4; margin-top: 1px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tb-date { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.tb-date svg { width: 15px; height: 15px; fill: var(--ink-3); }
.tb-divider { width: 1px; height: 24px; background: var(--line); }
.tb-user { display: flex; align-items: center; gap: 9px; }
.tb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 12.5px;
}
.tb-user b { font-size: 13px; font-weight: 600; display: block; line-height: 1.2; }
.tb-user span { font-size: 11px; color: var(--ink-3); }
.page { padding: 22px 26px 40px; flex: 1; }
.page-narrow { max-width: 1520px; margin: 0 auto; }

/* ============ 通用组件 ============ */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 18px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.card-head h3 { font-size: 14.5px; font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.card-head h3 svg { width: 17px; height: 17px; fill: var(--brand); }
.card-head .sub { font-size: 12px; color: var(--ink-3); }
.card-head .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 14px; }
.card-body.flush { padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 7px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  transition: all .15s ease; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn:hover { border-color: #c4d3e0; color: var(--ink); background: #fafcfe; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(26, 111, 176, .22); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-amber:hover { background: #cf7f07; border-color: #cf7f07; color: #fff; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #147d57; border-color: #147d57; color: #fff; }
.btn-danger { background: #fff; border-color: #edc9c9; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: #e2aeae; color: #b53636; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: #eef3f8; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }

.form-grid { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field label .hint { margin-left: auto; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid #d5dfe9; border-radius: 7px; background: #fff;
  font-size: 13.5px; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 111, 176, .12); }
.input::placeholder, .textarea::placeholder { color: #a4b1bf; }
.input:disabled, .select:disabled { background: #f4f7fa; color: var(--ink-3); cursor: not-allowed; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%237d8b9b'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 30px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: #8fa0b2; pointer-events: none; }
.input-icon .input { padding-left: 34px; }
.field-error { color: var(--red); font-size: 11.5px; margin-top: 4px; display: none; }
.field-error.show { display: block; }
.form-note { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.form-actions { display: flex; gap: 10px; align-items: center; padding-top: 4px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-bar .field { min-width: 138px; }
.filter-bar .field.grow { flex: 1; min-width: 190px; }
.filter-bar .input, .filter-bar .select { height: 34px; font-size: 12.5px; }
.filter-bar .spacer { flex: 1; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 15px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); opacity: .85; }
.kpi.amber::after { background: var(--amber); }
.kpi.green::after { background: var(--green); }
.kpi.red::after { background: var(--red); }
.kpi-label { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi-label svg { width: 14px; height: 14px; fill: currentColor; opacity: .65; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 5px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.kpi-foot { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.kpi-foot b { color: var(--ink-2); font-weight: 600; }

.tabs { display: inline-flex; background: #eff3f7; padding: 3px; border-radius: 8px; gap: 2px; }
.tab {
  border: none; background: none; padding: 6px 14px; border-radius: 6px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-weight: 500;
}
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15,28,43,.10); font-weight: 600; }

/* ============ 表格 ============ */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .04em;
  color: var(--ink-3); background: #f7f9fb;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #f8fbfd; }
.table .strong { color: var(--ink); font-weight: 600; }
.table .num { font-variant-numeric: tabular-nums; }
.table .right { text-align: right; }
.table .center { text-align: center; }
.table tfoot td { background: #f7f9fb; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); }
.table .subcell { font-size: 11.5px; color: var(--ink-3); }
.person-cell { display: flex; align-items: center; gap: 9px; }
.person-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: #eef3f8; color: #4a6279;
}
.person-avatar.amber { background: var(--amber-soft); color: #a9700a; }
.person-avatar.blue { background: var(--blue-soft); color: #2b67a3; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: 5px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.pending { background: var(--amber-soft); color: #a9700a; }
.pill.approved { background: var(--green-soft); color: #167a56; }
.pill.rejected { background: var(--red-soft); color: #b53636; }
.pill.withdrawn { background: #eff2f5; color: #6b7a89; }
.pill.locked { background: #f1f3f6; color: #5f6f7e; }
.pill.open { background: var(--green-soft); color: #167a56; }
.pill.plain { background: #eef3f8; color: #4a6279; }
.pill.plain::before { display: none; }
.tag {
  display: inline-flex; align-items: center; height: 21px; padding: 0 7px;
  border-radius: 4px; font-size: 11px; background: #f0f4f8; color: #53657a; white-space: nowrap;
}
.tag + .tag { margin-left: 4px; }
.tag.amber { background: var(--amber-soft); color: #96640a; }
.tag.blue { background: var(--blue-soft); color: #2b67a3; }
.tag.green { background: var(--green-soft); color: #167a56; }
.tag.red { background: var(--red-soft); color: #b53636; }

.avatar-stack { display: flex; align-items: center; }
.avatar-stack .person-avatar { border: 2px solid #fff; margin-left: -7px; }
.avatar-stack .person-avatar:first-child { margin-left: 0; }

.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); }
.empty svg { width: 38px; height: 38px; fill: #c4d0dc; margin: 0 auto 10px; }
.empty h4 { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.empty p { font-size: 12px; margin-top: 3px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.pagination .info { font-size: 12px; color: var(--ink-3); }
.pager { display: flex; gap: 4px; }
.pager button {
  min-width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 12px; cursor: pointer; padding: 0 7px;
}
.pager button:hover:not(:disabled) { border-color: #b9d3e8; color: var(--brand); }
.pager button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ============ 弹窗 / 提示 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(8, 19, 31, .52);
  backdrop-filter: blur(2px);
  z-index: 100; display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 20px 30px; overflow-y: auto;
  animation: fadeIn .16s ease;
}
.modal {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; animation: slideUp .2s ease;
  max-height: 88vh; display: flex; flex-direction: column;
}
.modal.wide { max-width: 860px; }
.modal.narrow { max-width: 430px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-head { padding: 17px 20px 14px; border-bottom: 1px solid var(--line-2); display: flex; align-items: flex-start; gap: 12px; }
.modal-head h3 { font-size: 15.5px; font-weight: 700; flex: 1; }
.modal-head p { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.modal-close {
  border: none; background: none; cursor: pointer; color: var(--ink-3);
  width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; flex: none;
}
.modal-close:hover { background: #f0f4f8; color: var(--ink); }
.modal-close svg { width: 17px; height: 17px; fill: currentColor; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 9px; background: #fbfcfd; border-radius: 0 0 12px 12px; }

.toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px;
  background: #12283d; color: #eaf3fa; font-size: 13px;
  padding: 10px 16px; border-radius: 8px; box-shadow: 0 10px 30px rgba(9, 22, 36, .3);
  animation: toastIn .22s ease; max-width: 520px;
}
.toast svg { width: 16px; height: 16px; fill: #6fd3a8; flex: none; }
.toast.error svg { fill: #ff9a9a; }
.toast.info svg { fill: #8fc4e8; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.detail-item .dt { font-size: 11.5px; color: var(--ink-3); margin-bottom: 2px; }
.detail-item .dd { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.detail-item.full { grid-column: 1 / -1; }
.detail-block { background: #f7f9fb; border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; }

.alert {
  display: flex; gap: 10px; padding: 11px 13px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.6; align-items: flex-start;
}
.alert svg { width: 16px; height: 16px; fill: currentColor; flex: none; margin-top: 1px; }
.alert.warn { background: var(--amber-soft); color: #8a5c06; border: 1px solid #f3ddb6; }
.alert.info { background: var(--blue-soft); color: #2b67a3; border: 1px solid #d3e4f4; }
.alert.ok { background: var(--green-soft); color: #146b4d; border: 1px solid #cbe9dd; }
.alert.danger { background: var(--red-soft); color: #a52d2d; border: 1px solid #f0cccc; }

.section-title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.section-title .dot { width: 4px; height: 16px; border-radius: 2px; background: var(--amber); }
.section-title .sub { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 2px; }

.divider { height: 1px; background: var(--line-2); margin: 16px 0; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ============ 人员选择器 ============ */
.picker-trigger {
  display: flex; align-items: center; gap: 8px; min-height: 38px; width: 100%;
  border: 1px dashed #c8d6e3; border-radius: 7px; background: #fbfdff;
  padding: 6px 10px; cursor: pointer; text-align: left;
}
.picker-trigger:hover { border-color: var(--brand); background: #f6fbff; }
.picker-trigger .ph { color: #a4b1bf; font-size: 13px; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: #eaf3fb; color: #215f92;
  border-radius: 5px; padding: 3px 7px; font-size: 12px;
}
.chip .x { cursor: pointer; color: #6d92b1; font-weight: 700; line-height: 1; }
.chip .x:hover { color: var(--red); }
.picker-panel { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.picker-tools { display: flex; gap: 8px; padding: 10px; background: #f7f9fb; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.picker-list { max-height: 330px; overflow-y: auto; padding: 4px 0; }
.picker-group-head {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: #f8fafc; font-size: 12px; font-weight: 600; color: var(--ink-2);
  position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line-2);
}
.picker-group-head .count { color: var(--ink-3); font-weight: 400; font-size: 11px; }
.picker-group-head label { margin-left: auto; display: flex; align-items: center; gap: 5px; font-weight: 500; color: var(--brand); cursor: pointer; font-size: 11.5px; }
.picker-person { display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 22px; cursor: pointer; font-size: 13px; }
.picker-person:hover { background: #f6fafd; }
.picker-person input { accent-color: var(--brand); }
.picker-person .meta { margin-left: auto; font-size: 11px; color: var(--ink-3); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 15px; height: 15px; cursor: pointer; }

.meal-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.meal-option {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 6px;
  text-align: center; cursor: pointer; background: #fff; transition: all .15s;
  font-size: 12.5px; color: var(--ink-2);
}
.meal-option:hover { border-color: #bcd6ea; background: #fbfdff; }
.meal-option.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.meal-option .ico { font-size: 15px; display: block; margin-bottom: 2px; }

/* ============ 图表 ============ */
.chart { width: 100%; }
.chart text { font-family: var(--font); }
.chart-empty { height: 180px; display: grid; place-items: center; color: var(--ink-3); font-size: 12.5px; }
.bar-chart { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 84px 1fr 66px; align-items: center; gap: 10px; }
.bar-row .name { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 12px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2f7bbf, #4b9bd8); transition: width .5s ease; }
.bar-row .val { font-size: 12.5px; color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bar-row .val small { font-size: 10.5px; color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.rank-row:last-child { border-bottom: none; }
.rank-no { width: 20px; height: 20px; border-radius: 5px; background: #eef2f7; color: #6b7f92; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.rank-no.top1 { background: #fdf0d5; color: #a9700a; }
.rank-no.top2 { background: #e9eef4; color: #5c6f83; }
.rank-no.top3 { background: #f7ebe2; color: #a1703f; }
.rank-name { font-size: 13px; color: var(--ink); width: 58px; flex: none; }
.rank-team { font-size: 11px; color: var(--ink-3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { width: 90px; height: 6px; background: #eef2f7; border-radius: 3px; overflow: hidden; flex: none; }
.rank-bar i { display: block; height: 100%; background: #6aa9d8; border-radius: 3px; }
.rank-val { font-size: 12.5px; font-weight: 600; width: 52px; text-align: right; font-variant-numeric: tabular-nums; }

.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-legend { display: grid; gap: 8px; flex: 1; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.legend-item .sw { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legend-item b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ============ 加班申请页 ============ */
.apply-layout { display: grid; grid-template-columns: 396px 1fr; gap: 18px; align-items: start; }
.apply-form-card { position: sticky; top: 86px; }
.duration-box {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #f2f8fd, #eaf3fb);
  border: 1px solid #d8e8f5; border-radius: 8px; padding: 10px 14px;
}
.duration-box .lb { font-size: 12px; color: #4a6b87; }
.duration-box .vl { font-size: 20px; font-weight: 700; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.duration-box .vl small { font-size: 11.5px; font-weight: 500; color: #6f8ba3; margin-left: 2px; }
.period-hint { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }
.period-hint b { color: var(--ink-2); }

/* ============ 审批 ============ */
.summary-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.summary-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 12.5px; color: var(--ink-2);
}
.summary-chip b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.summary-chip .sw { width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }

/* ============ 订餐 ============ */
.lock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lock-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  background: #fff; display: flex; align-items: flex-start; gap: 13px; position: relative; overflow: hidden;
}
.lock-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--green); }
.lock-card.locked::before { background: #9aa8b6; }
.lock-ico {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: var(--green-soft); color: #167a56; display: grid; place-items: center;
}
.lock-card.locked .lock-ico { background: #f1f4f7; color: #6e7f90; }
.lock-ico svg { width: 19px; height: 19px; fill: currentColor; }
.lock-main { flex: 1; min-width: 0; }
.lock-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.lock-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.lock-time { text-align: right; font-size: 12px; color: var(--ink-3); flex: none; }
.lock-time b { display: block; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }

.meal-board { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.meal-half { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.meal-half-head { padding: 12px 15px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; background: #f9fbfd; }
.meal-half-head h4 { font-size: 13.5px; font-weight: 700; }
.meal-half-head .sub { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.meal-half-body { padding: 4px 0; }
.loc-row { padding: 11px 15px; border-bottom: 1px dashed var(--line-2); }
.loc-row:last-child { border-bottom: none; }
.loc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.loc-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.loc-teams { font-size: 11px; color: var(--ink-3); }
.pkg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pkg-cell { background: #f7f9fb; border-radius: 6px; padding: 7px 4px; text-align: center; }
.pkg-cell .n { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.pkg-cell .l { font-size: 10.5px; color: var(--ink-3); }
.pkg-cell.total { background: var(--amber-soft); }
.pkg-cell.total .n { color: #a9700a; }

.meal-summary th.group { text-align: center; background: #f2f6fa; border-left: 1px solid var(--line); }
.meal-summary th.sub { text-align: center; font-size: 10.5px; }
.meal-summary td { text-align: center; font-variant-numeric: tabular-nums; }
.meal-summary td.left { text-align: left; }
.meal-summary .total-cell { font-weight: 700; color: var(--ink); background: #fcfaf4; }

/* ============ 我的加班 ============ */
.mine-hero {
  background: linear-gradient(130deg, #123150, #1c4d74 62%, #1a6a94);
  border-radius: 12px; padding: 22px 24px; color: #eaf3fa;
  display: flex; align-items: center; gap: 26px; position: relative; overflow: hidden;
}
.mine-hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 300px; height: 300px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 40px rgba(255,255,255,.05), 0 0 0 80px rgba(255,255,255,.03);
}
.mine-hero > * { position: relative; z-index: 1; }
.mine-hero .who { display: flex; align-items: center; gap: 13px; }
.mine-hero .avatar {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(232,147,12,.2);
  color: #ffcf8a; display: grid; place-items: center; font-size: 18px; font-weight: 700;
  border: 1px solid rgba(232,147,12,.35);
}
.mine-hero h3 { font-size: 19px; font-weight: 700; }
.mine-hero p { font-size: 12px; color: #9db8cd; margin-top: 1px; }
.mine-hero .hero-stats { margin-left: auto; display: flex; gap: 40px; }
.mine-hero .hs b { font-size: 27px; font-weight: 700; letter-spacing: -.01em; }
.mine-hero .hs b small { font-size: 12px; font-weight: 500; color: #a9c4d8; margin-left: 3px; }
.mine-hero .hs span { display: block; font-size: 11.5px; color: #93aec4; }

/* ============ 大屏 ============ */
.screen-page {
  margin: -22px -26px -40px;
  min-height: calc(100vh - 64px);
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(30, 110, 160, .35), transparent 65%),
    linear-gradient(180deg, #06111c, #081a2a 55%, #061520);
  color: #dcecf8; padding: 22px 26px 30px;
}
.screen-page::before {
  content: ""; position: fixed; inset: 64px 0 0 var(--sidebar-w); pointer-events: none;
  background-image: linear-gradient(rgba(90, 150, 195, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 150, 195, .06) 1px, transparent 1px);
  background-size: 44px 44px; z-index: 0;
}
.screen-inner { position: relative; z-index: 1; }
.screen-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(120, 175, 215, .16); }
.screen-head h2 { font-size: 22px; font-weight: 700; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; }
.screen-head h2 .mk { width: 5px; height: 22px; background: var(--amber); border-radius: 3px; box-shadow: 0 0 14px rgba(232,147,12,.7); }
.screen-head .meta { font-size: 12px; color: #7f9db3; margin-top: 3px; letter-spacing: .08em; }
.screen-head .live { margin-left: auto; text-align: right; }
.screen-head .live b { font-size: 26px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: #eaf6ff; }
.screen-head .live span { display: block; font-size: 11.5px; color: #6f8ea6; letter-spacing: .1em; }
.screen-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
.skpi {
  background: linear-gradient(160deg, rgba(24, 56, 82, .72), rgba(12, 32, 49, .72));
  border: 1px solid rgba(90, 150, 195, .18); border-radius: 9px; padding: 13px 15px;
  position: relative; overflow: hidden;
}
.skpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #3d9ad1; }
.skpi.amber::after { background: var(--amber); }
.skpi .lb { font-size: 11.5px; color: #82a2ba; letter-spacing: .04em; }
.skpi .vl { font-size: 26px; font-weight: 700; color: #f2fbff; margin-top: 3px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.skpi .vl small { font-size: 11.5px; color: #7f9db3; font-weight: 500; margin-left: 3px; }
.skpi .ft { font-size: 10.5px; color: #6d8ba2; margin-top: 2px; }
.screen-grid { display: grid; gap: 16px; margin-top: 16px; }
.screen-panel {
  background: linear-gradient(165deg, rgba(16, 42, 62, .8), rgba(8, 24, 37, .82));
  border: 1px solid rgba(90, 150, 195, .16); border-radius: 10px; overflow: hidden;
}
.sp-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(90,150,195,.13); }
.sp-head h3 { font-size: 13.5px; font-weight: 600; letter-spacing: .08em; color: #cfe6f6; display: flex; align-items: center; gap: 8px; }
.sp-head h3 .bar { width: 3px; height: 14px; background: #3d9ad1; border-radius: 2px; }
.sp-head .sub { margin-left: auto; font-size: 11px; color: #6f8ea6; }
.sp-body { padding: 14px 16px; }
.screen-page .table th { background: rgba(255,255,255,.04); color: #7f9db3; border-bottom-color: rgba(120,175,215,.14); }
.screen-page .table td { color: #c9dfef; border-bottom-color: rgba(120,175,215,.10); }
.screen-page .table tbody tr:hover td { background: rgba(255,255,255,.035); }
.screen-page .table .strong { color: #eaf6ff; }
.screen-page .bar-track { background: rgba(255,255,255,.07); }
.screen-page .bar-row .name { color: #a9c6da; }
.screen-page .bar-row .val { color: #eaf6ff; }
.screen-page .rank-row { border-bottom-color: rgba(120,175,215,.12); }
.screen-page .rank-name { color: #dcecf8; }
.screen-page .rank-team { color: #6f8ea6; }
.screen-page .rank-bar { background: rgba(255,255,255,.07); }
.screen-page .rank-bar i { background: #3d9ad1; }
.screen-page .rank-val { color: #eaf6ff; }
.screen-page .rank-no { background: rgba(255,255,255,.07); color: #9db9cd; }
.screen-page .rank-no.top1 { background: rgba(232,147,12,.2); color: #ffcf8a; }
.screen-page .empty { color: #6f8ea6; }
.screen-page .empty svg { fill: #38566e; }
.screen-page .pill { background: rgba(255,255,255,.07); color: #b7d0e2; }
.screen-page .pill::before { background: currentColor; }
.screen-page .pill.approved { background: rgba(25,154,108,.16); color: #6fd3a8; }
.screen-page .pill.pending { background: rgba(232,147,12,.16); color: #ffc46b; }
.screen-2col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.screen-table-scroll { max-height: 244px; overflow-y: auto; }
.screen-table-scroll::-webkit-scrollbar-thumb { background: rgba(120,175,215,.25); background-clip: content-box; }
.screen-custom { margin-top: 16px; }
.screen-page .input, .screen-page .select {
  background: rgba(255,255,255,.05); border-color: rgba(120,175,215,.25); color: #dcecf8;
}
.screen-page .select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%2380a0b8'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E"); }
.screen-page .input::placeholder { color: #5f7d93; }
.screen-page .btn { background: rgba(255,255,255,.06); border-color: rgba(120,175,215,.24); color: #cfe6f6; }
.screen-page .btn:hover { background: rgba(255,255,255,.1); border-color: rgba(120,175,215,.4); color: #fff; }
.screen-page .btn-primary { background: #1f6fa8; border-color: #1f6fa8; color: #fff; }
.screen-page .btn-amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.screen-page .section-title { color: #dcecf8; }
.screen-page .muted { color: #6f8ea6; }

/* ============ 设置 / 管理 ============ */
.profile-card { display: flex; align-items: center; gap: 18px; padding: 20px; }
.profile-avatar {
  width: 62px; height: 62px; border-radius: 14px;
  background: linear-gradient(150deg, #eaf3fb, #d9e9f7); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 22px; font-weight: 700; flex: none;
}
.profile-name { font-size: 19px; font-weight: 700; }
.profile-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.perm-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.perm-item:last-child { border-bottom: none; }
.perm-item .ok { color: var(--green); font-weight: 700; flex: none; }
.perm-item .no { color: #b6c2ce; font-weight: 700; flex: none; }

@media (max-width: 1280px) {
  .apply-layout { grid-template-columns: 360px 1fr; }
  .screen-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .apply-layout { grid-template-columns: 1fr; }
  .apply-form-card { position: static; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-2col, .meal-board { grid-template-columns: 1fr; }
  .lock-grid { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --sidebar-w: 0px; }
  .sidebar { width: 252px; transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: none; box-shadow: 18px 0 48px rgba(6, 16, 26, .35); }
  .sidebar-mask { position: fixed; inset: 0; background: rgba(6, 16, 26, .45); z-index: 38; }
  .main-wrap { margin-left: 0; }
  .page { padding: 14px; }
  .kpi-grid, .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
  .screen-page { margin: -14px; padding: 14px; }
  .screen-kpis { grid-template-columns: 1fr 1fr; }
  .tb-date { display: none; }
  .login-panel { padding: 24px 18px; }
}

/* 文本省略 */
td .ellipsis, .ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1080px) { td .ellipsis, .ellipsis { max-width: 160px; } }

/* 大屏紧凑布局（1080p 一屏展示） */
.screen-page { padding: 14px 22px 20px; }
.screen-head { padding-bottom: 10px; }
.screen-head h2 { font-size: 20px; }
.screen-head .live b { font-size: 22px; }
.screen-kpis { margin-top: 12px; gap: 10px; }
.skpi { padding: 9px 14px; }
.skpi .vl { font-size: 22px; }
.skpi .ft { font-size: 10px; }
.screen-grid { margin-top: 10px; gap: 10px; }
.sp-head { padding: 9px 14px; }
.sp-body { padding: 10px 14px; }
.screen-table-scroll { max-height: 168px; -webkit-mask-image: linear-gradient(180deg, #000 86%, rgba(0,0,0,.15)); mask-image: linear-gradient(180deg, #000 86%, rgba(0,0,0,.15)); }
.screen-page .bar-chart { gap: 5px; }
.screen-page .rank-row { padding: 4px 0; }
.screen-page .table td { padding: 8px 10px; }
.screen-page .table th { padding: 8px 10px; }

.tb-menu { display: none; width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 0; place-items: center; cursor: pointer; }
.tb-menu svg { width: 19px; height: 19px; fill: var(--ink-2); }
@media (max-width: 760px) {
  .tb-menu { display: grid; }
  .topbar { padding: 0 14px; gap: 10px; }
  .tb-user b, .tb-user span { display: none; }
  .tb-title h1 { font-size: 16px; }
  .tb-title p { display: none; }
}

/* ============ 本轮改版：申请 / 订餐 / 统计 / 大屏 ============ */
.today-box {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 12px; border-radius: 7px;
  background: #f7f9fb; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink);
}
.today-box svg { width: 16px; height: 16px; fill: var(--ink-3); }
.today-box .tag { margin-left: auto; }

.meal-options.compact { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.meal-options.compact .meal-option {
  padding: 7px 4px; font-size: 12.5px; line-height: 1.2; border-radius: 6px;
}
.meal-options.compact .meal-option.active { box-shadow: inset 0 0 0 1px var(--brand); }

.mini-select {
  height: 26px; min-width: 74px; padding: 0 22px 0 7px; font-size: 11.5px;
  border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink-2);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%237d8b9b'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 3px center;
}
.mini-select:disabled { opacity: .4; background-color: #f6f8fa; }
.picker-person .pname { font-size: 13px; color: var(--ink); min-width: 52px; }
.picker-person { gap: 8px; }
.picker-person .meta { margin-left: auto; margin-right: 8px; }
.chip i { font-style: normal; font-size: 10.5px; color: #5d86a6; background: rgba(255,255,255,.6); padding: 0 4px; border-radius: 3px; }

.table-compact td { padding: 9px 12px; }
.table-compact th { padding: 9px 12px; }

.screen-3col { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; }

.meal-total-strip {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  margin-top: 14px; padding: 14px 18px; border-radius: 10px;
  background: linear-gradient(120deg, #f4f9fd, #eef5fb);
  border: 1px solid #dfeaf4;
}
.mtotal { display: flex; align-items: baseline; gap: 6px; }
.mtotal .lb { font-size: 12px; color: #4a6b87; }
.mtotal b { font-size: 26px; font-weight: 700; color: var(--brand-dark); font-variant-numeric: tabular-nums; line-height: 1; }
.mtotal .unit { font-size: 11.5px; color: #6f8ba3; }
.mtotal.strong b { color: #a9700a; }
.mtotal-note { margin-left: auto; font-size: 11.5px; color: #6f8ba3; }

.meal-section { margin-top: 16px; }
.meal-big { font-size: 26px; font-weight: 700; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.meal-big small { font-size: 11.5px; color: var(--ink-3); font-weight: 500; margin-left: 3px; }
.meal-table th, .meal-table td { padding: 12px; font-size: 13.5px; text-align: right; }
.meal-table thead th:nth-child(1), .meal-table tbody td:nth-child(1),
.meal-table thead th:nth-child(2), .meal-table tbody td:nth-child(2) { text-align: left; }
.meal-table td.num { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.meal-table td.muted-cell { color: var(--ink-3); font-weight: 500; }
.meal-table .total-cell { font-weight: 700; color: var(--ink); background: #fcfaf4; }
.meal-table tfoot td { font-weight: 600; }
.meal-table tfoot td.total-cell { font-weight: 700; }

/* 申请页移动端压缩 */
@media (max-width: 760px) {
  .apply-layout { gap: 12px; }
  .apply-form-card .card-body { padding: 14px; }
  .apply-form-card .form-grid { gap: 12px; }
  .apply-layout .card { border-radius: 9px; }
  .apply-layout .card-head { padding: 12px 14px; }
  .duration-box { padding: 8px 12px; }
  .duration-box .vl { font-size: 18px; }
  .meal-options.compact .meal-option { padding: 8px 2px; font-size: 12px; }
  .today-box { height: 36px; }
  .table-compact td, .table-compact th { padding: 8px; font-size: 12px; }
  .table-compact .person-avatar { width: 24px; height: 24px; font-size: 10.5px; }
  .table-compact .btn-sm { height: 26px; padding: 0 7px; font-size: 11.5px; }
  .table-compact .subcell { display: none; }
  .meal-total-strip { gap: 14px; padding: 12px; }
  .mtotal b { font-size: 22px; }
  .mtotal-note { margin-left: 0; width: 100%; }
  .meal-table { table-layout: fixed; width: 100%; }
  .meal-table th, .meal-table td { padding: 9px 4px; font-size: 11.5px; }
  .meal-table thead th:nth-child(1), .meal-table tbody td:nth-child(1) { width: 21%; }
  .meal-table thead th:nth-child(2), .meal-table tbody td:nth-child(2) { width: 25%; }
  .meal-table td.num { font-size: 12.5px; }
  .meal-table thead th { font-size: 11px; letter-spacing: 0; }
  .screen-3col { grid-template-columns: 1fr; gap: 14px; }
}
.person-avatar svg { fill: currentColor; }

/* 移动端：我的加班 / 申请列表 */
@media (max-width: 760px) {
  .mine-hero { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 16px; }
  .mine-hero .who { align-items: flex-start; }
  .mine-hero .who p { font-size: 11.5px; line-height: 1.6; }
  .mine-hero h3 { font-size: 18px; }
  .mine-hero .avatar { width: 44px; height: 44px; font-size: 16px; }
  .mine-hero .hero-stats { margin-left: 0; width: 100%; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
  .mine-hero .hs b { font-size: 22px; }
  .mine-hero .hs span { font-size: 10.5px; line-height: 1.4; }
  .filter-bar .field { min-width: 0; flex: 1 1 44%; }
  .filter-bar .field.grow { flex: 1 1 100%; }
  .table-compact .person-avatar { display: none; }
  .table-compact td, .table-compact th { padding: 8px 6px; }
  .table-compact .btn-sm { padding: 0 6px; }
  #mine-list th:nth-child(2), #mine-list td:nth-child(2),
  #mine-list th:nth-child(5), #mine-list td:nth-child(5),
  #mine-list th:nth-child(7), #mine-list td:nth-child(7) { display: none; }
  #mine-list .ellipsis { max-width: 120px; }
}

@media (max-width: 760px) {
  #mine-list .table td, #mine-list .table th { padding: 8px 4px; font-size: 11.5px; }
  #mine-list .pill { height: 20px; padding: 0 5px; font-size: 10.5px; gap: 3px; }
  #mine-list .pill::before { width: 4px; height: 4px; }
  #mine-list .tag { padding: 0 5px; font-size: 10.5px; }
  #mine-list .btn-sm { height: 24px; padding: 0 5px; font-size: 11px; }
  #mine-list .pagination { padding: 10px; }
}

.meal-option.disabled { opacity: .38; cursor: not-allowed; background: #f4f6f8; color: #9aa8b6; border-style: dashed; }
.meal-option.disabled:hover { background: #f4f6f8; border-color: var(--line); }

.mtotal.canteen b { color: #a9700a; }

.meal-table tfoot td:first-child { text-align: left; }
