:root {
  --bg: #f2f5fa;
  --panel: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #e8f0fe;
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --sidebar: #0b1526;
  --sidebar-2: #101f36;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: 14px; }

a { color: var(--brand); text-decoration: none; }

.hidden { display: none !important; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(37, 99, 235, .22), transparent 60%),
    radial-gradient(900px 500px at 90% 90%, rgba(13, 148, 136, .18), transparent 60%),
    linear-gradient(160deg, #0b1526, #12233d 55%, #0b1526);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, .98);
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: 0 24px 60px rgba(2, 8, 20, .45);
}

.login-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}

.login-logo .mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; font-weight: 700; font-size: 16px;
}

.login-logo h1 { font-size: 19px; margin: 0; letter-spacing: .5px; }

.login-sub { color: var(--muted); font-size: 13px; margin: 4px 0 22px; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px; flex: 0 0 220px;
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  color: #cbd5e1;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  z-index: 30;
}

.sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px; color: #fff;
}

.sidebar .brand .mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9); font-weight: 700; font-size: 14px;
}

.sidebar .brand .t { font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.sidebar .brand .s { font-size: 11px; color: #7f93ad; }

.nav { padding: 8px 10px; flex: 1; overflow: auto; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 2px 0;
  border-radius: 9px; color: #b6c4d6; cursor: pointer;
  font-size: 13.5px; user-select: none;
  position: relative;
}

.nav-item:hover { background: rgba(148, 163, 184, .12); color: #fff; }

.nav-item.active { background: rgba(37, 99, 235, .22); color: #fff; }

.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 3px; background: #60a5fa;
}

.nav-item.disabled { opacity: .45; cursor: not-allowed; }

.nav-item .ico { width: 16px; text-align: center; opacity: .9; }
.nav-note { margin-left: auto; font-size: 10px; color: #7f93ad; border: 1px solid rgba(148,163,184,.35); padding: 1px 5px; border-radius: 20px; }

.sidebar-foot { padding: 14px 18px; font-size: 11px; color: #64748b; border-top: 1px solid rgba(148, 163, 184, .12); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 60px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; position: sticky; top: 0; z-index: 20;
}

.topbar .page-title { font-size: 16px; font-weight: 600; }

.topbar .spacer { flex: 1; }

.user-chip { display: flex; align-items: center; gap: 10px; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #14b8a6); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}

.user-chip .u-name { font-weight: 600; font-size: 13px; }
.user-chip .u-role { font-size: 11px; color: var(--muted); }

.menu-toggle { display: none; }

/* 内容区铺满整个可用宽度（2026-11-17 老板要求：全站平铺整板块，不再居中留白，参考联海/树臻的做法） */
.view { padding: 18px 20px 28px; width: 100%; }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}

.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
  transition: .15s; white-space: nowrap;
}

.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn-link { border: none; background: none; color: var(--brand); cursor: pointer; padding: 0 4px; font-size: 13px; }
.btn-link.danger { color: var(--danger); }

.input, .select, .textarea {
  width: 100%; padding: 8px 11px; border: 1px solid #dbe3ee; border-radius: 8px;
  background: #fff; color: var(--ink); outline: none; transition: .15s;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: #93b4f7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.input:disabled, .select:disabled { background: #f1f5f9; color: var(--muted); }

.textarea { min-height: 72px; resize: vertical; }

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.field > label .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.field .err { font-size: 11.5px; color: var(--danger); margin-top: 4px; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: #fca5a5; background: #fff7f7; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
}

.filters .f { min-width: 130px; }
.filters .f label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.filters .f .input, .filters .f .select { min-width: 130px; }

.table-wrap { width: 100%; overflow: auto; }

table.table { width: 100%; border-collapse: collapse; font-size: 13px; }

.table th {
  text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12.5px;
  background: #f8fafc; padding: 10px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}

.table td { padding: 10px 12px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.table tbody tr:hover { background: #f9fbff; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .ops { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px; font-size: 11.5px; line-height: 18px;
  background: #eef2f7; color: var(--ink-2); white-space: nowrap;
}

.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--brand-soft); color: var(--brand-dark); }

.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 30px; margin-bottom: 8px; opacity: .5; }

.pager { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.pager .info { color: var(--muted); font-size: 12.5px; }
.pager .spacer { flex: 1; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding: 0 18px; flex-wrap: wrap; }
.tab {
  padding: 11px 12px; font-size: 13.5px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(8, 15, 28, .5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 24px; z-index: 100; overflow: auto;
}

.modal {
  position: relative; width: 100%; max-width: 560px; background: #fff; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(2, 8, 20, .4);
  animation: pop .16s ease-out;
}
/* 拉过大小的弹窗：高度由用户定，正文自己滚 */
.modal.sized { display: flex; flex-direction: column; }
.modal.sized .modal-body { max-height: none; flex: 1; min-height: 0; }
/* 右下角抓手：拖动改大小（双击复位） */
.modal-resize {
  position: absolute; right: 1px; bottom: 1px; width: 22px; height: 22px;
  cursor: nwse-resize; border-bottom-right-radius: 13px; opacity: .9;
  background-image: repeating-linear-gradient(135deg, #94a3b8 0 2px, transparent 2px 6px);
}
.modal-resize:hover { opacity: 1; background-image: repeating-linear-gradient(135deg, var(--brand) 0 2px, transparent 2px 5px); }

@keyframes pop { from { transform: translateY(8px); opacity: .6; } to { transform: none; opacity: 1; } }

.modal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  cursor: move; user-select: none; /* 标题栏可拖动弹窗（位置记忆见 app.js openModal） */
}
.modal-head .close { cursor: pointer; }
.modal.no-anim { animation: none; /* 带记忆位置的弹窗跳过入场动画 */ }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-head .close { margin-left: auto; border: none; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }

.modal-body { padding: 18px; max-height: 66vh; overflow: auto; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- 提示 ---------- */
#toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }

.toast {
  background: #101b2d; color: #fff; padding: 9px 16px; border-radius: 9px;
  font-size: 13px; box-shadow: 0 10px 30px rgba(2, 8, 20, .3);
  animation: toastIn .18s ease-out; max-width: 80vw;
}
.toast.ok { background: #14532d; }
.toast.err { background: #7f1d1d; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 员工详情 ---------- */
.detail-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px; border-bottom: 1px solid var(--line);
}
.detail-head .avatar-lg {
  width: 52px; height: 52px; border-radius: 14px; font-size: 19px;
  background: linear-gradient(135deg, #2563eb, #14b8a6); color: #fff;
  display: grid; place-items: center; font-weight: 600;
}
.detail-head .who { display: flex; flex-direction: column; gap: 4px; }
.detail-head .who .n { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.detail-head .who .m { color: var(--muted); font-size: 12.5px; }
.detail-head .right { margin-left: auto; display: flex; gap: 8px; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.info-item { background: #fff; padding: 11px 14px; }
.info-item .k { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.info-item .v { font-size: 13.5px; color: var(--ink); word-break: break-all; display: flex; align-items: center; gap: 6px; }

.section-title { font-size: 14px; font-weight: 600; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title .line { flex: 1; height: 1px; background: var(--line); }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 16px 8px; }
.tl-item::before { content: ''; position: absolute; left: -16px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #93b4f7; border: 2px solid #fff; box-shadow: 0 0 0 1px #93b4f7; }
.tl-item .tl-t { font-size: 13.5px; font-weight: 600; }
.tl-item .tl-m { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tl-item .tl-c { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.tl-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tl-imgs img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }

/* 上传 */
.uploader { display: block; }
/* 上传区（学树臻站）：整块虚线可点 / 可拖入 / 可粘贴；粘贴提示带闪烁光标 */
.up-box {
  padding: 14px 16px; border: 2px dashed #c7d2fe; border-radius: 12px;
  background: #fbfdff; cursor: pointer; transition: background .15s, border-color .15s;
}
.up-box:hover, .up-box.dragging { background: #eef4ff; border-color: var(--brand); }
.up-box.dragging { border-style: solid; }
.up-tip {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--brand-dark); background: var(--brand-soft, #eef4ff);
  border-radius: 8px; padding: 8px 10px; line-height: 1.5;
}
.up-tip b { color: var(--brand-dark); }
.up-caret { width: 2px; height: 15px; background: var(--brand); flex: none; animation: caret-blink 1s step-end infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.up-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.up-sub { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.up-scan { margin-top: 10px; border: 1px solid #dbe4f0; border-radius: 10px; padding: 12px; background: #fff; cursor: default; }
.up-scan.hidden { display: none; }
.up-scan-live { display: flex; gap: 14px; align-items: flex-start; }
.up-scan-qr svg { width: 120px; height: 120px; display: block; }
.up-scan-side p { margin: 0 0 4px; font-size: 12.5px; color: #334155; line-height: 1.55; }
.up-scan-state { color: var(--brand-dark); font-weight: 600; }
.up-scan-wait { font-size: 13px; color: var(--muted); padding: 4px 0; }
.up-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.up-grid:empty { margin-top: 0; }
.up-item { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f8fafc; }
.up-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.up-item .file-ico { display: grid; place-items: center; height: 100%; font-size: 11px; color: var(--muted); text-align: center; padding: 6px; }
.up-item .del { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(15,23,42,.65); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; }
.up-item .del:hover { background: var(--danger); }
.up-pending {
  display: grid; place-items: center; border-style: dashed; border-color: #c7d2fe;
  color: var(--brand); font-size: 11.5px; background: #f8fbff;
}
.up-tip { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* 权限矩阵 */
.perm-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.perm-group { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.perm-group h4 { margin: 0 0 10px; font-size: 13px; }
.perm-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.perm-row input { accent-color: var(--brand); }

.role-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; margin-bottom: 6px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; color: var(--ink-2);
}
.role-item:hover { border-color: #bfdbfe; background: #f8fbff; }
.role-item.active { border-color: #93b4f7; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.role-item .count { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 400; }
/* 角色卡片：可拖动排序 + 悬停删除 */
.role-item .drag-dot { color: #c3ccd9; font-size: 11px; letter-spacing: -1px; cursor: grab; user-select: none; }
.role-item .role-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-item.dragging { opacity: .45; }
.role-item.drop-before { box-shadow: 0 -2px 0 var(--brand); }
.role-item.drop-after { box-shadow: 0 2px 0 var(--brand); }
.role-item .role-del {
  margin-left: 2px; width: 18px; height: 18px; border-radius: 50%; border: none;
  background: transparent; color: #b6c2d4; cursor: pointer; font-size: 15px; line-height: 1;
  display: none; align-items: center; justify-content: center; padding: 0;
}
.role-item:hover .role-del { display: inline-flex; }
.role-item .role-del:hover { background: var(--danger); color: #fff; }

.login-form .field { margin-bottom: 16px; }

.page-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.page-actions .spacer { flex: 1; }

.notice {
  border: 1px solid #fde68a; background: #fffbeb; color: #92400e;
  padding: 10px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.6;
}

.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.right { margin-left: auto; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.flex { display: flex; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .items-center { align-items: center; }

/* 导入预览 */
.import-errors { max-height: 240px; overflow: auto; border: 1px solid #fecaca; background: #fff7f7; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #991b1b; }
.import-errors div { padding: 2px 0; }

/* 移动端 */
@media (max-width: 920px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: .2s; }
  .sidebar.open { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.3); }
  .menu-toggle { display: inline-flex; }
  .view { padding: 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 14px; }
  .user-chip .u-role { display: none; }
  .modal { max-width: none; }
  .modal-resize { display: none; } /* 手机上弹窗本来就占满，不用拉 */
}

/* 招聘漏斗 */
.funnel-row { display: flex; gap: 10px; flex-wrap: wrap; }
.funnel-chip {
  flex: 1; min-width: 92px; text-align: center; padding: 12px 8px;
  border: 1px solid var(--line); border-radius: 10px; background: #f8fafc;
  cursor: pointer; user-select: none; transition: .15s;
}
.funnel-chip:hover { border-color: #bfdbfe; background: #f0f6ff; }
.funnel-chip.active { border-color: var(--brand); background: var(--brand-soft); }
.funnel-chip .fc-count { font-size: 20px; font-weight: 700; color: var(--ink); }
.funnel-chip .fc-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 工资条免登录页 */
.slip-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; background: linear-gradient(160deg, #0b1526, #12233d 55%, #0b1526); padding: 6vh 16px 40px; }
.slip-card { width: 100%; max-width: 560px; border-radius: 16px; }
@media print {
  body { background: #fff; }
  .slip-wrap { background: #fff; padding: 0; }
  .slip-card { box-shadow: none; border: none; }
  .btn { display: none !important; }
}

/* 日志差异表 */
.table td .badge { margin: 1px 2px 1px 0; }

/* 工作台待办与关键数字 */
.todo-item { padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; margin-bottom: 8px; font-size: 13.5px; cursor: pointer; }
.todo-item:hover { border-color: #bfdbfe; background: #f0f6ff; }
.todo-item.warn { border-color: #fcd34d; background: #fffbeb; }
.todo-item strong { font-size: 15px; color: var(--brand-dark); }
.num-grid { display: flex; gap: 14px; flex-wrap: wrap; }
.num-item { flex: 1; min-width: 180px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.num-item .k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.num-item .v { font-size: 21px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.num-item .v.neg { color: #dc2626; }

/* 利润看板对比条 */
.profit-bars { display: flex; flex-direction: column; gap: 10px; }
.pb-row { display: flex; align-items: center; gap: 12px; }
.pb-row:hover .pb-name { color: var(--brand-dark); }
.pb-name { width: 120px; flex-shrink: 0; font-size: 13px; font-weight: 600; text-align: right; color: var(--ink-2); }
.pb-track { flex: 1; height: 18px; background: #f1f5f9; border-radius: 9px; overflow: hidden; }
.pb-bar { height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa); border-radius: 9px; min-width: 6px; }
.pb-bar.neg { background: linear-gradient(90deg, #ef4444, #f87171); }
.pb-val { width: 110px; flex-shrink: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.pb-val.neg, .neg { color: #dc2626; }
