/* 任务看板 2026-11-14：三个视图（督办台 / 看板列 / 按人看）共用一份数据。基础样式来自 finance/style.css。 */
:root{--tb-warn:#c27a2c;--tb-bad:#b2342a;--tb-ok:#5a7a52;--tb-blue:#3c6a84;--tb-card:#fffefb}
.tb-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.tb-head h1{font-size:26px;font-weight:560;margin:8px 0 6px}.tb-head p:not(.eyebrow){font-size:12px;color:var(--muted);margin:0}
.tb-head-actions{display:flex;gap:10px;align-items:center}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--tb-card)}
.seg button{border:0;background:transparent;padding:8px 14px;font:inherit;font-size:12px;color:#6c5e51;cursor:pointer}
.seg button+button{border-left:1px solid var(--line)}.seg button.on{background:#efe7dc;color:#8d513e;font-weight:600}
.tb-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}
.tb-stat{background:var(--tb-card);border:1px solid var(--line);border-radius:10px;padding:13px 15px;text-align:left;font:inherit;cursor:pointer}
.tb-stat small{font-size:11px;color:var(--muted)}.tb-stat b{display:block;font-size:23px;font-weight:600;margin-top:5px;color:#342d29}
.tb-stat.warn b{color:var(--tb-warn)}.tb-stat.bad b{color:var(--tb-bad)}.tb-stat.ok b{color:var(--tb-ok)}.tb-stat.on{border-color:#c3ad97;box-shadow:0 0 0 2px #efe7dc}
.tb-filters{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:var(--tb-card);border-radius:999px;padding:5px 11px;font:inherit;font-size:12px;color:#6c5e51;cursor:pointer}
.chip.on{background:#efe7dc;border-color:#d9c6b0;color:#8d513e;font-weight:600}.chip em{font-style:normal;color:var(--muted);margin-left:4px;font-size:11px}
.tb-filter-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.tb-filter-right select,.tb-filter-right input[type=search]{height:32px;border:1px solid var(--line);border-radius:7px;background:var(--tb-card);padding:0 9px;font:inherit;font-size:12px}
.tb-filter-right input[type=search]{width:200px}
.check{display:flex;align-items:center;gap:5px;font-size:12px;color:#6c5e51;cursor:pointer}
.av{width:24px;height:24px;border-radius:50%;display:inline-grid;place-items:center;font-size:11px;color:#fff;flex-shrink:0;font-weight:600}
.tag{font-size:10px;padding:2px 7px;border-radius:4px;background:#f3ece2;color:#8f6a52;white-space:nowrap}
.due{font-size:11px;color:var(--muted);white-space:nowrap}.due.late{color:var(--tb-bad);font-weight:600}.due.soon{color:var(--tb-warn);font-weight:600}
.stall{font-size:11px;font-weight:600;padding:2px 7px;border-radius:4px;white-space:nowrap}.s1{background:#f6e6d2;color:#a0602f}.s2{background:#f8e0dc;color:var(--tb-bad)}
.pri{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}.pri.high{background:var(--tb-bad)}.pri.normal{background:var(--tb-warn)}.pri.low{background:#c9bba9}
.st{font-size:11px;padding:2px 8px;border-radius:999px;background:#eee6da;color:#8e523e;white-space:nowrap}
.st.in_progress{background:#dde9f0;color:var(--tb-blue)}.st.done{background:#e3ecdf;color:var(--tb-ok)}.st.waiting{background:#ece6f3;color:#6a5687}.st.unassigned{background:#f6e0da;color:#a0432f}
.bar{height:4px;background:#eee6da;border-radius:2px;overflow:hidden}.bar i{display:block;height:100%;background:var(--tb-ok)}
.link{border:0;background:transparent;color:var(--accent);padding:0;font:inherit;font-size:11px;text-decoration:underline;cursor:pointer;white-space:nowrap}
.empty{padding:28px;text-align:center;color:var(--muted);font-size:12px;border:1px dashed var(--line);border-radius:10px;background:#fdfbf6}
/* 督办台 */
.split{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}
.box{background:var(--tb-card);border:1px solid var(--line);border-radius:12px;padding:16px}.box+.box{margin-top:16px}
.box h2{font-size:14px;margin:0 0 12px;display:flex;justify-content:space-between;align-items:baseline;gap:10px}.box h2 em{font-style:normal;font-size:11px;color:var(--muted);font-weight:400}
.alert{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border-radius:10px;margin-bottom:8px;background:#fbf1e4}.alert.hard{background:#fbe6e3}.alert.late{background:#fdf6ea}
.alert .big{font-size:22px;font-weight:700;color:var(--tb-warn);text-align:center;line-height:1}.alert.hard .big{color:var(--tb-bad)}.alert .big small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}
.alert h4{margin:0 0 4px;font-size:13px;font-weight:600;cursor:pointer}.alert p{margin:0;font-size:11px;color:var(--muted);line-height:1.6}.acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.mini-btn{border:1px solid var(--line);background:var(--tb-card);color:#6c5e51;border-radius:6px;padding:5px 9px;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}.mini-btn:hover{border-color:#c3ad97}
.tb-table{width:100%;border-collapse:collapse;font-size:12px}.tb-table th{text-align:left;font-weight:500;color:var(--muted);font-size:11px;padding:8px;border-bottom:1px solid var(--line);white-space:nowrap}
.tb-table td{padding:9px 8px;border-bottom:1px solid #f0ebe3;vertical-align:middle}.tb-table tr.row-click{cursor:pointer}.tb-table tr.row-click:hover td{background:#faf6ef}
.tb-table td.title{max-width:280px}.tb-table td.title small{display:block;color:var(--muted);font-size:10px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #f0ebe3;cursor:pointer}.person:last-child{border:0}
.person .n{flex:1;font-size:13px;min-width:0}.person .n small{display:block;font-size:10px;color:var(--muted)}
.load{display:flex;gap:3px}.load i{width:9px;height:16px;border-radius:2px;background:#dde9f0}.load i.w{background:#f1cf9f}.load i.b{background:#eaa79c}
.feed{font-size:12px;line-height:1.6}.feed div{padding:7px 0;border-bottom:1px dashed var(--line)}.feed div:last-child{border:0}.feed time{color:var(--muted);font-size:10px;display:block}.feed b{font-weight:600}
/* 看板列 */
.cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start}
.col{background:#efebe3;border-radius:12px;padding:10px;min-height:120px;transition:background .15s}.col.drop{background:#e6ddcf;outline:2px dashed #c3ad97}
.col h3{font-size:13px;margin:4px 6px 10px;display:flex;justify-content:space-between;color:#5c524a}.col h3 em{font-style:normal;color:var(--muted);font-weight:400}
.card{background:var(--tb-card);border:1px solid var(--line);border-radius:10px;padding:11px 12px;margin-bottom:9px;box-shadow:0 2px 6px #4a372b08;cursor:grab}
.card.hot{border-left:4px solid var(--tb-bad)}.card.warm{border-left:4px solid var(--tb-warn)}.card.done{opacity:.7}.card.dragging{opacity:.4}
.card .no{font-size:10px;color:#a5978a;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.card h4{font-size:13px;font-weight:560;margin:5px 0 8px;line-height:1.5}
.card .row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.card .row+.row{margin-top:7px}.card .who{font-size:12px;color:#5c524a}
.card .bar{margin-top:9px}.card .note{font-size:11px;color:var(--muted);margin-top:8px;line-height:1.6;border-top:1px dashed var(--line);padding-top:7px}
.col-more{display:block;width:100%;text-align:center;padding:6px;font-size:11px}
/* 按人看 */
.lanes{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:start}
.tree{background:var(--tb-card);border:1px solid var(--line);border-radius:12px;padding:10px;font-size:13px;position:sticky;top:12px}
.tree button{display:flex;width:100%;justify-content:space-between;border:0;background:transparent;padding:7px 9px;border-radius:7px;color:#5c524a;font:inherit;font-size:13px;cursor:pointer;text-align:left}
.tree button.on{background:#efe7dc;color:#8d513e;font-weight:600}.tree button em{font-style:normal;color:var(--muted);font-size:11px}.tree button.bad em{color:var(--tb-bad);font-weight:600}
.lane-head{display:grid;grid-template-columns:160px repeat(3,minmax(0,1fr));font-size:11px;color:var(--muted);padding:0 12px 6px}
.lane{background:var(--tb-card);border:1px solid var(--line);border-radius:12px;margin-bottom:10px;display:grid;grid-template-columns:160px repeat(3,minmax(0,1fr))}
.lane>div{padding:11px;border-left:1px solid #f0ebe3;min-width:0}.lane>div:first-child{border:0;display:flex;flex-direction:column;gap:5px}
.lane .nm{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:560}.lane .meta{font-size:11px;color:var(--muted)}
.mini{border:1px solid var(--line);border-radius:8px;padding:7px 9px;margin-bottom:6px;font-size:12px;background:#fffdf9;cursor:pointer;line-height:1.5}
.mini.hot{border-color:#e7b2a9;background:#fdf3f1}.mini.warm{border-color:#ecd0a8;background:#fdf8ef}.mini.done{opacity:.6}
.mini .no{font-size:10px;color:#a5978a}.mini .r{display:flex;justify-content:space-between;margin-top:4px;align-items:center;gap:6px}
.lane-empty{font-size:11px;color:#c3b6a6}
/* 详情 / 对话框 */
.detail h2{font-size:17px;margin:4px 0 10px}.detail dl{display:grid;grid-template-columns:90px 1fr;gap:7px 12px;font-size:12px;margin:0 0 14px}.detail dt{color:var(--muted)}.detail dd{margin:0}
.detail .acts{justify-content:flex-start;margin-bottom:14px}.detail h3{font-size:12px;color:var(--muted);font-weight:500;margin:14px 0 6px}
dialog{width:640px;max-width:calc(100vw - 30px);border:1px solid #ddcdb8;border-radius:12px;background:var(--paper);padding:24px;color:#6f5741}
dialog::backdrop{background:#352e2966}dialog h2{font-size:15px;margin:0 0 14px}
dialog .field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);margin-bottom:12px;min-width:0}
dialog .field input:not([type=range]),dialog .field select,dialog .field textarea{height:36px;border:1px solid var(--line);border-radius:7px;background:var(--paper);padding:0 10px;font:inherit;font-size:13px;color:#4a3f37;width:100%}
dialog .field textarea{height:auto;padding:8px 10px}dialog .field output{color:#6c5e51;font-weight:600}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.hint{font-size:11px;color:#a08a71;margin:0 0 8px;line-height:1.7}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
.home-link{margin-bottom:16px}
.session-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 0 19px;margin-bottom:25px;border-bottom:1px solid var(--line)}
.session-bar>div{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.session-bar span{font-size:10px;color:#a58c72}.session-bar strong{font-size:12px;font-weight:550;color:#806047;overflow-wrap:anywhere}
.access-panel,.auth-panel{max-width:590px;margin:20px auto 50px;padding:30px}
.access-panel h1,.auth-panel h1{font-size:23px;line-height:1.6;margin:0 0 13px}
.access-panel p:not(.eyebrow),.auth-panel>p:not(.eyebrow){font-size:12px;color:#9d856c;line-height:1.9}
.auth-panel form{display:grid;gap:10px;margin-top:24px}.auth-panel label{font-size:11px;color:#94795f}
.auth-panel input{width:100%;border:1px solid #dccdb9;background:#fffdf7;border-radius:6px;padding:11px 12px;font-size:13px;color:#6d513c;line-height:1.5}
.auth-panel input+label{margin-top:8px}.auth-panel .primary{margin-top:8px;padding:11px}.auth-panel .error{line-height:1.9;font-size:11px}
.fin-table td.bad{color:#b2342a;font-weight:650}.fin-table .row-button{border:0;background:transparent;color:var(--accent);padding:0;font-size:11px;text-decoration:underline;margin-right:10px}
.status-pill{display:inline-block;font-size:10px;padding:2px 8px;border-radius:999px;background:#eee6da;color:#8e523e}.status-pill.done{background:#e3ecdf;color:#4f6b49}
@media(max-width:1100px){.split{grid-template-columns:1fr}.tb-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.tb-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cols,.lanes,.grid2{grid-template-columns:1fr}.tree{position:static}
  .lane,.lane-head{grid-template-columns:1fr}.lane-head{display:none}.lane>div{border-left:0;border-top:1px solid #f0ebe3}.alert{grid-template-columns:48px minmax(0,1fr)}.alert .acts{grid-column:1/-1}
  .tb-filter-right input[type=search]{width:100%}.session-bar{align-items:flex-start;gap:12px}.access-panel,.auth-panel{margin:0 auto 30px;padding:23px 18px}dialog{padding:19px 16px}}
/* ===== 2026-11-16 暖白卡片风格（用户选定方案 C）：只改视觉，结构与功能不变 ===== */
:root{--ac:#b4553f;--ac2:#e59a6a;--tx:#2f2925;--mu:#8e8277;--sh:0 10px 30px #6b4a3012;--sh2:0 4px 14px #6b4a300d;--bg:#f7f3ee;--tb-card:#fff;--tb-bad:#c0402b;--tb-warn:#b06d1c;--tb-ok:#4f7a48}
body{background:var(--bg)}.main-area{background:var(--bg)}.sidebar{background:#fffdfb}.topbar{background:transparent}
.nav-item.active{background:linear-gradient(135deg,#fbe9e2,#fdf1ea);color:var(--ac)}
.tb-head{align-items:center;margin-bottom:22px}.tb-head .eyebrow{color:var(--ac);letter-spacing:2px}
.tb-head h1{font-size:30px;font-weight:650;color:var(--tx);margin:6px 0 6px;letter-spacing:.3px}.tb-head p:not(.eyebrow){font-size:13px;color:var(--mu)}
.primary{border:0;border-radius:12px;background:linear-gradient(135deg,var(--ac),var(--ac2));box-shadow:0 8px 18px #b4553f40;font-weight:600;font-size:13px;padding:10px 18px;min-height:40px;color:#fff}
.primary:hover{background:linear-gradient(135deg,#a24a35,#d98b5c)}
.page-button{border-radius:10px;border:1px solid #eadfd4;background:#fff;color:#7a6658;padding:9px 16px;font-size:12px}
.seg{border:0;background:#efe8e0;border-radius:12px;padding:4px;gap:2px}.seg button{border-radius:9px;padding:8px 16px;font-size:13px;color:#7a6a5d}
.seg button+button{border-left:0}.seg button.on{background:#fff;color:var(--ac);box-shadow:var(--sh2)}
.tb-stats{grid-template-columns:1.35fr repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.tb-stat{background:#fff;border:0;border-radius:16px;padding:16px 18px;box-shadow:var(--sh);transition:transform .15s,box-shadow .15s}
.tb-stat:hover{transform:translateY(-2px)}.tb-stat small{font-size:12px}.tb-stat b{font-size:30px;font-weight:650;margin-top:8px;color:var(--tx)}
.tb-stat.on{box-shadow:0 0 0 2px var(--ac),var(--sh)}.tb-stat.hl{background:linear-gradient(135deg,#2f2925,#4a3a31);color:#fff;cursor:default}
.tb-stat.hl small{color:#d9c7b6}.tb-stat.hl b{color:#fff}.tb-stat.hl i{display:block;font-style:normal;font-size:11px;color:#d9c7b6;margin-top:6px}
.tb-stat .ring{float:right;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;margin-top:-4px}.tb-stat .ring span{width:34px;height:34px;border-radius:50%;background:#3b302a;display:grid;place-items:center;font-size:10px;color:#fff;font-weight:600}
.chip{border:0;background:#fff;box-shadow:var(--sh2);padding:7px 13px;color:#7a6a5d}.chip.on{background:var(--tx);color:#fff}.chip.on em{color:#d9c7b6}
.tb-filter-right select,.tb-filter-right input[type=search]{height:36px;border:0;border-radius:10px;box-shadow:var(--sh2);background:#fff;padding:0 12px}
.box{border:0;border-radius:18px;padding:20px;box-shadow:var(--sh)}.box h2{font-size:15px;font-weight:650;color:var(--tx)}
.alert{grid-template-columns:52px minmax(0,1fr) auto;border-radius:14px;padding:12px 14px;background:#fbf8f5}.alert.hard,.alert.late{background:#fbf8f5}
.alert .big{width:48px;height:48px;border-radius:14px;display:grid;place-content:center;font-size:20px;color:#fff;background:linear-gradient(135deg,#e0a35a,#c97f2f)}
.alert.hard .big,.alert.late .big{color:#fff;background:linear-gradient(135deg,#d8644d,#b4402b)}.alert .big small{color:#ffffffcc;font-size:9px;margin-top:2px}
.alert h4{font-size:14px;color:var(--tx)}.alert p{font-size:12px}
.mini-btn{border:0;border-radius:9px;background:#fff;box-shadow:var(--sh2);padding:6px 11px;font-size:12px;color:#6c5e51}.mini-btn:hover{color:var(--ac)}
.alert .acts .mini-btn:first-child{background:linear-gradient(135deg,var(--ac),var(--ac2));color:#fff;box-shadow:none}
.tb-table th{border-bottom:1px solid #f1ebe4;font-size:12px}.tb-table td{border-bottom:1px solid #f5f0ea;padding:11px 8px}.tb-table tr.row-click:hover td{background:#fbf6f1}
.st{padding:3px 10px;font-weight:600}.st.in_progress{background:#e6eef4;color:#3c6a84}.st.done{background:#e6f1e3;color:#4f7a48}.st.waiting{background:#eee8f6;color:#6a5687}
.stall,.due.late,.due.soon{border-radius:999px;padding:2px 9px}.s1,.due.soon{background:#fdf0dc;color:#b06d1c}.s2,.due.late{background:#fde7e2;color:#c0402b}
.bar{height:6px;border-radius:3px;background:#f1ebe4}.bar i{background:linear-gradient(90deg,#6f9a64,#9cc28c);border-radius:3px}
.av{width:28px;height:28px;font-size:12px;box-shadow:0 2px 6px #00000014}
.person{border-bottom:1px solid #f5f0ea;padding:9px 4px;border-radius:10px}.person:hover{background:#fbf6f1}
.load i{border-radius:3px;width:8px}.load i{background:#dce8ef}.load i.w{background:#f3c98d}.load i.b{background:#ec9a8a}
.feed div{border-bottom:1px solid #f5f0ea}
.cols{gap:16px}.col{background:#efe8e0;border-radius:18px;padding:12px}.col.drop{background:#f6e3da;outline:2px dashed var(--ac2)}
.col h3{font-size:14px;color:var(--tx)}.col h3 em{background:#fff;border-radius:999px;padding:1px 9px;font-size:11px}
.card{border:0;border-radius:14px;padding:13px 14px;box-shadow:var(--sh2);transition:transform .15s,box-shadow .15s}.card:hover{transform:translateY(-2px);box-shadow:var(--sh)}
.card.hot,.card.warm{border-left:0;position:relative;overflow:hidden}.card.hot:before,.card.warm:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--tb-bad)}.card.warm:before{background:#e0a35a}
.card h4{font-size:14px;font-weight:600;color:var(--tx)}.tag{border-radius:999px;background:#f6efe8;color:#8a5a45;padding:2px 8px}
.card .note{border-top:0;background:#fbf8f5;border-radius:8px;padding:6px 8px}
.tree{border:0;border-radius:18px;box-shadow:var(--sh);padding:12px}.tree button{border-radius:10px;padding:8px 10px}.tree button.on{background:var(--tx);color:#fff}.tree button.on em{color:#d9c7b6}
.lane{border:0;border-radius:16px;box-shadow:var(--sh2)}.lane>div{border-left:1px solid #f5f0ea}
.mini{border:0;border-radius:10px;background:#fbf8f5}.mini.hot{background:#fdf0ed;border:0}.mini.warm{background:#fdf6ea;border:0}
.empty{border:0;background:#fbf8f5;border-radius:14px;color:var(--mu)}
dialog{border:0;border-radius:20px;background:#fff;box-shadow:0 30px 80px #2f292540;color:#5c4f45;padding:26px 28px}dialog::backdrop{background:#2f292560;backdrop-filter:blur(3px)}
dialog h2{font-size:18px;color:var(--tx)}dialog .field input:not([type=range]),dialog .field select,dialog .field textarea{border:1px solid #efe6dc;background:#fbf8f5;border-radius:10px;height:40px}
dialog .field textarea{height:auto}dialog input[type=range]{accent-color:var(--ac)}.detail h2{font-size:20px}.detail dl{background:#fbf8f5;border-radius:14px;padding:14px 16px}
.session-bar{border-bottom:0;background:#fff;border-radius:14px;box-shadow:var(--sh2);padding:12px 16px;margin-bottom:22px}
.access-panel,.auth-panel{background:#fff;border:0;border-radius:20px;box-shadow:var(--sh)}.auth-panel input{border-radius:10px;border:1px solid #efe6dc;background:#fbf8f5}
.fin-table{background:#fff;border-radius:16px;box-shadow:var(--sh);overflow:hidden}
@media(max-width:1100px){.tb-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.tb-stat.hl{grid-column:1/-1}}
@media(max-width:760px){.tb-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-head h1{font-size:24px}.seg{width:100%}.seg button{flex:1}.tb-head-actions{width:100%;flex-wrap:wrap}#new-task{width:100%}}

/* 2026-11-17 协助人 / 审核人 */
.people-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.people-chips:empty{display:none}
.people-chips button{border:1px solid #e6d9cc;background:#fbf6f1;color:#5c4636;border-radius:999px;padding:3px 10px;font-size:13px;cursor:pointer}
.people-chips button::after{content:" ×";color:#b4553f}
.card .helpers{font-size:12px;color:#8a7767;margin-top:2px}
.summary-detail td{background:#fbf7f2;padding:8px 14px}
.summary-line{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:6px 0;border-bottom:1px dashed #eadfd3;cursor:pointer;font-size:13px}
.summary-line:last-child{border-bottom:0}
.summary-line b{font-weight:600;color:#3d2f25}
.who-cell{display:inline-flex;align-items:center;gap:6px}
.tb-table td.bad{color:#c0402b;font-weight:600}
.who-cell{white-space:nowrap}
