/* A compact ledger: the weekly pair is the primary reading axis. */
.weekly-ledger{--week-ink:#193c48;--week-blue:#087f85;--week-line:#dce6ec;--week-paper:#fff;--week-wash:#f5f8fa;color:var(--week-ink)}
.weekly-topline,.weekly-controls,.weekly-footer,.weekly-assistant>header,.weekly-ai-result>header,.weekly-draft-heading,.weekly-batch-footer,.weekly-compare>header{display:flex;justify-content:space-between;align-items:center;gap:16px}
.weekly-topline{margin-bottom:22px}.weekly-topline h2{font-size:28px;letter-spacing:-.6px;margin:5px 0}.weekly-topline small,.weekly-ledger small{color:#6b8190;font-size:12px;line-height:1.6}.weekly-ledger .actions{flex-wrap:wrap}.weekly-controls{padding:12px 0;border-top:1px solid var(--week-line);flex-wrap:wrap}.weekly-controls input{width:145px;min-width:0;padding:7px 10px;border:1px solid var(--week-line);border-radius:8px;background:white;font:inherit}
.weekly-filters{margin-bottom:16px;font-size:13px}.weekly-filters>summary{cursor:pointer;padding:8px 0}.weekly-filters>summary span{margin-left:10px;color:#6b8190}.weekly-filters .planning-toolbar{margin-top:10px;padding:15px;background:white;border:1px solid var(--week-line);border-radius:10px}.weekly-ledger label{display:grid;gap:7px;font-size:13px}.weekly-ledger select,.weekly-ledger textarea,.weekly-ledger input:not([type=checkbox]){max-width:100%;box-sizing:border-box}.weekly-ledger textarea{resize:vertical}.weekly-caution{font-size:12px;color:#8b6324;line-height:1.65;margin:10px 0}.weekly-table-wrap{overflow:auto;padding:0!important;border-radius:12px}.weekly-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.weekly-table th{background:#eef4f7;text-align:left;font-weight:650;color:var(--week-ink);padding:17px 18px;border-bottom:1px solid #cddde5}.weekly-table th:nth-child(1){width:24%}.weekly-table th:nth-child(2){width:30%;border-top:3px solid #aac6d6}.weekly-table th:nth-child(3){width:30%;border-top:3px solid var(--week-blue)}.weekly-table th:nth-child(4){width:16%}.weekly-table th small{display:block;font-weight:400;margin-top:3px}.weekly-table td{padding:17px 18px;vertical-align:top;border-bottom:1px solid var(--week-line);overflow-wrap:anywhere}.weekly-table tr:last-child td{border-bottom:0}.weekly-table tbody tr:hover{background:#f9fbfc}.weekly-table td+td{border-left:1px solid #edf1f4}.weekly-table td>small{display:block;margin-bottom:6px}.weekly-table .business-link{font-size:13px;text-align:left;line-height:1.6;white-space:normal}.weekly-table td:first-child>.business-link{font-weight:650;font-size:14px}.weekly-cell-item+.weekly-cell-item{margin-top:13px;padding-top:10px;border-top:1px dashed var(--week-line)}.weekly-cell-item p{margin:0 0 4px;white-space:pre-wrap;line-height:1.75}.weekly-cell-item small{display:block}.weekly-table summary{cursor:pointer;color:var(--week-blue);line-height:1.6}.weekly-table details[open] summary{margin-bottom:10px}.weekly-muted{font-size:12px;color:#96a6b0}.weekly-row-actions{display:flex;gap:12px;margin-top:12px}.weekly-row-actions button,.weekly-delete,.weekly-source-links button{padding:0;border:0;background:none;color:var(--week-blue);cursor:pointer;font:inherit;font-size:12px}.weekly-delete{color:#ab6060;margin-top:4px}.weekly-footer{padding:18px 0;align-items:flex-start}.weekly-footer>details{max-width:340px;min-width:170px}.weekly-footer summary{font-size:13px;cursor:pointer;text-align:right}.weekly-footer details[open] label{margin:14px 0}.weekly-footer details[open] textarea{width:100%}
.weekly-compare{padding:22px}.weekly-compare h3{margin:0}.weekly-comparison-row{display:grid;grid-template-columns:1fr 1fr;gap:24px;border-top:1px solid var(--week-line);padding:18px 0}.weekly-comparison-row small{display:block;margin-top:5px}.weekly-comparison-row .business-link{display:block;font-size:14px;margin:5px 0}.weekly-comparison-row p{line-height:1.7;font-size:13px}
.weekly-assistant{padding:26px;margin-top:16px;border-top:3px solid var(--week-blue)!important}.weekly-assistant h3{margin:5px 0}.weekly-assistant .icon-button{flex-shrink:0}.weekly-ai-controls{display:grid;gap:12px;margin-top:20px}.weekly-ai-controls>select{width:200px}.weekly-ai-controls textarea,.weekly-draft textarea,.weekly-draft input,.weekly-draft select,.weekly-ai-controls select{background:#fff;border:1px solid #cddde5;border-radius:8px;padding:10px 12px;font:inherit;line-height:1.6;width:100%;color:var(--week-ink)}.weekly-ai-controls textarea:focus,.weekly-draft textarea:focus,.weekly-draft input:focus,.weekly-draft select:focus{outline:2px solid #95cdd0;outline-offset:1px}.weekly-ai-controls textarea{background:var(--week-wash);font-size:14px}.weekly-draft{padding:20px;margin-top:18px;border:1px solid var(--week-line);border-radius:10px}.weekly-draft.excluded{background:var(--week-wash)}.weekly-draft .check-label{display:flex;align-items:center;gap:8px}.weekly-draft input[type=checkbox]{width:auto}.weekly-draft-fields{display:grid;grid-template-columns:2fr 1fr 1.5fr;gap:14px;margin:14px 0}.weekly-draft>label{margin:12px 0}.weekly-draft-heading{font-size:13px}.weekly-evidence{margin-top:10px;font-size:12px;color:#6b8190}.weekly-evidence p{white-space:pre-wrap}.weekly-evidence summary{cursor:pointer}.weekly-batch-footer{margin-top:22px;padding-top:18px;border-top:1px solid var(--week-line);font-size:13px;flex-wrap:wrap}.weekly-ai-result{margin-top:22px;padding:20px;background:#f0f7f8;border-radius:10px;font-size:14px}.weekly-ai-result article{border-top:1px solid #d9e7e9;margin-top:15px;padding-top:8px}.weekly-ai-result p{white-space:pre-wrap;line-height:1.8}.weekly-source-links{display:flex;flex-wrap:wrap;gap:8px 16px;color:#5c7581;font-size:12px}.weekly-source-links button{text-decoration:underline;text-underline-offset:3px}.weekly-history{width:min(940px,calc(100vw - 32px));max-width:940px}.weekly-history h2{font-size:22px}.weekly-history .form-body{max-height:70vh;overflow:auto}.weekly-history article{padding:18px 0;border-bottom:1px solid var(--week-line)}.weekly-history article header{display:flex;align-items:baseline;justify-content:space-between;padding:0;gap:12px;border:0}.weekly-history h3{font-size:15px;margin:0 0 12px}.weekly-history-columns{display:grid;grid-template-columns:1fr 1fr;gap:26px;font-size:13px}.weekly-history-columns p{white-space:pre-wrap;line-height:1.7}.weekly-history .form-body>button{margin-top:20px}
@media(max-width:800px){.weekly-topline{align-items:flex-start;flex-direction:column}.weekly-topline h2{font-size:24px}.weekly-topline .btn{padding:9px 12px;font-size:12px}.weekly-table{min-width:830px}.weekly-footer{flex-direction:column;gap:18px}.weekly-footer summary{text-align:left}.weekly-assistant{padding:17px}.weekly-draft{padding:14px}.weekly-draft-fields{grid-template-columns:1fr}.weekly-controls .btn{padding:7px 9px}.weekly-controls input{width:135px}.weekly-filters>summary span{display:block;margin:6px 0}.weekly-comparison-row{grid-template-columns:1fr;gap:10px}.weekly-history-columns{grid-template-columns:1fr;gap:18px}.weekly-batch-footer .actions{width:100%}.weekly-batch-footer .btn{flex:1;font-size:12px}.weekly-ai-result{padding:14px}}
@media print{@page{size:A4 landscape;margin:12mm}.sidebar,.topbar,.account-header,.workspace-bar,.preview-banner,.weekly-controls,.weekly-filters,.weekly-footer,.weekly-assistant,.weekly-row-actions,.weekly-delete,.weekly-topline>.actions,.toast,.weekly-ledger .help-hint{display:none!important}body{background:#fff!important}.app-shell,.app-layout,main,.main-content{display:block!important;margin:0!important;padding:0!important;width:100%!important}.weekly-table-wrap{overflow:visible;border:0!important}.weekly-table{min-width:0;font-size:10px}.weekly-table td,.weekly-table th{padding:9px}.weekly-table th{background:#edf2f5!important;print-color-adjust:exact}.weekly-table tr{break-inside:avoid}.weekly-topline h2{font-size:20px}.weekly-table details:not([open])>*:not(summary){display:block!important}.weekly-table thead{display:table-header-group}}

.weekly-table{white-space:normal}.weekly-table small{font-family:var(--font)}.income-batch-entry{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:12px}.income-batch-dialog{width:760px}.income-batch-row{margin-top:18px;padding-top:18px;border-top:1px solid #dce6ec}.income-batch-row small{font-size:12px;color:#5c7581}@media print{.workspace{margin-left:0!important}.content{padding:0!important}.workspace-status,.page-footer{display:none!important}}

.weekly-edit-fields{border:0;padding:0;margin:0;min-width:0}.weekly-edit-fields:disabled .weekly-draft{opacity:.65}

.income-batch-dialog[open]{display:flex;flex-direction:column}.income-batch-dialog .form-body{min-height:0;overflow:auto;flex:1}.income-batch-dialog footer{flex-wrap:wrap}
.weekly-board .weekly-topline small,.weekly-board .weekly-filters summary span,.weekly-board .weekly-table small,.weekly-board .weekly-muted{color:#556b78}
@media screen and (max-width:760px){
 .weekly-ledger .weekly-table-wrap{overflow:visible}.weekly-ledger .weekly-table{min-width:0;width:100%;border-spacing:0;table-layout:fixed}.weekly-ledger .weekly-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.weekly-ledger .weekly-table tbody{display:block}.weekly-ledger .weekly-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid #dce6ec}.weekly-ledger .weekly-table td{display:block;width:auto;min-width:0;border:0;padding:12px;overflow-wrap:anywhere}.weekly-ledger .weekly-table td:first-child{grid-column:1/-1;background:#eef4f7}.weekly-ledger .weekly-table td:nth-child(2){border-right:1px solid #dce6ec}.weekly-ledger .weekly-table td:nth-child(4){grid-column:1/-1;border-top:1px solid #edf1f4}.weekly-ledger .weekly-table td:nth-child(2)::before,.weekly-ledger .weekly-table td:nth-child(3)::before,.weekly-ledger .weekly-table td:nth-child(4)::before{display:block;font-size:12px;font-weight:650;color:#294c5c;margin-bottom:10px}.weekly-ledger .weekly-table td:nth-child(2)::before{content:'本周完成情况'}.weekly-ledger .weekly-table td:nth-child(3)::before{content:'下周计划'}.weekly-ledger .weekly-table td:nth-child(4)::before{content:'需协调'}.weekly-ledger .weekly-table td .business-link{white-space:normal;overflow-wrap:anywhere}.weekly-ledger .weekly-cell-item{padding-bottom:8px}.weekly-ledger .weekly-cell-item p{font-size:12px}.weekly-ledger .weekly-row-actions{margin-top:5px}
}
.weekly-board .weekly-row-actions button{color:#08686e}

/* Weekly reporting state is separate from task completion and due-date urgency. */
.weekly-update-badge{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 7px;border:1px solid transparent;border-radius:6px;font-size:11px;font-weight:500;line-height:1.5;white-space:normal}
.weekly-update-badge::before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}
.weekly-update-badge[data-weekly-state="pending"]{background:#fff8e8;color:#806015;border-color:#f3e4b6}
.weekly-update-badge[data-weekly-state="overdue"]{background:#fff0ea;color:#a13c20;border-color:#f2cbbf}
.weekly-update-badge[data-weekly-state="updated"]{background:#edf7f0;color:#24633d;border-color:#cfe5d5}
.weekly-table td>.weekly-update-badge{margin-bottom:10px}
