/* ============ 基础重置 ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #f0fdfa;
  --primary-border: #99f6e4;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --info: #1e40af;
  --info-bg: #eff6ff;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 14px;
}

/* ============ 登录页 ============ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
}
.login-card h1 {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}
.login-card .subtitle {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 28px;
}
.login-card label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}
.login-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.login-card input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}
.login-card .btn-login {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.15s;
}
.login-card .btn-login:hover { background: var(--primary-dark); }
.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

/* ============ 安全警告横幅 ============ */
.security-warning {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.security-warning .sw-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.security-warning .sw-text { flex: 1; }
.security-warning .sw-close {
  background: none;
  border: none;
  color: #991b1b;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.security-warning .sw-close:hover { color: #000; }
@media (max-width: 768px) {
  .security-warning { padding: 10px 16px; font-size: 12px; }
}

/* ============ 管理后台布局 ============ */
.admin-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-header .brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 600;
}
.admin-header .brand-text h1 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}
.admin-header .brand-text small {
  font-size: 11px;
  color: var(--text-3);
}
.admin-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-header .header-right .user-label {
  font-size: 13px;
  color: var(--text-2);
}

/* ============ 标签导航 ============ */
.admin-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.nav-tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
}
.nav-tab:hover { color: var(--text); }
.nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}

