
@import url("https://fonts.googleapis.com/css2?family=Catamaran:wght@100..900&display=swap");

:root {
  --ink: #15171e;
  --muted: #596273;
  --soft-muted: #949dad;
  --page: #f1f3f7;
  --blue: #1710d5;
  --blue-bright: #3022ef;
  --green: #5f8d17;
  --green-bright: #76a923;
  --risk: #e76850;
  --risk-bright: #ff7c61;
  --gray: #747d8b;
  --gray-bright: #a2a9b5;
  --white: #fff;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Catamaran", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

button { font: inherit; }

.dashboard-shell {
  width: calc(100% - 76px);
  margin: 0 auto;
  padding: 34px 0 32px;
}

.dashboard-header {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 510px;
  align-items: start;
  gap: 42px;
}

.program-lockup {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding-top: 5px;
}

.program-heading-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  white-space: nowrap;
}

.program-lockup h1 {
  margin: 0;
  font-size: 50px;
  line-height: 1;
  letter-spacing: -1.8px;
  font-weight: 800;
}

.program-heading-row span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.program-summary {
  max-width: 1000px;
  text-align: left;
}

.program-summary h2 {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.program-summary p {
  margin: 0;
  max-width: 980px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.28;
  font-weight: 500;
}

.project-lockup {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  align-items: start;
}

.project-lockup--logo-only {
  display: flex;
  justify-content: flex-end;
}

.project-lockup--logo-only .logo-panel {
  width: 180px;
}

.project-dates {
  padding-top: 5px;
  text-align: right;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
  white-space: nowrap;
}

.project-dates div { display: flex; justify-content: flex-end; gap: 12px; }
.project-dates strong { color: var(--ink); font-weight: 800; }

.logo-panel {
  height: 80px;
  padding: 15px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.logo-panel img { width: 100%; height: auto; display: block; }

.finance-panel {
  height: 154px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 182px;
  align-items: center;
  gap: 42px;
  margin-top: 10px;
  padding: 34px 31px;
  background: #fff;
  border-radius: var(--radius);
}

.finance-panel.has-additional-funding { height: auto; min-height: 184px; }

.spend-column { min-width: 0; }

.additional-funding {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 10px 4px 0;
  color: #596273;
  font-size: 14px;
  line-height: 1.25;
}

.additional-funding[hidden] { display: none; }
.additional-funding__label { color: #15171e; font-weight: 800; }
.additional-funding__items { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.additional-funding__item { display: inline-flex; gap: 6px; align-items: baseline; }
.additional-funding__item strong { font-weight: 700; }
.additional-funding__percentage { color: #1710d5; font-weight: 700; }

.spend-track {
  --spend-progress: 0%;
  position: relative;
  height: 84px;
  overflow: hidden;
  border-radius: 17px;
  background: #eceff4;
}

.spend-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--spend-progress);
  min-width: 270px;
  border-radius: 17px;
  background: linear-gradient(100deg, var(--blue-bright), var(--blue));
}

.spend-label,
.spend-value,
.budget-total {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.spend-label {
  left: 28px;
  color: #c8c6ff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .4px;
}

.spend-value {
  left: max(290px, calc(var(--spend-progress) - 178px));
  color: #fff;
  font-size: 38px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -1.2px;
}

.budget-total {
  right: 24px;
  color: #929baa;
  font-size: 24px;
  font-weight: 800;
}

.tde-panel {
  height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-left: 1px solid #d8dde5;
}

.tde-panel strong {
  color: var(--blue);
  font-size: 40px;
  line-height: .9;
  font-weight: 850;
}

.tde-panel span {
  color: #4e5768;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.status-card {
  width: 100%;
  height: 158px;
  padding: 24px 26px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 22px 30px rgba(44, 50, 63, .15);
  transition: transform .2s ease, opacity .2s ease, filter .2s ease, box-shadow .2s ease;
}

.status-card:hover { transform: translateY(-3px); }
.status-card:focus-visible { outline: 4px solid rgba(23, 16, 213, .28); outline-offset: 4px; }
.status-card.is-active {
  transform: translateY(-5px);
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(23, 16, 213, .2), 0 24px 34px rgba(44, 50, 63, .24);
}
.status-card.is-inactive { opacity: .42; filter: grayscale(.8); }

.status-card--on-track { background: linear-gradient(110deg, var(--blue), #0900b6); }
.status-card--complete { background: linear-gradient(110deg, var(--green-bright), var(--green)); }
.status-card--at-risk { background: linear-gradient(110deg, var(--risk-bright), var(--risk)); }
.status-card--not-started { background: linear-gradient(110deg, var(--gray-bright), var(--gray)); }

.status-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .9);
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.status-card__heading .status-icon { transform: scale(1.3); }

.status-card__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 31px;
}

.status-card__value strong {
  font-size: 40px;
  line-height: 1;
  font-weight: 850;
}

.status-card__value span { font-size: 20px; font-weight: 750; }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.domain-card {
  min-height: 525px;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
}

.domain-card__header {
  min-height: 154px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 19px 27px;
  border-bottom: 1px solid #dfe3ea;
}

.domain-icon {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--domain-color);
  border-radius: 50%;
  color: var(--domain-color);
}

.domain-icon svg {
  width: 37px;
  height: 37px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.domain-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #959eae;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.domain-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -.25px;
}

.domain-description-toggle {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.domain-description-toggle:focus-visible {
  outline: 3px solid rgba(23, 16, 213, .25);
  outline-offset: 3px;
}

.domain-description-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s ease;
}

.domain-description-panel p {
  min-height: 0;
  max-width: 440px;
  overflow: hidden;
  margin: 0;
  color: #7b8494;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.domain-description-block.is-open .domain-description-panel {
  grid-template-rows: 1fr;
}

.domain-description-block.is-open .domain-description-panel p {
  margin-top: 7px;
}

.goal-list { padding: 11px 13px 24px; }

.goal-item {
  border-radius: 13px;
  transition: background-color .2s ease, opacity .25s ease, filter .25s ease, box-shadow .25s ease;
}

.goal-item.is-open {
  background: #fff;
  box-shadow: inset 0 0 0 1px #e1e5ec, 0 4px 12px rgba(37, 43, 55, .07);
}

.domain-grid.is-filtering .goal-item.is-filter-match {
  background: color-mix(in srgb, var(--goal-status-color) 10%, #fff);
  box-shadow: inset 5px 0 0 var(--goal-status-color);
}

.domain-grid.is-filtering .goal-item.is-filtered-out {
  opacity: .24;
  filter: grayscale(1);
}

.domain-card { transition: opacity .25s ease, filter .25s ease; }
.domain-grid.is-filtering .domain-card.has-no-filter-match { opacity: .5; filter: grayscale(.75); }

.goal-row {
  width: 100%;
  min-height: 61px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  gap: 13px;
  align-items: center;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.goal-row:focus-visible { outline: 3px solid rgba(23, 16, 213, .28); outline-offset: -2px; }
.goal-row--static { grid-template-columns: 32px minmax(0, 1fr); cursor: default; }

.goal-title {
  font-size: 21px;
  line-height: 1.18;
  font-weight: 720;
}

.goal-chevron {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8f99a8;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.goal-item.is-open .goal-chevron { transform: rotate(90deg); }

.goal-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s ease;
}

.goal-detail p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 22px 0 62px;
  color: #566071;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
  transition: padding .22s ease;
}

.goal-item.is-open .goal-detail { grid-template-rows: 1fr; }
.goal-item.is-open .goal-detail p { padding-bottom: 13px; }

.status-icon {
  position: relative;
  width: 25px;
  height: 25px;
  display: inline-flex;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
}

.status-icon svg { width: 100%; height: 100%; }

.status-icon--track {
  border: 3px solid var(--blue-bright);
  border-radius: 50%;
}

.status-icon--track span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
}

.status-icon--complete {
  border-radius: 50%;
  background: #70a51e;
}

.status-icon--complete svg { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.status-icon--risk svg path:first-child { fill: #ff755f; stroke: #ff755f; stroke-width: 1; }
.status-icon--risk svg path:last-child { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

.status-icon--not-started {
  border: 3px dotted #9aa4b3;
  border-radius: 50%;
}

.status-card .status-icon--track { border-color: #fff; }
.status-card .status-icon--track span { background: #fff; }
.status-card .status-icon--complete { background: rgba(255,255,255,.95); }
.status-card .status-icon--complete svg { stroke: #61921a; }
.status-card .status-icon--risk svg path:first-child { fill: #fff; stroke: #fff; }
.status-card .status-icon--risk svg path:last-child { stroke: var(--risk); }
.status-card .status-icon--not-started { border-color: #fff; }

.status-legend {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 26px 4px 0;
  color: #5e6777;
  font-size: 17px;
  font-weight: 650;
}

.status-legend > span { display: inline-flex; align-items: center; gap: 10px; }
.status-legend .status-icon { transform: scale(.9); }

.data-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: 470px;
  padding: 10px 15px;
  border: 1px solid #d6dbe4;
  border-radius: 10px;
  background: rgba(255, 255, 255, .95);
  color: #596273;
  box-shadow: 0 10px 30px rgba(25, 29, 38, .12);
  font-size: 13px;
}

.data-notice--error { border-color: #efb0a3; color: #a43f2c; }
.financials-hidden .finance-sensitive { display: none; }

@media (max-width: 1500px) {
  .dashboard-header { grid-template-columns: minmax(0, 1fr) 420px; }
  .program-heading-row { gap: 16px; }
  .program-lockup h1 { font-size: 42px; }
  .project-lockup { grid-template-columns: 1fr 150px; gap: 15px; }
  .goal-title { font-size: 18px; }
  .domain-card h3 { font-size: 24px; }
}

@media (max-width: 1100px) {
  .dashboard-shell { width: calc(100% - 40px); padding-top: 22px; }
  .dashboard-header { grid-template-columns: 1fr 1fr; min-height: 0; }
  .project-lockup { justify-self: end; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: 1fr; }
  .domain-card { min-height: 0; }
}

@media (max-width: 720px) {
  .dashboard-shell { width: calc(100% - 24px); padding-top: 16px; }
  .dashboard-header { display: flex; flex-direction: column; gap: 17px; }
  .program-lockup { width: 100%; }
  .program-heading-row { width: 100%; justify-content: space-between; }
  .program-lockup h1 { font-size: 38px; }
  .program-heading-row span { font-size: 14px; }
  .program-summary h2 { font-size: 17px; }
  .program-summary p { font-size: 14px; }
  .project-lockup { width: 100%; grid-template-columns: 1fr 130px; }
  .project-dates { text-align: left; font-size: 15px; }
  .project-dates div { justify-content: flex-start; }
  .finance-panel { height: auto; grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .spend-track { height: 108px; }
  .spend-label { top: 28px; }
  .spend-value { top: 71px; left: 28px; font-size: 32px; }
  .budget-total { top: 71px; font-size: 19px; }
  .tde-panel { height: 75px; border-left: 0; border-top: 1px solid #d8dde5; flex-direction: row; }
  .status-grid { grid-template-columns: 1fr; gap: 14px; }
  .status-card { height: 135px; }
  .domain-card__header { padding: 17px; }
  .domain-card h3 { font-size: 23px; }
  .goal-row { padding-left: 10px; padding-right: 10px; }
  .goal-title { font-size: 18px; }
  .goal-detail p { padding-left: 55px; }
  .status-legend { flex-wrap: wrap; gap: 16px 22px; }
}

@media print {
  .data-notice { display: none !important; }
  .dashboard-shell { width: 100%; padding: 0; }
  .status-card { box-shadow: none; }
}


.caronova-workforce .domain-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){.caronova-workforce .domain-grid{grid-template-columns:1fr}}

.caronova-access{max-width:640px;margin:50px auto;padding:40px;border-radius:18px;background:#f1f3f7;text-align:center}.caronova-access__button{display:inline-block;background:#1710d5;color:white!important;padding:12px 28px;border-radius:8px}
.caronova-access form { max-width:360px; margin:24px auto; text-align:left; }
.caronova-access form label { display:block; font-weight:700; margin-bottom:5px; }
.caronova-access form input[type=text],.caronova-access form input[type=password] { width:100%; padding:12px; border:1px solid #c5cad5; border-radius:8px; }
.caronova-access form .login-remember { margin:14px 0; }
.caronova-access form input[type=submit] { width:100%; padding:13px; border:0; border-radius:9px; color:#fff; background:#1710d5; font-weight:800; cursor:pointer; }
/* Visual presentation only. The REST endpoint enforces the actual data permissions. */
body.caronova-dashboard-unauthorized .caronova-dashboard-code { display: none !important; }
body:not(.caronova-dashboard-financials) .caronova-dashboard-code .finance-sensitive { display: none !important; }
