.monthly-workspace{color:inherit;max-width:none;min-width:0}.monthly-workspace h2,.monthly-workspace h3{margin:0}.monthly-toolbar,.monthly-panel>header,.monthly-actions,.monthly-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.monthly-toolbar{justify-content:space-between;margin-bottom:12px}.monthly-toolbar span,.monthly-muted{color:#64748b;font-size:13px}.monthly-state{display:flex;flex-wrap:wrap;gap:16px;color:#64748b;font-size:13px;margin:8px 0}.monthly-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.monthly-metrics button{display:flex;flex-direction:column;text-align:left;gap:8px;padding:16px;background:#fff;color:#223047;border:1px solid #dce3ed;border-radius:8px}.monthly-metrics strong{font-size:23px}.monthly-metrics small{color:#2563eb}.monthly-links{margin:12px 0}.monthly-panel{background:#fff;border:1px solid #dce3ed;border-radius:8px;margin:12px 0;padding:16px}.monthly-panel>header{justify-content:space-between}.monthly-workspace button{min-height:40px}.monthly-workspace input{min-height:40px}.monthly-workspace summary{cursor:pointer;padding:10px 0;list-style:revert}.monthly-issue{border-top:1px solid #e2e8f0}.monthly-issue summary{display:flex;justify-content:space-between;gap:12px}.monthly-issue p{margin:8px 0}.monthly-table-wrap{overflow-x:auto;max-width:100%}.monthly-table-wrap table{width:100%;border-collapse:collapse;font-size:13px}.monthly-table-wrap th,.monthly-table-wrap td{padding:10px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top}.monthly-workspace [role=alert]:empty{display:none}.monthly-workspace [role=alert]{color:#b42318}.monthly-workspace button:focus-visible,.monthly-workspace summary:focus-visible{outline:2px solid #2563eb;outline-offset:2px}@media(max-width:760px){.monthly-metrics{grid-template-columns:1fr}.monthly-panel{padding:12px}.monthly-toolbar{align-items:flex-start}.monthly-workspace button{min-height:44px}}@media(prefers-color-scheme:dark){[data-theme=dark] .monthly-panel,[data-theme=dark] .monthly-metrics button{background:#172033;color:#e2e8f0}}

.shell:has(.monthly-workspace) .period-control{display:none}

.monthly-workspace .monthly-metrics button{align-items:flex-start;text-align:left}.monthly-workspace [data-metric-detail]:not(:empty){padding:12px 0;border-bottom:1px solid #dce3ed}

/* Share the existing blue/neutral controls across the legacy and new shells. */
.monthly-workspace h2{font-size:20px;line-height:1.4}.monthly-workspace h3{font-size:16px;line-height:1.5}
.monthly-workspace button{font:inherit;line-height:1.4;padding:8px 12px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:#223047;cursor:pointer;box-shadow:none}
.monthly-workspace button:hover:not(:disabled){border-color:#94a3b8;background:#f8fafc}.monthly-workspace button:disabled{cursor:wait;opacity:.65}
.monthly-workspace [data-action=refresh]{background:#2563eb;border-color:#2563eb;color:#fff}.monthly-workspace [data-action=refresh]:hover:not(:disabled){background:#1d4ed8;color:#fff}
.monthly-workspace input{font:inherit;max-width:100%;border:1px solid #dce3ed;border-radius:8px;padding:8px 10px;background:#fff;color:#223047;box-sizing:border-box}
.monthly-workspace .monthly-metrics button{padding:16px}.monthly-workspace .monthly-metrics strong{font-size:23px}.monthly-workspace .monthly-toolbar label{display:flex;align-items:center;gap:8px;margin:0}
#mainContent:has(.monthly-workspace)>.topbar .topbar-search{display:none!important}
@media(max-width:760px){.monthly-workspace .monthly-panel>header label{display:flex;align-items:center;gap:8px;min-width:0}.monthly-workspace .monthly-panel>header input{width:100%;min-width:0}.monthly-workspace .monthly-toolbar{gap:12px}.monthly-workspace .monthly-actions{gap:8px}}

.monthly-workspace .monthly-review{padding:12px 16px}
.monthly-review-title,.monthly-review-voucher{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.monthly-review .monthly-muted{margin:4px 0;line-height:1.5}
.monthly-review-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:4px 12px;align-items:start}
.monthly-review-tools>details[open]{grid-column:1/-1}
.monthly-review-tools>button,.monthly-review-tools summary{font:inherit;min-height:44px;text-align:left;box-sizing:border-box}
.monthly-review-tools summary{padding:10px 0}
.monthly-review-rows{list-style:none;padding:0;margin:0 0 8px;max-height:22rem;overflow:auto}
.monthly-review-rows li{padding:8px 2px;border-top:1px solid #dce3ed;overflow-wrap:anywhere;line-height:1.5}
.monthly-review-rows .monthly-review-voucher{justify-content:space-between}
.monthly-review-rows p{margin:4px 0}
