555 lines
30 KiB
CSS
555 lines
30 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 4px 14px rgba(16,24,40,.05);
|
||
--radius: 10px;
|
||
--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;
|
||
}
|
||
.brand { 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-foot { margin-top: auto; font-size: 11px; color: var(--muted); padding: 10px 4px; border-top: 1px solid var(--border); line-height: 1.6; }
|
||
|
||
/* ---------------- 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); }
|
||
.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: 26px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
|
||
.btn.sm .ic { width: 12px; height: 12px; }
|
||
.btn.danger { color: var(--red); }
|
||
.btn:disabled { opacity: .55; 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); }
|
||
|
||
.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; }
|
||
.card-head .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
|
||
.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: 14px; }
|
||
.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); }
|
||
|
||
.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; }
|
||
.inp, .sel {
|
||
height: 28px; border: 1px solid var(--border); border-radius: 7px; padding: 0 8px; 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); }
|
||
|
||
/* ---------------- 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); }
|
||
.sec-title .sub { letter-spacing: 0; }
|
||
|
||
.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; }
|
||
|
||
/* 详情(只读)/ 修改(编辑)分离:只读值、区块操作条、区块属性徽标 */
|
||
.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-actions-label { font-size: 11.5px; color: var(--muted); }
|
||
/* 附表的更新记录写入条:底色淡染,不再用虚线彩框 */
|
||
.sec-actions.upd { background: color-mix(in srgb, var(--green) 6%, #fff); }
|
||
.sec-actions.upd .sec-actions-label { color: var(--green); font-weight: 600; }
|
||
.sec-hint { font-size: 11.5px; color: var(--muted); margin-left: auto; }
|
||
.sec-kind {
|
||
font-size: 10.5px; font-weight: 600; letter-spacing: 0; padding: 1px 6px;
|
||
border-radius: 5px; background: var(--primary-soft); color: var(--primary);
|
||
}
|
||
.sec-kind.ro { background: #f1f3f7; color: var(--muted); font-weight: 500; }
|
||
.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; }
|
||
|
||
.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; }
|
||
.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-meta { font-size: 11.5px; color: var(--muted); }
|
||
.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; }
|
||
|
||
.wk-head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
|
||
.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; }
|
||
|
||
/* 工作看板底部的统计概览折叠区 */
|
||
details.card.ov { padding: 12px 16px; }
|
||
details.card.ov > summary {
|
||
cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); list-style: none;
|
||
display: flex; align-items: center; gap: 7px;
|
||
}
|
||
details.card.ov > summary::-webkit-details-marker { display: none; }
|
||
details.card.ov > summary .ov-chev { display: inline-flex; color: var(--muted); transition: transform .15s; }
|
||
details.card.ov > summary .ov-chev .ic { width: 14px; height: 14px; }
|
||
details.card.ov[open] > summary .ov-chev { transform: rotate(90deg); }
|
||
details.card.ov > summary .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }
|
||
details.card.ov > .ov-body { padding-top: 16px; }
|