/* Centenary Bank executive visual system — applied across all dashboard views */
:root {
  --navy: #062c5b;
  --ink: #082b61;
  --muted: #607995;
  --line: #d8e7f5;
  --bg: #f2f8fd;
  --cyan: #0b61ad;
  --blue: #176fbd;
  --violet: #3d1a78;
  --green: #18a84b;
  --amber: #f5c400;
  --risk: #df2d36;
  --centenary-blue: #075aa6;
  --centenary-blue-dark: #052f62;
  --centenary-blue-deep: #021c38;
  --centenary-gold: #f3c500;
  --surface-blue: #eef6fd;
  --surface-blue-strong: #e4f1fb;
  --surface-purple: #f3effb;
}

html,
body {
  background: linear-gradient(135deg, #f8fbff 0%, var(--bg) 52%, #edf6fc 100%);
  color: var(--ink);
}

/* Shared banking shell */
.sidebar {
  background:
    radial-gradient(circle at 65% 88%, rgba(18, 102, 158, .34), transparent 27%),
    linear-gradient(180deg, var(--centenary-blue-dark) 0%, #064b7d 55%, var(--centenary-blue-deep) 100%);
  box-shadow: 8px 0 30px rgba(2, 34, 69, .18);
}

.brand {
  border-bottom-color: rgba(255, 255, 255, .16);
}

.brand-mark {
  background: linear-gradient(150deg, #0d6bb6, #064486);
  border-color: rgba(255, 255, 255, .28);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

.brand-mark span,
.brand-mark span:nth-child(2) {
  background: var(--centenary-gold);
}

.brand-mark span:nth-child(3) {
  background: #e52e36;
}

.brand strong {
  color: #fff;
}

.brand small,
.security-note small,
.signed-in small {
  color: #b9d2e7;
}

.nav-label {
  color: #9fc0db;
}

nav button {
  color: #d1e2f0;
}

nav button i {
  color: #a9c4dc;
}

nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

nav button.active {
  color: #fff;
  background: linear-gradient(90deg, #126fc1 0%, #0b5ca7 100%);
  box-shadow: inset 4px 0 var(--centenary-gold), 0 5px 15px rgba(0, 28, 61, .18);
}

nav button.active i {
  color: #fff;
}

nav button b {
  color: var(--centenary-blue-deep);
  background: var(--centenary-gold);
}

.security-note {
  background: rgba(10, 100, 170, .22);
  border-color: rgba(163, 207, 238, .28);
}

.security-note > span,
.signed-in .avatar {
  color: var(--centenary-blue-deep);
  background: #cfeafa;
}

.topbar,
.filterbar {
  background: rgba(255, 255, 255, .97);
  border-color: var(--line);
}

.topbar h1,
.section-heading h2,
.card-header h3,
.table-toolbar h3,
.branch-hero h2,
.employee-hero h2,
.priority-grid h3 {
  color: var(--ink);
}

.topbar p span,
.reset {
  color: var(--centenary-blue);
}

.demo-chip {
  color: #fff;
  background: linear-gradient(135deg, #0a64b2, #06488c);
  border-color: #06488c;
}

.filterbar select,
.table-controls input,
.table-controls select {
  color: var(--ink);
  background: #fff;
  border-color: #cbddec;
}

.filterbar select:focus,
.table-controls input:focus,
.table-controls select:focus {
  border-color: var(--centenary-blue);
  box-shadow: 0 0 0 3px rgba(7, 90, 166, .13);
}

.updated span,
.privacy-pill i {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 168, 75, .14);
}

.dashboard-view {
  background: transparent;
}

.privacy-pill {
  color: #3d5e7f;
  background: #fff;
  border-color: var(--line);
}

/* Cards and KPI surfaces shared by every page */
.card,
.kpi,
.priority-grid article,
.role-overview article,
.architecture-column,
.architecture-values {
  background: rgba(255, 255, 255, .98);
  border-color: var(--line);
  box-shadow: 0 5px 16px rgba(5, 55, 100, .055);
}

.card-header,
.table-toolbar {
  border-bottom-color: #e5eff8;
}

.card-header > span {
  color: #526f8c;
  background: var(--surface-blue);
  border: 1px solid #dceaf6;
}

.kpi {
  background: linear-gradient(145deg, #fff 0%, #f3f9fe 100%);
}

.kpi.cyan {
  --accent: #075aa6;
}

.kpi.blue {
  --accent: #1671bd;
}

.kpi.violet {
  --accent: #3d1a78;
}

.kpi.green {
  --accent: #18a84b;
}

.kpi-label {
  color: #335a83;
}

.kpi > strong,
.activity-portfolio article strong,
.health-summary strong,
.gap strong,
.role-overview strong {
  color: var(--ink);
}

.activity-portfolio {
  background: #d4e5f3;
  border-color: #d4e5f3;
}

.activity-portfolio > div {
  background: linear-gradient(130deg, var(--centenary-blue-dark), #08639d);
}

.activity-portfolio p {
  color: #b8dcf3;
}

.loan-decision-card {
  background: linear-gradient(145deg, #fbf9ff 0%, var(--surface-purple) 100%) !important;
}

.loan-decision-card .approved {
  color: var(--green);
}

.loan-decision-card .rejected {
  color: var(--risk);
}

.loan-decision-card .loan-total {
  color: var(--ink);
  font-weight: 700;
}

/* Ranking and health colors match the executive reference */
.ranking-panel {
  border: 1px solid #dce9f4;
  border-radius: 9px;
  overflow: hidden;
}

.ranking-panel + .ranking-panel {
  border-left: 1px solid #dce9f4;
  padding-left: 0;
}

.ranking-panel h4 {
  color: #fff;
  margin: 0;
  padding: 10px 12px;
}

.ranking-panel:first-child h4 {
  background: linear-gradient(90deg, #159943, #2dbd59);
}

.ranking-panel:last-child h4 {
  background: linear-gradient(90deg, #d52a32, #ec3a43);
}

.rank-dot.top,
.rank-dot.bottom {
  background: #fff;
}

.rank-bars {
  padding: 8px 10px;
}

.rank-bars button:hover,
.health-branch-list button:hover,
tbody tr:hover,
.driver-table tbody tr:hover,
.action-table tbody tr:hover {
  background: #edf6fd;
}

.rank-bars button > div,
.inline-score::before,
.peer-meter,
.absence,
.health-list > div > div,
.role-cards > div > div,
.comparison-rows > div > div,
.benchmark-bars > div > div,
.role-mix > div > div {
  background: #e5eff7;
}

.rank-bars.top-rank button i,
.inline-score i,
.branch-bars i,
.role-cards > div i,
.comparison-rows i,
.peer-meter i {
  background: linear-gradient(90deg, #075aa6, #2e83ca);
}

.rank-bars.bottom-rank button i {
  background: linear-gradient(90deg, #ef535b, var(--risk));
}

.health-tabs button {
  color: #294e74;
  border-color: #d9e7f3;
}

.health-tabs button.positive {
  background: #f0fbf4;
}

.health-tabs button.steady {
  background: #fffbed;
}

.health-tabs button.attention {
  background: #fff2f3;
}

.health-tabs button.positive i,
.distribution-list i.positive {
  background: var(--green);
}

.health-tabs button.steady i,
.distribution-list i.steady {
  background: var(--amber);
}

.health-tabs button.attention i,
.distribution-list i.attention {
  background: var(--risk);
}

.health-tabs button.positive.active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(24, 168, 75, .12);
}

.health-tabs button.steady.active {
  border-color: #d9ad00;
  box-shadow: 0 0 0 2px rgba(245, 196, 0, .15);
}

.health-tabs button.attention.active {
  border-color: var(--risk);
  box-shadow: 0 0 0 2px rgba(223, 45, 54, .11);
}

.health-summary > div {
  background: var(--surface-blue);
  border-color: #dceaf6;
}

.health-list-head,
th {
  color: #31587e;
  background: #edf5fc;
}

td,
.health-branch-list button {
  color: #365a7c;
  border-color: #e1edf7;
}

.status.positive,
.signal.green {
  color: #087634;
  background: #dcf6e5;
}

.status.steady,
.signal.amber {
  color: #795e00;
  background: #fff4bf;
}

.status.attention,
.signal.red {
  color: #a5161f;
  background: #ffe1e4;
}

/* Charts: blue data marks with consistent business-state quadrants */
.plot-area {
  background:
    linear-gradient(90deg, rgba(254, 231, 233, .82) 0 50%, rgba(226, 247, 232, .85) 50% 100%) top / 100% 50% no-repeat,
    linear-gradient(90deg, rgba(255, 246, 207, .9) 0 50%, rgba(226, 240, 252, .92) 50% 100%) bottom / 100% 50% no-repeat;
  border-color: #9bb5cc;
}

/* Remove the legacy fixed midpoint—the live quadrant dividers now follow the
   actual network medians for the selected branch population. */
.plot-area::after {
  display: none;
}

.plot-area > span,
.plot-area > span:nth-of-type(3n),
.plot-area > span:nth-of-type(3n + 2),
.driver-scatter span {
  background: rgba(7, 90, 166, .9);
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(5, 60, 110, .25);
}

.driver-scatter > div {
  background:
    linear-gradient(90deg, rgba(225, 247, 231, .86) 0 50%, rgba(255, 245, 207, .9) 50% 100%) top / 100% 50% no-repeat,
    linear-gradient(90deg, rgba(226, 240, 252, .92) 0 50%, rgba(254, 231, 233, .84) 50% 100%) bottom / 100% 50% no-repeat;
  border-color: #9bb5cc;
}

.columns-chart i {
  background: linear-gradient(#3d8ed1, #075aa6);
}

.role-mix .leadership {
  background: #3d1a78;
}

.role-mix .teller {
  background: #075aa6;
}

.role-mix .banker {
  background: #4295d1;
}

.role-mix .lending {
  background: var(--green);
}

.role-mix .operations,
.absence i {
  background: var(--centenary-gold);
}

.dual-lines span,
.trend-legend i {
  background: #075aa6;
}

.dual-lines i,
.trend-legend span + span i {
  background: #3d1a78;
}

.benchmark-bars i.mine {
  background: #075aa6;
}

.benchmark-bars i.team {
  background: #3d8ed1;
}

.benchmark-bars i.target {
  background: var(--green);
}

/* Branch, action and workforce pages */
.branch-hero,
.employee-hero,
.benchmark-intro,
.context-banner {
  background: linear-gradient(112deg, var(--centenary-blue-dark), #075f9a);
  box-shadow: 0 9px 23px rgba(4, 47, 92, .16);
}

.branch-hero p,
.employee-hero p {
  color: #b9e0f7;
}

.branch-hero h2,
.employee-hero h2 {
  color: #fff;
}

.large-avatar {
  color: var(--centenary-blue-dark);
  background: #d9eefb;
}

.branch-hero button,
.employee-hero select {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
}

.priority-top b.critical {
  color: #aa1720;
  background: #ffe1e4;
}

.priority-top b.watch {
  color: #735a00;
  background: #fff2b8;
}

.priority-grid button {
  color: #fff;
  background: var(--centenary-blue);
}

.executive-insight.good {
  background: #eaf8ef;
  border-color: #b6e6c6;
}

.executive-insight.warning {
  background: #fff4e6;
  border-color: #f3d1a1;
}

.comparison-rows > div.selected {
  color: var(--centenary-blue-dark);
  background: #e8f3fc;
}

/* Data foundation page */
.architecture-intro {
  background: linear-gradient(115deg, var(--centenary-blue-dark) 0%, #075d99 68%, #0b72a9 100%);
}

.architecture-intro p {
  color: #c6e8fb;
}

.architecture-badge b {
  color: var(--centenary-blue-deep);
  background: var(--centenary-gold);
}

.architecture-column > header h3,
.architecture-values strong {
  color: var(--ink);
}

.architecture-column.blue > header span,
.architecture-column.cyan > header span,
.architecture-column.navy > header span {
  color: #075aa6;
  background: #e1effa;
}

.architecture-column.violet > header span {
  color: #3d1a78;
  background: #eee8f8;
}

.architecture-column.green > header span {
  color: #087634;
  background: #dcf6e5;
}

.source-item,
.system-item,
.delivery-stack article,
.integration-stack article {
  background: #f8fbfe;
  border-color: #dce9f4;
}

.source-item i,
.delivery-stack i,
.integration-stack i,
.architecture-values i {
  color: #075aa6;
  background: #e2f0fa;
}

.integration-stack article.model-core {
  background: linear-gradient(120deg, #251253, #4b288b);
  border-color: #4b288b;
}

.dashboard-product.enterprise {
  background: linear-gradient(115deg, #06376f, #075fa9);
}

.dashboard-product.workforce {
  background: linear-gradient(115deg, #08743a, #20a957);
}

.security-layer {
  background: #eaf8ef;
  border-color: #b9e5c7;
}

.security-layer > i {
  background: var(--green);
}

.architecture-values i {
  border: 1px solid #cfe2f1;
}

/* Keyboard accessibility follows the bank-blue system */
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(7, 90, 166, .35);
  outline-offset: 2px;
}

@media (max-width: 850px) {
  .ranking-panel + .ranking-panel {
    border-top: 1px solid #dce9f4;
    padding-top: 0;
  }
}

/* Productivity Drivers: keep the full-network view inside its cards */
.two-col:has(.columns-chart),
.two-col:has(.driver-scatter) {
  align-items: stretch;
}

.two-col:has(.columns-chart) > .card,
.two-col:has(.driver-scatter) > .card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.columns-chart,
.role-mix,
.impact-rows {
  scrollbar-color: #7ca7cb #e8f2fa;
  scrollbar-width: thin;
}

.columns-chart::-webkit-scrollbar,
.role-mix::-webkit-scrollbar,
.impact-rows::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.columns-chart::-webkit-scrollbar-track,
.role-mix::-webkit-scrollbar-track,
.impact-rows::-webkit-scrollbar-track {
  background: #e8f2fa;
  border-radius: 10px;
}

.columns-chart::-webkit-scrollbar-thumb,
.role-mix::-webkit-scrollbar-thumb,
.impact-rows::-webkit-scrollbar-thumb {
  background: #7ca7cb;
  border: 2px solid #e8f2fa;
  border-radius: 10px;
}

.columns-chart {
  min-height: 420px;
  height: 420px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 34px 8px 30px;
}

.columns-chart:has(> div:nth-child(13)) {
  justify-content: flex-start;
}

.columns-chart:has(> div:nth-child(13)) > div {
  flex: 0 0 54px;
}

.columns-chart > div {
  min-width: 42px;
}

.columns-chart span {
  color: #264f78;
  font-weight: 700;
}

.columns-chart small {
  max-width: 48px;
  color: #496b8d;
  line-height: 1.2;
}

.role-mix {
  min-height: 420px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 0 0;
}

.role-mix > div {
  grid-template-columns: minmax(108px, 1.15fr) minmax(160px, 2fr) 58px;
  min-height: 31px;
}

.role-mix footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid #dce9f4;
  padding: 12px 4px 10px;
  box-shadow: 0 -6px 12px rgba(8, 53, 96, .06);
}

/* Equal-height second row: no empty lower half beside the long branch list */
.two-col:has(.driver-scatter) > .card {
  min-height: 620px;
}

.impact-rows {
  flex: 1;
  max-height: 540px;
  overflow-y: auto;
  padding: 10px 10px 8px 0;
}

.impact-rows > div {
  grid-template-columns: minmax(104px, 1fr) minmax(130px, 1.5fr) 62px minmax(110px, 1fr);
  min-height: 35px;
}

.driver-scatter {
  flex: 1;
  min-height: 540px;
  height: auto;
  padding: 18px 18px 52px 48px;
  position: relative;
}

.driver-scatter > div {
  min-height: 470px;
  height: 100%;
  border-color: #91abc2;
}

.card:has(.driver-scatter) .card-header > span {
  font-size: 0;
}

.card:has(.driver-scatter) .card-header > span::after {
  content: "Productivity index by overtime hours";
  font-size: 13px;
}

.driver-scatter > div::before,
.driver-scatter > div::after,
.driver-scatter::before,
.driver-scatter::after {
  position: absolute;
  z-index: 3;
  max-width: 205px;
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 2px 7px rgba(5, 48, 90, .08);
  white-space: pre-line;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.28;
  pointer-events: none;
}

.driver-scatter > div::before {
  content: "HIGH PRODUCTIVITY / LOWER OVERTIME\A Sustainable operation";
  top: 12px;
  left: 12px;
  color: #087634;
  border: 1px solid #b8e5c6;
}

.driver-scatter > div::after {
  content: "HIGH PRODUCTIVITY / HIGHER OVERTIME\A Workload strain risk";
  top: 12px;
  right: 12px;
  color: #876500;
  border: 1px solid #ebd884;
  text-align: right;
}

.driver-scatter::before {
  content: "LOWER PRODUCTIVITY / LOWER OVERTIME\A Capacity or process review";
  left: 60px;
  bottom: 66px;
  color: #075aa6;
  border: 1px solid #bfd9ed;
}

.driver-scatter::after {
  content: "LOWER PRODUCTIVITY / HIGHER OVERTIME\A Urgent operating review";
  right: 30px;
  bottom: 66px;
  color: #b11d26;
  border: 1px solid #efbdc1;
  text-align: right;
}

.driver-scatter > small {
  position: absolute;
  left: 48px;
  right: 18px;
  bottom: 13px;
  margin: 0;
  color: #264f78;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .columns-chart,
  .role-mix {
    min-height: 360px;
    height: 360px;
    max-height: 360px;
  }

  .two-col:has(.driver-scatter) > .card {
    min-height: 560px;
  }

  .driver-scatter {
    min-height: 480px;
    padding-left: 42px;
  }

  .driver-scatter > div {
    min-height: 410px;
  }

  .driver-scatter > div::before,
  .driver-scatter > div::after,
  .driver-scatter::before,
  .driver-scatter::after {
    max-width: 43%;
    padding: 5px 6px;
    font-size: 9px;
  }

  .driver-scatter::before {
    left: 50px;
  }

  .driver-scatter::after {
    right: 25px;
  }
}

/* Exact brand lockups */
.brand {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 0 4px 22px;
}

.centenary-logo-crop {
  width: 210px;
  height: 78px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 11px;
  background-color: #fff;
  background-image: url('/assets/centenary-brand-reference.png');
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 1106px 737px;
  box-shadow: 0 6px 18px rgba(0, 19, 49, .22);
}

.brand-demo-label {
  display: block;
  color: #d9ebf8 !important;
  text-transform: uppercase;
  letter-spacing: .11em;
  padding-left: 4px;
  font-size: 10px !important;
  font-weight: 750;
}

.datavista-brand img {
  width: 148px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(4, 47, 92, .11);
}

/* Location and branch network view */
.location-overview .section-heading h2 {
  color: var(--centenary-blue-dark);
}

.location-analysis {
  grid-template-columns: .8fr 1.2fr;
}

.location-analysis > .card {
  min-height: 425px;
}

.location-browser {
  margin-top: 15px;
  overflow: hidden;
}

.location-list-head,
.location-branch-list button {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(5, minmax(95px, .72fr));
  align-items: center;
  gap: 12px;
}

.location-list-head {
  color: #355d82;
  background: #eaf4fb;
  border-top: 1px solid #d5e5f2;
  border-bottom: 1px solid #d5e5f2;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 800;
}

.location-branch-list {
  max-height: 520px;
  overflow: auto;
  scrollbar-color: #83b7d9 #edf5fa;
}

.location-branch-list button {
  width: 100%;
  min-height: 58px;
  color: #183e63;
  background: #fff;
  border-bottom: 1px solid #e3edf4;
  padding: 8px 16px;
  text-align: left;
  font-size: 14px;
  transition: background .15s ease, transform .15s ease;
}

.location-branch-list button:hover,
.location-branch-list button:focus-visible {
  background: #eef7fd;
  outline: none;
  box-shadow: inset 4px 0 var(--centenary-yellow);
}

.location-branch-list button > span {
  min-width: 0;
}

.location-branch-list button > span:not(:first-child) {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.location-branch-list strong,
.location-branch-list small {
  display: block;
}

.location-branch-list strong {
  color: var(--centenary-blue-dark);
  font-size: 15px;
}

.location-branch-list small {
  color: #63809b;
  margin-top: 3px;
  font-size: 12px;
}

/* Branch detail readability and Centenary executive palette */
.branch-hero {
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  padding: 22px 24px;
}

.branch-hero p {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.branch-hero h2 {
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: -.025em;
}

.branch-hero > div > span {
  color: #dcecf7;
  font-size: 14px;
  line-height: 1.5;
}

.branch-hero button {
  min-height: 44px;
  padding: 10px 15px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.branch-hero button b {
  color: var(--centenary-yellow);
}

.health-list > div {
  padding: 13px 0;
}

.health-list span,
.health-list strong {
  font-size: 14px;
}

.health-list small {
  font-size: 12px;
}

.role-cards.robust {
  gap: 10px;
}

.role-cards.robust > div {
  min-height: 118px;
  padding: 14px;
}

.role-cards strong {
  color: var(--centenary-blue-dark);
  font-size: 25px;
}

.role-cards span,
.comparison-rows span {
  font-size: 14px;
}

.role-cards small {
  font-size: 12px;
  line-height: 1.4;
}

.comparison-rows > div {
  min-height: 42px;
  padding: 8px 10px;
}

.comparison-rows strong {
  font-size: 14px;
}

.dual-lines small,
.trend-legend {
  font-size: 12px;
}

.executive-insight {
  border-left: 5px solid var(--centenary-yellow);
  padding: 15px 17px;
}

.executive-insight strong {
  color: var(--centenary-blue-dark);
  font-size: 15px;
}

.executive-insight p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .location-analysis {
    grid-template-columns: 1fr;
  }

  .location-list-head,
  .location-branch-list button {
    grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(90px, 1fr));
  }

  .location-list-head span:nth-child(4),
  .location-list-head span:nth-child(5),
  .location-branch-list button > span:nth-child(4),
  .location-branch-list button > span:nth-child(5) {
    display: none;
  }
}

@media (max-width: 760px) {
  .centenary-logo-crop {
    width: 198px;
    height: 74px;
    background-size: 1060px 707px;
  }

  .brand-demo-label {
    display: none;
  }

  .location-list-head,
  .location-branch-list button {
    grid-template-columns: minmax(170px, 1fr) 84px;
  }

  .location-list-head span:nth-child(n+3),
  .location-branch-list button > span:nth-child(n+3) {
    display: none;
  }

  .branch-hero h2 {
    font-size: 24px;
  }
}

/* Final executive consistency pass: Action, Data, Team, Employee and Benchmark */
.action-view .priority-grid article {
  padding: 20px;
  border-top: 4px solid #0b61ad;
}

.action-view .priority-top span,
.action-view .priority-top b {
  font-size: 11px;
}

.action-view .priority-grid h3 {
  color: var(--centenary-blue-dark);
  font-size: 18px;
}

.action-view .priority-grid > article > p {
  color: #587591;
  font-size: 13px;
}

.action-view .gap strong {
  font-size: 29px;
}

.action-view .gap span,
.action-view .priority-grid ul {
  font-size: 13px;
}

.action-view .priority-grid ul {
  min-height: 88px;
  line-height: 1.65;
}

.action-view .priority-grid button {
  min-height: 42px;
  color: #fff;
  background: linear-gradient(90deg, #075aa6, #1671bd);
  font-size: 13px;
}

.action-view .action-table {
  overflow-x: auto;
}

.action-view .action-table th,
.team-view th {
  padding: 12px 10px;
  font-size: 12px;
}

.action-view .action-table td,
.team-view td {
  padding: 12px 10px;
  font-size: 13px;
}

.action-view .action-table td small,
.team-view td small {
  font-size: 11px;
}

/* Data architecture remains dense, but is now presentation-readable */
.architecture-view .architecture-intro {
  padding: 24px 26px;
}

.architecture-view .architecture-intro p {
  font-size: 11px;
}

.architecture-view .architecture-intro h2 {
  font-size: 26px;
}

.architecture-view .architecture-intro > div > span {
  max-width: 760px;
  font-size: 13px;
  line-height: 1.5;
}

.architecture-view .architecture-badge b,
.architecture-view .architecture-badge span {
  font-size: 10px !important;
}

.architecture-view .architecture-column > header {
  padding: 14px;
}

.architecture-view .architecture-column > header span {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.architecture-view .architecture-column > header h3 {
  font-size: 12px;
  line-height: 1.3;
}

.architecture-view .architecture-column-body {
  padding: 13px;
}

.architecture-view .source-item,
.architecture-view .delivery-stack article,
.architecture-view .integration-stack article {
  padding: 11px;
}

.architecture-view .source-item strong,
.architecture-view .delivery-stack strong,
.architecture-view .integration-stack strong {
  font-size: 11px;
}

.architecture-view .source-item span,
.architecture-view .delivery-stack span,
.architecture-view .integration-stack span,
.architecture-view .dashboard-product span {
  font-size: 9px;
  line-height: 1.45;
}

.architecture-view .system-item strong {
  font-size: 10px;
}

.architecture-view .system-item small,
.architecture-view .dimension-box span,
.architecture-view .dashboard-link {
  font-size: 9px;
}

.architecture-view .dimension-box > b {
  font-size: 10px;
}

.architecture-view .dashboard-product strong {
  font-size: 13px;
}

.architecture-view .security-layer strong {
  font-size: 11px;
}

.architecture-view .security-layer span {
  font-size: 9px;
}

.architecture-view .architecture-values strong {
  font-size: 11px;
}

.architecture-view .architecture-values span {
  font-size: 9px;
  line-height: 1.4;
}

/* Team page and employee table */
.team-view .context-banner {
  padding: 16px 18px;
  border-left: 5px solid var(--centenary-yellow);
}

.team-view .context-banner strong {
  font-size: 14px;
}

.team-view .context-banner span {
  font-size: 13px;
  line-height: 1.45;
}

.team-view .role-overview span {
  font-size: 11px;
}

.team-view .role-overview strong {
  color: var(--centenary-blue-dark);
  font-size: 24px;
}

.team-view .role-overview small {
  font-size: 9px;
  line-height: 1.4;
}

.team-view .table-controls input,
.team-view .table-controls select {
  min-height: 40px;
  font-size: 13px;
}

.team-view .person strong,
.benchmark-view .person strong {
  color: var(--centenary-blue-dark);
  font-size: 14px;
}

.team-view .person small,
.benchmark-view .person small {
  font-size: 11px;
}

.team-view .status,
.team-view .rank {
  font-size: 11px;
}

/* Replaces the ambiguous donut with explicit HR score bands */
.performance-mix {
  min-height: 245px;
  padding: 16px 18px 18px;
}

.mix-total {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 8px;
}

.mix-total strong {
  grid-row: span 2;
  color: var(--centenary-blue-dark);
  font-size: 34px;
  line-height: 1;
}

.mix-total span {
  color: #355d82;
  font-size: 13px;
  font-weight: 750;
}

.mix-total small {
  color: #71879c;
  font-size: 11px;
}

.mix-stacked {
  display: flex;
  height: 13px;
  margin: 16px 0 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8f0f7;
}

.mix-stacked i.positive,
.mix-list > article > i.positive {
  background: var(--green);
}

.mix-stacked i.steady,
.mix-list > article > i.steady {
  background: var(--centenary-blue);
}

.mix-stacked i.attention,
.mix-list > article > i.attention {
  background: var(--risk);
}

.mix-list article {
  display: grid;
  grid-template-columns: 10px 1fr auto 42px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-bottom: 1px solid #e3edf6;
}

.mix-list > article > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mix-list strong,
.mix-list small {
  display: block;
}

.mix-list strong {
  color: var(--centenary-blue-dark);
  font-size: 13px;
}

.mix-list small {
  color: #71879c;
  margin-top: 2px;
  font-size: 11px;
}

.mix-list b {
  color: var(--centenary-blue-dark);
  font-size: 18px;
}

.mix-list em {
  color: #536f89;
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

/* Six-month trend, explained in plain language */
.trend-explainer {
  padding: 14px 16px 17px;
}

.trend-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #d7e7f4;
  border-left: 5px solid var(--green);
  border-radius: 9px;
  background: #f5fbff;
  padding: 10px 12px;
}

.trend-callout.down {
  border-left-color: var(--risk);
  background: #fff5f6;
}

.trend-callout div strong,
.trend-callout div span {
  display: block;
}

.trend-callout div strong {
  color: var(--centenary-blue-dark);
  font-size: 28px;
  line-height: 1;
}

.trend-callout div span,
.trend-callout p,
.trend-callout small {
  font-size: 12px;
}

.trend-callout div span,
.trend-callout small {
  color: #65809a;
}

.trend-callout p {
  color: #284e74;
  margin: 0;
}

.trend-callout p b {
  color: var(--centenary-blue-dark);
}

.trend-explainer .team-chart {
  height: 205px;
  margin-top: 8px;
}

.trend-explainer .team-chart svg {
  height: 160px;
}

.trend-explainer .team-chart polygon {
  fill: rgba(7, 90, 166, .12);
}

.trend-explainer .team-chart polyline {
  stroke: var(--centenary-blue);
}

.trend-explainer .team-chart circle {
  fill: #fff;
  stroke: var(--centenary-blue);
}

.trend-explainer .team-chart .target-line {
  stroke: var(--centenary-yellow);
  stroke-width: 1.6;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

.trend-values {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: -20px 9px 0 31px;
}

.trend-values span {
  text-align: center;
}

.trend-values small,
.trend-values strong {
  display: block;
}

.trend-values small {
  color: #7b8fa2;
  font-size: 10px;
}

.trend-values strong {
  color: var(--centenary-blue-dark);
  font-size: 13px;
}

/* Employee detail */
.employee-view .employee-hero p {
  font-size: 11px;
}

.employee-view .employee-hero h2 {
  font-size: 28px;
}

.employee-view .employee-hero span,
.employee-view .employee-hero select {
  font-size: 13px;
}

.employee-view .employee-hero select {
  min-height: 42px;
}

.employee-view .insight-highlight strong {
  color: var(--centenary-blue-dark);
  font-size: 15px;
}

.employee-view .insight-highlight p,
.employee-view .metric-list span,
.employee-view .metric-list strong {
  font-size: 13px;
  line-height: 1.45;
}

/* Company benchmark */
.benchmark-view .benchmark-intro {
  border-left: 5px solid var(--centenary-yellow);
  padding: 20px 22px;
}

.benchmark-view .benchmark-intro strong {
  font-size: 16px;
}

.benchmark-view .benchmark-intro p {
  font-size: 13px;
  line-height: 1.45;
}

.benchmark-view .legend span {
  font-size: 12px;
}

.benchmark-view .benchmark-bars > div,
.employee-view .benchmark-bars > div {
  grid-template-columns: 210px 1fr 45px;
  gap: 14px;
  margin: 16px 0;
  font-size: 13px;
}

.benchmark-view .benchmark-bars > div > div,
.employee-view .benchmark-bars > div > div {
  height: 12px;
}

.benchmark-view .benchmark-bars strong,
.employee-view .benchmark-bars strong {
  color: var(--centenary-blue-dark);
  font-size: 14px;
}

.benchmark-view .peer-card {
  border-top: 4px solid #0b61ad;
  padding: 17px;
}

.benchmark-view .percentile strong {
  color: var(--centenary-blue-dark);
  font-size: 27px;
}

.benchmark-view .percentile span,
.benchmark-view .peer-card > p {
  font-size: 12px;
}

/* Dynamic capacity plot: every branch stays inside the chart */
.plot-area {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(254, 231, 233, .82) 0 var(--split-x, 50%), rgba(226, 247, 232, .85) var(--split-x, 50%) 100%) top / 100% var(--split-y, 50%) no-repeat,
    linear-gradient(90deg, rgba(255, 246, 207, .9) 0 var(--split-x, 50%), rgba(226, 240, 252, .92) var(--split-x, 50%) 100%) bottom / 100% calc(100% - var(--split-y, 50%)) no-repeat;
}

.plot-area > .vline,
.plot-area > .hline {
  z-index: 1;
  pointer-events: none;
  position: absolute;
  display: block;
}

.plot-area > .vline {
  top: 0;
  bottom: 0;
  border-left: 1px solid #8ca8bf;
}

.plot-area > .hline {
  left: 0;
  right: 0;
  border-top: 1px solid #8ca8bf;
}

.plot-area > span {
  z-index: 4;
}

.plot-area .quad {
  z-index: 3;
  max-width: 43%;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .78);
  pointer-events: none;
}

.plot-area .quad small {
  font-weight: 650;
}

@media (max-width: 1100px) {
  .architecture-view .architecture-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-view .architecture-column,
  .architecture-view .architecture-column.wide,
  .architecture-view .architecture-column.last {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .trend-callout {
    grid-template-columns: auto 1fr;
  }

  .trend-callout small {
    grid-column: 1 / -1;
  }

  .benchmark-view .benchmark-bars > div,
  .employee-view .benchmark-bars > div {
    grid-template-columns: 135px 1fr 34px;
  }

  .architecture-view .architecture-flow {
    display: block;
  }
}
