/* Presentation only. All statistics reuse the existing scoped API and evidence actions. */
/* Route-specific presentation belongs to content, never the shared sidebar. */
body:has(.management-dashboard){background:#f4f6fb}
body:has(.management-dashboard) #content{--accent:#4261ed;--accent-soft:#edf1ff;background:#f4f6fb}
.management-dashboard{max-width:1600px;margin:auto;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr);grid-template-areas:'heading heading' 'stats stats' 'priority blockers' 'priority managers' 'effects effects' 'overview overview' 'tools binding' 'hierarchy hierarchy' 'connector connector';gap:16px;align-items:start;color:#253149;font-size:15px}
.management-dashboard>.management-focus-heading{grid-area:heading;margin:0 0 3px}.management-dashboard .management-focus-heading h2{font-size:24px;letter-spacing:0;margin-bottom:6px}.management-dashboard .management-focus-heading p{font-size:14px;margin:0;line-height:1.8}
.management-dashboard>#management-today-priority{grid-area:priority}.management-dashboard>.management-panel:has(#manager-intervention-list){grid-area:managers}.management-dashboard>#management-connector-status{grid-area:connector}.management-dashboard .management-focus-layout,.management-dashboard .management-focus-main,.management-dashboard .management-focus-aside,.management-dashboard .management-result-checks{display:contents}
.management-dashboard #management-result-checks>.management-panel:first-child{grid-area:blockers}.management-dashboard #management-result-checks>.management-panel:last-child{grid-area:effects}.management-dashboard .management-focus-aside>.management-board-tabs{grid-area:overview;margin:0}.management-dashboard #management-hierarchy-alert{grid-area:hierarchy}.management-dashboard .management-focus-aside>.management-focus-tools:first-of-type{grid-area:tools;margin:0}.management-dashboard .management-focus-aside>.management-focus-tools:last-of-type{grid-area:binding;margin:0}
.management-dashboard .management-panel{border:1px solid #e7ecf6;border-radius:15px;box-shadow:0 2px 5px #25346603;background:#fff}.management-dashboard .management-panel-header{padding:18px 18px 12px;gap:14px;min-height:0;border-bottom:0;align-items:start}.management-dashboard .management-panel-header h3{font-size:16px;margin:0 0 5px;font-weight:600;color:#253149}.management-dashboard .management-panel-header p,.management-dashboard .management-panel-header small{font-size:12px;line-height:1.8;color:#8c99b1}.management-dashboard .management-panel-header>button{font-size:12px;padding:7px 10px;background:#edf1ff;color:#4261ed;border-radius:8px}
.management-dashboard .management-action-list{padding:8px 16px 18px!important;gap:12px!important;display:block}.management-dashboard .summary-group-head{background:transparent;border:0;padding:3px 2px 7px;margin:0 0 9px;min-height:0;gap:10px}.management-dashboard .summary-group-head h4{font-size:13px;color:#7887a2}.management-dashboard .summary-group-head select{max-width:180px;min-height:32px;font-size:12px;background:#fff}.management-dashboard .summary-group-head h4 span{font-size:11px;padding:2px 7px;background:#f0f3fb}.management-dashboard .summary-project{border:0;margin:0 0 12px;background:none}.management-dashboard .summary-project h5{padding:6px 2px 9px;font-size:13px;font-weight:500;border:0;background:none;color:#7887a2}.management-dashboard .summary-project h5 span{font-size:11px}.management-dashboard .summary-project [data-summary-owner]+[data-summary-owner]{border:0;margin-top:9px}.management-dashboard .summary-card-list{max-height:620px;padding-right:5px;overflow:auto}.management-dashboard .management-result-checks .management-summary-group{margin:8px 18px 16px}
.management-dashboard .management-summary-group .management-action-row{position:relative;display:flex!important;flex-direction:row;align-items:center!important;gap:12px;padding:14px 15px!important;border:1px solid #e1e7f5!important;border-left:3px solid #bfcdf3!important;border-radius:11px;background:white!important;box-shadow:none;text-align:left}.management-dashboard .management-summary-group .management-action-row.danger{border-left-color:#f34359!important}.management-dashboard .management-summary-group .management-action-row.warning{border-left-color:#f2aa23!important}.management-dashboard .management-summary-group .management-action-row:hover{border-color:#bfcefa!important;background:#fcfdff!important}.management-dashboard .management-summary-group .management-action-main{flex:1;min-width:0}.management-dashboard .management-summary-group .management-action-main b{font-size:15px!important;font-weight:600;line-height:1.7!important;color:#29364f}.management-dashboard .management-summary-group .management-action-main small{font-size:12px!important;line-height:1.8!important;color:#8c99b1;margin:5px 0}.management-dashboard .management-summary-group .management-focus-progress{font-size:13px!important;color:#73829e;line-height:1.7!important;background:none!important;border:0;padding:0!important}.management-dashboard .management-summary-group .management-action-row>span:last-child{font-size:12px;color:#4261ed;background:#edf1ff;border-radius:18px;white-space:nowrap;align-self:center;padding:4px 8px}
.management-dashboard .manager-intervention-list{display:grid!important;grid-template-columns:1fr!important;padding:6px 18px 16px;gap:0;max-height:370px;overflow:auto}.management-dashboard .manager-intervention-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;border:0;border-bottom:1px solid #edf0f7;border-radius:0;box-shadow:none;background:white;padding:13px 0;align-items:start}.management-dashboard .manager-avatar{width:32px;height:32px;border-radius:9px;background:#edf1ff;color:#4261ed;font-size:13px}.management-dashboard .manager-intervention-main b{font-size:14px;font-weight:600;color:#29364f}.management-dashboard .manager-intervention-main small,.management-dashboard .manager-intervention-main>span{font-size:12px;line-height:1.8;color:#8a97af;margin-top:4px}.management-dashboard .manager-intervention-alert{font-size:11px;color:#bd791c;background:#fff6e5;border-radius:14px;padding:4px 8px}.management-dashboard .manager-intervention-alert small{font-size:11px;color:#8d99b1;background:white;margin-top:6px}
.management-dashboard .management-connector-status{margin:0;border:1px solid #dfe7f4;background:#f7f9ff;padding:15px 18px;border-radius:12px}.management-dashboard .management-connector-status b{font-size:16px}.management-dashboard .management-connector-status span{font-size:13px;line-height:1.8}.management-dashboard .management-connector-status.online{background:#f0faf5;border-color:#d5eddf}.management-dashboard .management-connector-status.offline{background:#fff5f6;border-color:#f1d9df}.management-dashboard .management-focus-tools{padding:18px}.management-dashboard .management-focus-tools h3{font-size:15px;color:#34415c}.management-dashboard .management-focus-tools p,.management-dashboard .management-focus-tools button{font-size:13px;line-height:1.8;color:#8190ab}.management-dashboard .management-board-tabs{border-color:#e6ebf5}.management-dashboard .management-board-tab.active{background:#edf1ff;color:#4261ed}.management-dashboard .empty-state,.management-dashboard .management-empty-success{font-size:13px;line-height:1.8;color:#94a0b7;padding:22px}
@media(max-width:1050px){.management-dashboard{grid-template-columns:1fr;grid-template-areas:'heading' 'stats' 'priority' 'blockers' 'managers' 'effects' 'overview' 'tools' 'binding' 'hierarchy' 'connector'}.management-dashboard .summary-card-list{max-height:560px}}
@media(max-width:650px){.management-dashboard .management-summary-group .management-action-row{flex-wrap:wrap;gap:7px}.management-dashboard .management-summary-group .management-action-row>span:last-child{margin-left:auto}.management-dashboard .management-panel-header{flex-wrap:wrap}.management-dashboard .manager-intervention-card{grid-template-columns:30px minmax(0,1fr)}.management-dashboard .manager-intervention-alert{grid-column:2;justify-self:start}}
/* Keep the previously agreed readable text scale. */
.management-dashboard .management-summary-group .management-action-main b{font-size:16px!important}.management-dashboard .management-summary-group .management-action-main small,.management-dashboard .management-summary-group .management-focus-progress{font-size:14px!important}.management-dashboard .management-panel-header h3{font-size:18px}.management-dashboard .management-panel-header p,.management-dashboard .management-panel-header small{font-size:14px}
/* Reference composition: four compact counters, actionable cards, and count bars. */
.management-dashboard .management-stat-cards{grid-area:stats;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.management-dashboard .management-stat-card{display:flex;flex-direction:column;gap:8px;min-width:0;text-align:left;padding:19px 20px;background:#fff;border:1px solid #e9edf6;border-radius:15px;box-shadow:0 2px 4px #25346603;cursor:pointer;font-family:inherit;color:#233047}
.management-dashboard .management-stat-card>span{font-size:14px;color:#7786a4}.management-dashboard .management-stat-card>strong{font-size:29px;line-height:1.15;font-weight:650;font-variant-numeric:tabular-nums}.management-dashboard .management-stat-card>small{font-size:12px;color:#8a98b2;line-height:1.5}.management-dashboard .management-stat-card.danger>strong{color:#df3b51}
.management-dashboard button:focus-visible{outline:3px solid #9bafff;outline-offset:3px}.management-dashboard .management-stat-card:hover{border-color:#bdcbfa;background:#fdfdff}
.management-dashboard .management-summary-group .management-focus-fact{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0 7px;font-size:14px!important;line-height:1.65;color:#7b89a4}
.management-dashboard .management-summary-group .management-task-chips{display:flex!important;align-items:center;flex-wrap:wrap;gap:5px;margin:6px 0 0;white-space:normal;overflow:visible}
.management-dashboard .management-task-chips>span{max-width:100%;padding:2px 8px!important;background:#f1f4fc!important;border:0!important;border-radius:14px;font-size:12px!important;line-height:1.6!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#72809d}
.management-dashboard .management-task-chips>span:first-child{background:#eaf0ff!important;color:#4361d9}.management-dashboard .management-task-chips>.management-focus-progress{display:block!important;max-width:100%;background:#fff5e4!important;color:#ad7823;margin:0!important;font-size:12px!important}
.management-dashboard .manager-intervention-card{display:flex;flex-direction:column;gap:6px;padding:12px 0;width:100%;font-family:inherit}
.management-dashboard .manager-bar-row{display:grid;grid-template-columns:minmax(60px,100px) minmax(40px,1fr) auto;align-items:center;gap:12px;width:100%;font-size:13px;color:#53627e}.management-dashboard .manager-bar-row>b{font-size:14px;color:#33415a;font-weight:500;overflow-wrap:anywhere}.management-dashboard .manager-bar-row>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
.management-dashboard .manager-count-track{height:5px;border-radius:8px;background:#edf0f7;overflow:hidden}.management-dashboard .manager-count-fill{display:block;height:100%;border-radius:8px;background:#4261ed}.management-dashboard .manager-count-fill.danger{background:#f34359}.management-dashboard .manager-count-fill.warning{background:#f2a322}.management-dashboard .manager-count-fill.review{background:#4261ed}
.management-dashboard .manager-intervention-main{width:100%;font-size:12px}.management-dashboard .manager-intervention-main b{font-size:12px}.management-dashboard .manager-intervention-main>span{font-size:12px;margin-top:2px}.management-dashboard .manager-intervention-main small{margin-top:2px;font-size:12px}.management-dashboard .manager-intervention-alert{align-self:flex-start;font-size:11px;display:flex;align-items:center;gap:9px}.management-dashboard .manager-intervention-alert small{margin:0;background:transparent}
.management-dashboard #management-result-checks>.management-panel:first-child .management-action-row{border:0!important;border-bottom:1px solid #edf0f7!important;border-radius:0;padding:10px 0!important;align-items:start!important}.management-dashboard #management-result-checks>.management-panel:first-child .summary-card-list{max-height:300px}.management-dashboard #management-result-checks>.management-panel:first-child .management-action-main b{font-size:14px!important}.management-dashboard #management-result-checks>.management-panel:first-child .management-action-main small,.management-dashboard #management-result-checks>.management-panel:first-child .management-focus-progress{font-size:12px!important}
@media(max-width:700px){.management-dashboard .management-stat-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.management-dashboard .management-stat-card{padding:15px}.management-dashboard .management-stat-card>strong{font-size:25px}.management-dashboard .manager-bar-row{grid-template-columns:75px minmax(35px,1fr) auto}}
.management-dashboard .manager-intervention-entry{padding:4px 0 9px;border-bottom:1px solid #edf0f7}.management-dashboard .manager-intervention-entry:last-child{border-bottom:0}.management-dashboard .manager-intervention-entry .manager-intervention-card{border:0;background:transparent;padding:8px 0 2px;gap:4px}.management-dashboard .manager-count-label{color:#8795af;font-size:11px;align-self:flex-start}.management-dashboard .manager-source-details{font-size:12px;color:#8290a8}.management-dashboard .manager-source-details>summary{font-size:12px;padding:4px 0;cursor:pointer}.management-dashboard .manager-source-details[open]{padding-bottom:9px}.management-dashboard .manager-source-details .manager-intervention-main{display:block;padding:5px 0}.management-dashboard .manager-source-details .manager-intervention-main small{white-space:normal}.management-dashboard .manager-source-details .manager-intervention-alert{border:0;cursor:pointer;font-family:inherit}
