@charset "UTF-8";
:root{--ink:#173b35;--green:#19785f;--muted:#71817b;--line:#e0e6e1;--paper:#f3f5ef;--early:#dcf1e8;--late:#eae6fa;--off:#f0f2f3}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.55 "Microsoft YaHei",system-ui,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;transition:background .16s}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b1daca;outline-offset:2px}button:hover:not(:disabled){filter:brightness(.96)}.top{height:76px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fbfcf8}.brand{display:flex;align-items:center;gap:18px;text-decoration:none;color:var(--ink);font-weight:800;font-size:23px}.brand span:last-child{font-weight:500;font-size:16px}.brand-line{height:24px;border-left:1px solid #b9c8c0}.preview{font-size:12px;color:var(--muted);padding:6px 12px;border:1px solid var(--line);border-radius:30px}main{max-width:1640px;margin:auto;padding:36px 4% 42px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.eyebrow{font-size:12px;letter-spacing:2px;color:#5a7f6b}h1{font-size:34px;letter-spacing:-1px;margin:6px 0 8px;font-weight:650}p{margin:0}.intro p{color:var(--muted)}.workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px}aside{display:flex;flex-direction:column;gap:16px}.card{border:1px solid var(--line);border-radius:15px;background:#fff;padding:21px}.section-head{display:flex;align-items:center;justify-content:space-between}h2{font-size:15px;font-weight:650;margin:0 0 18px;display:flex;align-items:center;gap:10px}h2>span{font:12px system-ui;color:#8b9a91;letter-spacing:1px}.section-head h2{margin-bottom:16px}.text{background:none;color:var(--green);font-size:12px;padding:0 0 16px}label{display:block;color:#415d52;font-size:13px;margin-bottom:7px}input[type=month],textarea{width:100%;border:1px solid #dce4de;border-radius:8px;padding:10px 12px;background:#fcfdfa;color:var(--ink)}input[type=month]{margin-bottom:17px}textarea{resize:vertical;min-height:140px;line-height:1.7}.label-row{display:flex;justify-content:space-between}.label-row>span{font-size:12px;color:var(--muted)}.hint{font-size:12px;color:var(--muted);line-height:1.7;margin-top:9px}.shift-line{display:flex;align-items:center;gap:8px;font-size:12px;margin:12px 0;white-space:nowrap}.shift-chip{padding:4px 7px;border-radius:5px;font-weight:600}.early{background:var(--early);color:#23634d}.late{background:var(--late);color:#655091}.off{background:var(--off);color:#8c969b}input[type=number]{width:50px;padding:7px 4px 7px 8px;border:1px solid #dce4de;border-radius:6px;color:var(--ink);background:#fcfdfa}.shift-line input{margin-left:auto}.rule-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:9px}.rule-line input{margin-left:auto}.check{display:flex;align-items:center;gap:6px;margin:16px 0 9px}.check input{accent-color:var(--green)}.primary{margin-top:20px;background:var(--green);color:#fff;width:100%;padding:13px 17px;border-radius:8px;text-align:left;font-weight:600}.primary span{float:right}.save-state{text-align:center;font-size:11px;color:#91a098;margin-top:10px}.light,.dark{border-radius:7px;padding:9px 13px;font-size:12px;white-space:nowrap}.light{background:#fff;border:1px solid var(--line);color:#476555}.dark{background:var(--ink);color:white}.results{min-width:0}.notice{display:flex;flex-direction:column;gap:4px;padding:15px 19px;border:1px solid #d3e6d9;border-radius:10px;background:#edf5ed;font-size:12px;min-height:72px}.notice strong{font-size:14px}.notice.bad{background:#fff0eb;border-color:#edc7b9;color:#994527}.notice.pending{background:#fff7e5;border-color:#ebd9aa;color:#856a2d}.notice span{white-space:pre-line}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.metrics>div{background:#fff;border:1px solid var(--line);border-radius:11px;padding:16px}.metrics span{font-size:11px;color:var(--muted);display:block;margin-bottom:7px}.metrics strong{font:600 25px system-ui}.metrics strong:last-child{font-family:inherit}.metrics .muted{font-size:18px;color:#9aa8a0}.board{padding:0;overflow:hidden}.board-top{padding:22px 22px 15px;display:flex;justify-content:space-between;align-items:center;gap:15px}.board-top h2{font-size:18px;margin:0 0 4px}.board-top p{font-size:12px;color:var(--muted)}.actions{display:flex;gap:7px}.legend{display:flex;gap:15px;padding:0 22px 17px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:5px}.dot{width:9px;height:9px;display:inline-block;border-radius:3px}.table-wrap{overflow:auto;max-height:530px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}th,td{border-right:1px solid #edf0ec;border-bottom:1px solid #edf0ec;height:47px;min-width:47px;text-align:center;position:relative}thead th{background:#f8faf6;position:sticky;top:0;z-index:3;font-weight:500;color:#587164;padding:7px 6px}thead small{display:block;font-size:10px;color:#9ba79f}th.person,td.person{position:sticky;left:0;z-index:2;min-width:90px;text-align:left;padding:0 12px;background:#fff;font-weight:600;box-shadow:1px 0 #dde5dc}thead th.person{z-index:4;background:#f8faf6}.weekend{background:#f0f4ed}td select{border:0;border-radius:5px;background:transparent;color:inherit;width:42px;height:32px;text-align:center;appearance:none;cursor:pointer;font-size:12px;padding:0}td select.early{background:var(--early);color:#23634d}td select.late{background:var(--late);color:#655091}td select.off{background:var(--off);color:#8c969b}td select.locked{box-shadow:inset 0 0 0 1.5px #6d8a7a;font-weight:700}tfoot td{background:#f8faf6;height:32px;font-size:10px;color:var(--muted)}.board-foot{display:flex;justify-content:space-between;gap:15px;padding:13px 22px;font-size:11px;color:var(--muted)}.summary{margin-top:18px}.summary h2{margin-bottom:12px}.staff-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px}.staff-summary{padding:11px 12px;background:#f8faf6;border-radius:8px}.staff-summary strong{font-size:13px}.staff-summary span{float:right;color:#7b8d82;font-size:11px}.staff-summary p{font-size:11px;color:#6e8375;margin-top:4px}.scope{padding:21px 3px;font-size:12px;color:var(--muted)}.scope strong{color:#567463;font-size:12px}.scope p{line-height:1.8;margin-top:5px}footer{padding:20px 4%;border-top:1px solid var(--line);font-size:12px;color:#85968a;display:flex;justify-content:space-between}body.busy #solve{opacity:.6}body.stale .table-wrap{background:#fffcf3}.empty{padding:60px;text-align:center;color:var(--muted)}@media(max-width:1100px){.workspace{grid-template-columns:270px minmax(0,1fr);gap:16px}.card{padding:17px}.board{padding:0}.board-top{align-items:flex-start;flex-direction:column}.metrics>div{padding:12px}.metrics strong{font-size:20px}.intro h1{font-size:29px}}@media(max-width:760px){main{padding:24px 16px}.top{padding:0 16px;height:64px}.brand{font-size:21px;gap:10px}.preview{font-size:10px;padding:5px 8px}.workspace{display:flex;flex-direction:column}.intro{align-items:flex-start;flex-direction:column}.intro h1{font-size:28px}aside{display:grid;grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}textarea{min-height:100px}.board-top,.legend{padding-left:16px;padding-right:16px}.actions{flex-wrap:wrap}.board-foot{flex-direction:column;gap:3px}footer span{display:none}}
@media print{body{background:white;font-size:10px}.top,aside,.intro,.notice,.metrics,.actions,.scope,footer,.summary,.legend,.board-foot{display:none!important}main{padding:0;max-width:none}.workspace{display:block}.card{border:0}.table-wrap{overflow:visible;max-height:none;border:0}table{font-size:9px}th,td{min-width:0;height:28px}td select{width:100%;font-size:9px}.person{position:static!important;min-width:55px!important}thead th{position:static}td select{print-color-adjust:exact}body.stale .board:before{content:'待重排草稿，不可作为最终排班';display:block;color:#a00}@page{size:A3 landscape;margin:10mm}}
.actions .primary{width:auto;margin:0;white-space:nowrap;text-align:center;padding:9px 14px}.draft-actions{display:flex;gap:18px;margin-bottom:14px}.actions{flex-wrap:wrap}.table-wrap:focus-within{outline:1px solid #b5cdc0}

/* zhentu-tool-switch-v1 */
.tool-switch{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:22px 0 0;margin-bottom:22px}
.tool-switch a{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:17px 20px;border:1px solid #ccdcd0;border-radius:10px;background:#fff;color:#163f35;text-decoration:none;font-size:13px;min-width:0}
.tool-switch a[aria-current="page"]{background:#eaf3eb;border-color:#9fbda9}
.tool-switch a:hover{border-color:#237d64;box-shadow:0 2px 9px #173f3510}
.tool-switch b{font-size:16px}.tool-switch span{font-size:12px;color:#61786a}.tool-switch strong{margin-left:auto;font-size:12px;color:#126c56;white-space:nowrap}
@media(max-width:650px){.tool-switch{grid-template-columns:1fr;padding-top:16px;gap:8px}.tool-switch a{padding:13px 15px}}
@media print{.tool-switch{display:none!important}}
