/* Scoped presentation; existing sidebar, login and routes remain in place. */
.executive-dashboard-active .topbar{min-height:64px;padding-top:10px;padding-bottom:10px}.executive-dashboard-active .page-sub,.executive-dashboard-active .topbar-context{display:none}.executive-dashboard-active .content{padding-top:18px;background:#f5f7fa}.executive-dashboard-active .quick-action-fab{position:static;width:34px;height:34px;box-shadow:none;margin-left:8px}.executive-dashboard{max-width:1600px;margin:0 auto;color:#172b44}.exec-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.exec-intro p{margin:0;font-size:15px;font-weight:600}.exec-intro p span{font-weight:400;color:#64748b;margin-left:12px}.executive-dashboard button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;border:1px solid #dbe2ea;border-radius:8px;padding:9px 14px;cursor:pointer;color:#243e5b;font:inherit}.executive-dashboard svg,.exec-system-status svg{width:18px;height:18px;flex-shrink:0}.exec-filters{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end;padding:16px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.exec-filters label{display:grid;gap:6px;font-size:12px;color:#64748b}.exec-filters input,.exec-filters select{width:100%;min-width:0;background:#fff;border:1px solid #dbe2ea;border-radius:7px;padding:9px;font:inherit;color:#172b44}.exec-source{font-size:11px;color:#64748b;margin:10px 0 18px;line-height:1.6}.exec-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.exec-kpi{position:relative;padding:18px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;min-width:0;box-shadow:none}.exec-kpi-label{display:flex;align-items:center;gap:8px;font-size:13px;color:#53677d;margin-bottom:10px}.exec-kpi strong{display:block;font-size:28px;letter-spacing:-.7px;line-height:1.35}.exec-kpi strong small{font-size:13px;font-weight:400;letter-spacing:0}.exec-kpi .exec-value-empty{font-size:20px;color:#8291a3;letter-spacing:0}.exec-kpi-context{font-size:11px;color:#7a889b;margin-top:6px}.exec-change{font-size:11px;margin-top:9px;color:#64748b}.exec-change.positive{color:#187451}.executive-dashboard svg.exec-spark{width:75px;height:20px;color:#7593b1;position:absolute;right:18px;bottom:16px}.exec-analysis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.exec-panel{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;min-width:0}.exec-panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:18px;flex-wrap:wrap}.exec-panel h2{font-size:15px;font-weight:600;margin:0}.exec-panel h3{font-size:12px;color:#64748b;margin:12px 0}.exec-panel-head>span,.exec-caption{font-size:11px;color:#8291a3}.exec-empty{display:flex;align-items:center;justify-content:center;min-height:130px;color:#8b98a9;font-size:13px;text-align:center}.exec-bars{display:grid;gap:12px}.exec-bar-row{display:grid;grid-template-columns:minmax(80px,1fr) 2fr minmax(65px,auto);align-items:center;gap:10px;font-size:12px}.exec-bar-row>span{overflow-wrap:anywhere}.exec-bar-row b{font-size:11px;text-align:right;font-weight:500}.exec-bar-track{height:7px;background:#f0f3f7;border-radius:4px;overflow:hidden}.exec-bar-track span{display:block;background:#42658b;height:100%;border-radius:4px}.exec-trend{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;min-height:190px}.exec-trend>div{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0}.exec-trend b{font-size:10px;font-weight:500;overflow-wrap:anywhere}.exec-trend small{font-size:11px;color:#64748b}.exec-column-track{height:140px;width:26px;display:flex;align-items:end}.exec-column-track span{display:block;width:100%;background:#42658b;border-radius:4px 4px 0 0}.exec-work{margin-top:18px}.exec-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.exec-task{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #e7ecf2;border-radius:8px;color:#314d6c;text-decoration:none;font-size:12px}.exec-task:hover{background:#f5f8fc}.exec-task>span{display:flex;align-items:center;gap:9px;flex:1}.exec-task b{font-size:12px;font-weight:500;white-space:nowrap}.exec-task>svg{width:15px}.exec-notes{font-size:12px;color:#64748b;margin:20px 0;line-height:1.9}.exec-error{padding:16px;border:1px solid #fecaca;background:#fff7f7;border-radius:10px;color:#a12929;margin-bottom:15px}.exec-loading{color:#8291a3;min-height:150px;background:#f8fafc}.exec-system-status{position:relative;font-size:12px;color:#64748b}.exec-system-status summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;padding:8px}.exec-system-content{position:absolute;right:0;top:100%;width:min(340px,85vw);background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px;z-index:1000;box-shadow:0 4px 12px #172b4412}.exec-system-content p{font-size:12px}.exec-system-content #v31-secure-bar{display:flex;flex-wrap:wrap;border:0;padding:0;margin:0;background:transparent;gap:8px}.exec-system-content #v31-secure-bar button{margin-left:0!important}.executive-dashboard-active .v31-secure-bar{margin:0}
@media(min-width:1500px){.exec-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.exec-kpi strong{font-size:25px}}
@media(max-width:1050px){.exec-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.exec-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.exec-trend{gap:8px}.exec-panel{padding:16px}}
@media(max-width:640px){.exec-intro p span{display:none}.exec-filters{grid-template-columns:1fr 1fr;padding:12px;gap:8px}.exec-filters label:first-child{grid-column:1/-1}.exec-filters>button{grid-column:1/-1}.exec-analysis,.exec-tasks{grid-template-columns:1fr}.exec-kpis{gap:8px}.exec-kpi{padding:12px}.exec-kpi strong{font-size:21px}.exec-kpi .exec-value-empty{font-size:15px}.exec-kpi-label{font-size:11px}.exec-kpi-context,.exec-change{font-size:10px}.executive-dashboard svg.exec-spark{display:none}.exec-source{font-size:10px}.exec-system-status summary{font-size:0}.exec-system-status summary svg{width:19px}.executive-dashboard-active .content{padding:12px}.exec-panel-head{gap:6px}.exec-bar-row{grid-template-columns:minmax(65px,1fr) 1fr minmax(65px,auto)}}
#exec-system-status #v31-pwa-prompt{position:static;transform:none;width:auto;max-width:100%;margin-top:12px;box-shadow:none;padding:10px;font-size:11px}
/* Motion is finite, scoped, and disabled for reduced-motion preferences. */
.exec-enter{animation:exec-enter 420ms ease-out backwards;animation-delay:calc(var(--exec-index,0)*55ms)}
@keyframes exec-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.exec-kpi{transition:transform 180ms ease,box-shadow 180ms ease}
@media(hover:hover) and (pointer:fine){.exec-kpi:not(.exec-skeleton):hover{transform:translateY(-4px);box-shadow:0 8px 22px #172b4410}}
.exec-bar-track>span{transform-origin:left;animation:exec-bar 600ms ease-out backwards}.exec-column-track>span{transform-origin:bottom;animation:exec-column 600ms ease-out backwards}
@keyframes exec-bar{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes exec-column{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.exec-spark polyline{stroke-dasharray:1;animation:exec-line 600ms ease-out backwards}@keyframes exec-line{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.exec-chart-point{position:relative;border-radius:4px}.exec-tooltip{position:absolute;bottom:100%;left:0;z-index:3;width:max-content;max-width:100%;background:#172b44;color:white;font-size:11px;padding:6px 8px;border-radius:6px;pointer-events:none;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity 160ms ease,transform 160ms ease,visibility 160ms;overflow-wrap:anywhere}
.exec-chart-point:hover>.exec-tooltip,.exec-chart-point:focus-visible>.exec-tooltip{opacity:1;visibility:visible;transform:translateY(0)}
.exec-filters input,.exec-filters select,.executive-dashboard button,.exec-task{transition:border-color 180ms ease,box-shadow 180ms ease,background-color 180ms ease}
.exec-filters select:focus{border-color:#42658b;box-shadow:0 0 0 3px #42658b16}
.executive-dashboard :is(button,input,select,a,summary,.exec-chart-point):focus-visible,.exec-system-status summary:focus-visible{outline:2px solid #386caa;outline-offset:3px}
.exec-system-status[open] .exec-system-content{animation:exec-pop 160ms ease-out}@keyframes exec-pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
#exec-refresh.is-loading svg{animation:exec-spin 800ms linear infinite}@keyframes exec-spin{to{transform:rotate(360deg)}}
.exec-skeleton>span{display:block;height:12px;width:70%;border-radius:5px;background:#e9eef4;margin:12px 0}.exec-skeleton>span:nth-child(2){height:30px;width:55%}.exec-skeleton>span:last-child{width:85%}.exec-chart-skeleton{min-height:235px}.exec-chart-skeleton>span:nth-child(2){height:145px;width:100%}
.exec-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.executive-dashboard-active .sidebar .menu-group-body{display:block;max-height:0;overflow:hidden;opacity:0;transform:translateY(-4px);visibility:hidden;padding-top:0;padding-bottom:0;transition:max-height 200ms ease,opacity 200ms ease,transform 200ms ease,visibility 200ms,padding 200ms ease}
.executive-dashboard-active .sidebar .menu-group.open .menu-group-body{max-height:calc(var(--exec-menu-height,600px) + 15px);opacity:1;transform:translateY(0);visibility:visible;padding-top:5px;padding-bottom:10px}
.executive-dashboard-active .sidebar .nav-item{position:relative;transition:background-color 200ms ease,color 200ms ease}.executive-dashboard-active .sidebar .nav-item:hover{background:#ffffff12}.executive-dashboard-active .sidebar .nav-item::before{content:'';position:absolute;left:0;top:9px;bottom:9px;width:3px;background:#8bb9ed;border-radius:3px;opacity:0;transform:scaleY(.5);transition:opacity 200ms,transform 200ms}.executive-dashboard-active .sidebar .nav-item.active::before{opacity:1;transform:scaleY(1)}
.executive-dashboard-active .sidebar :is(button,a):focus-visible{outline:2px solid #a9cafa;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.executive-dashboard *,.exec-system-status *,.executive-dashboard-active .sidebar *{animation:none!important;transition:none!important}.exec-kpi:hover{transform:none!important}}
.exec-tooltip{max-width:min(220px,70vw)}.exec-trend .exec-tooltip{left:50%;transform:translate(-50%,4px)}.exec-trend .exec-chart-point:hover>.exec-tooltip,.exec-trend .exec-chart-point:focus-visible>.exec-tooltip{transform:translate(-50%,0)}

/* Readability and space adjustments scoped to the executive dashboard. */
.executive-dashboard{width:100%;min-width:0;overflow-wrap:anywhere}
.exec-filters label{font-size:13px;color:#475569}
.exec-date-readable{display:block;min-height:1.25em;color:#334155;font-size:13px;font-weight:600}
.exec-filters label:first-child{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:8px}
.exec-filters label:first-child .exec-filter-label{grid-column:1;grid-row:1}
.exec-filters label:first-child .exec-date-readable{grid-column:2;grid-row:1;min-height:0;white-space:nowrap}
.exec-filters label:first-child #exec-date{grid-column:1/-1;grid-row:2}
.exec-filters input,.exec-filters select,.exec-filters>button{height:38px;box-sizing:border-box}
.exec-source{font-size:13px;color:#536477;margin:9px 0 14px;overflow-wrap:anywhere}
.exec-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.exec-kpi-label{font-size:14px;color:#40546a}
.exec-kpi strong{font-size:30px;letter-spacing:-.4px}
.exec-kpi .exec-value-empty{font-size:15px;color:#596a7e;letter-spacing:0}
.exec-kpi-context{font-size:13px;color:#536477;line-height:1.5}
.exec-change{font-size:12px;color:#536477;line-height:1.45}
.exec-panel-head>span,.exec-caption{font-size:13px;color:#536477}
.exec-empty{min-height:110px;color:#536477;font-size:14px}
.exec-error{font-size:14px;line-height:1.5}
.exec-trend-panel{min-height:300px}
.exec-trend{min-height:210px;align-items:stretch;gap:10px}
.exec-trend>div{display:grid;grid-template-rows:minmax(18px,auto) 1fr 20px;gap:7px;align-items:end}
.exec-trend b{font-size:12px;min-height:18px;text-align:center}
.exec-column-track{height:160px;width:34px;max-width:100%;justify-self:center}
.exec-trend small{font-size:12px;white-space:nowrap}
@media(min-width:1800px){.exec-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1050px) and (min-width:641px){.exec-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.exec-kpis{grid-template-columns:minmax(0,1fr)}.exec-kpi{padding:16px}.exec-kpi-label{font-size:14px}.exec-kpi strong{font-size:28px}.exec-kpi .exec-value-empty{font-size:15px}.exec-kpi-context{font-size:13px}.exec-change{font-size:12px}.exec-source{font-size:12px}.exec-trend-panel{min-height:0}.exec-trend{min-height:185px;gap:4px}.exec-trend>div{gap:5px}.exec-column-track{height:130px;width:28px}.exec-trend small{font-size:11px}.exec-filters input,.exec-filters select{font-size:14px}}
@media(max-width:640px){.exec-trend .exec-chart-point:first-child>.exec-tooltip{left:0;transform:translateY(4px)}.exec-trend .exec-chart-point:last-child>.exec-tooltip{left:auto;right:0;transform:translateY(4px)}.exec-trend .exec-chart-point:first-child:hover>.exec-tooltip,.exec-trend .exec-chart-point:first-child:focus-visible>.exec-tooltip,.exec-trend .exec-chart-point:last-child:hover>.exec-tooltip,.exec-trend .exec-chart-point:last-child:focus-visible>.exec-tooltip{transform:translateY(0)}}
