/* Prevent the global application header from leaking into the overview section header. */
.executive-overview-head{
  position:static;
  z-index:auto;
  height:auto;
  min-height:0;
  padding:0 0 8px;
  border:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}

.executive-overview-head h1{
  font-size:32px;
  line-height:1.2;
}

.executive-overview-head .btn{
  padding:10px 15px;
}

/* Keep the headline metrics together: the total is the focus, staff figures remain context. */
.executive-hero{
  align-items:center;
  min-height:126px;
  padding:22px 26px;
  border:1px solid #dce8e1;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 26px rgba(27,69,53,.04);
}

.executive-total strong{font-size:46px;}
.executive-total em{margin-bottom:6px;}
.executive-stats{align-self:stretch;}
.executive-stats span{display:flex;align-items:center;padding:0 15px;}
.executive-stats b{font-size:18px;}

@media (max-width:980px){
  .executive-hero{align-items:flex-start;flex-direction:column;gap:16px;}
  .executive-stats{justify-content:flex-start;align-self:auto;flex-wrap:wrap;}
  .executive-stats span:first-child{padding-left:0;}
}

@media (max-width:620px){
  .executive-overview-head{align-items:flex-start;flex-direction:column;}
  .executive-hero{padding:18px;}
  .executive-total{grid-template-columns:1fr;gap:7px;}
  .executive-total strong{font-size:38px;}
  .executive-total em{margin:0;padding-left:0;border-left:0;}
  .executive-stats span{padding:0 10px 0 0;margin-right:10px;border-left:0;}
}

/* Main overview: a real two-column working area, not a full-width chart with split content. */
@media (min-width:981px){
  .executive-overview{
    grid-template-columns:minmax(360px,.9fr) minmax(580px,1.1fr);
    grid-template-rows:auto auto minmax(300px,auto) auto;
    align-items:stretch;
  }

  .executive-overview-head{grid-column:1 / -1;grid-row:1;}
  .executive-hero,
  .executive-support-grid{display:contents;}

  .executive-total{
    grid-column:1;
    grid-row:2;
    min-height:126px;
    padding:22px 26px;
    border:1px solid #dce8e1;
    border-radius:14px;
    background:#fff;
    box-shadow:0 10px 26px rgba(27,69,53,.04);
  }

  .executive-stats{
    grid-column:2;
    grid-row:2;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    min-height:126px;
    padding:22px 14px;
    border:1px solid #dce8e1;
    border-radius:14px;
    background:#fff;
    box-shadow:0 10px 26px rgba(27,69,53,.04);
  }

  .executive-stats span{justify-content:center;padding:0 12px;}
  .executive-trend{grid-column:2;grid-row:3;min-height:300px;}
  .executive-reasons{grid-column:1;grid-row:3;}
  .executive-departments{grid-column:1;grid-row:4;}
  .executive-flow{grid-column:2;grid-row:4;}
}

@media (max-width:980px){
  .executive-total,
  .executive-stats,
  .executive-trend,
  .executive-reasons,
  .executive-departments,
  .executive-flow{grid-column:auto;grid-row:auto;}
}

/* Desktop overview: three equal working columns.
   Left = payroll impact, middle = organization/workforce, right = status/trend. */
@media (min-width:981px){
  .executive-overview{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:auto minmax(172px,auto) minmax(268px,auto);
  }

  .executive-total{grid-column:1;grid-row:2;}
  .executive-departments{grid-column:2;grid-row:2;min-height:0;}
  .executive-stats{grid-column:3;grid-row:2;}

  .executive-reasons{grid-column:1;grid-row:3;min-height:0;}
  .executive-flow{grid-column:2;grid-row:3;min-height:0;}
  .executive-trend{grid-column:3;grid-row:3;min-height:0;}

  .executive-trend-chart{height:224px;}
  .executive-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 0;align-content:center;}
  .executive-stats span:nth-child(3){border-left:0;}
  .executive-flow-numbers{margin:28px 0 16px;}
}