/* ============ 主内容区 ============ */
.admin-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============ 卡片 ============ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .count {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
}
.card-desc {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* ============ 网格布局 ============ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-danger:hover { background: #991b1b; border-color: #991b1b; }
.btn-success {
  background: var(--success);
  color: white;
  border-color: var(--success);
}
.btn-success:hover { background: #166534; border-color: #166534; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ 表单 ============ */
.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
input[type="text"], input[type="password"], input[type="date"], select, textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}
textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}

/* ============ 徽章 ============ */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-gray { background: #f1f5f9; color: var(--text-2); }
.badge-amber { background: var(--warning-bg); color: var(--warning); }

/* ============ 统计 ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-box .num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.stat-box .label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.stat-box.eat .num { color: var(--success); }
.stat-box.not .num { color: var(--warning); }
.stat-box.rest .num { color: var(--text-3); }
.stat-box.total {
  background: var(--primary-light);
  border-color: var(--primary-border);
}
.stat-box.total .num { color: var(--primary); }

.stat-table {
  width: 100%;
  border-collapse: collapse;
}
.stat-table th, .stat-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.stat-table th {
  font-weight: 500;
  color: var(--text-2);
  background: #f8fafc;
}
.stat-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat-table tr.weekend td { color: var(--info); }

/* ============ 员工列表 (管理) ============ */
.emp-list {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.emp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s;
}
.emp-row:last-child { border-bottom: none; }
.emp-row:hover { background: #f8fafc; }
.emp-row .emp-name {
  flex: 0 0 100px;
  font-weight: 500;
  font-size: 14px;
}
.emp-row .emp-pos {
  flex: 1;
  color: var(--text-3);
  font-size: 12px;
}
.emp-row .emp-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}
.emp-row .emp-actions {
  display: flex;
  gap: 6px;
}

/* ============ 就餐登记列表 ============ */
.meal-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.meal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.1s;
}
.meal-item:last-child { border-bottom: none; }
.meal-item:hover { background: #f8fafc; }
.meal-item .meal-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}
.meal-item .meal-pos {
  font-size: 12px;
  color: var(--text-3);
  flex: 0 0 80px;
}
.meal-item .meal-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
  flex: 0 0 70px;
  text-align: center;
}
.meal-badge.eat { background: var(--success-bg); color: var(--success); }
.meal-badge.not { background: var(--warning-bg); color: var(--warning); }
.meal-badge.rest { background: #f1f5f9; color: var(--text-3); }
.meal-badge.unknown { background: #f8fafc; color: var(--text-3); border: 1px dashed var(--border); }

/* ============ 操作日志 ============ */
.log-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.log-item {
  display: grid;
  grid-template-columns: 140px 80px 100px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.log-item:last-child { border-bottom: none; }
.log-item:hover { background: #f8fafc; }
.log-time { color: var(--text-3); font-family: monospace; font-size: 12px; }
.log-operator { font-weight: 600; color: var(--text-1); }
.log-detail { color: var(--text-2); }
@media (max-width: 768px) {
  .log-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 12px;
  }
  .log-time { font-size: 11px; }
  .log-operator { font-size: 13px; }
}

/* ============ 链接展示 ============ */
.link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 12px;
}
.link-box .link-url {
  flex: 1;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
  color: var(--info);
  word-break: break-all;
  user-select: all;
}

/* ============ 提示框 ============ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
  border: 1px solid;
}
.alert-info { background: var(--info-bg); border-color: #bfdbfe; color: var(--info); }
.alert-warning { background: var(--warning-bg); border-color: #fde68a; color: var(--warning); }
.alert-danger { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }
.alert-success { background: var(--success-bg); border-color: #bbf7d0; color: var(--success); }

/* ============ 选项卡 (子标签) ============ */
.sub-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.sub-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  transition: all 0.15s;
  font-family: inherit;
}
.sub-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============ 每日明细列表 ============ */
.detail-list {
  max-height: 300px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}
.detail-row .date { color: var(--text-2); }
.detail-row .val { font-weight: 500; font-variant-numeric: tabular-nums; }
.detail-row.weekend .date { color: var(--info); }

/* ============ Toast ============ */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 200;
}
.toast.show { opacity: 1; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .admin-header { padding: 0 16px; }
  .admin-nav { padding: 0 16px; }
  .admin-main { padding: 16px; }
  .card { padding: 16px; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row label { margin-bottom: 4px; }
  .form-row input, .form-row select { width: 100%; }
  .emp-row .emp-name { flex: 0 0 80px; font-size: 13px; }
  .emp-row .emp-pos { display: none; }
  .meal-item .meal-pos { display: none; }
  .nav-tab { padding: 10px 14px; font-size: 13px; }
}

/* ============ 工具类 ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-3); }
.text-sm { font-size: 12px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none; }

/* ============ 弹窗 Modal ============ */
.modal-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; color: var(--text-1); margin: 0; }
.modal-close {
  background: none; border: none; font-size: 24px; color: var(--text-3);
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.modal-close:hover { color: var(--text-1); }
.modal-body { padding: 18px; overflow-y: auto; }

/* ============ 日历 (员工记录) ============ */
.cal-month-picker { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; }
.cal-month-nav { width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.cal-month-nav:hover { background: var(--bg); }
.cal-month-label { font-size: 15px; font-weight: 600; min-width: 90px; text-align: center; color: var(--text-1); }
.cal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.cal-stats .stat-mini { background: var(--bg); border-radius: 8px; padding: 10px 6px; text-align: center; }
.cal-stats .stat-mini .n { font-size: 20px; font-weight: 700; }
.cal-stats .stat-mini .l { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.cal-stats .stat-mini.eat .n { color: #059669; }
.cal-stats .stat-mini.not .n { color: #ea580c; }
.cal-stats .stat-mini.rest .n { color: var(--text-3); }
.cal-container { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg); }
.cal-head div { padding: 8px 0; text-align: center; font-size: 12px; color: var(--text-3); font-weight: 600; }
.cal-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); }
.cal-day { background: #fff; padding: 6px 0; text-align: center; font-size: 12px; min-height: 36px; }
.cal-day.empty { background: #fafafa; }
.cal-day .num { font-weight: 600; color: var(--text-1); }
.cal-day .sym { font-size: 11px; margin-top: 1px; }
.cal-day.weekend .num { color: #dc2626; }
.cal-day.eat { background: #ecfdf5; }
.cal-day.eat .sym { color: #059669; }
.cal-day.not { background: #fffbeb; }
.cal-day.not .sym { color: #d97706; }
.cal-day.rest { background: #f8fafc; }
.cal-day.rest .sym { color: var(--text-3); }
.cal-day.li { background: #fef2f2; }
.cal-day.li .sym { color: #991b1b; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.cal-legend-item { display: flex; align-items: center; gap: 4px; }
.cal-legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.cal-legend-dot.eat { background: #d1fae5; border: 1px solid #6ee7b7; }
.cal-legend-dot.not { background: #fef3c7; border: 1px solid #fcd34d; }
.cal-legend-dot.rest { background: #f1f5f9; border: 1px solid #cbd5e1; }
.cal-legend-dot.li { background: #fef2f2; border: 1px solid #fecaca; }
.cal-legend-dot.none { background: #fff; border: 1px solid var(--border); }
.cal-day.clickable { cursor: pointer; transition: background 0.1s; }
.cal-day.clickable:hover { background: #f0fdfa; }
.cal-day.selected { outline: 2px solid var(--primary); outline-offset: -2px; }

/* ============ 记录设置状态栏 ============ */
.status-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px; min-height: 52px;
}
.status-bar .sb-hint { font-size: 13px; color: var(--text-3); }
.status-bar .sb-date { font-size: 14px; font-weight: 700; color: var(--text-1); white-space: nowrap; }
.status-bar .sb-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sb-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.sb-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.sb-btn.eat { color: #047857; border-color: #6ee7b7; background: #ecfdf5; }
.sb-btn.not { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.sb-btn.rest { color: #475569; border-color: #cbd5e1; background: #f8fafc; }
.sb-btn.unknown { color: #64748b; }
.sb-btn.active { outline: 2px solid var(--primary); outline-offset: 1px; }
.bulk-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.bulk-row label { font-size: 13px; color: var(--text-3); }
.bulk-row input[type="date"] { border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 13px; background: #fff; }
.review-menu {
  background: var(--primary-light); border-left: 3px solid var(--primary);
  padding: 12px 14px; border-radius: 8px; margin-bottom: 12px;
  font-size: 14px; line-height: 1.8; color: var(--primary-dark); white-space: pre-wrap; word-break: break-all;
}

/* ============ 搜索与分组 ============ */
.search-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; margin-bottom: 10px; outline: none; background: #fff;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--primary); }
.group-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.group-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 20px; cursor: pointer;
  background: #fff; border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  box-shadow: var(--shadow); transition: all 0.15s; user-select: none;
}
.group-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.group-chip.active {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 8px rgba(15, 118, 110, 0.3);
}
.group-chip .chip-cnt {
  background: rgba(15, 118, 110, 0.1); color: var(--primary);
  border-radius: 10px; padding: 1px 8px; font-size: 11px; font-weight: 700;
}
.group-chip.active .chip-cnt { background: rgba(255, 255, 255, 0.25); color: #fff; }
.group-chip .chip-del {
  margin-left: 2px; width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1; color: var(--text-3); background: rgba(0, 0, 0, 0.06);
  transition: all 0.15s;
}
.group-chip .chip-del:hover { background: var(--danger); color: #fff; }
.emp-group-select {
  border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px;
  font-size: 12px; background: #fff; color: var(--text-2); margin-right: 6px; max-width: 96px;
}

/* ============ 员工就餐记录设置 ============ */
.emp-record-day {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.emp-record-day:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.emp-record-day .day-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.emp-record-day .day-status {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1;
}
.emp-record-day.eat {
  background: #dcfce7;
  border-color: #86efac;
}
.emp-record-day.eat .day-status {
  color: #166534;
}
.emp-record-day.not {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.emp-record-day.not .day-status {
  color: #374151;
}
.emp-record-day.rest {
  background: #fef3c7;
  border-color: #fcd34d;
}
.emp-record-day.rest .day-status {
  color: #92400e;
}
.emp-record-day.unknown {
  background: #e5e7eb;
  border-color: #9ca3af;
}
.emp-record-day.unknown .day-status {
  color: #6b7280;
}
.emp-record-day.li {
  background: #fef2f2;
  border-color: #fecaca;
}
.emp-record-day.li .day-status {
  color: #991b1b;
}
