/* ============================================================
   志昆科技工作支撑管理系统 · 蓝白科技风
   ============================================================ */
:root {
  --zk-blue: #2563eb;
  --zk-blue-deep: #1d4ed8;
  --zk-blue-light: #3b82f6;
  --zk-sky: #0ea5e9;
  --zk-ink: #16325c;
  --zk-text: #475569;
  --zk-line: #e3ecfa;
  --zk-bg: #f2f6fd;
  /* 全系统分数值统一色：与排名表数值一致的深色粗体，不使用蓝色 */
  --zk-score-value: #1e3a6e;
  --zk-score-minus: #d64545;

  --el-color-primary: #2563eb;
  --el-color-primary-light-3: #5b8cf7;
  --el-color-primary-light-5: #8db3fa;
  --el-color-primary-light-7: #bcd3fc;
  --el-color-primary-light-8: #d2e1fd;
  --el-color-primary-light-9: #e8f0fe;
  --el-color-primary-dark-2: #1d4ed8;
  --el-border-radius-base: 8px;
  --el-border-radius-small: 6px;
  --el-border-radius-round: 18px;
  --el-text-color-primary: #16325c;
  --el-text-color-regular: #475569;
  --el-text-color-secondary: #94a3b8;
  --el-border-color: #dbe6f7;
  --el-border-color-light: #e8effa;
  --el-border-color-lighter: #f0f5fc;
  --el-bg-color: #ffffff;
  --el-bg-color-page: #f2f6fd;
  --el-fill-color-blank: #ffffff;
  --el-fill-color-light: #f4f8ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; }
body {
  font-family: "Inter", -apple-system, "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--zk-text);
  background: var(--zk-bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #eaf1fc; border-radius: 6px; }
::-webkit-scrollbar-thumb { background: #c5d8f5; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #a8c6f0; }

/* ---------- 登录 ---------- */
.login-wrap {
  height: 100%; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(59,130,246,.35), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(14,165,233,.28), transparent 40%),
    linear-gradient(135deg, #0a1a3c 0%, #12357a 52%, #0d2452 100%);
}
.login-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 78%);
}
.login-wrap::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(147,197,253,.14); right: -150px; top: -180px;
  box-shadow: 0 0 0 70px rgba(147,197,253,.035), 0 0 0 150px rgba(147,197,253,.025);
}
.login-box {
  width: 410px; position: relative; z-index: 1;
  background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.85);
  border-radius: 16px; padding: 38px 40px 30px;
  box-shadow: 0 24px 70px rgba(3,16,46,.38);
}
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.login-logo {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: #fff; object-fit: cover; padding: 1px;
  box-shadow: 0 8px 20px rgba(37,99,235,.2);
}
.login-brand h1 { font-size: 21px; color: var(--zk-ink); letter-spacing: .5px; }
.login-brand p { font-size: 12px; color: #8ea0ba; margin-top: 5px; }
.login-form .el-form-item { margin-bottom: 20px; }
.login-form .el-input__wrapper { background: #f7faff; min-height: 44px; }
.login-btn { width: 100%; height: 44px; font-size: 15px; letter-spacing: 4px; }
.login-copyright { text-align: center; font-size: 12px; color: #9aabc2; margin-top: 20px; line-height: 1.7; }

/* ---------- 模块图标（本地 SVG 遮罩，无外网依赖） ---------- */
.mi {
  display: inline-block; width: 16px; height: 16px; flex: none;
  margin-right: 8px; vertical-align: -3px; background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-image: var(--mi); mask-image: var(--mi);
}
.mi-dashboard { --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.mi-report { --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8M8 17h6'/%3E%3C/svg%3E"); }
.mi-scoring { --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E"); }
.mi-summary { --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Crect x='7' y='12' width='3' height='6'/%3E%3Crect x='12' y='8' width='3' height='10'/%3E%3Crect x='17' y='14' width='3' height='4'/%3E%3C/svg%3E"); }
.mi-rank { --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0V4z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3'/%3E%3Cpath d='M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E"); }
.mi-projects { --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z'/%3E%3C/svg%3E"); }
.mi-people { --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.mi-rules { --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M16 11l2 2 4-4'/%3E%3C/svg%3E"); }
.mi-settings { --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2.8 2.8-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6v.2h-4v-.2a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1-2.8-2.8.1-.1a1.7 1.7 0 0 0 .3-1.9 1.7 1.7 0 0 0-1.6-1H3v-4h.2a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9L4.2 7 7 4.2l.1.1a1.7 1.7 0 0 0 1.9.3 1.7 1.7 0 0 0 1-1.6V3h4v.2a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1L19.8 7l-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 1.6 1h.2v4h-.2a1.7 1.7 0 0 0-1.6 1z'/%3E%3C/svg%3E"); }

/* ---------- 布局 ---------- */
.layout { height: 100%; }
.aside {
  background: linear-gradient(180deg, #0b1c40 0%, #12316b 58%, #0c2249 100%);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.aside > * { position: relative; z-index: 1; }
.brand {
  height: 64px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 18px;
  border-bottom: 1px solid rgba(147,197,253,.14);
  background: linear-gradient(90deg, rgba(37,99,235,.18), transparent);
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: #fff; object-fit: cover; padding: 1px;
  box-shadow: 0 4px 12px rgba(3,16,46,.28);
}
.brand-text { display: flex; flex-direction: column; color: #fff; }
.brand-text b { font-size: 15px; letter-spacing: .5px; }
.brand-text span { font-size: 11px; color: #8fb0e0; margin-top: 2px; }
.menu { border-right: none !important; margin-top: 10px; flex: 1; background: transparent !important; }
.menu .el-menu-item, .menu .el-sub-menu__title {
  color: #b9cbea !important; height: 44px; line-height: 44px; margin: 3px 8px;
  border-radius: 8px; font-size: 14px;
  transition: background .18s ease, color .18s ease;
}
.menu .el-menu-item:hover, .menu .el-sub-menu__title:hover {
  background: rgba(96,165,250,.16) !important; color: #fff !important;
}
.menu .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(59,130,246,.42), rgba(59,130,246,.08)) !important;
  color: #fff !important; font-weight: 600;
  box-shadow: inset 3px 0 0 #60a5fa;
}
.menu .el-sub-menu .el-menu-item { margin-left: 16px; margin-right: 8px; min-width: auto; }
.menu .el-menu-item-group__title { color: #7c9ccb; }
.aside-foot {
  padding: 14px 20px; font-size: 11px; color: #7898c8;
  border-top: 1px solid rgba(147,197,253,.1); flex: none;
}
.header {
  height: 60px !important; background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); display: flex; align-items: center;
  justify-content: space-between; padding: 0 22px;
  box-shadow: 0 1px 0 rgba(22,50,92,.07), 0 6px 18px rgba(22,50,92,.04);
  z-index: 5;
}
.header-title {
  font-size: 17px; font-weight: 700; color: var(--zk-ink);
  position: relative; padding-left: 14px; letter-spacing: .3px;
}
.header-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, #60a5fa, var(--zk-blue-deep));
}
.header-right { display: flex; align-items: center; gap: 12px; }
.header-right .el-tag { border-radius: 6px; }
.user-name { font-size: 14px; color: var(--zk-ink); font-weight: 600; }
.main {
  padding: 18px; overflow-y: auto;
  background: var(--zk-bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.07), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(14,165,233,.06), transparent 30%);
}

/* ---------- 卡片 ---------- */
.box {
  border-radius: 12px; border: 1px solid var(--zk-line); overflow: hidden;
  box-shadow: 0 3px 16px rgba(22,50,92,.06);
}
.el-card__header {
  padding: 14px 18px; border-bottom: 1px solid var(--zk-line) !important;
  background: linear-gradient(90deg, #f3f8ff 0%, #ffffff 72%);
  color: var(--zk-ink); font-weight: 600;
}
.box > .el-card__header { position: relative; }
.box > .el-card__header::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #60a5fa, var(--zk-blue-deep));
}
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.box-head > div:not(.el-select):not(.el-input) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 表格 ---------- */
.el-table {
  --el-table-border-color: #e6eefb;
  --el-table-header-bg-color: #eef5ff;
  --el-table-header-text-color: #1e40af;
  --el-table-row-hover-bg-color: #e9f2ff;
  --el-table-text-color: #334561;
  font-size: 13px;
}
.box .el-table--border { border-radius: 10px; overflow: hidden; }
.box .el-table .el-table__header-wrapper table,
.box .el-table .el-table__body-wrapper table { width: 100% !important; }
.el-table th.el-table__cell {
  background: linear-gradient(180deg, #f2f7ff 0%, #e6efff 100%) !important;
  color: #1e40af !important; font-weight: 600 !important; height: 42px;
}
.el-table td.el-table__cell { padding: 8px 0; }
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell { background: #f9fbff; }
.el-table__body tr:hover > td.el-table__cell { background: #e9f2ff !important; }
.el-table__body tr.current-row > td.el-table__cell { background: #e3edff !important; }
.el-table .cell { padding-left: 10px; padding-right: 10px; }
.el-table .el-table__cell:first-child .cell { font-weight: 600; color: #7591bb; }
.el-table__fixed, .el-table__fixed-right { box-shadow: 4px 0 12px rgba(22,50,92,.06); }
.el-table__empty-text { color: #94a3b8; }

/* ---------- 按钮 ---------- */
.el-button {
  min-height: 34px; padding: 8px 16px; border-radius: 8px; font-weight: 500;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.el-button--small { min-height: 30px; padding: 6px 12px; font-size: 13px; }
.el-button--large { min-height: 44px; padding: 10px 20px; }
.el-button.is-link { min-height: 28px; padding: 5px 7px; }
.el-button--primary {
  background: linear-gradient(135deg, var(--zk-blue-light), var(--zk-blue-deep));
  border-color: transparent; box-shadow: 0 3px 10px rgba(37,99,235,.22);
}
.el-button--primary:hover {
  background: linear-gradient(135deg, #4b8dfa, #2563eb);
  box-shadow: 0 6px 16px rgba(37,99,235,.3); transform: translateY(-1px);
}
.el-button--success {
  background: linear-gradient(135deg, #34d399, #059669);
  border-color: transparent; box-shadow: 0 3px 10px rgba(5,150,105,.2);
}
.el-button--success:hover { background: linear-gradient(135deg, #4ade9f, #0d9c6c); transform: translateY(-1px); }
.el-button--danger {
  background: linear-gradient(135deg, #f87171, #dc2626);
  border-color: transparent; box-shadow: 0 3px 10px rgba(220,38,38,.18);
}
.el-button--danger:hover { background: linear-gradient(135deg, #fb8080, #e02e2e); transform: translateY(-1px); }
.el-button--warning {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: transparent; box-shadow: 0 3px 10px rgba(217,119,6,.18);
}
.el-button--warning:hover { transform: translateY(-1px); }
.el-button.is-plain { background: #f4f8ff; border-color: #c9dcfb; color: var(--zk-blue-deep); }
.el-button.is-plain:hover { background: #e8f1ff; border-color: #9dc0f8; color: var(--zk-blue-deep); }
/* 描边按钮按类型保留语义色（否则会被上面的通用浅蓝覆盖） */
.el-button--danger.is-plain { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.el-button--danger.is-plain:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.el-button--warning.is-plain { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.el-button--warning.is-plain:hover { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.el-button--success.is-plain { background: #ecfdf5; border-color: #a7f3d0; color: #059669; }
.el-button--success.is-plain:hover { background: #d1fae5; border-color: #6ee7b7; color: #047857; }
.el-button--info.is-plain { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
.el-button--info.is-plain:hover { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }
.el-button.is-link { font-weight: 600; padding: 5px 6px; }
.el-button.is-link:hover { background: rgba(37,99,235,.07); border-radius: 5px; }
.el-button.is-disabled { transform: none !important; box-shadow: none !important; }

/* 语义配色：增=蓝(primary) · 改=青 · 删=红(danger) · 查=浅蓝描边 · 状态=橙(warning) · 完成=绿(success) */
/* 改：编辑 / 保存 / 重置 / 重算 —— 青色 */
.btn-edit { background: linear-gradient(135deg, #22d3ee, #0891b2) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 3px 10px rgba(8,145,178,.22) !important; }
.btn-edit:hover { background: linear-gradient(135deg, #3fdaee, #0e9fbd) !important; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(8,145,178,.3) !important; }
.btn-edit.is-plain { background: #ecfeff !important; border-color: #a5f3fc !important; color: #0e7490 !important; box-shadow: none !important; }
.btn-edit.is-link { background: transparent !important; border-color: transparent !important; color: #0891b2 !important; box-shadow: none !important; }
.btn-edit.is-link:hover { background: rgba(8,145,178,.09) !important; color: #0e7490 !important; }
/* 查：搜索 / 查看 / 导出 / 全选 —— 浅蓝描边 */
.btn-query { background: #f0f7ff !important; border-color: #bfdbfe !important; color: #1d4ed8 !important; box-shadow: none !important; }
.btn-query:hover { background: #e0eeff !important; border-color: #93c5fd !important; color: #1e40af !important; transform: translateY(-1px); }
.btn-query.is-link { background: transparent !important; border-color: transparent !important; color: #2563eb !important; }
.btn-query.is-link:hover { background: rgba(37,99,235,.08) !important; }
/* 状态：停用 / 封账 / 清空 —— 橙色 */
.btn-warn { background: linear-gradient(135deg, #fbbf24, #d97706) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 3px 10px rgba(217,119,6,.2) !important; }
.btn-warn:hover { background: linear-gradient(135deg, #fcd34d, #e08608) !important; transform: translateY(-1px); }
.btn-warn.is-plain { background: #fffbeb !important; border-color: #fde68a !important; color: #b45309 !important; box-shadow: none !important; }
.btn-warn.is-link { background: transparent !important; border-color: transparent !important; color: #b45309 !important; box-shadow: none !important; }
.btn-warn.is-link:hover { background: rgba(217,119,6,.09) !important; }
/* 删：删除 / 批量删除 —— 红色 */
.btn-del { background: linear-gradient(135deg, #f87171, #dc2626) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 3px 10px rgba(220,38,38,.22) !important; }
.btn-del:hover { background: linear-gradient(135deg, #fb7185, #b91c1c) !important; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(185,28,28,.3) !important; }
.btn-del.is-plain { background: #fef2f2 !important; border-color: #fecaca !important; color: #b91c1c !important; box-shadow: none !important; }
.btn-del.is-link { background: transparent !important; border-color: transparent !important; color: #dc2626 !important; box-shadow: none !important; }
.btn-del.is-link:hover { background: rgba(220,38,38,.09) !important; color: #b91c1c !important; }

/* ---------- 表单控件 ---------- */
.el-input__wrapper, .el-select__wrapper, .el-textarea__inner {
  border-radius: 8px !important; box-shadow: 0 0 0 1px var(--el-border-color) inset;
  transition: box-shadow .18s ease, background .18s ease;
}
.el-input__wrapper:hover, .el-select__wrapper:hover { box-shadow: 0 0 0 1px #a9c8f8 inset; }
.el-input__wrapper.is-focus, .el-select__wrapper.is-focused, .el-textarea__inner:focus {
  box-shadow: 0 0 0 1px var(--zk-blue) inset, 0 0 0 3px rgba(37,99,235,.12) !important;
}
.el-input__inner::placeholder, .el-textarea__inner::placeholder { color: #a9b7cc; }
.el-form-item__label { color: #51637f; font-weight: 500; }
.item-table .el-input__wrapper { box-shadow: none; background: transparent; }
.item-table .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px var(--zk-blue) inset !important; background: #fff; }
/* 周报填报行：项目下拉框与工作内容输入框加高，工作内容支持多行 */
.item-table .el-select__wrapper { min-height: 38px; }
.item-table .task-input.el-textarea .el-textarea__inner {
  min-height: 64px; padding: 8px 10px; line-height: 1.55; background: #fff;
  box-shadow: 0 0 0 1px var(--el-border-color) inset;
}
.item-table .task-input.el-textarea .el-textarea__inner:hover { box-shadow: 0 0 0 1px #a9c8f8 inset; }
.item-table .task-input.el-textarea .el-textarea__inner:focus { background: #fff; }
.item-table .el-table__cell { padding: 8px 0; }
.temp-task-input .el-textarea__inner { min-height: 64px; padding: 8px 10px; line-height: 1.55; }

/* ---------- 标签 / 提示 ---------- */
.el-tag { border-radius: 6px; font-weight: 500; }
.el-tag--warning { background: #fff7e8; border-color: #fde3ae; color: #b45309; }
.el-tag--success { background: #eafaf3; border-color: #b8ecd4; color: #047857; }
.el-tag--danger { background: #fef0f0; border-color: #f8c8c8; color: #c53030; }
.el-tag--info { background: #f1f5f9; border-color: #dbe4f0; color: #64748b; }

/* ---------- 填报 / 评分 ---------- */
.section-title {
  font-size: 13px; font-weight: 700; color: var(--zk-ink); margin-bottom: 10px;
  padding-left: 9px; border-left: 3px solid var(--zk-blue);
}
.report-meta {
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  padding: 11px 16px; margin-bottom: 16px; border-radius: 10px;
  background: linear-gradient(90deg, #eef5ff, #f8fbff);
  border: 1px solid #ddeafd; font-size: 13px; color: #5b6f8d;
}
.report-meta b { color: var(--zk-ink); }
.score-pill, .grade-pill {
  font-size: 12px; padding: 4px 10px; border-radius: 12px; font-weight: 700;
}
.score-pill {
  color: var(--zk-score-value); background: #eef2f8;
  border: 1px solid #dbe4f0; box-shadow: none;
}
.grade-pill { color: #fff; background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 3px 8px rgba(5,150,105,.18); }
.score-row {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 14px; padding: 13px 18px;
  background: linear-gradient(90deg, #f2f7ff, #fafcff);
  border: 1px solid #e0ebfd; border-radius: 10px; font-size: 13px; color: #5b6f8d;
}
.score-row b { color: var(--zk-ink); }
.score-row .total, .score-row .total b { color: var(--zk-score-value); font-size: 15px; font-weight: 700; }
.collapse-title { display: flex; align-items: center; gap: 12px; width: 100%; }
.cell-content { max-height: 64px; overflow: auto; white-space: pre-wrap; font-size: 12px; color: #5b6f8d; line-height: 1.6; }
.score-text { color: var(--zk-score-value); font-size: 15px; font-weight: 700; }
.score-text-minus { color: var(--zk-score-minus); }
/* 质量追溯面板：其它模块评分参考 */
.other-score-val { color: var(--zk-score-value); font-weight: 700; font-size: 12px; white-space: nowrap; }
.other-score-none { color: #aab6c8; font-size: 12px; }
/* 扣分管理 */
.deduct-filter-label { color: #6b7e99; font-size: 12px; margin-right: 6px; }
.deduct-worktype { max-height: 64px; overflow: auto; color: var(--zk-blue-deep); font-size: 12px; line-height: 1.6; white-space: nowrap; }
.deduct-content { max-height: 64px; overflow: auto; white-space: pre-wrap; font-size: 12px; color: #5b6f8d; line-height: 1.6; }
.deduct-points { color: #d03050; font-weight: 700; }
.deduct-reason { color: #6b7e99; font-size: 12px; }
.process-dlg-body { display: flex; align-items: center; gap: 12px; padding: 8px 4px; font-size: 13px; color: #5b6f8d; }
.deduct-month-link { color: var(--zk-blue-deep); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.deduct-month-link:hover { text-decoration: underline; }
.rule-hint {
  margin-top: 12px; padding: 9px 12px; border-radius: 7px;
  font-size: 12px; color: #7c8ca6; background: #f6f9fe; border: 1px dashed #dce7f8;
}
.muted-text { margin-left: 10px; font-size: 12px; color: #8a9bb4; }
/* 周报自动保存状态 */
.autosave-tip { margin-left: 10px; font-size: 12px; color: #8a9bb4; }
.autosave-tip::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; background: #22c55e; vertical-align: middle;
}
.autosave-tip.saving { color: #2563eb; }
.autosave-tip.saving::before { background: #2563eb; }
.autosave-tip.error { color: #dc2626; }
.autosave-tip.error::before { background: #dc2626; }
/* 项目风险提示 */
.risk-text { color: #c2410c; }
/* 已关闭项目：整行文字淡化，便于与进行中项目区分 */
.el-table__body tr.project-closed-row td .cell { color: #9aa8bd; }
.el-table__body tr.project-closed-row td .el-tag { opacity: .85; }
.risk-dot {
  display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; background: #f59e0b; vertical-align: middle;
}
.risk-none { color: #b6c2d4; }
/* 项目风险多选：标签换行展示，避免长文本撑破弹窗 */
.risk-select .el-select__wrapper { align-items: flex-start; }
.risk-select .el-select__selection { flex-wrap: wrap; row-gap: 4px; }
.risk-pick-tip { margin-top: 6px; font-size: 12px; line-height: 1.6; color: #8a9bb4; }
/* 工作台：项目风险提示卡片 */
.risk-card-count { font-size: 12px; color: #8a9bb4; }
/* 卡片标题右侧：进度条颜色图例 + 统计 */
.risk-head-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gantt-color-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #6b7c96; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.legend-dot:first-child { margin-left: 0; }
.legend-dot.normal { background: #16a34a; }
.legend-dot.overdue { background: #dc2626; }
.risk-project { color: #1e3a6e; }
.participant-list { display: flex; flex-wrap: wrap; gap: 6px; }
.participant-tag { margin: 0; }
.risk-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.risk-item-tag {
  height: auto; padding: 3px 8px; line-height: 1.5;
  white-space: normal; word-break: break-word;
}
/* 工作台风险卡片：项目进度甘特图 */
.gantt-legend { margin-left: 8px; font-weight: 400; font-size: 11px; color: #8a9bb4; }
.gantt-legend svg { vertical-align: -2px; margin-right: 3px; }
.gantt { display: flex; flex-direction: column; gap: 5px; padding-right: 2px; }
.gantt-axis {
  position: relative; height: 14px; margin: 8px 7px 0;
  background: #eef3fb; border-radius: 7px;
}
.gantt-bar {
  position: absolute; top: 0; height: 14px; border-radius: 7px;
  background: #dbe7f8; overflow: hidden;
}
.gantt-bar.pending { background: #e6edf8; }
.gantt-bar.ended { background: #fde8e8; }
.gantt-fill {
  height: 100%; border-radius: 7px 0 0 7px;
  /* 绿色 = 正常（在计划周期内推进） */
  background: linear-gradient(90deg, #4ade80, #16a34a);
  transition: width .3s ease;
}
/* 红色 = 项目超期（已过计划结束时间） */
.gantt-bar.ended .gantt-fill { background: linear-gradient(90deg, #f87171, #dc2626); }
.gantt-bar.pending .gantt-fill { background: transparent; }
.gantt-flag {
  position: absolute; top: -7px; z-index: 2;
  transform: translateX(-50%); pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(220, 38, 38, .3));
}
.gantt-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; font-size: 11px; line-height: 1.4; color: #8a9bb4;
}
.gantt-dates { letter-spacing: .2px; }
.gantt-pct { white-space: nowrap; font-weight: 600; }
.gantt-pct.pending { color: #64748b; font-weight: 400; }
.gantt-pct.ongoing { color: #059669; }
.gantt-pct.ended { color: #dc2626; }
.menu-group { margin-bottom: 16px; }
.menu-group-title {
  font-size: 13px; font-weight: 700; color: var(--zk-blue-deep);
  padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid #edf2fa;
}
.security-form { max-width: 560px; padding-top: 8px; }
.trace-cell { display: flex; align-items: center; gap: 6px; }

/* ---------- 评分中心：同页多表卡片 ---------- */
.score-panels { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.score-panel .nowrap-cell .cell { white-space: nowrap !important; }
.score-panel {
  background: #fff; border: 1px solid var(--zk-line); border-radius: 10px;
  padding: 14px; box-shadow: 0 4px 16px rgba(22,50,92,.05);
}
.score-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 2px 10px; border-bottom: 1px solid #edf2fa; margin-bottom: 10px;
}
.score-panel-title { color: var(--zk-blue-deep); font-weight: 700; font-size: 14px; }
.score-panel-tip { color: #8a9bb4; font-size: 12px; }
.score-panel-tip .lock-dot {
  display: inline-block; width: 7px; height: 9px; margin-right: 5px;
  border-radius: 2px 2px 1px 1px; background: #94a3b8; vertical-align: middle;
  position: relative; top: -1px;
}
.score-panel-tip .lock-dot::before {
  content: ""; position: absolute; left: 1px; top: -5px; width: 5px; height: 5px;
  border: 1.5px solid #94a3b8; border-bottom: none; border-radius: 4px 4px 0 0;
}
.trace-locked { display: inline-flex; align-items: center; font-size: 12px; color: #8a9bb4; }
.trace-locked .lock-dot { margin-right: 4px; }
.trace-after-seal { margin-left: 6px; font-size: 11px; color: #b45309; white-space: nowrap; }
.score-empty {
  padding: 40px; text-align: center; color: #93a4bd; font-size: 13px;
  background: #fafcff; border: 1px dashed var(--zk-line); border-radius: 10px;
}

/* ---------- 批量配置 ---------- */
.batch-hint {
  font-size: 12px; color: #51679b; background: #eef5ff; border: 1px solid #dce9fd;
  padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; line-height: 1.7;
}
.batch-tools { margin-top: 4px; display: flex; gap: 10px; }
.batch-preview {
  margin-top: 6px; padding: 12px 14px; border-radius: 8px;
  background: linear-gradient(90deg, #e8f1ff, #f4f9ff); border: 1px solid #d6e7ff;
  font-size: 13px; color: var(--zk-blue-deep);
}
.batch-preview b { font-size: 17px; }

/* ---------- 我的排名 ---------- */
.rank-mine {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 14px 18px; margin-bottom: 14px; border-radius: 12px;
  background: linear-gradient(90deg, #eef4ff, #f7fbff);
  border: 1px solid #dbe7f8;
}
.rank-mine-main { display: flex; align-items: baseline; gap: 10px; }
.rank-mine-num { font-size: 22px; font-weight: 700; color: #1d4ed8; }
.rank-mine-total { font-size: 12px; color: #7b8ba6; }
.rank-mine-meta { display: flex; align-items: center; gap: 18px; font-size: 13px; color: #475569; }
.rank-mine-meta b { font-size: 16px; color: var(--zk-score-value); }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 5px; border-radius: 7px;
  font-size: 12px; font-weight: 700; color: #475569; background: #eef2f8;
}
/* 前三名：金 / 银 / 铜奖牌（绶带 + 圆形金属牌 + 名次文字） */
.rank-medal {
  position: relative; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  width: 34px; height: 45px; padding-top: 9px;
}
.medal-ribbon {
  position: absolute; top: 0; width: 8px; height: 13px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #5b7fd6, #274aa0);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.medal-ribbon-l { left: 6px; transform: rotate(-16deg); }
.medal-ribbon-r { right: 6px; transform: rotate(16deg); }
.medal-coin {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid;
  font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 1px 3px rgba(15, 42, 96, .18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.medal-name {
  flex-shrink: 0; margin-top: 3px; font-size: 9px; font-style: normal;
  font-weight: 700; line-height: 11px; letter-spacing: .5px;
}
.medal-1 .medal-coin {
  background: linear-gradient(145deg, #fff6c2, #f5c518 48%, #c08a0a);
  border-color: #d9a518; color: #6b4700;
}
.medal-1 .medal-name { color: #b8860b; }
.medal-2 .medal-coin {
  background: linear-gradient(145deg, #ffffff, #d9dfe8 48%, #8e9aab);
  border-color: #aab4c2; color: #3b4658;
}
.medal-2 .medal-name { color: #7b8798; }
.medal-3 .medal-coin {
  background: linear-gradient(145deg, #ffe0c0, #dd9250 48%, #9c5522);
  border-color: #c07c42; color: #5a2c0e;
}
.medal-3 .medal-name { color: #a85f2c; }
.el-table__body tr.rank-me-row td { background: #eff6ff; }
.el-table__body tr.rank-me-row td .cell { font-weight: 600; }
.rank-me-score { color: var(--zk-score-value); }
/* 排名表整行可点击查看工作详情 */
.rank-table .el-table__body tr { cursor: pointer; }
.rank-table .el-table__body tr td { height: 52px; padding: 3px 0; }
.rank-table .el-table__body tr:hover > td { background: #f2f7ff; }
.rank-table .el-table__body tr.rank-me-row:hover > td { background: #e6f0ff; }
.rank-name { color: #1d4ed8; }
/* 工作详情弹窗 */
.detail-body {
  max-height: 62vh; overflow-y: auto;
  /* 滚动条外推到弹窗右侧内边距区（贴弹窗右缘），负 margin 与右内边距等宽，
     内容可用宽度与位置保持不变；滚动条与内容之间留 20px 安全间距，
     避免浮层式滚动条压住第 4 张汇总卡与「本周得分」右端 */
  margin-right: -20px; padding-right: 20px;
}
/* 详情弹窗专用细滚动条：轨道透明、滑块淡色，靠右显示且不干扰内容 */
.detail-body::-webkit-scrollbar { width: 6px; }
.detail-body::-webkit-scrollbar-track { background: transparent; }
.detail-body::-webkit-scrollbar-thumb { background: #cbd9ef; border-radius: 3px; }
.detail-body::-webkit-scrollbar-thumb:hover { background: #aec5e8; }
.detail-empty { padding: 24px 0; text-align: center; font-size: 13px; color: #8a9bb4; }
.detail-summary {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
.detail-sum-item {
  flex: 1 1 150px; min-width: 140px; padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(180deg, #f5f9ff, #eef4ff); border: 1px solid #dbe7f8;
  display: flex; flex-direction: column; gap: 2px;
}
.detail-sum-item > span { font-size: 12px; color: #64748b; }
.detail-sum-item > b { font-size: 20px; line-height: 1.2; color: var(--zk-score-value); }
.detail-sum-item > i { font-size: 11px; font-style: normal; color: #94a3b8; }
.detail-week { margin-bottom: 16px; }
.detail-week:last-child { margin-bottom: 0; }
.detail-week-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.detail-week-title { font-weight: 700; color: #1e3a6e; }
.detail-week-range { font-size: 12px; color: #94a3b8; }
.detail-week-empty {
  padding: 12px 14px; border: 1px dashed #dde5f0; border-radius: 8px;
  font-size: 12px; color: #9aa8bd; background: #fbfcfe;
}
.detail-week-score { margin-left: auto; font-size: 12px; color: #64748b; }
.detail-week-score b { font-size: 14px; color: var(--zk-score-value); }
/* 工作详情：每周详细打分结果 */
.detail-score { margin-top: 10px; }
.detail-score-title {
  font-size: 12px; font-weight: 700; color: #1e3a6e;
  margin-bottom: 6px; padding-left: 8px; border-left: 3px solid #5b7fd6;
}
.detail-score-num { color: var(--zk-score-value); }
.detail-score-foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 8px; padding: 8px 12px; border-radius: 8px;
  background: #f5f9ff; border: 1px solid #dbe7f8;
  font-size: 12px; color: #64748b;
}
.detail-score-foot b { font-size: 14px; color: var(--zk-score-value); }
.detail-score-minus b { color: var(--zk-score-minus); }
.detail-score-total { margin-left: auto; }
.detail-score-total b { font-size: 16px; color: var(--zk-score-value); }
/* 排名页：是否存在质量追溯扣分 */
.rank-trace-none { font-size: 12px; color: #a3aec0; }
.rank-mine-meta b.rank-trace-minus { color: #d64545; }
/* 工作详情：质量追溯扣分提示与明细 */
.detail-trace-sum {
  display: flex; align-items: center; gap: 7px; margin-bottom: 14px;
  padding: 9px 12px; border-radius: 8px; font-size: 12px;
  color: #a3341f; background: #fff3f0; border: 1px solid #f6d3c9;
}
.trace-flag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e0523d; display: inline-block; flex: none;
}
.detail-trace {
  margin-top: 8px; padding: 8px 12px; border-radius: 8px;
  background: #fff8f6; border: 1px solid #f3ded7;
}
.detail-trace-title { font-size: 12px; font-weight: 700; color: #b0442c; margin-bottom: 3px; }
.detail-trace-item {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px; color: #7a5b52; line-height: 1.75;
}
.detail-trace-item b { color: #d64545; font-size: 13px; flex: none; }
.detail-trace-item i { margin-left: auto; font-style: normal; font-size: 11px; color: #b9a49e; flex: none; }

/* ---------- 分数值字重：仅月得分加粗，其余分值常规 ---------- */
.score-pill,
.score-row b,
.score-row .total,
.score-row .total b,
.score-text,
.other-score-val,
.rank-mine-meta b,
.rank-table .el-table__body tr.rank-me-row td .cell,
.box .el-table__body td b,
.detail-sum-item > b,
.detail-week-score b,
.detail-score-num,
.detail-score-foot b,
.detail-score-total b,
.deduct-points,
.detail-trace-item b {
  font-weight: 400;
}
.month-score-value,
.rank-mine-meta .month-score-value,
.box .el-table__body td b.month-score-value,
.detail-sum-item > .month-score-value {
  font-weight: 700;
}

/* ---------- 弹窗 ---------- */
.el-dialog { border-radius: 14px; overflow: hidden; box-shadow: 0 22px 60px rgba(15,42,96,.22); }
.el-dialog__header {
  padding: 16px 20px; margin-right: 0;
  background: linear-gradient(90deg, #eff6ff, #ffffff);
  border-bottom: 1px solid var(--zk-line);
}
.el-dialog__title { color: var(--zk-ink); font-weight: 700; }
.el-dialog__headerbtn { top: 16px; }
.el-dialog__body { padding: 20px; }
.el-dialog__footer { padding: 12px 20px; border-top: 1px solid var(--zk-line); background: #fafcff; }
.el-dialog__footer .el-button { min-width: 80px; }

/* ---------- 分页 / 消息 ---------- */
.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li { border-radius: 7px; }
.el-message { border-radius: 10px; box-shadow: 0 8px 24px rgba(22,50,92,.14); }