/* Department makeup is supporting context: keep it independently at the lower left. */
@media (min-width:981px){
  .executive-overview{
    grid-template-rows:auto minmax(172px,auto) minmax(268px,auto) auto;
  }

  .executive-total{grid-column:1;grid-row:2;}
  .executive-stats{grid-column:2;grid-row:2;}
  .executive-reasons{grid-column:1;grid-row:3;}
  .executive-flow{grid-column:2;grid-row:3;}

  .executive-trend{
    grid-column:3;
    grid-row:2 / span 2;
    min-height:0;
  }

  .executive-trend-chart{height:368px;}
  .executive-departments{
    grid-column:1;
    grid-row:4;
    min-height:192px;
    align-self:start;
  }
}

/* Final dashboard composition: a three-column workbench.
   Department makeup is supporting context at lower left; the middle card combines
   salary change reasons with workforce movement; trend remains a calm full-height panel. */
.executive-workforce{display:flex;flex-direction:column;}
.executive-workforce-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 0;}
.executive-workforce-stats span{display:flex;align-items:baseline;justify-content:center;gap:5px;padding:0 14px;color:#496158;font-size:14px;}
.executive-workforce-stats span:nth-child(even){border-left:1px solid #e0e9e4;}
.executive-workforce-stats b{color:var(--ink);font-size:23px;font-family:Georgia,"Songti SC",serif;}
.executive-workforce-divider{height:1px;margin:20px 0 10px;background:#e1e9e4;}

@media (min-width:981px){
  .executive-overview{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:auto minmax(180px,auto) minmax(280px,auto);
  }

  .executive-total{grid-column:1;grid-row:2;}
  .executive-departments{grid-column:1;grid-row:3;min-height:0;}
  .executive-workforce{grid-column:2;grid-row:2 / span 2;min-height:0;}
  .executive-trend{grid-column:3;grid-row:2 / span 2;min-height:0;}
  .executive-trend-chart{height:402px;}
  .executive-workforce-stats{margin-top:8px;}
}

@media (max-width:980px){
  .executive-workforce{grid-column:auto;grid-row:auto;}
}

/* Department composition uses a true proportional ring, with the percentages
   retained as an immediately readable legend rather than five competing bars. */
.executive-department-donut-wrap{display:flex;align-items:center;gap:22px;margin-top:14px;}
.executive-department-donut{position:relative;display:grid;place-items:center;flex:0 0 116px;width:116px;height:116px;border-radius:50%;}
.executive-department-donut::after{content:"";position:absolute;inset:19px;border-radius:50%;background:#fff;}
.executive-department-donut span{position:relative;z-index:1;text-align:center;color:#52675d;font-size:12px;line-height:1.35;font-weight:700;}
.executive-department-legend{display:grid;flex:1;gap:7px;min-width:0;}
.executive-department-legend .executive-department-row{display:grid;grid-template-columns:8px minmax(0,1fr) 38px;gap:8px;align-items:center;color:#354b40;}
.executive-department-legend .executive-department-row>i{display:block;width:8px;height:8px;border-radius:50%;}
.executive-department-legend .executive-department-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.executive-department-legend .executive-department-row>b{font-variant-numeric:tabular-nums;color:#243d31;}
@media (max-width:1160px){
  .executive-department-donut-wrap{gap:14px;}
  .executive-department-donut{flex-basis:96px;width:96px;height:96px;}
  .executive-department-donut::after{inset:16px;}
}
@media (max-width:620px){
  .executive-department-donut-wrap{align-items:flex-start;}
}

/* Consolidated overview: the headline, organisation mix, and monthly movement
   are one decision area; the trend remains a parallel reading surface. */
.executive-total strong{white-space:nowrap;word-break:keep-all;}
@media (min-width:981px){
  .executive-overview{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:auto auto;
  }
  .executive-summary{
    display:grid;
    grid-column:1 / span 2;
    grid-row:2;
    grid-template-columns:minmax(280px,.86fr) minmax(340px,1.14fr);
    grid-template-rows:minmax(166px,.72fr) minmax(268px,1.28fr);
    min-height:468px;
    overflow:hidden;
    border:1px solid #dce8e1;
    border-radius:16px;
    background:#fff;
    box-shadow:0 12px 30px rgba(27,69,53,.045);
  }
  .executive-summary .executive-hero{
    display:block;
    grid-column:1;
    grid-row:1;
    min-height:0;
    padding:25px 28px 20px;
    border:0;
    border-right:1px solid #e0e9e4;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .executive-summary .executive-total{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-column:1;
    grid-row:1;
    min-height:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .executive-summary .executive-total strong{
    font-size:clamp(37px,3vw,50px);
    letter-spacing:-.045em;
  }
  .executive-summary .executive-total em{margin-bottom:5px;font-size:15px;}
  .executive-summary .executive-support-grid{display:contents;}
  .executive-summary .executive-departments{
    grid-column:1;
    grid-row:2;
    min-height:0;
    padding:21px 28px;
    border:0;
    border-top:1px solid #e0e9e4;
    border-right:1px solid #e0e9e4;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .executive-summary .executive-workforce{
    grid-column:2;
    grid-row:1 / span 2;
    min-height:0;
    padding:25px 28px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .executive-summary .executive-workforce-stats{margin-top:14px;}
  .executive-summary .executive-reason-list{margin-top:4px;}
  .executive-summary .executive-reason-row{min-height:37px;}
  .executive-trend{
    grid-column:3;
    grid-row:2;
    min-height:468px;
    height:100%;
  }
  .executive-trend-chart{height:418px;}
}
@media (max-width:980px){
  .executive-summary{display:grid;gap:16px;}
  .executive-summary .executive-hero{display:flex;}
}

/* Portrait summary panel: read the key payroll story vertically on the left,
   with the trend deliberately given one wide uninterrupted surface on the right. */
@media (min-width:981px){
  .executive-overview{
    grid-template-columns:minmax(395px,.9fr) minmax(700px,1.7fr);
    grid-template-rows:auto auto;
  }
  .executive-summary{
    grid-column:1;
    grid-row:2;
    grid-template-columns:1fr;
    grid-template-rows:166px 220px minmax(238px,1fr);
    min-height:624px;
  }
  .executive-summary .executive-hero{
    grid-column:1;
    grid-row:1;
    padding:26px 30px 22px;
    border-right:0;
  }
  .executive-summary .executive-total{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .executive-summary .executive-total strong{font-size:clamp(38px,3.25vw,53px);}
  .executive-summary .executive-departments{
    grid-column:1;
    grid-row:2;
    padding:20px 30px;
    border-right:0;
  }
  .executive-summary .executive-workforce{
    grid-column:1;
    grid-row:3;
    padding:21px 30px 25px;
    border-top:1px solid #e0e9e4;
  }
  .executive-summary .executive-workforce-stats{margin-top:12px;}
  .executive-summary .executive-workforce-divider{margin:16px 0 8px;}
  .executive-summary .executive-reason-row{min-height:33px;}
  .executive-summary .executive-reason-total{margin-top:8px;padding-top:8px;}
  .executive-trend{
    grid-column:2;
    grid-row:2;
    min-height:624px;
  }
  .executive-trend-chart{height:568px;}
}

/* Keep the organisation mix independent from the executive summary story. */
.executive-department-panel{
  margin-top:22px;
  padding:24px 30px 26px;
  border:1px solid #dce8e1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 30px rgba(27,69,53,.045);
}
.executive-department-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.executive-department-panel-head h2{margin:0;font-size:20px;}
.executive-department-panel-head span{color:#597366;font-size:13px;}
@media (min-width:981px){
  .executive-summary{grid-template-rows:166px minmax(458px,1fr);}
  .executive-summary .executive-workforce{grid-row:2;padding-top:24px;}
  .executive-department-panel .executive-department-donut-wrap{max-width:660px;}
}

/* Final dashboard composition: a portrait summary beside a concise trend. */
.executive-total > span{
  font-size:0;
  color:#25483a;
}
.executive-total > span::after{
  content:"在职人员基础薪资总额";
  font-size:15px;
  font-weight:800;
  letter-spacing:.01em;
  color:#25483a;
}

@media (min-width:981px){
  .executive-overview{
    grid-template-columns:minmax(395px,.9fr) minmax(620px,1.5fr);
    grid-template-rows:auto minmax(620px,auto);
    column-gap:18px;
    row-gap:18px;
  }
  .executive-summary{
    grid-column:1;
    grid-row:2;
    grid-template-rows:164px minmax(420px,1fr);
    min-height:620px;
  }
  .executive-summary .executive-workforce{
    grid-row:2;
    padding-top:24px;
  }
  .executive-trend{
    grid-column:2;
    grid-row:2;
    align-self:start;
    min-height:0;
    height:304px;
    padding:22px 28px;
  }
  .executive-trend-chart{height:236px;}
  .executive-department-panel{margin-top:20px;}
}

/* Final overview layout: a relaxed summary column with the trend and department bars sharing the right column. */
.executive-right-stack{display:grid;gap:18px;min-width:0;}
.executive-department-bars{display:grid;gap:16px;margin-top:4px;}
.executive-department-panel .executive-department-row{display:grid;grid-template-columns:92px minmax(140px,1fr) 46px;align-items:center;gap:14px;color:#29483b;text-decoration:none;font-size:14px;}
.executive-department-panel .executive-department-row>span{font-weight:700;}
.executive-department-panel .executive-department-row>div{height:9px;overflow:hidden;border-radius:999px;background:#e8f0eb;}
.executive-department-panel .executive-department-row i{display:block;height:100%;min-width:9px;border-radius:inherit;background:linear-gradient(90deg,#2d7a59,#75b392);}
.executive-department-panel .executive-department-row b{text-align:right;color:#183f2f;font-variant-numeric:tabular-nums;}
.executive-department-panel .executive-department-row:hover>span,.executive-department-panel .executive-department-row:hover>b{color:#0f6a4a;}

@media (min-width:981px){
  .executive-overview{
    grid-template-columns:minmax(430px,.9fr) minmax(650px,1.5fr);
    grid-template-rows:auto minmax(620px,auto);
  }
  .executive-summary{
    grid-column:1;
    grid-row:2;
    min-height:620px;
    grid-template-rows:172px minmax(0,1fr);
  }
  .executive-summary .executive-hero{padding:27px 34px 24px;}
  .executive-summary .executive-total{height:100%;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:30px;}
  .executive-summary .executive-total>span{align-self:start;}
  .executive-summary .executive-total strong{align-self:end;white-space:nowrap;}
  .executive-summary .executive-total em{align-self:end;margin:0 0 8px;padding-left:26px;white-space:nowrap;}
  .executive-summary .executive-workforce{display:flex;flex-direction:column;padding:26px 34px 28px;}
  .executive-summary .executive-workforce-stats{margin-top:22px;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 0;}
  .executive-summary .executive-workforce-stats span{justify-content:center;padding:0 24px;font-size:15px;}
  .executive-summary .executive-workforce-divider{margin:22px 0 13px;}
  .executive-summary .executive-reason-row{min-height:40px;}
  .executive-summary .executive-reason-total{margin-top:auto;padding-top:16px;min-height:54px;}
  .executive-right-stack{grid-column:2;grid-row:2;grid-template-rows:304px minmax(0,1fr);min-height:620px;}
  .executive-right-stack .executive-trend{grid-column:auto;grid-row:auto;align-self:stretch;height:auto;min-height:0;margin:0;padding:22px 28px;}
  .executive-right-stack .executive-trend-chart{height:236px;}
  .executive-right-stack .executive-department-panel{margin:0;padding:24px 30px 28px;}
  .executive-right-stack .executive-department-panel-head{margin-bottom:22px;}
  .executive-right-stack .executive-department-bars{gap:20px;}
  .executive-right-stack .executive-department-row{grid-template-columns:110px minmax(180px,1fr) 54px;font-size:15px;}
}

/* Keep the attribution in the sidebar unobtrusive and on one line. */
.workbench-credit small{
  margin-top:3px;
  color:#9bb2a6;
  font-size:8px;
  letter-spacing:0;
  line-height:1.2;
  white-space:nowrap;
}
