/* ============ 主题变量 ============ */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --sidebar-bg: #1f2937;
  --sidebar-text: #9ca3af;
  --sidebar-active: #ffffff;
  --bg: #f3f4f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --info: #0891b2;
  --info-bg: #ecfeff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* ============ 登录页 ============ */
.login-mask {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 380px;
  padding: 34px 32px 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-logo .logo-mark {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.login-logo h1 { font-size: 19px; font-weight: 700; }
.login-logo p { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.login-card .form-item { margin-bottom: 14px; }
.login-btn { width: 100%; height: 40px; font-size: 14px; margin-top: 6px; }
.login-tip { font-size: 12px; color: var(--text-3); margin-top: 14px; text-align: center; line-height: 1.7; }

/* ============ 侧边栏 ============ */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-group-title {
  font-size: 11px;
  color: #6b7280;
  padding: 14px 10px 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--sidebar-text);
  transition: background 0.15s, color 0.15s;
  user-select: none;
  font-size: 14px;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.08); color: #e5e7eb; }
.nav-item.active { background: var(--primary); color: #fff; }
/* 页内胶囊 Tab 条 */
.sub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.sub-tab {
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  background: #f3f4f6;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}
.sub-tab:hover { color: var(--primary); }
.sub-tab.active { background: var(--primary); color: #fff; font-weight: 600; }
.sub-view { display: none; animation: fadeIn 0.25s ease; }
.sub-view.active { display: block; }
.apply-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.apply-type-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; background: #fff; }
.apply-type-card:hover { border-color: var(--primary); background: #f5f8ff; }
.apply-type-card .at-name { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.apply-type-card .at-desc { font-size: 12px; color: #6b7280; }
.scan-upload-box { border: 1.5px dashed var(--border); border-radius: 12px; padding: 32px; text-align: center; cursor: pointer; color: #6b7280; transition: border-color 0.15s, background 0.15s; }
.scan-upload-box:hover { border-color: var(--primary); background: #f8faff; }
.scan-upload-box .su-icon { font-size: 32px; margin-bottom: 8px; color: #94a3b8; }
.sidebar-foot {
  padding: 14px 18px;
  font-size: 12px;
  color: #6b7280;
  border-top: 1px solid rgba(255,255,255,0.08);
  line-height: 1.7;
}
.sidebar-foot .foot-user { color: #e5e7eb; font-weight: 500; }
.sidebar-foot .op-link.danger { color: #f87171; }

/* ============ 主区域 ============ */
.main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }

/* 顶部栏 */
.topbar {
  height: 60px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 16px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search input {
  width: 240px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px 0 34px;
  font-size: 13px;
  outline: none;
  background: var(--bg);
  transition: border 0.15s, background 0.15s;
}
.topbar-search input:focus { border-color: var(--primary); background: #fff; }
.topbar-search svg {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--text-3);
  pointer-events: none;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
}
.user-chip .role-tag { font-size: 11px; color: var(--primary); background: var(--primary-light); padding: 1px 8px; border-radius: 999px; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.user-chip .u-name { font-size: 13px; font-weight: 500; }
.btn-logout { color: var(--text-2); }

/* 内容区 */
.content { flex: 1; padding: 24px; max-width: 1400px; width: 100%; margin: 0 auto; }

.view { display: none; animation: fadeIn 0.25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 统计卡片 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat-card .s-label { font-size: 13px; color: var(--text-2); }
.stat-card .s-value { font-size: 26px; font-weight: 700; margin-top: 4px; }
.stat-card .s-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stat-card .s-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.stat-card .s-icon svg { width: 19px; height: 19px; }

/* 工作台风格 KPI 卡片（拼多多话费总览） */
.pdd-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 6px 2px 12px;
}
.pdd-section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}
.pdd-today-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 999px;
}
.pdd-kpi-row { margin-bottom: 24px; }
.pdd-kpi-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pdd-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.pdd-kpi-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
}
.pdd-kpi-card .kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #fff;
}
.pdd-kpi-card .kpi-icon svg { width: 22px; height: 22px; }
.pdd-kpi-card .kpi-profit { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.pdd-kpi-card .kpi-sale { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.pdd-kpi-card .kpi-order { background: linear-gradient(135deg, #10b981, #059669); }
.pdd-kpi-card .kpi-refund { background: linear-gradient(135deg, #f59e0b, #d97706); }
.pdd-kpi-card .kpi-success { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.pdd-kpi-card .kpi-alert { background: linear-gradient(135deg, #ef4444, #dc2626); }
.pdd-kpi-card .kpi-pick { background: linear-gradient(135deg, #eab308, #ca8a04); }
.pdd-kpi-card .kpi-promo { background: linear-gradient(135deg, #ec4899, #db2777); }
.pdd-kpi-card .kpi-label { font-size: 13px; color: var(--text-2); }
.pdd-kpi-card .kpi-value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.pdd-kpi-card .kpi-value.up { color: #dc2626; }      /* 涨/盈利 → 红（中国习惯） */
.pdd-kpi-card .kpi-value.down { color: #16a34a; }    /* 跌/亏损 → 绿 */
.pdd-kpi-card .kpi-value.danger { color: #dc2626; }  /* 警示（退款/预警）→ 红 */
.pdd-kpi-card .kpi-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* 总览时间筛选区 */
.pdd-overview-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 20px;
}
.pdd-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdd-filter-group label {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.pdd-filter-group input[type="date"] {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  background: #fff;
}
.pdd-filter-group input[type="date"]:focus { border-color: var(--primary); }
.pdd-filter-sep { font-size: 13px; color: var(--text-3); }
.pdd-date-range-group { gap: 8px; }
.pdd-date-range {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px 8px;
  background: #fff;
  transition: border-color .15s;
}
.pdd-date-range:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.pdd-date-range input[type="date"] {
  border: none !important;
  background: transparent !important;
  padding: 0 2px !important;
  height: 30px !important;
  outline: none;
}
.pdd-date-range .pdd-filter-sep { padding: 0 2px; }

/* 累计概览日期范围选择器（一个框 + 弹出日历） */
.pdd-range-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s;
}
.pdd-range-picker:hover { border-color: var(--primary); }
.pdd-range-text { font-size: 13px; color: var(--text); flex: 1; }
.pdd-range-text.placeholder { color: var(--text-3); }
.pdd-range-clear {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}
.pdd-range-clear:hover { background: var(--danger); }

/* 日历悬浮层：浮在时间筛选面板下方，不撑开布局 */
.pdd-filter-panel { position: relative; }
.pdd-calendar {
  position: absolute;
  top: calc(100% + 6px);
  left: 20px;
  z-index: 120;
  display: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: 12px;
  width: 300px;
}
.pdd-calendar.show { display: block; }
.pdd-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pdd-cal-title { font-size: 14px; font-weight: 600; }
.pdd-cal-nav {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 16px;
  user-select: none;
}
.pdd-cal-nav:hover { background: var(--primary-light); color: var(--primary); }
.pdd-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.pdd-cal-week span {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 0;
}
.pdd-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.pdd-cal-empty { aspect-ratio: 1; }
.pdd-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  transition: background .12s;
}
.pdd-cal-day:hover { background: var(--primary-light); }
.pdd-cal-day.is-today { color: var(--primary); font-weight: 700; }
.pdd-cal-day.sel-start, .pdd-cal-day.sel-end {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.pdd-cal-day.sel-in {
  background: var(--primary-light);
  border-radius: 0;
  color: var(--primary);
}

/* 面板卡片 */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.panel-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.panel-body { padding: 20px; overflow-x: auto; }

/* 工具栏 */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .search-input {
  height: 34px;
  width: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}
.toolbar .search-input:focus { border-color: var(--primary); }
.select {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: var(--text);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn-titled { flex-direction: column; height: auto; padding: 5px 12px; gap: 1px; align-items: flex-start; }
.btn-titled .bt-main { font-size: 13px; font-weight: 600; line-height: 1.3; }
.btn-titled .bt-sub { font-size: 10px; opacity: 0.65; line-height: 1.2; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

/* 表格 */
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: #f9fafb;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f9fafb; }
.table .cell-main { font-weight: 500; }
.table .cell-sub { font-size: 12px; color: var(--text-3); }

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-success { background: var(--success-bg); color: var(--success); }
.tag-danger { background: var(--danger-bg); color: var(--danger); }
.tag-warning { background: var(--warning-bg); color: var(--warning); }
.tag-info { background: var(--info-bg); color: var(--info); }
.tag-gray { background: #f3f4f6; color: #6b7280; }
.tag-primary { background: var(--primary-light); color: var(--primary); }
/* 文字颜色（利润/捡钱等数值列） */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

/* 考勤台账 */
.table-wrap { overflow-x: auto; }
.att-table { min-width: 980px; table-layout: fixed; }
.att-table th, .att-table td { text-align: center; padding: 4px 2px; font-size: 12px; }
.att-table .att-name { position: sticky; left: 0; background: #fff; z-index: 2; box-shadow: 1px 0 0 var(--border); }
.att-table thead th { background: #f9fafb; }
.att-cell {
  width: 26px; height: 26px; margin: 0 auto; border-radius: 5px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1; border: 1px solid transparent;
  transition: transform .1s;
}
.att-cell:hover { transform: scale(1.2); border-color: #94a3b8; }
.att-cell.off { cursor: default; opacity: .35; }
.att-cell.off:hover { transform: none; border-color: transparent; }
.att-normal { background: #e8f8ee; color: #16a34a; }
.att-late { background: #fff4e0; color: #d97706; }
.att-early { background: #fdf3d8; color: #b45309; }
.att-leave { background: #e6f0ff; color: #2563eb; }
.att-trip { background: #f0e9ff; color: #7c3aed; }
.att-absent { background: #feecec; color: #dc2626; }
.att-rest { background: #f3f4f6; color: #9ca3af; }
.att-sum { font-weight: 600; color: var(--text-1); }
.att-sum .att-bad { color: #dc2626; }
.legend-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--border); background: #fcfcfd; font-size: 12px; color: var(--text-3); }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-item i.lg { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.lg-normal { background: #e8f8ee; }
.lg-late { background: #fff4e0; }
.lg-early { background: #fdf3d8; }
.lg-leave { background: #e6f0ff; }
.lg-trip { background: #f0e9ff; }
.lg-absent { background: #feecec; }
.lg-rest { background: #f3f4f6; }
.panel-foot-tip { padding: 8px 20px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--border); background: #fcfcfd; }

/* 工资条（打印样式） */
.salary-slip {
  width: 640px; max-width: 100%; margin: 0 auto; background: #fff; border: 1px solid #d1d5db;
  padding: 22px 26px; font-size: 13px; color: #111827;
}
.salary-slip .ss-head { text-align: center; border-bottom: 2px solid #111827; padding-bottom: 10px; margin-bottom: 12px; }
.salary-slip .ss-head h3 { margin: 0 0 2px; font-size: 18px; }
.salary-slip .ss-head p { margin: 0; font-size: 12px; color: #6b7280; }
.salary-slip .ss-emp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px; padding: 8px 0 12px; border-bottom: 1px dashed #d1d5db; margin-bottom: 10px; }
.salary-slip .ss-row { display: flex; justify-content: space-between; padding: 5px 4px; border-bottom: 1px dashed #e5e7eb; }
.salary-slip .ss-row.deduct { color: #dc2626; }
.salary-slip .ss-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 10px 12px; background: #f3f4f6; border-radius: 6px; font-weight: 600; }
.salary-slip .ss-total .amt { color: #dc2626; font-size: 20px; }
.salary-slip .ss-foot { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 10px; border-top: 1px solid #d1d5db; font-size: 12px; color: #6b7280; }
@media print {
  .sidebar, .topbar, .toast, .view, .stats-row, .legend-row, .print-hide, .modal-head, .modal-foot { display: none !important; }
  .modal-mask { position: static !important; background: #fff !important; display: flex !important; align-items: flex-start !important; overflow: visible !important; padding: 20px !important; }
  .modal { max-height: none !important; overflow: visible !important; box-shadow: none !important; }
  body { background: #fff !important; }
  .salary-slip { border: none !important; padding: 0 !important; }
}

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.pagination .p-info { font-size: 12px; color: var(--text-3); }
.pagination .p-btns { display: flex; gap: 6px; }
.pagination .p-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
  padding: 0 8px;
}
.pagination .p-btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination .p-btn.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 操作链接 */
.op-link { color: var(--primary); cursor: pointer; font-size: 12px; margin-right: 10px; white-space: nowrap; }
.op-link:hover { text-decoration: underline; }
.op-link.danger { color: var(--danger); }

/* 空状态 */
.empty { text-align: center; padding: 40px 0; color: var(--text-3); }
.empty svg { width: 42px; height: 42px; margin-bottom: 10px; opacity: 0.4; }

/* 访问受限（锁视图） */
.lock-wrap { max-width: 480px; margin: 60px auto; text-align: center; }
.lock-icon { font-size: 52px; line-height: 1; margin-bottom: 18px; }
.lock-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.lock-desc { color: var(--text-2); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
.lock-state { display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.lock-actions { display: flex; gap: 10px; justify-content: center; }

/* 站内通知 */
.notify-wrap { position: relative; cursor: pointer; color: var(--text-2); }
.notify-wrap > svg { width: 20px; height: 20px; }
.notify-badge { position: absolute; top: -6px; right: -8px; background: #dc2626; color: #fff; font-size: 11px; line-height: 1; padding: 2px 5px; border-radius: 999px; min-width: 16px; text-align: center; }
.notify-panel { position: absolute; top: 34px; right: 0; width: 320px; max-height: 420px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 100; display: flex; flex-direction: column; overflow: hidden; }
.notify-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.notify-body { overflow-y: auto; flex: 1; }
.notify-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notify-item:last-child { border-bottom: none; }
.notify-item:hover { background: var(--bg); }
.notify-item.unread { background: #eff6ff; }
.notify-item .n-dot { width: 8px; height: 8px; border-radius: 50%; background: #dc2626; flex-shrink: 0; margin-top: 5px; }
.notify-item .n-dot.read { background: transparent; }
.notify-item .n-main { flex: 1; min-width: 0; }
.notify-item .n-title { font-size: 13px; font-weight: 500; }
.notify-item .n-content { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.notify-item .n-time { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.notify-empty { text-align: center; padding: 40px 0; color: var(--text-3); font-size: 13px; }

/* 导出下拉菜单 */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { display: none; position: absolute; top: 100%; right: 0; min-width: 130px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg); z-index: 60; padding: 4px; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-item { display: block; width: 100%; text-align: left; padding: 8px 12px; font-size: 13px; color: var(--text); border: none; background: none; cursor: pointer; border-radius: 6px; }
.dropdown-item:hover { background: var(--bg); }

/* 批量导入弹窗 */
.import-box { border: 1px dashed var(--border); border-radius: 12px; padding: 28px 24px; text-align: center; }
.import-box .ib-icon { font-size: 40px; margin-bottom: 12px; }
.import-box .ib-steps { text-align: left; max-width: 400px; margin: 0 auto 20px; color: var(--text-2); font-size: 13px; line-height: 1.8; }
.import-box .ib-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 在用明细（卡片式） */
.su-stat { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.su-stat .su-label { font-size: 12px; color: var(--text-3); }
.su-stat .su-val { font-size: 22px; font-weight: 700; margin-top: 2px; }
.su-tab { cursor: pointer; padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); border: 1px solid var(--border); }
.su-tab.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); font-weight: 500; }
.su-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.su-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.su-card-head .su-name { font-size: 14px; font-weight: 600; }
.su-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.su-ops { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* 部门管理 */
.dept-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.dept-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.dept-row:last-child { border-bottom: none; }
.dept-row .dept-name { flex: 1; font-size: 14px; font-weight: 600; }

/* 权限管理 */
.perm-panel { border: 1px solid var(--border); border-radius: 10px; padding: 14px; max-height: 360px; overflow-y: auto; }
.perm-group { margin-bottom: 14px; }
.perm-group:last-child { margin-bottom: 0; }
.perm-group-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.perm-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.perm-check { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.perm-check input { cursor: pointer; }

/* 角色弹窗新设计（2026-08-30 重构） */
.role-modal { padding: 4px; }
.role-form-row { display: flex; gap: 16px; margin-bottom: 18px; }
.role-form-item { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.role-form-item label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.role-form-item input,
.role-form-item select {
  height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 13px; color: var(--text); outline: none; transition: border-color 0.15s;
}
.role-form-item input:focus,
.role-form-item select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 110, 246, 0.12); }
.role-perm-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding: 10px 12px;
  background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
  border: 1px solid #e0e9ff; border-radius: 8px;
}
.role-perm-title { font-size: 13px; font-weight: 600; color: #185fa5; }
.role-perm-actions { display: flex; gap: 8px; align-items: center; }
.role-perm-toggle { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.role-perm-toggle input { cursor: pointer; }
.btn-mini {
  height: 26px; padding: 0 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); border-radius: 6px;
  font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.btn-mini:hover { border-color: var(--primary); color: var(--primary); }
.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-height: 480px; overflow-y: auto; padding: 2px; }
.perm-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  background: #fafbfc; transition: border-color 0.15s, background 0.15s;
}
.perm-card:hover { border-color: #c7d2fe; background: #fff; }
.perm-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.perm-ico { font-size: 16px; line-height: 1; }
.perm-card-title { font-size: 13px; font-weight: 600; color: var(--text); }
.perm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 20px;
  background: #fff; color: var(--text-2); font-size: 12px; cursor: pointer;
  transition: all 0.15s; user-select: none;
}
.perm-chip:hover { border-color: #93c5fd; color: #185fa5; }
.perm-chip.on { background: linear-gradient(135deg, #3b6ef5 0%, #5b8def 100%); color: #fff; border-color: transparent; box-shadow: 0 2px 6px rgba(59, 110, 246, 0.25); }
.perm-chip input { display: none; }
@media (min-width: 1024px) { .perm-grid { grid-template-columns: repeat(3, 1fr); } }




/* 模态框 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 15px; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 20px; line-height: 1; padding: 4px; border-radius: 6px; }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* 详情抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
  display: none; align-items: stretch; justify-content: flex-end; z-index: 300;
}
.drawer-mask.show { display: flex; }
.drawer {
  width: 100%; max-width: 780px; height: 100vh;
  background: #fff; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: drawerIn 0.25s ease;
}
@keyframes drawerIn { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.drawer-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; }
.d-overview { display: flex; gap: 10px; margin-bottom: 16px; }
.d-ov-card {
  flex: 1; background: #f8fafc; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; min-width: 0;
}
.d-ov-card label { font-size: 11px; color: var(--text-3); display: block; margin-bottom: 4px; }
.d-ov-val { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-block { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.d-block-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.d-block-title .cnt { font-weight: 400; color: var(--text-3); font-size: 12px; }
.d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 16px; }
.d-item label { font-size: 11px; color: var(--text-3); display: block; margin-bottom: 3px; }
.d-item .d-val { font-size: 13px; font-weight: 500; color: var(--text); word-break: break-all; }
.d-inner-table { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.d-inner-table .table { margin: 0; }
/* 油卡详情 */
.fuel-d-ov { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fuel-d-cell { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.fuel-d-cell .cell-sub { font-size: 11px; }
.fuel-d-cell div:last-child { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 4px; }
.fuel-d-bal { color: #16a34a; font-size: 18px !important; }
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ins-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; position: relative; }
.ins-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ins-company { font-size: 13px; font-weight: 600; }
.ins-meta { font-size: 12px; color: var(--text-2); line-height: 1.7; }
.ins-del { position: absolute; top: 8px; right: 10px; font-size: 11px; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc-label { font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.doc-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.doc-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.doc-card .doc-meta { padding: 7px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); }
.upload-btn {
  border: 1.5px dashed var(--border); border-radius: 8px; min-height: 120px; padding: 10px;
  text-align: center; color: var(--text-3); cursor: pointer; transition: 0.15s;
  font-size: 12px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.upload-btn:hover { border-color: var(--primary); color: var(--primary); background: #eff6ff; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photo-item { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.photo-item img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photo-item .del {
  position: absolute; top: 4px; right: 4px; background: rgba(15, 23, 42, 0.55); color: #fff;
  border: none; width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.photo-item .del:hover { background: var(--danger); }
.link-plate { color: var(--primary); cursor: pointer; }
.link-plate:hover { text-decoration: underline; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-item { display: flex; flex-direction: column; gap: 5px; }
.form-item label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.form-item label .req { color: var(--danger); }
.form-item input, .form-item select, .form-item textarea {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.form-item textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 70px; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-item input[disabled] { background: var(--bg); color: var(--text-2); cursor: not-allowed; }

/* 提示条 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1f2937;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* 登录欢迎提示（居中底部大号） */
.welcome-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  color: var(--text);
  padding: 20px 32px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  border: 1px solid var(--border);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s;
  text-align: center;
  max-width: 90%;
}
.welcome-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.welcome-toast .w-title { font-size: 20px; font-weight: 600; }
.welcome-toast .w-sub { font-size: 14px; color: var(--text-2); margin-top: 6px; }

/* 工作台快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.quick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  text-align: center;
}
.quick-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.quick-card .q-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-card .q-icon svg { width: 21px; height: 21px; }
.quick-card .q-name { font-size: 14px; font-weight: 600; }
.quick-card .q-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============ 工作台 v2.2：欢迎条 / 双栏 / 提醒 / 迷你统计 ============ */
.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  margin-bottom: 16px;
}
.dash-hero .dh-title { font-size: 19px; font-weight: 700; }
.dash-hero .dh-sub { font-size: 13px; opacity: 0.92; margin-top: 4px; }
.dash-hero .dh-right { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.dash-hero .dh-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
}
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .dash-cols { grid-template-columns: 1fr; } }

/* 提醒事项 */
.alert-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.alert-item:last-child { border-bottom: none; }
.alert-item .a-main { flex: 1; min-width: 0; }
.alert-item .a-text { font-size: 13px; font-weight: 500; }
.alert-item .a-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 迷你统计（考勤/车辆概览） */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-stat {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.mini-stat .ms-label { font-size: 12px; color: var(--text-3); }
.mini-stat .ms-value { font-size: 20px; font-weight: 700; margin-top: 3px; }
.mini-stat .ms-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* 审批详情行 */
.detail-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .d-label { width: 90px; color: var(--text-3); flex-shrink: 0; }
.detail-row .d-value { flex: 1; }

/* 审批步骤 */
.steps { display: flex; align-items: center; gap: 0; margin: 14px 0; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.step .step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: #fff;
  flex-shrink: 0;
}
.step.done .step-dot { border-color: var(--success); background: var(--success); color: #fff; }
.step.done { color: var(--success); }
.step.current .step-dot { border-color: var(--primary); background: var(--primary); color: #fff; }
.step.current { color: var(--primary); font-weight: 500; }
.step-line { width: 34px; height: 2px; background: var(--border); margin: 0 8px; }
.step-line.done { background: var(--success); }

/* 无权限提示 */
.perm-tip {
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* 响应式 */
@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .sidebar-logo span, .nav-item span, .nav-group-title, .sidebar-foot { display: none; }
  .sidebar-logo { justify-content: center; padding: 20px 0; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .main { margin-left: 60px; }
  .topbar-search input { width: 150px; }
  .form-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
}

/* 手机竖屏细调 */
@media (max-width: 480px) {
  .content { padding: 16px 12px; }
  .stat-card { padding: 14px 16px; }
  .stat-card .s-value { font-size: 22px; }
  .topbar { padding: 12px 16px; }
  .topbar-search { display: none; }
  .dash-hero { padding: 16px 18px; }
}

/* ===== 定时任务管理（话费管理→设置） ===== */
.pdd-task-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: opacity .25s, box-shadow .25s;
}
.pdd-task-card:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); }
.pdd-task-card.off { opacity: .55; }
.pdd-task-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pdd-task-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pdd-task-name { font-size: 15px; font-weight: 600; color: var(--text); }
.pdd-task-desc { font-size: 12px; color: var(--text-3); }
.pdd-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.pdd-switch input { opacity: 0; width: 0; height: 0; }
.pdd-slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 24px; transition: .25s; }
.pdd-slider:before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pdd-switch input:checked + .pdd-slider { background: var(--primary); }
.pdd-switch input:checked + .pdd-slider:before { transform: translateX(20px); }
.pdd-task-fields { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.pdd-task-field { display: flex; flex-direction: column; gap: 4px; }
.pdd-task-field label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.pdd-task-field input {
  width: 90px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; color: var(--text); background: var(--bg);
}
.pdd-task-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.pdd-task-actions { display: flex; gap: 10px; margin-top: 14px; }
.pdd-task-actions .btn { padding: 7px 16px; font-size: 13px; }
.pdd-task-log-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.pdd-task-log-title { font-size: 14px; font-weight: 600; color: var(--text); }
.pdd-task-log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pdd-task-log-table th, .pdd-task-log-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.pdd-task-log-table th { color: var(--text-3); font-weight: 500; background: var(--bg); white-space: nowrap; }
.pdd-task-log-table td.msg { color: var(--text-2); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdd-log-tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.pdd-log-tag.ok { background: #dcfce7; color: #16a34a; }
.pdd-log-tag.fail { background: #fee2e2; color: #dc2626; }
.pdd-log-tag.manual { background: #e0e7ff; color: #4f46e5; }
.pdd-log-tag.auto { background: #f1f5f9; color: #64748b; }

/* 预警「已处理」备注 */
.pdd-handle-note {
  margin-top: 4px; font-size: 12px; color: var(--text-2); line-height: 1.4;
  max-width: 180px; word-break: break-all;
}
.pdd-handle-info { margin-top: 10px; font-size: 12px; color: var(--text-3); }
