:root{--bg:#f4f6f8;--panel:#fff;--ink:#18212a;--muted:#66727e;--line:#e3e8ec;--nav:#17252c;--teal:#087f75;--teal-soft:#e7f4f1;--red:#c23b3b;--red-soft:#fbecec;--amber:#a86508;--amber-soft:#fff4df;--green:#287a4d;--green-soft:#eaf6ef;--shadow:0 1px 2px rgba(25,35,45,.06)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;letter-spacing:0}.shell{min-height:100vh;display:grid;grid-template-columns:220px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:var(--nav);color:#dce5e8;padding:24px 16px;display:flex;flex-direction:column}.brand{height:48px;display:flex;align-items:center;gap:12px;padding:0 8px;font-weight:700;font-size:17px}.brand-mark{display:grid;place-items:center;width:30px;height:30px;background:#17a295;color:#fff;border-radius:6px;font-size:14px}.sidebar nav{display:grid;gap:6px;margin-top:28px}.nav-item{height:42px;border:0;background:transparent;color:#aebcc1;border-radius:5px;text-align:left;padding:0 14px;font-size:14px;cursor:pointer}.nav-item span{display:inline-grid;width:24px;font-weight:700}.nav-item:hover,.nav-item.active{background:#263840;color:#fff}.sidebar-foot{margin-top:auto;border-top:1px solid #30434b;padding:18px 8px 4px;font-size:12px;color:#aebcc1}.status-dot{display:inline-block;width:8px;height:8px;background:#36b678;border-radius:50%;margin-right:8px}main{min-width:0}header{height:86px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px}h1,h2,h3,p{margin:0}h1{font-size:21px}header p,.panel-head p,.page-title p{font-size:12px;color:var(--muted);margin-top:5px}.header-actions{display:flex;align-items:center;gap:12px}.date-control{height:40px;display:flex;align-items:center;border:1px solid var(--line);border-radius:5px;padding:0 10px;gap:8px;background:#fff;font-size:12px;color:var(--muted)}.date-control input{border:0;outline:0;font:inherit;color:var(--ink)}.icon-button{width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:5px;cursor:pointer;font-size:18px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--nav);color:#fff;font-size:12px}.view{display:none;padding:24px 32px 40px}.view.active{display:block}.deadline-strip{min-height:70px;background:#eef7f5;border-left:4px solid var(--teal);display:flex;align-items:center;justify-content:space-between;padding:14px 18px;margin-bottom:18px}.eyebrow{display:block;text-transform:uppercase;color:var(--teal);font-size:11px;font-weight:700;margin-bottom:5px}.deadline-strip strong{font-size:14px}.deadline-note{color:#48625f;font-size:12px}.clock-icon{font-size:17px;margin-right:6px}.metrics{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px;margin-bottom:18px}.metric{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);padding:16px;border-radius:6px;min-height:100px}.metric-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.metric-icon{width:26px;height:26px;border-radius:5px;background:var(--teal-soft);color:var(--teal);display:grid;place-items:center;font-weight:700}.metric strong{display:block;font-size:25px;margin-top:10px}.metric small{color:var(--muted);font-size:11px}.metric.danger strong{color:var(--red)}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow)}.panel-head{min-height:72px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.panel-head h2,.page-title h2{font-size:15px}.filters{display:flex;border:1px solid var(--line);border-radius:5px;overflow:hidden}.filter{height:30px;padding:0 12px;border:0;border-right:1px solid var(--line);background:#fff;color:var(--muted);cursor:pointer;font-size:12px}.filter:last-child{border-right:0}.filter.active{background:var(--nav);color:#fff}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:#71808c;font-weight:600;background:#fafbfc;padding:11px 14px;border-bottom:1px solid var(--line)}td{padding:13px 14px;border-bottom:1px solid #edf0f2;vertical-align:middle}tbody tr{cursor:pointer}tbody tr:hover{background:#fafcfc}.person strong{display:block;font-size:13px}.person span{display:block;color:var(--muted);font-size:11px;margin-top:3px}.hours strong{font-size:14px}.hours span{color:var(--muted)}.cost strong{display:block}.cost span{display:block;color:var(--muted);margin-top:3px}.badge{display:inline-flex;align-items:center;min-height:24px;border-radius:4px;padding:3px 7px;font-size:11px;font-weight:600}.badge.exception{background:var(--red-soft);color:var(--red)}.badge.attention{background:var(--amber-soft);color:var(--amber)}.badge.normal{background:var(--green-soft);color:var(--green)}.row-action{border:0;background:transparent;color:var(--teal);cursor:pointer;font-weight:700}.side-panel{align-self:start}.issue-summary{padding:14px 18px}.issue-row{display:grid;grid-template-columns:1fr auto;align-items:center;padding:11px 0;border-bottom:1px solid #edf0f2;font-size:12px}.issue-row:last-child{border-bottom:0}.issue-label{display:flex;align-items:center;gap:8px}.issue-bar{width:5px;height:20px;border-radius:2px;background:var(--red)}.issue-row strong{font-size:15px}.sync-box{margin:6px 14px 14px;padding:14px;background:#f6f8f9;border-radius:5px;font-size:12px}.sync-box p{color:var(--muted);margin:8px 0 12px}.sync-box button{border:0;background:transparent;padding:0;color:var(--teal);cursor:pointer;font-size:12px}.page-title{display:flex;justify-content:space-between;margin:2px 0 18px}.exception-list{display:grid}.exception-card{padding:17px 18px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:220px 1fr auto;gap:22px;align-items:center}.exception-card:last-child{border-bottom:0}.exception-card h3{font-size:14px}.exception-card p{font-size:11px;color:var(--muted);margin-top:4px}.issue-pills{display:flex;flex-wrap:wrap;gap:6px}.review-button{height:34px;border:0;border-radius:4px;background:var(--teal);color:#fff;padding:0 14px;cursor:pointer}.source-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.source{background:#fff;border:1px solid var(--line);border-radius:6px;padding:17px;display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center}.source-icon{width:40px;height:40px;border-radius:6px;display:grid;place-items:center;font-weight:700}.source-icon.ding{background:#eaf1ff;color:#176be0}.source-icon.gateway{background:#e9f6f3;color:var(--teal)}.source-icon.leave{background:#fff2df;color:#a86508}.source h3{font-size:13px}.source p{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5}.source-state{font-size:11px;color:var(--amber);background:var(--amber-soft);padding:4px 6px;border-radius:4px}.sync-runs{padding:0 18px}.sync-run{display:grid;grid-template-columns:120px 1fr 80px;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.sync-run span{color:var(--muted)}dialog{width:min(620px,calc(100vw - 32px));border:0;border-radius:7px;padding:0;box-shadow:0 20px 70px rgba(0,0,0,.24)}dialog::backdrop{background:rgba(13,25,31,.52)}.dialog-close{position:absolute;right:14px;top:12px;border:0;background:transparent;font-size:23px;color:var(--muted);cursor:pointer}.detail{padding:24px}.detail h2{font-size:18px}.detail-sub{color:var(--muted);font-size:12px;margin-top:5px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.detail-stat{background:#f5f7f8;padding:12px;border-radius:5px}.detail-stat span{display:block;color:var(--muted);font-size:11px}.detail-stat strong{display:block;margin-top:5px;font-size:16px}.detail h3{font-size:13px;margin:17px 0 9px}.detail-issue{display:flex;justify-content:space-between;padding:9px 11px;background:var(--red-soft);color:var(--red);border-radius:4px;margin-bottom:6px;font-size:12px}.detail-actions{display:flex;gap:8px;margin-top:20px}.detail-actions button{height:36px;border-radius:4px;padding:0 14px;cursor:pointer}.confirm{border:0;background:var(--teal);color:#fff}.dismiss{border:1px solid var(--line);background:#fff;color:var(--ink)}#toast{position:fixed;right:24px;bottom:24px;transform:translateY(20px);opacity:0;pointer-events:none;background:var(--nav);color:#fff;border-radius:5px;padding:11px 14px;font-size:12px;transition:.2s}#toast.show{transform:none;opacity:1}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(3,1fr)}.content-grid{grid-template-columns:1fr}.side-panel{display:none}.source-grid{grid-template-columns:1fr}.exception-card{grid-template-columns:180px 1fr auto}}
@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:8px 12px;flex-direction:row;align-items:center}.brand{height:40px;font-size:14px;white-space:nowrap;padding:0}.brand-mark{width:28px;height:28px}.sidebar nav{display:flex;margin:0 0 0 auto}.nav-item{width:40px;padding:0;text-align:center;font-size:0}.nav-item span{font-size:16px;width:auto}.sidebar-foot{display:none}header{height:auto;padding:12px 16px;justify-content:flex-end}header>div:first-child{display:none}.header-actions{gap:8px;margin-left:auto}.date-control{max-width:142px}.date-control span{display:none}.avatar{width:34px;height:34px}.view{padding:16px}.deadline-strip{align-items:flex-start;gap:12px;flex-direction:column}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{min-height:92px;padding:13px}.metric strong{font-size:21px}.metric:last-child{grid-column:1/-1}.panel-head{align-items:flex-start;gap:12px;flex-direction:column}.exception-card{grid-template-columns:1fr}.detail-grid{grid-template-columns:repeat(2,1fr)}.table-wrap{overflow:visible}table,tbody{display:block}thead{display:none}tbody tr{display:grid;grid-template-columns:1fr auto;gap:10px 14px;padding:14px;border-bottom:1px solid var(--line)}tbody td{display:block!important;border:0;padding:0}tbody td:nth-child(2){grid-column:1}tbody td:nth-child(3){grid-column:2;grid-row:2}tbody td:nth-child(4){grid-column:1}tbody td:nth-child(5){grid-column:2;grid-row:3;align-self:center}tbody td:nth-child(6){display:none!important}.hours:before{content:"工时 ";color:var(--muted);font-size:11px}.cost:before{content:"网关成本";display:block;color:var(--muted);font-size:11px;margin-bottom:3px}}
.sync-source{height:30px;border:0;border-radius:4px;padding:0 10px;background:var(--teal);color:#fff;font-size:11px;cursor:pointer;white-space:nowrap}.sync-source:disabled{opacity:.55;cursor:wait}
.project-codes{display:flex;flex-wrap:wrap;gap:4px;max-width:210px}.project-codes span{display:inline-block;padding:3px 5px;border-radius:3px;background:#f0f3f5;color:#47545e;font-size:10px}.report-cost strong{color:#34434d}
@media(max-width:760px){tbody td:nth-child(2){grid-column:1/-1;grid-row:auto}tbody td:nth-child(3){grid-column:1;grid-row:auto}tbody td:nth-child(4){grid-column:2;grid-row:3}tbody td:nth-child(5){grid-column:1;grid-row:auto}tbody td:nth-child(6){grid-column:1;grid-row:auto}tbody td:nth-child(7){grid-column:2;grid-row:5;align-self:center}tbody td:nth-child(8){display:none!important}.report-cost:before{content:"日报成本"}.project-codes{max-width:none}}
.source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){.source-grid{grid-template-columns:1fr}}
.export-button{height:38px;border:0;border-radius:5px;background:var(--teal);color:#fff;padding:0 15px;font-size:12px;font-weight:600;cursor:pointer}.header-actions .export-button{display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap}.export-button:hover{filter:brightness(.95)}
.page-actions{display:flex;gap:8px;align-items:center}.export-button.secondary{background:#fff;color:var(--teal);border:1px solid var(--teal)}@media(max-width:760px){.page-actions{width:100%;flex-wrap:wrap}.page-actions .export-button{flex:1;min-width:130px}}
.range-export{display:grid;grid-template-columns:minmax(260px,1fr) 160px 160px auto;gap:14px;align-items:end;padding:18px;margin-bottom:18px}.range-export h3{font-size:14px}.range-export p{font-size:11px;color:var(--muted);margin-top:5px}.range-export label{display:grid;gap:6px;font-size:11px;color:var(--muted)}.range-export input{height:38px;border:1px solid var(--line);border-radius:4px;padding:0 9px;font:inherit;color:var(--ink)}@media(max-width:900px){.range-export{grid-template-columns:1fr 1fr}.range-export>div,.range-export .export-button{grid-column:1/-1}}
.leave-button{border:1px solid #d69b45;background:#fff7e8;color:#9a5b00}.leave-hours{display:grid;grid-template-columns:1fr 110px auto;align-items:center;gap:10px;margin:22px 0;padding:16px;background:#f5f7f8;border-radius:5px}.leave-hours span{font-size:13px;font-weight:600}.leave-hours input{height:38px;border:1px solid var(--line);border-radius:4px;padding:0 10px;font:inherit}.leave-hours small{color:var(--muted)}
.manual-button{border:1px solid var(--teal);background:var(--teal-soft);color:var(--teal)}.manual-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.form-field{display:grid;gap:7px}.form-field span{font-size:12px;font-weight:600;color:var(--ink)}.form-field input,.form-field textarea{width:100%;border:1px solid var(--line);border-radius:4px;padding:9px 10px;font:inherit;color:var(--ink);background:#fff}.form-field input{height:40px}.form-field textarea{resize:vertical;min-height:88px}.form-wide{grid-column:1/-1}.delete-manual{border:1px solid #d86868;background:#fff2f2;color:#b83232}@media(max-width:760px){.manual-grid{grid-template-columns:1fr}.form-wide{grid-column:auto}.detail-actions{flex-wrap:wrap}}
@media(max-width:760px){tbody td:nth-child(2){grid-column:1/-1;grid-row:auto}tbody td:nth-child(3){grid-column:1;grid-row:auto}tbody td:nth-child(4){grid-column:1;grid-row:auto}tbody td:nth-child(5){grid-column:1;grid-row:auto}tbody td:nth-child(6){grid-column:2;grid-row:4;align-self:center}tbody td:nth-child(7){display:none!important}}
.project-names{display:grid;gap:4px;max-width:260px}.project-names span{font-size:11px;line-height:1.35;color:#47545e}.project-names .unmatched{display:inline-block;width:max-content;max-width:100%;padding:3px 5px;border-radius:3px;background:var(--red-soft);color:var(--red);font-weight:600}
@media(max-width:760px){tbody td:nth-child(2),tbody td:nth-child(3),tbody td:nth-child(4),tbody td:nth-child(5),tbody td:nth-child(6),tbody td:nth-child(7){display:block!important}tbody td:nth-child(2),tbody td:nth-child(3){grid-column:1/-1}.project-names{max-width:none}tbody td:nth-child(4){grid-column:1}tbody td:nth-child(5){grid-column:1}tbody td:nth-child(6){grid-column:1}tbody td:nth-child(7){grid-column:2;grid-row:5;align-self:center}tbody td:nth-child(8){display:none!important}}
.project-toolbar{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}.project-toolbar input{height:36px;flex:1;border:1px solid var(--line);border-radius:4px;padding:0 10px;font:inherit}.project-toolbar span{color:var(--muted);font-size:12px;white-space:nowrap}.project-list{display:grid}.project-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:13px 18px;border-bottom:1px solid var(--line);font-size:12px}.project-row:last-child{border-bottom:0}.project-row strong,.project-row span{display:block}.project-row span{margin-top:4px;color:var(--muted)}
.roster-metrics{grid-template-columns:repeat(4,minmax(130px,1fr))}.roster-metrics .metric{min-height:88px}.roster-metrics .metric strong{font-size:22px}.roster-table .roster-name{font-weight:700}.roster-status{display:inline-flex;align-items:center;gap:6px;color:var(--green);font-weight:600}.roster-status::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--green)}@media(max-width:900px){.roster-metrics{grid-template-columns:repeat(2,minmax(130px,1fr))}}@media(max-width:520px){.roster-metrics{grid-template-columns:1fr}.roster-table td:nth-child(2),.roster-table td:nth-child(3){display:block!important;grid-column:auto;grid-row:auto}.roster-table td:last-child{justify-self:end}}
.roster-table th:nth-child(4),.roster-table td:nth-child(4){min-width:190px}.hourly-rate-input{width:140px;height:32px;border:1px solid var(--line);border-radius:4px;padding:0 8px;font:inherit;color:var(--ink)}.save-hourly-rate{height:32px;border:0;border-radius:4px;background:var(--teal);color:#fff;padding:0 12px;cursor:pointer;font-size:12px}.save-hourly-rate:disabled{opacity:.55;cursor:wait}
