737 lines
41 KiB
CSS
737 lines
41 KiB
CSS
/* =============================================================
|
||
设计语言
|
||
· 不允许「彩色描边」:卡片/列表/步骤条一律中性灰边框或无边框
|
||
· 重点色只出现在三处:图标、关键数字/文本、小面积 tinted 底板
|
||
· 图标统一用 web/icons.js 的线性 SVG(stroke=currentColor)
|
||
============================================================= */
|
||
:root {
|
||
--bg: #f4f6f9;
|
||
--panel: #ffffff;
|
||
--panel-2: #fafbfc;
|
||
--border: #e9ecf1;
|
||
--border-strong: #d4d9e0;
|
||
--text: #1f2430;
|
||
--text-2: #4a5261;
|
||
--muted: #7a8394;
|
||
--primary: #2563eb;
|
||
--primary-soft: #eef4ff;
|
||
--green: #16a34a;
|
||
--amber: #d97706;
|
||
--red: #dc2626;
|
||
--violet: #7c3aed;
|
||
--shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.05);
|
||
--radius: 12px;
|
||
--radius-sm: 8px;
|
||
--sidebar-w: 232px;
|
||
}
|
||
|
||
* { box-sizing: border-box; }
|
||
|
||
html, body {
|
||
margin: 0; padding: 0; height: 100%;
|
||
background: var(--bg);
|
||
color: var(--text);
|
||
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
|
||
"Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||
font-size: 14px;
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
|
||
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
|
||
|
||
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
|
||
outline: 2px solid var(--primary); outline-offset: 1px;
|
||
}
|
||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||
::-webkit-scrollbar-track { background: transparent; }
|
||
::-webkit-scrollbar-thumb { background: #d7dbe2; border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
|
||
::-webkit-scrollbar-thumb:hover { background: #c2c8d2; background-clip: content-box; }
|
||
|
||
.app { display: flex; min-height: 100vh; }
|
||
|
||
/* ---------------- 图标基元 ---------------- */
|
||
.ic { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
|
||
.ic-sm { width: 13px; height: 13px; }
|
||
.ic-lg { width: 22px; height: 22px; }
|
||
/* 标题前的小图标 */
|
||
.ti { width: 15px; height: 15px; flex: none; color: var(--muted); vertical-align: -2px; }
|
||
/* 重点色底板:--c 由外层注入(状态色 / 阶段色 / 重点色) */
|
||
.ic-badge {
|
||
display: inline-grid; place-items: center; flex: none;
|
||
width: 32px; height: 32px; border-radius: 9px;
|
||
background: var(--panel-2);
|
||
background: color-mix(in srgb, var(--c, var(--primary)) 10%, #fff);
|
||
color: var(--c, var(--primary));
|
||
}
|
||
.ic-badge > .ic { width: 18px; height: 18px; }
|
||
.ic-badge.sm { width: 26px; height: 26px; border-radius: 8px; }
|
||
.ic-badge.sm > .ic { width: 15px; height: 15px; }
|
||
|
||
/* ---------------- sidebar ---------------- */
|
||
.sidebar {
|
||
width: var(--sidebar-w);
|
||
flex: 0 0 var(--sidebar-w);
|
||
background: var(--panel);
|
||
border-right: 1px solid var(--border);
|
||
display: flex; flex-direction: column;
|
||
position: sticky; top: 0; height: 100vh;
|
||
padding: 18px 14px;
|
||
transition: width .16s ease, flex-basis .16s ease;
|
||
}
|
||
.brand { position: relative; display: flex; gap: 10px; align-items: center; margin-bottom: 22px; padding: 0 4px; }
|
||
.brand-mark {
|
||
width: 34px; height: 34px; border-radius: 10px; flex: none;
|
||
background: var(--primary); color: #fff;
|
||
display: grid; place-items: center;
|
||
}
|
||
.brand-mark .ic { width: 19px; height: 19px; }
|
||
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
|
||
.brand-text strong { font-size: 14px; }
|
||
.brand-text span { font-size: 11px; color: var(--muted); }
|
||
|
||
.nav { display: flex; flex-direction: column; gap: 2px; }
|
||
.nav-item {
|
||
display: flex; align-items: center; gap: 10px;
|
||
padding: 9px 10px; border: 0; border-radius: var(--radius-sm);
|
||
background: transparent; cursor: pointer; text-align: left;
|
||
color: var(--text-2); transition: .15s;
|
||
}
|
||
.nav-item:hover { background: var(--panel-2); color: var(--text); }
|
||
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
|
||
.ni { display: inline-flex; width: 16px; height: 16px; flex: none; color: var(--muted); }
|
||
.ni .ic { width: 16px; height: 16px; }
|
||
.nav-item.active .ni { color: var(--primary); }
|
||
|
||
.side-block { margin-top: 22px; }
|
||
.side-title { font-size: 11px; color: var(--muted); letter-spacing: .6px; margin-bottom: 8px; padding: 0 4px; }
|
||
.side-list { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow: auto; }
|
||
.side-item {
|
||
display: flex; align-items: center; gap: 8px;
|
||
padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; border: 0; background: transparent;
|
||
color: var(--text-2); width: 100%; text-align: left;
|
||
}
|
||
.side-item:hover { background: var(--panel-2); }
|
||
.side-item.active { background: var(--primary-soft); font-weight: 600; color: var(--text); }
|
||
.dot { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 8px; }
|
||
.side-item .cnt { margin-left: auto; font-size: 11px; color: var(--muted); }
|
||
|
||
.switch { display: flex; align-items: center; gap: 8px; padding: 0 4px; cursor: pointer; color: var(--text-2); }
|
||
|
||
/* 用户信息胶囊:钉在侧栏最下方,点开是向上弹出的二级菜单 */
|
||
.side-user { position: relative; margin-top: auto; }
|
||
.user-chip {
|
||
display: flex; align-items: center; gap: 9px; width: 100%;
|
||
padding: 7px 8px; border-radius: 10px; cursor: pointer;
|
||
border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
|
||
}
|
||
.user-chip:hover { border-color: var(--border-strong); background: #fff; }
|
||
.avatar {
|
||
width: 28px; height: 28px; border-radius: 9px; flex: none;
|
||
display: grid; place-items: center; font-size: 12px; font-weight: 600;
|
||
background: var(--primary); color: #fff;
|
||
}
|
||
.user-chip .u-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; }
|
||
.user-chip .u-text b { font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.user-chip .u-text i { font-style: normal; font-size: 11px; color: var(--muted); }
|
||
.user-chip .ic { width: 15px; height: 15px; color: var(--muted); flex: none; }
|
||
.user-menu {
|
||
position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 30;
|
||
background: #fff; border: 1px solid var(--border); border-radius: 10px;
|
||
box-shadow: 0 10px 28px rgba(16,24,40,.14); padding: 5px; display: flex; flex-direction: column; gap: 2px;
|
||
}
|
||
.user-menu button {
|
||
display: flex; align-items: center; gap: 8px; padding: 8px 9px;
|
||
border: 0; background: transparent; border-radius: 7px; cursor: pointer;
|
||
font-size: 12.5px; color: var(--text-2); text-align: left;
|
||
}
|
||
.user-menu button:hover { background: var(--panel-2); color: var(--text); }
|
||
.user-menu button.danger { color: var(--red); }
|
||
.user-menu button.danger:hover { background: #fdf0f0; }
|
||
.user-menu .ic { width: 15px; height: 15px; }
|
||
|
||
/* ---------------- 侧栏收拢 ----------------
|
||
展开态:收拢按钮贴在 logo 右侧;
|
||
收拢态:菜单只留图标(hover 出气泡提示),收拢按钮藏进 logo,hover logo 才变成展开按钮。 */
|
||
.nav-fold {
|
||
margin-left: auto; width: 26px; height: 26px; flex: none; padding: 0;
|
||
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
||
background: var(--panel-2); color: var(--muted);
|
||
display: grid; place-items: center; cursor: pointer; transition: .15s;
|
||
}
|
||
.nav-fold:hover { color: var(--primary); border-color: var(--border-strong); background: #fff; }
|
||
.nav-fold .ic { width: 15px; height: 15px; }
|
||
.nav-fold .ic-unfold { display: none; }
|
||
|
||
/* 气泡提示:只给收拢后的菜单图标(收拢/展开按钮上不出提示) */
|
||
.app.nav-folded .nav-item[data-tip]:hover::after {
|
||
content: attr(data-tip); position: absolute; left: calc(100% + 8px); top: 50%;
|
||
transform: translateY(-50%); white-space: nowrap; z-index: 30; pointer-events: none;
|
||
background: #1f2430; color: #fff; font-size: 12px; font-weight: 400;
|
||
padding: 5px 9px; border-radius: 7px; box-shadow: 0 4px 14px rgba(16,24,40,.18);
|
||
}
|
||
/* 侧栏是 sticky,自成层叠上下文:不提层级的话气泡会被内容区里靠后定位的元素(如每周工作的吸顶卡片)盖住 */
|
||
.app.nav-folded .sidebar { z-index: 25; }
|
||
|
||
.app.nav-folded { --sidebar-w: 64px; }
|
||
.app.nav-folded .brand { justify-content: center; }
|
||
.app.nav-folded .brand-text, .app.nav-folded .nav-item .nl,
|
||
.app.nav-folded .user-chip .u-text, .app.nav-folded .user-chip .ic { display: none; }
|
||
.app.nav-folded .nav-item { justify-content: center; gap: 0; padding: 9px 0; position: relative; }
|
||
.app.nav-folded .nav-label { font-size: 0; height: 1px; background: var(--border); margin: 10px 6px 4px; padding: 0; }
|
||
.app.nav-folded .user-chip { justify-content: center; padding: 3px; }
|
||
.app.nav-folded .user-menu { left: 0; right: auto; min-width: 168px; }
|
||
.app.nav-folded .nav-fold {
|
||
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
|
||
width: 34px; height: 34px; border-radius: 10px; border-color: transparent;
|
||
background: var(--primary-soft); color: var(--primary); opacity: 0; pointer-events: none;
|
||
}
|
||
.app.nav-folded .brand:hover .brand-mark { opacity: 0; }
|
||
.app.nav-folded .brand:hover .nav-fold { opacity: 1; pointer-events: auto; }
|
||
.app.nav-folded .nav-fold .ic-fold { display: none; }
|
||
.app.nav-folded .nav-fold .ic-unfold { display: inline-flex; }
|
||
|
||
/* ---------------- 登录(左右分栏) ---------------- */
|
||
.auth-mask { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 28px;
|
||
background: var(--bg) radial-gradient(900px 520px at 12% -10%, #e2ecfd, transparent 70%); }
|
||
.auth-shell { width: min(880px, 100%); display: grid; grid-template-columns: 1.05fr .95fr;
|
||
background: var(--panel); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
|
||
box-shadow: 0 30px 70px rgba(16,24,40,.14), 0 2px 6px rgba(16,24,40,.05); }
|
||
|
||
/* 左:品牌区 */
|
||
.auth-brand { position: relative; overflow: hidden; padding: 34px 34px 30px;
|
||
display: flex; flex-direction: column; gap: 28px; color: #e8f0ff;
|
||
background: linear-gradient(155deg, #16255c 0%, #1f3f9e 52%, #3b5fd0 100%); }
|
||
.auth-brand::before, .auth-brand::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
|
||
.auth-brand::before { width: 360px; height: 360px; right: -170px; top: -130px;
|
||
background: radial-gradient(closest-side, rgba(255,255,255,.17), transparent); }
|
||
.auth-brand::after { width: 260px; height: 260px; left: -130px; bottom: -140px;
|
||
background: radial-gradient(closest-side, rgba(125,180,255,.28), transparent); }
|
||
.auth-brand .brand-mark { background: rgba(255,255,255,.16); color: #fff; }
|
||
.ab-top { position: relative; display: flex; align-items: center; gap: 11px; }
|
||
.ab-top .brand-text strong { color: #fff; }
|
||
.ab-top .brand-text span { color: rgba(232,240,255,.7); }
|
||
.ab-mid { position: relative; margin: auto 0; }
|
||
.ab-mid h2 { margin: 0 0 20px; font-size: 23px; line-height: 1.42; font-weight: 600; letter-spacing: .2px; }
|
||
.ab-mid ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
|
||
.ab-mid li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(232,240,255,.85); }
|
||
.ab-mid li .ic { width: 15px; height: 15px; flex: none; opacity: .85; }
|
||
.ab-foot { position: relative; font-size: 11.5px; color: rgba(232,240,255,.6); }
|
||
|
||
/* 右:表单 */
|
||
.auth-form { padding: 40px 40px 32px; display: flex; flex-direction: column; }
|
||
.auth-form h3 { margin: 0; font-size: 21px; letter-spacing: .2px; }
|
||
.af-sub { margin: 6px 0 26px; font-size: 12.5px; color: var(--muted); }
|
||
.af-field { display: block; margin-bottom: 15px; }
|
||
.af-field > span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--text-2); }
|
||
.af-field .inp { width: 100%; height: 40px; }
|
||
.af-field .inp::placeholder { color: #aab1bf; }
|
||
.auth-form .notice.err { margin-bottom: 14px; }
|
||
.btn.block { width: 100%; height: 42px; margin-top: 8px; justify-content: center; gap: 7px; }
|
||
.btn.block .ic { width: 16px; height: 16px; }
|
||
.af-foot { margin-top: auto; padding-top: 24px; font-size: 11.5px; color: var(--muted); }
|
||
|
||
@media (max-width: 780px) {
|
||
.auth-mask { padding: 16px; }
|
||
.auth-shell { grid-template-columns: 1fr; }
|
||
.auth-brand { padding: 18px 20px; gap: 0; }
|
||
.auth-brand .ab-mid, .auth-brand .ab-foot { display: none; }
|
||
.auth-form { padding: 26px 22px 22px; }
|
||
.af-foot { padding-top: 18px; }
|
||
}
|
||
|
||
/* ---------------- 权限管理 ---------------- */
|
||
.rbac-menu-th { font-size: 11px !important; white-space: nowrap; }
|
||
.rbac-role { min-width: 168px; }
|
||
.rbac-role b { display: block; font-size: 13px; }
|
||
.rbac-role span { font-size: 11px; color: var(--muted); }
|
||
.tag-mini.builtin { background: #eef2ff; color: #4f46e5; }
|
||
|
||
/* ---------------- main ---------------- */
|
||
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
||
|
||
.topbar {
|
||
position: sticky; top: 0; z-index: 20;
|
||
display: flex; align-items: center; justify-content: space-between; gap: 16px;
|
||
padding: 12px 22px;
|
||
background: rgba(255,255,255,.9);
|
||
backdrop-filter: blur(8px);
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.period-bar { display: flex; align-items: center; gap: 8px; }
|
||
.seg { display: flex; background: #eef0f4; border-radius: 9px; padding: 3px; }
|
||
.seg-btn {
|
||
border: 0; background: transparent; padding: 5px 14px; border-radius: 7px;
|
||
cursor: pointer; color: var(--text-2); font-size: 13px;
|
||
}
|
||
.seg-btn.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
|
||
/* 单选卡片:二选一、选中后下方直接出对应按钮(更新录入的写入方式) */
|
||
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
|
||
.radio {
|
||
flex: 1 1 300px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
|
||
padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
|
||
background: var(--panel); font-size: 13px; cursor: pointer;
|
||
}
|
||
.radio input { accent-color: var(--primary); margin: 0; flex: none; }
|
||
.radio b { font-weight: 600; }
|
||
.radio .radio-tip { font-size: 12px; color: var(--muted); }
|
||
.radio:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, #fff); }
|
||
.nav-arrow {
|
||
display: inline-grid; place-items: center;
|
||
width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--border);
|
||
background: #fff; cursor: pointer; color: var(--text-2); padding: 0;
|
||
}
|
||
.nav-arrow .ic { width: 15px; height: 15px; }
|
||
.nav-arrow:hover { border-color: var(--border-strong); color: var(--text); }
|
||
.period-select {
|
||
height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm);
|
||
padding: 0 10px; background: #fff; min-width: 170px; cursor: pointer;
|
||
}
|
||
.period-hint { color: var(--muted); font-size: 12px; margin-left: 4px; }
|
||
.topbar-right { display: flex; gap: 10px; align-items: center; }
|
||
.search {
|
||
height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm);
|
||
padding: 0 12px; width: 220px; background: #fff;
|
||
}
|
||
.search:focus, .period-select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
|
||
|
||
.btn {
|
||
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
||
height: 32px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
|
||
background: #fff; cursor: pointer; color: var(--text-2); white-space: nowrap;
|
||
}
|
||
.btn .ic { width: 14px; height: 14px; }
|
||
.btn:hover { border-color: var(--border-strong); color: var(--text); }
|
||
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
|
||
.btn.primary:hover { background: #1d4ed8; }
|
||
.btn.ghost { background: transparent; }
|
||
.btn.sm { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
|
||
.btn.sm .ic { width: 12px; height: 12px; }
|
||
.btn.danger { color: var(--red); }
|
||
.btn.danger:hover { border-color: #f3c6c6; background: #fdf0f0; }
|
||
/* 危险确认弹窗的主按钮:实心红,别和「取消」长得太像 */
|
||
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
|
||
.btn.danger.solid:hover { background: #b42318; border-color: #b42318; }
|
||
.btn:disabled { opacity: .5; cursor: not-allowed; }
|
||
.icon-btn {
|
||
display: inline-grid; place-items: center; border: 0; background: transparent;
|
||
cursor: pointer; color: var(--muted); padding: 5px; border-radius: 7px;
|
||
}
|
||
.icon-btn .ic { width: 16px; height: 16px; }
|
||
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
|
||
.icon-btn.sm { width: 26px; height: 26px; padding: 0; border-radius: 7px; }
|
||
.icon-btn.sm .ic { width: 15px; height: 15px; }
|
||
.icon-btn.xs { width: 22px; height: 22px; padding: 0; border-radius: 6px; }
|
||
.icon-btn.xs .ic { width: 13px; height: 13px; }
|
||
.icon-btn.danger:hover { background: #fdf0f0; color: var(--red); }
|
||
/* 表格行内操作:平时压灰,指针落到这一行才提亮 */
|
||
.row-ops { display: inline-flex; align-items: center; gap: 2px; opacity: .45; }
|
||
tr:hover .row-ops, .row-ops:focus-within { opacity: 1; }
|
||
|
||
.views { padding: 20px 22px 60px; }
|
||
.hidden { display: none !important; }
|
||
|
||
/* ---------------- cards ---------------- */
|
||
.card {
|
||
background: var(--panel); border: 1px solid var(--border);
|
||
border-radius: var(--radius); box-shadow: var(--shadow);
|
||
}
|
||
.card-head {
|
||
padding: 13px 16px; border-bottom: 1px solid var(--border);
|
||
display: flex; align-items: center; justify-content: space-between; gap: 10px;
|
||
flex-wrap: wrap;
|
||
}
|
||
.card-head h4 { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
|
||
.card-head h4 .t, .card-head .period-hint, .card-head .switch { white-space: nowrap; }
|
||
/* 统一计数 chip:卡头、分组标题共用一颗灰底小圆牌 */
|
||
.card-head h4 .cnt { font-size: 11px; font-weight: 600; color: var(--text-2); background: #f1f3f7; border-radius: 999px; padding: 1px 7px; }
|
||
.card-body { padding: 16px; }
|
||
|
||
.grid { display: grid; gap: 16px; }
|
||
.grid.kpi {
|
||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||
background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0;
|
||
}
|
||
.grid.g2 { grid-template-columns: 1.35fr 1fr; }
|
||
.grid.g2e { grid-template-columns: 1fr 1fr; }
|
||
@media (max-width: 1180px) { .grid.g2, .grid.g2e { grid-template-columns: 1fr; } }
|
||
|
||
/* KPI:图标底板在左,数字用重点色 */
|
||
.kpi {
|
||
display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
|
||
background: var(--panel); border: 1px solid var(--border);
|
||
border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
|
||
}
|
||
.kpi > .ic-badge { grid-row: 1 / span 3; }
|
||
.kpi > .k-label, .kpi > .k-value, .kpi > .k-foot { grid-column: 2; min-width: 0; }
|
||
.kpi .k-label { font-size: 12px; color: var(--muted); }
|
||
.kpi .k-value { font-size: 25px; font-weight: 700; margin-top: 4px; letter-spacing: -.5px; color: var(--c, var(--text)); }
|
||
.kpi .k-foot { font-size: 11px; color: var(--muted); margin-top: 5px; }
|
||
.kpi.accent-blue { --c: var(--primary); }
|
||
.kpi.accent-violet { --c: var(--violet); }
|
||
.kpi.accent-green { --c: var(--green); }
|
||
.kpi.accent-amber { --c: var(--amber); }
|
||
.kpi.accent-red { --c: var(--red); }
|
||
|
||
/* ---------------- board ---------------- */
|
||
.board-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
|
||
.chip {
|
||
display: inline-flex; align-items: center; gap: 6px;
|
||
padding: 4px 11px; border-radius: 999px; font-size: 12px;
|
||
background: var(--panel); border: 1px solid var(--border); color: var(--text-2); cursor: pointer;
|
||
}
|
||
.chip .ic { width: 13px; height: 13px; }
|
||
.chip.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
|
||
.chip.active .ic { color: var(--primary); }
|
||
|
||
/* 定制项目页签:卡片外的文件夹式页签,选中项压住卡片顶边,和下方内容区连成一块 */
|
||
.ctabs { display: flex; align-items: flex-end; gap: 2px; padding: 0 14px; position: relative; z-index: 2; }
|
||
.ctab {
|
||
border: 1px solid transparent; border-bottom: 0; background: transparent;
|
||
color: var(--muted); font-size: 13px; padding: 8px 18px; cursor: pointer;
|
||
border-radius: 10px 10px 0 0;
|
||
}
|
||
.ctab:hover { color: var(--primary); background: rgba(37,99,235,.06); }
|
||
.ctab.active {
|
||
background: var(--panel); border-color: var(--border);
|
||
color: var(--primary); font-weight: 600; margin-bottom: -1px;
|
||
}
|
||
|
||
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
|
||
.pcard {
|
||
background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
|
||
padding: 14px 15px; cursor: pointer; box-shadow: var(--shadow);
|
||
transition: transform .12s, box-shadow .12s;
|
||
}
|
||
.pcard:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,24,40,.09); }
|
||
.pcard.idle { opacity: .62; }
|
||
.pcard-top { display: flex; align-items: flex-start; gap: 8px; }
|
||
.pcard-name { font-weight: 600; font-size: 14px; line-height: 1.35; flex: 1; }
|
||
.star { display: inline-flex; color: #d7dbe2; line-height: 1; user-select: none; cursor: pointer; flex: none; }
|
||
.star .ic { width: 14px; height: 14px; }
|
||
.star.on { color: #f0a500; }
|
||
.star.on .ic { fill: currentColor; }
|
||
.pcard-cat { font-size: 11px; color: var(--muted); margin-top: 3px; }
|
||
.pcard-summary {
|
||
margin-top: 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.6;
|
||
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
|
||
min-height: 20px;
|
||
}
|
||
.pcard-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
|
||
.pill {
|
||
display: inline-flex; align-items: center; gap: 4px;
|
||
font-size: 11px; padding: 2px 8px; border-radius: 999px; line-height: 1.6; font-weight: 500;
|
||
white-space: nowrap;
|
||
}
|
||
.pill .ic { width: 12px; height: 12px; }
|
||
.tag-mini {
|
||
display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
|
||
font-size: 11px; padding: 2px 7px; border-radius: 6px; background: #f1f3f7; color: var(--text-2);
|
||
}
|
||
.tag-mini .ic { width: 12px; height: 12px; }
|
||
|
||
.progress { height: 6px; background: #eef0f4; border-radius: 99px; overflow: hidden; margin-top: 10px; }
|
||
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .4s; }
|
||
.progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
|
||
|
||
/* ---------------- kanban (定制项目) ---------------- */
|
||
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
|
||
.kcol {
|
||
flex: 0 0 236px; background: var(--panel); border: 1px solid var(--border);
|
||
border-radius: var(--radius); box-shadow: var(--shadow);
|
||
display: flex; flex-direction: column; max-height: 640px;
|
||
}
|
||
.kcol-head { padding: 10px 12px; border-bottom: 1px solid var(--border); }
|
||
.kcol-title { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; }
|
||
.kcol-title .ic { color: var(--c, var(--muted)); }
|
||
.kcol-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
|
||
.kcol-body { padding: 10px; overflow: auto; display: flex; flex-direction: column; gap: 9px; flex: 1; }
|
||
.kcard { border: 1px solid var(--border); border-radius: 9px; padding: 10px 11px; background: #fff; cursor: pointer; transition: .12s; }
|
||
.kcard:hover { border-color: var(--border-strong); box-shadow: 0 4px 12px rgba(16,24,40,.08); }
|
||
.kcard-top { display: flex; gap: 6px; align-items: flex-start; }
|
||
.kcard-name { font-size: 12.5px; font-weight: 600; line-height: 1.45; flex: 1; }
|
||
.kcard-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; gap: 6px; font-size: 11.5px; color: var(--muted); }
|
||
.kcard-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--border); }
|
||
.kcard-remark { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
|
||
|
||
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; }
|
||
.empty .ic-lg { color: #c9d0da; }
|
||
|
||
/* ---------------- tables ---------------- */
|
||
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; } /* separate:让操作列的 sticky 生效(collapse 下部分内核不吸边) */
|
||
table.tbl th, table.tbl td {
|
||
padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle;
|
||
}
|
||
table.tbl th { font-size: 12px; color: var(--muted); font-weight: 500; background: var(--panel-2); position: sticky; top: 0; white-space: nowrap; }
|
||
table.tbl tbody tr:hover { background: #fafbfd; }
|
||
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
|
||
.tbl-wrap { max-height: 620px; overflow: auto; }
|
||
.nowrap { white-space: nowrap; }
|
||
/* ---------------- 列表分页(全站统一,默认 10 条/页) ---------------- */
|
||
.pager {
|
||
display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
|
||
padding: 10px 14px; border-top: 1px solid var(--border);
|
||
}
|
||
.pager .pg-info { font-size: 12px; color: var(--muted); }
|
||
.pager .pg-btns { display: flex; align-items: center; gap: 4px; }
|
||
.pg-btn {
|
||
min-width: 28px; height: 28px; padding: 0 7px;
|
||
border: 1px solid var(--border); border-radius: 8px; background: #fff;
|
||
color: var(--text-2); font-size: 12px; cursor: pointer;
|
||
}
|
||
.pg-btn:hover:not(:disabled):not(.active) { border-color: var(--border-strong); color: var(--text); }
|
||
.pg-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
|
||
.pg-btn:disabled { opacity: .45; cursor: not-allowed; }
|
||
.pg-gap { font-size: 12px; color: var(--muted); padding: 0 2px; }
|
||
.pager .pg-size { height: 28px; }
|
||
.inp, .sel {
|
||
height: 32px; border: 1px solid var(--border); border-radius: 8px; padding: 0 9px; background: #fff; max-width: 100%;
|
||
}
|
||
textarea.inp { height: auto; padding: 8px 10px; line-height: 1.6; }
|
||
.inp:focus, .sel:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
|
||
/* 表格里的数字输入(年度目标等):右对齐、等宽数字,别把行高撑开 */
|
||
.num-inp { width: 100px; height: 28px; text-align: right; font-variant-numeric: tabular-nums; }
|
||
|
||
/* ---------------- drawer ---------------- */
|
||
.drawer-mask { position: fixed; inset: 0; background: rgba(18,24,38,.32); opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
|
||
.drawer-mask.open { opacity: 1; pointer-events: auto; }
|
||
.drawer {
|
||
position: fixed; top: 0; right: 0; bottom: 0; width: 620px; max-width: 92vw;
|
||
background: var(--panel); z-index: 50; transform: translateX(100%);
|
||
transition: transform .25s cubic-bezier(.4,0,.2,1);
|
||
display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(16,24,40,.12);
|
||
}
|
||
.drawer.open { transform: translateX(0); }
|
||
.drawer-head { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
|
||
/* 标准对话框标题栏:标题在左,操作按钮成排在右,关闭图标在最右 */
|
||
.drawer-head-text { flex: 1; min-width: 0; }
|
||
.drawer-head h3 { margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
|
||
/* 多负责人 / 团队成员编辑器:人名下拉横向排开、自动换行,名单不分主次 */
|
||
.form-row.top { align-items: start; }
|
||
.people-rows { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
||
.people-row { display: inline-flex; align-items: center; gap: 2px; }
|
||
.people-del { width: 26px; padding: 0; justify-content: center; color: var(--muted); }
|
||
.people-del:hover { color: var(--red); }
|
||
/* 列表里的负责人列:负责人对等排成一排,不分主次 */
|
||
.people-cell { display: flex; flex-wrap: nowrap; gap: 4px; }
|
||
|
||
.btn-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
|
||
.drawer-sub { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.drawer-body { padding: 18px 20px 40px; overflow: auto; flex: 1; }
|
||
|
||
.sec { margin-bottom: 22px; }
|
||
.sec-title { font-size: 12px; color: var(--muted); letter-spacing: .5px; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
|
||
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
|
||
|
||
.form-row { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
|
||
.form-row > label { font-size: 12px; color: var(--muted); }
|
||
/* 网格子项默认 min-width:auto,交付环节这类步骤条会把抽屉整行撑出横向滚动;
|
||
归零后由步骤条自己的 overflow-x 接管,表单标签保持不动 */
|
||
.form-row > div { min-width: 0; }
|
||
.inline-fields { display: flex; gap: 8px; flex-wrap: wrap; }
|
||
|
||
/* 卡头(子 header)内的两块:筛选 chip 紧跟标题,操作按钮统一靠最右 */
|
||
.head-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
||
.head-tools {
|
||
display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
|
||
justify-content: flex-end; margin-left: auto;
|
||
}
|
||
.head-tools .btn.sm, .head-tools .inp, .head-tools .sel, .head-tools .search { height: 28px; }
|
||
.head-tools .inp, .head-tools .sel, .head-tools .search { font-size: 12.5px; }
|
||
.head-tools .switch { font-size: 12px; padding: 0; }
|
||
.sel.xs { height: 26px; padding: 0 6px; font-size: 12px; }
|
||
|
||
/* 详情(只读)/ 修改(编辑)分离:只读值、区块操作条 */
|
||
.form-row > .ro { font-size: 13px; color: var(--text); line-height: 1.7; }
|
||
.sec-actions {
|
||
display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
|
||
margin-top: 14px; padding: 9px 11px;
|
||
background: var(--panel-2); border-radius: 9px;
|
||
}
|
||
.sec-hint { font-size: 11.5px; color: var(--muted); margin-left: auto; }
|
||
.wk-i-name .star, .wk-head-title .star, .b-name .star, .drawer-head h3 .star { margin-right: 4px; vertical-align: -2px; }
|
||
.star.readonly { cursor: default; }
|
||
.star.readonly:not(.on) { opacity: .35; }
|
||
|
||
.upd-item { border-radius: 9px; padding: 11px 13px; margin-bottom: 10px; background: var(--panel-2); }
|
||
.upd-item .u-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
|
||
.upd-item .u-task { font-weight: 600; font-size: 13px; }
|
||
.upd-item .u-body { font-size: 12.5px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
|
||
.upd-item .u-risk { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 12px; color: #92610c; background: #fdf6e9; border-radius: 7px; padding: 6px 9px; }
|
||
.upd-item .u-risk .ic { margin-top: 2px; color: var(--amber); }
|
||
.upd-item .u-next { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--primary); background: var(--primary-soft); border-radius: 7px; padding: 6px 9px; }
|
||
.upd-item .u-next .ic { margin-top: 2px; }
|
||
/* 条目右上角的「修改 / 删除」:平时不占视觉,指针进条目才显现 */
|
||
.u-ops { display: inline-flex; gap: 2px; margin-left: auto; opacity: .45; transition: .12s; }
|
||
.upd-item:hover .u-ops, .u-ops:focus-within { opacity: 1; }
|
||
|
||
.feed-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
|
||
.feed-bar .seg-btn { padding: 4px 10px; font-size: 12px; }
|
||
.feed-chips { display: flex; gap: 6px; flex-wrap: wrap; }
|
||
.feed-bar .chip { padding: 3px 9px; }
|
||
.feed-pager { display: flex; gap: 4px; }
|
||
.feed-ops { display: flex; gap: 8px; margin-left: auto; }
|
||
.nav-arrow.sm { width: 24px; height: 24px; border-radius: 7px; }
|
||
.nav-arrow.sm .ic { width: 13px; height: 13px; }
|
||
.nav-arrow.sm:disabled { opacity: .45; cursor: not-allowed; }
|
||
.feed-hd { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); margin: 14px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--border); }
|
||
.feed-hd b { font-size: 13px; color: var(--text); }
|
||
.feed-hd .feed-cnt { margin-left: auto; font-size: 11.5px; color: var(--muted); }
|
||
.feed-sub { font-size: 12px; color: var(--muted); margin: 8px 0 6px; }
|
||
|
||
.timeline-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
|
||
.timeline-row .t-label { width: 110px; font-size: 12px; color: var(--text-2); flex: 0 0 110px; }
|
||
.timeline-row .t-bar { flex: 1; }
|
||
.timeline-row .t-val { width: 46px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
||
|
||
.bullet-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
|
||
.risk-item { color: var(--amber); }
|
||
|
||
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
|
||
.bar-row .b-name { width: 150px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.bar-row .b-track { flex: 1; height: 8px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
|
||
.bar-row .b-track > i { display: block; height: 100%; border-radius: 99px; }
|
||
.bar-row .b-val { width: 44px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
||
|
||
/* ---------------- intake ---------------- */
|
||
.step { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
|
||
.step-no { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 22px; }
|
||
.step-title { font-weight: 600; font-size: 13px; }
|
||
.big-textarea { width: 100%; min-height: 190px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
|
||
.preview-box { border: 1px solid var(--border); border-radius: 9px; padding: 14px; background: var(--panel-2); }
|
||
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
|
||
.kv > label { font-size: 12px; color: var(--muted); }
|
||
.notice { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; padding: 9px 11px; border-radius: 9px; margin-bottom: 12px; line-height: 1.6; }
|
||
.notice .ti { width: 14px; height: 14px; margin-top: 2px; color: currentColor; }
|
||
.notice.warn { background: #fdf6e9; color: #92610c; }
|
||
.notice.info { background: var(--primary-soft); color: #1e40af; }
|
||
.notice.err { background: #fdf0f0; color: #b42318; }
|
||
|
||
/* ---------------- toast ---------------- */
|
||
.toast {
|
||
position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
|
||
background: #1f2430; color: #fff; padding: 10px 18px; border-radius: 9px;
|
||
font-size: 13px; opacity: 0; pointer-events: none; transition: .22s; z-index: 90;
|
||
}
|
||
.toast.show { opacity: 1; transform: translate(-50%, 0); }
|
||
|
||
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
|
||
@keyframes spin { to { transform: rotate(360deg); } }
|
||
|
||
.svg-chart { width: 100%; height: auto; display: block; }
|
||
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
|
||
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; }
|
||
|
||
/* ---------------- modal ---------------- */
|
||
.modal-mask {
|
||
position: fixed; inset: 0; background: rgba(18,24,38,.38);
|
||
display: none; align-items: center; justify-content: center; padding: 24px; z-index: 60;
|
||
}
|
||
.modal-mask.open { display: flex; }
|
||
.modal {
|
||
width: 580px; max-width: 100%; max-height: 88vh; overflow: auto;
|
||
background: var(--panel); border-radius: var(--radius);
|
||
box-shadow: 0 20px 60px rgba(16,24,40,.22); animation: pop .16s ease-out;
|
||
}
|
||
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: .5; } }
|
||
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
|
||
.modal-head h3 { margin: 0; font-size: 15px; }
|
||
.modal-body { padding: 16px 18px 6px; }
|
||
.modal-foot {
|
||
display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px;
|
||
border-top: 1px solid var(--border); margin-top: 14px;
|
||
position: sticky; bottom: 0; background: var(--panel);
|
||
}
|
||
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
|
||
.form-grid .full { grid-column: 1 / -1; }
|
||
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
|
||
.btn.danger.solid:hover { background: #b42318; color: #fff; }
|
||
.arch-badge { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #f1f3f7; color: var(--muted); white-space: nowrap; flex: none; }
|
||
/* 操作列固定在表格右侧:横向滚动时改名/归档/删除始终可见(项目管理、定制项目共用) */
|
||
table.tbl th.col-ops, table.tbl td.col-ops {
|
||
position: sticky; right: 0; background: var(--panel); box-shadow: inset 1px 0 0 var(--border);
|
||
}
|
||
table.tbl th.col-ops { background: var(--panel-2); z-index: 2; }
|
||
table.tbl tbody tr:hover td.col-ops { background: #fafbfd; }
|
||
table.tbl td.col-ops .btn.sm { padding: 0 7px; } /* 操作列按钮收紧,避免把整张表撑出横向滚动 */
|
||
|
||
/* ---------------- 周看板:左栏总览 + 右栏详情 ---------------- */
|
||
.wk-split { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
|
||
@media (max-width: 1180px) { .wk-split { grid-template-columns: 1fr; } }
|
||
.wk-left { padding: 10px; max-height: calc(100vh - 190px); overflow: auto; position: sticky; top: 84px; }
|
||
@media (max-width: 1180px) { .wk-left { position: static; max-height: none; } }
|
||
.wk-right { padding: 16px 18px; min-width: 0; }
|
||
|
||
.wk-group { margin-bottom: 6px; }
|
||
.wk-group-head {
|
||
display: flex; align-items: center; gap: 6px;
|
||
font-size: 12px; color: var(--muted); letter-spacing: .4px;
|
||
padding: 8px 6px 6px; position: sticky; top: 0; background: var(--panel); z-index: 1;
|
||
}
|
||
.wk-group-head .ic { width: 14px; height: 14px; }
|
||
.wk-group-head .cnt { font-size: 11px; background: #f1f3f7; color: var(--text-2); border-radius: 999px; padding: 0 6px; }
|
||
.wk-group-foot { margin-left: auto; font-size: 11px; }
|
||
|
||
/* 列表行:无边框,选中时用状态色淡染 */
|
||
.wk-item {
|
||
border-radius: 9px; padding: 9px 10px; margin-bottom: 3px;
|
||
cursor: pointer; background: transparent; transition: .12s;
|
||
}
|
||
.wk-item:hover { background: var(--panel-2); }
|
||
.wk-item.active {
|
||
background: var(--primary-soft);
|
||
background: color-mix(in srgb, var(--c, var(--primary)) 10%, #fff);
|
||
}
|
||
.wk-item.active .wk-i-name { color: var(--c, var(--text)); }
|
||
.wk-i-top { display: flex; align-items: center; gap: 7px; }
|
||
.wk-i-ic { display: inline-flex; color: var(--c, var(--muted)); flex: none; }
|
||
.wk-i-ic .ic { width: 15px; height: 15px; }
|
||
.wk-i-name { font-size: 13px; font-weight: 600; line-height: 1.4; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.wk-i-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; padding-left: 22px; }
|
||
.wk-i-sub { margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.5; padding-left: 22px; }
|
||
|
||
/* 详情面板头 = 子 header:左侧标题与元信息,右侧放这个面板自己的操作按钮 */
|
||
.wk-head {
|
||
display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
|
||
margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
|
||
}
|
||
.wk-head-main { flex: 1 1 320px; min-width: 0; }
|
||
.wk-head-ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
|
||
.wk-head-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; line-height: 1.4; }
|
||
.wk-head-title .ic-badge { width: 28px; height: 28px; border-radius: 8px; }
|
||
.wk-head-title .ic-badge > .ic { width: 16px; height: 16px; }
|
||
.wk-head .wk-i-meta, .wk-head .wk-i-sub { padding-left: 0; }
|
||
|
||
/* 交付环节步骤条:入库 → 签单 → 交付 → 验收 → 计收 */
|
||
.pipe { display: flex; align-items: flex-start; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
|
||
.pipe-step {
|
||
/* 132px = 日期框(含选择器图标)的完整宽度;放不下交给 .pipe 横向滚动 */
|
||
flex: 1 1 132px; min-width: 132px; border: 1px solid var(--border); border-radius: 9px;
|
||
padding: 8px 9px; background: var(--panel-2);
|
||
}
|
||
.pipe-step.done { background: #fff; }
|
||
.pipe-step.now { background: color-mix(in srgb, var(--c, var(--primary)) 10%, #fff); }
|
||
.pipe-name { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
|
||
.pipe-step.done .pipe-name, .pipe-step.now .pipe-name { color: var(--c, var(--text-2)); }
|
||
.pipe-name .ic { width: 13px; height: 13px; color: var(--c, var(--muted)); }
|
||
.pipe-step .inp { width: 100%; min-width: 0; height: 26px; font-size: 12px; }
|
||
.pipe-date { font-size: 12px; color: var(--text-2); min-width: 80px; }
|
||
.pipe-date.none { color: var(--muted); opacity: .55; }
|
||
.pipe-arrow { align-self: center; color: var(--muted); padding-top: 12px; flex: none; }
|
||
.pipe-arrow .ic { width: 14px; height: 14px; }
|
||
|
||
/* 交付漏斗 */
|
||
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 12px; }
|
||
.fun-step { border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; background: var(--panel-2); }
|
||
.fun-name { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
|
||
.fun-name .ic { width: 13px; height: 13px; color: var(--c, var(--muted)); }
|
||
.fun-count { font-size: 22px; font-weight: 700; letter-spacing: -.5px; margin: 3px 0 8px; color: var(--c, var(--text)); }
|
||
.fun-bar { height: 6px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
|
||
.fun-bar > i { display: block; height: 100%; border-radius: 99px; }
|
||
.fun-amt { font-size: 11px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
|
||
|
||
/* 小字段:金额补录等内联输入 */
|
||
.field-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
|
||
|
||
/* 主导航分组标题(业务模块 / 支撑功能) */
|
||
.nav-label { font-size: 11px; color: var(--muted); letter-spacing: .6px; padding: 14px 10px 4px; }
|