/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --ink: #17212f;
  --muted: #667085;
  --line: #d9e0e8;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --nav: #25313f;
  --nav-text: #d8e2ec;
  --nav-active: #3f4b58;
  --nav-hover: #364351;
  --adm-blue: #006fbf;
  --adm-cyan: #00a6d6;
  --green: #16865a;
  --yellow: #b7791f;
  --red: #c2413a;
  --shadow: 0 18px 48px rgba(21, 32, 43, 0.16);
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef2f6;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--adm-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: hidden;
}

.login-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-bg-picture {
  position: absolute;
  inset: 0;
  display: block;
}

.login-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 28, 48, 0.86), rgba(9, 28, 48, 0.54) 45%, rgba(9, 28, 48, 0.22)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.02));
}

.login-panel {
  position: relative;
  width: min(520px, 100%);
  margin-left: auto;
  margin-right: min(8vw, 120px);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.login-brand.simple {
  justify-content: center;
}

.login-brand img {
  width: 168px;
  height: auto;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #c5d4e3;
  border-radius: 999px;
  color: #31516f;
  background: #f7fbff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.login-copy h1 {
  margin: 0;
  max-width: 420px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.login-title {
  margin: 0 0 24px;
  text-align: left;
  font-size: 1.72rem;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.login-helper {
  margin: -10px 0 20px;
  color: #4f5f70;
  font-size: 0.92rem;
  line-height: 1.45;
}

.login-field-hint {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field-hint {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
}

.login-copy p:last-child {
  margin: 16px 0 28px;
  color: #4f5f70;
  line-height: 1.55;
}

.login-form {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.login-form label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #344255;
  font-size: 0.88rem;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  outline: none;
}

.login-form textarea {
  width: 100%;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: white;
  outline: none;
  resize: vertical;
}

.login-form input:focus {
  border-color: var(--adm-blue);
  box-shadow: 0 0 0 3px rgba(0, 111, 191, 0.18);
}

.login-form button,
.secondary-action,
.logout {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.login-form button {
  min-height: 50px;
  color: white;
  background: var(--adm-blue);
}

.change-password-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.change-password-actions > button,
.change-password-cancel {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
}

.change-password-cancel {
  border: 1px solid #bccada;
  color: #344255;
  background: white;
  text-decoration: none;
}

.change-password-cancel:hover {
  border-color: #9fbed9;
  background: #f7fbff;
}

.change-password-actions svg {
  flex: 0 0 auto;
}

.mfa-method-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 16px;
}

.mfa-method-switch a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #31435a;
  background: #f7fbff;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.mfa-method-switch a.is-active {
  border-color: #9fbed9;
  color: var(--adm-blue);
  background: #eaf5ff;
}

.mfa-send-form {
  margin-bottom: 16px;
}

.form-error {
  margin: 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: pre-line;
}

.form-success {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.action-toast {
  position: fixed;
  z-index: 80;
  top: 22px;
  right: 22px;
  width: min(360px, calc(100vw - 44px));
  min-height: 70px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  color: #142033;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  animation: action-toast-lifecycle 4.25s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.action-toast.success {
  border-color: rgba(34, 197, 94, 0.35);
}

.action-toast.error {
  border-color: rgba(220, 38, 38, 0.35);
}

.action-toast.warning {
  border-color: rgba(217, 119, 6, 0.38);
}

.action-toast.success svg {
  color: #16803a;
}

.action-toast.error svg {
  color: var(--red);
}

.action-toast.warning svg {
  color: #b45309;
}

.action-toast span {
  min-width: 0;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.action-toast strong {
  overflow-wrap: anywhere;
  color: #142033;
  font-size: 0.94rem;
  font-weight: 900;
}

.action-toast small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

@keyframes action-toast-lifecycle {
  0% {
    opacity: 0;
    transform: translateX(120%);
  }
  13% {
    opacity: 1;
    transform: translateX(0);
  }
  78% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(0) translateY(-32px);
  }
}

@media (max-width: 720px) {
  .action-toast {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
    min-height: 64px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.app-shell:has(> .sidebar-compact) {
  grid-template-columns: 82px minmax(0, 1fr);
}

.mobile-app-bar,
.mobile-sidebar,
.mobile-menu-scrim {
  display: none;
}

.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px;
  color: white;
  background: var(--nav);
}

.sidebar-brand {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-brand:empty {
  display: none;
}

.sidebar-brand img {
  width: 155px;
  height: auto;
}

.sidebar-brand-compact {
  display: none;
}

.sidebar-brand span {
  color: #b9c7d5;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  margin-top: 24px;
}

.nav-list a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 750;
}

.nav-link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-list a.active,
.nav-list a:hover {
  color: var(--nav-text);
  background: var(--nav-active);
}

.nav-list a:hover {
  background: var(--nav-hover);
}

.logout {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: #d91f2f;
}

.logout:hover,
.logout:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: #b81726;
}

.sidebar > form {
  margin-top: auto;
}

.nav-user-link {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #d8e2ec;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.nav-user-link:hover,
.nav-user-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.14);
}

.nav-user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.nav-user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav-user-link span:not(.nav-user-avatar) {
  min-width: 0;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.nav-user-link strong,
.nav-user-link small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-link strong {
  color: inherit;
  font-size: 0.88rem;
  font-weight: 900;
}

.nav-user-link small {
  color: #b9c7d5;
  font-size: 0.72rem;
  font-weight: 750;
}

.nav-user-badge {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.nav-user-badge.is-alert {
  background: #d91f2f;
}

.nav-user-badge.is-clear {
  background: #1f9d57;
}

.nav-user-link + form {
  margin-top: 0;
}

.sidebar-compact {
  align-items: center;
  padding: 18px 12px;
}

.sidebar-compact .sidebar-brand {
  width: 100%;
  justify-items: center;
  padding-bottom: 18px;
}

.sidebar-compact .sidebar-brand-full {
  display: none;
}

.sidebar-compact .sidebar-brand-compact {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.sidebar-compact .nav-list {
  width: 100%;
  justify-items: center;
  gap: 9px;
  margin-top: 18px;
}

.sidebar-compact .nav-list a {
  width: 48px;
  min-height: 48px;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.sidebar-compact .nav-link-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sidebar-compact .nav-user-link {
  width: 48px;
  min-height: 48px;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  margin-bottom: 10px;
  padding: 5px;
}

.sidebar-compact .nav-user-avatar {
  width: 38px;
  height: 38px;
}

.sidebar-compact .nav-user-link span:not(.nav-user-avatar):not(.nav-user-badge) {
  display: none;
}

.sidebar-compact .nav-user-badge {
  position: absolute;
  right: 1px;
  bottom: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-width: 2px;
  font-size: 0.62rem;
  display: inline-grid;
}

.sidebar-compact > form {
  width: 48px;
}

.sidebar-compact .logout {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
}

.sidebar-compact .logout span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: 0;
}

.topbar-title {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.topbar-status {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  min-width: 136px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.topbar-status span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 42px;
}

.program-detail-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
}

.program-detail-topbar .topbar-title {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.detail-topbar-status {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.program-detail-topbar .topbar-actions {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  margin-bottom: 4px;
}

.topbar-actions .project-topbar-action,
.topbar-actions button.project-topbar-action,
.topbar-actions a.project-topbar-action {
  box-sizing: border-box;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #b8c9d9;
  border-radius: 8px;
  color: #26445f;
  background: #f7fbff;
  text-decoration: none;
  line-height: 1;
}

.topbar-actions .project-topbar-action.is-danger,
.topbar-actions button.project-topbar-action.is-danger,
.topbar-actions a.project-topbar-action.is-danger {
  border-color: var(--red);
  color: white;
  background: var(--red);
}

.topbar-actions .project-topbar-action svg {
  width: 17px;
  min-width: 17px;
  max-width: 17px;
  height: 17px;
  min-height: 17px;
  max-height: 17px;
  flex: 0 0 17px;
  color: currentColor;
  stroke: currentColor;
}

.hero-band,
.section-block,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  grid-gap: 28px;
  gap: 28px;
  padding: 28px;
  overflow: hidden;
  background: var(--surface);
}

.visual-branding-empty {
  color: #64748b;
  font-size: 0.82rem;
}

.hero-band h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-band p:last-child {
  max-width: 720px;
  margin: 16px 0 0;
  color: #4f5f70;
  line-height: 1.55;
}

.hero-metrics {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  align-content: end;
}

.hero-metrics div,
.metric-grid article {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-metrics span,
.metric-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-metrics strong,
.metric-grid strong {
  font-size: 1.55rem;
}

.metric-good {
  color: var(--green);
}

.metric-warning {
  color: var(--yellow);
}

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

.metric-grid article {
  min-height: 140px;
  align-content: space-between;
}

.metric-grid svg {
  color: var(--adm-blue);
}

.dashboard-selector {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-selector select {
  min-width: 150px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.executive-top-metric-selector {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.executive-top-metric-selector select {
  min-width: 172px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.executive-project-scope-selector {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.executive-project-scope-selector select {
  min-width: 170px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.executive-hierarchy-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.executive-hierarchy-filters label {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.executive-hierarchy-filters select {
  min-width: 170px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.executive-panel-heading small,
.executive-report-suppliers h2 small {
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 800;
}

.dashboard-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 6px 20px;
  gap: 6px 20px;
  align-items: center;
}

.dashboard-title {
  min-width: 0;
}

.dashboard-mobile-report-action,
.icon-button.dashboard-mobile-report-action {
  display: none;
}

.dashboard-desktop-report-action,
.icon-button.dashboard-desktop-report-action {
  display: inline-flex;
}

.dashboard-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.separated-dashboard-actions::before {
  content: "";
  order: 2;
  width: 1px;
  min-height: 38px;
  align-self: flex-end;
  background: rgba(15, 23, 42, 0.14);
}

.separated-dashboard-actions .cfo-dashboard-filters,
.separated-dashboard-actions .resource-dashboard-filters,
.separated-dashboard-actions .budget-steering-filters,
.separated-dashboard-actions .partner-dashboard-top-filters {
  order: 1;
}

.separated-dashboard-actions .dashboard-selector {
  order: 3;
}

.separated-dashboard-actions .dashboard-desktop-report-action {
  order: 4;
}

.dashboard-context {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.dashboard-mobile-context {
  display: none;
}

.executive-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.28fr) minmax(260px, 0.3fr) minmax(0, 0.42fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: stretch;
}

.resource-dashboard {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.resource-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.resource-dashboard-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-dashboard-filters label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.resource-dashboard-filters input {
  height: 38px;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.resource-dashboard-current-window {
  height: 38px;
  align-self: flex-end;
}

.partner-dashboard-top-filters {
  display: flex;
  align-items: flex-end;
  align-self: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.partner-dashboard-top-filters label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.partner-dashboard-top-filters label svg {
  vertical-align: middle;
  margin-right: 4px;
}

.partner-dashboard-top-filters input {
  height: 38px;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.partner-dashboard-top-filters select {
  height: 38px;
  min-width: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.partner-dashboard-top-filters label:not(.partner-top-select) select {
  min-width: 110px;
}

.partner-dashboard-combobox .combobox-clear-button {
  right: 8px;
}

.partner-top-select {
  min-width: 250px;
}

.resource-dashboard-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.resource-dashboard-legend > span:not(.capacity-cell) {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  line-height: 1;
}

.resource-dashboard-legend .capacity-cell {
  display: inline-grid;
  place-items: center;
  width: auto;
  min-width: 58px;
  height: 28px;
  padding: 0 8px;
  line-height: 1;
}

.budget-steering-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.budget-steering-filters label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.budget-steering-filters select {
  height: 38px;
  min-width: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.budget-steering-filters button {
  height: 38px;
}

.budget-steering-grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
}

.budget-steering-scope-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  position: relative;
  z-index: 4;
}

.budget-scope-combobox-field {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
}

.budget-scope-combobox {
  position: relative;
  min-width: 0;
}

.budget-scope-combobox input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 36px 0 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.budget-scope-combobox input::placeholder {
  color: #94a3b8;
  font-weight: 750;
}

.budget-scope-combobox-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 308px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.budget-scope-combobox-list button {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  width: 100%;
  min-height: 42px;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.budget-scope-combobox-list button:hover {
  background: #eff6ff;
}

.budget-scope-combobox-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.budget-scope-combobox-list small,
.budget-scope-combobox-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.budget-scope-combobox-list p {
  padding: 10px;
}

.budget-steering-warning-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  min-width: 0;
}

.budget-steering-main,
.budget-steering-project-panel {
  min-width: 0;
}

.budget-steering-chart {
  display: grid;
  justify-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-height: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.budget-steering-chart svg {
  width: 100%;
  max-width: 1200px;
  min-width: 720px;
  height: clamp(220px, 22vw, 300px);
  overflow: visible;
  display: block;
}

.budget-steering-grid-line {
  stroke: #dbe5ef;
  stroke-width: 1;
}

.budget-steering-axis-label,
.budget-steering-month-label {
  fill: #64748b;
  font-size: 0.58rem;
  font-weight: 850;
}

.budget-steering-axis-line {
  stroke: #dbe5ef;
  stroke-width: 1;
}

.budget-steering-user-bar {
  fill: rgba(15, 111, 179, 0.68);
}

.budget-steering-profile-bar {
  fill: rgba(15, 111, 179, 0.14);
  stroke: rgba(15, 111, 179, 0.62);
  stroke-width: 0.7;
}

.budget-steering-legend i {
  width: 16px;
  height: 8px;
  border-radius: 2px;
}

.budget-steering-user-swatch {
  background: rgba(15, 111, 179, 0.68);
}

.budget-steering-profile-swatch {
  border: 1px solid rgba(15, 111, 179, 0.62);
  background: rgba(15, 111, 179, 0.14);
}

.budget-steering-bar-group {
  cursor: crosshair;
}

.budget-steering-bar-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.budget-steering-bar-group:hover .budget-steering-bar-tooltip,
.budget-steering-bar-group:focus-within .budget-steering-bar-tooltip {
  opacity: 1;
}

.budget-steering-bar-tooltip rect {
  fill: #ffffff;
  stroke: #cbd8e7;
  stroke-width: 1;
  filter: drop-shadow(0 12px 22px rgba(15, 35, 60, 0.14));
}

.budget-steering-tooltip-title {
  fill: #64748b;
  font-size: 0.58rem;
  font-weight: 850;
}

.budget-steering-tooltip-value {
  fill: #12263f;
  font-size: 0.68rem;
  font-weight: 950;
}

.budget-steering-warning-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
  font-size: 0.82rem;
  font-weight: 800;
}

.budget-steering-projects > p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.budget-steering-list-row {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
}

.budget-steering-list-row:first-of-type {
  border-top: 0;
}

.budget-steering-list-row strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.budget-steering-list-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.budget-steering-list-row em {
  color: var(--red);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 850;
}

.budget-steering-projects {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.budget-steering-project-detail {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.budget-steering-project-detail summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(520px, 1.2fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.budget-steering-project-detail summary::-webkit-details-marker {
  display: none;
}

.budget-steering-project-detail[open] summary {
  border-bottom: 1px solid var(--line-soft);
  background: #f8fafc;
}

.budget-steering-project-title {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-width: 0;
}

.budget-steering-project-title strong {
  color: var(--ink);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-steering-project-title small,
.budget-steering-project-metrics small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.budget-steering-project-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.budget-steering-project-metrics > span {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
  text-align: right;
}

.budget-steering-project-metrics b {
  color: var(--ink);
  font-size: 0.88rem;
  white-space: nowrap;
}

.budget-steering-project-metrics .is-warn b,
.budget-steering-comparison-row .is-warn {
  color: var(--orange);
}

.budget-steering-breakdowns {
  padding: 14px 14px 16px;
  border-bottom: 1px solid var(--line);
}

.budget-steering-comparison-table > p {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.budget-steering-comparison-table {
  display: grid;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.budget-steering-comparison-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.05fr) minmax(160px, 1.15fr) 80px 112px 112px minmax(128px, 0.9fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.budget-steering-comparison-row:first-child {
  border-top: 0;
}

.budget-steering-comparison-row.is-header {
  min-height: 34px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.budget-steering-comparison-row > span:nth-child(1),
.budget-steering-comparison-row > span:nth-child(2) {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}

.budget-steering-comparison-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-steering-comparison-row small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.budget-steering-comparison-row > span:nth-child(n + 3) {
  text-align: right;
}

.resource-capacity-chart-panel {
  min-width: 0;
}

.resource-capacity-person-select {
  display: grid;
  grid-template-columns: auto minmax(220px, 280px);
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.resource-capacity-chart-title {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.resource-capacity-chart-title > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.resource-capacity-person-combobox {
  position: relative;
}

.resource-capacity-person-combobox input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #223247;
  padding: 0 38px 0 12px;
  font: inherit;
}

.resource-capacity-person-combobox input::placeholder {
  color: #94a3b8;
}

.combobox-clear-button {
  position: absolute;
  top: 50%;
  right: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #eef3f8;
  color: #64748b;
  cursor: pointer;
  transform: translateY(-50%);
  line-height: 1;
}

.combobox-clear-button svg {
  display: block;
  flex: 0 0 auto;
}

.combobox-clear-button:hover,
.combobox-clear-button:focus-visible {
  background: #dbeafe;
  color: var(--adm-blue);
  outline: none;
}

.search-combobox {
  position: relative;
  min-width: 0;
}

.search-combobox > input[role='combobox'] {
  width: 100%;
  padding-right: 2.3rem;
}

.search-combobox-list {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.25rem);
  left: 0;
  width: 100%;
  max-height: min(20rem, 45vh);
  overflow-y: auto;
}

.search-combobox-list.is-portal {
  position: fixed;
  z-index: 2000;
}

.search-combobox-list button.is-active {
  background: #edf4fb;
}

.search-combobox-list button.partner-combobox-group-label {
  background: var(--surface-subtle, #f3f6f8);
  color: var(--text-muted, #62707b);
  cursor: default;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.resource-capacity-person-clear {
  right: 8px;
  width: 24px;
  height: 24px;
}

.resource-capacity-person-combobox-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  padding: 6px;
}

.resource-capacity-person-combobox-list button,
.resource-capacity-person-combobox-list span {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #223247;
  padding: 8px 10px;
  text-align: left;
}

.resource-capacity-person-combobox-list button {
  cursor: pointer;
}

.resource-capacity-person-combobox-list button:hover,
.resource-capacity-person-combobox-list button:focus,
.resource-capacity-person-combobox-list button.is-selected {
  background: #eef6fc;
  outline: none;
}

.resource-capacity-person-combobox-list strong {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-capacity-person-combobox-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-capacity-chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  grid-gap: 14px;
  gap: 14px;
  align-items: stretch;
}

.resource-capacity-chart-scroll {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.resource-capacity-overview-chart {
  min-width: 720px;
  max-width: none;
  height: auto;
  display: block;
}

.resource-capacity-overview-grid {
  stroke: #dbe5ef;
  stroke-width: 1;
}

.resource-capacity-overview-grid.is-vertical {
  stroke-dasharray: 4 7;
}

.resource-capacity-overview-grid.is-vertical.is-current-week {
  stroke: var(--adm-blue);
  stroke-dasharray: none;
  stroke-width: 2;
}

.resource-capacity-overview-target {
  stroke: #0f6fb3;
  stroke-dasharray: 8 7;
  stroke-width: 1.5;
}

.resource-capacity-overview-axis,
.resource-capacity-overview-week {
  fill: #64748b;
  font-size: 0.58rem;
  font-weight: 850;
}

.resource-capacity-overview-week.is-current-week {
  fill: var(--adm-blue);
  font-weight: 950;
}

.resource-capacity-project-line {
  fill: none;
  opacity: 0.52;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.resource-capacity-total-line {
  fill: none;
  stroke: #12263f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.resource-capacity-total-point {
  fill: #12263f;
  stroke: #fff;
  stroke-width: 2;
}

.resource-capacity-week-hitbox {
  cursor: crosshair;
  fill: transparent;
}

.resource-capacity-week-hitbox:hover,
.resource-capacity-week-hitbox:focus {
  fill: rgba(15, 111, 179, 0.06);
  outline: none;
}

.resource-capacity-week-tooltip-line {
  stroke: #12263f;
  stroke-dasharray: 5 5;
  stroke-width: 1.4;
}

.resource-capacity-week-tooltip rect {
  fill: #ffffff;
  stroke: #cbd8e7;
  stroke-width: 1;
  filter: drop-shadow(0 12px 22px rgba(15, 35, 60, 0.14));
}

.resource-capacity-week-tooltip-title {
  fill: #12263f;
  font-size: 0.72rem;
  font-weight: 950;
}

.resource-capacity-week-tooltip-total {
  fill: var(--adm-blue);
  font-size: 0.66rem;
  font-weight: 900;
}

.resource-capacity-week-tooltip-project,
.resource-capacity-week-tooltip-hours,
.resource-capacity-week-tooltip-empty {
  fill: #334155;
  font-size: 0.62rem;
  font-weight: 800;
}

.resource-capacity-week-tooltip-hours {
  fill: #12263f;
  font-weight: 950;
}

.resource-capacity-week-tooltip-empty {
  fill: #64748b;
}

.resource-capacity-chart-legend {
  display: grid;
  align-content: start;
  grid-gap: 8px;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.resource-capacity-chart-legend span,
.resource-capacity-chart-legend a {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  color: #223247;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.resource-capacity-chart-legend i {
  width: 16px;
  height: 4px;
  border-radius: 999px;
}

.resource-capacity-chart-legend a span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-capacity-total-swatch {
  background: #12263f;
}

.resource-capacity-panel {
  min-width: 0;
}

.resource-capacity-panel-head {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
}

.resource-capacity-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.resource-capacity-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.resource-capacity-table th,
.resource-capacity-table td {
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  padding: 6px;
  text-align: center;
  white-space: nowrap;
}

.resource-capacity-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 900;
}

.resource-capacity-table thead th.is-current-month {
  background: #eaf5ff;
  color: var(--adm-blue);
}

.resource-capacity-table thead th.is-current-week {
  background: var(--adm-blue);
  color: white;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.45);
}

.resource-capacity-person-head,
.resource-capacity-table tbody th {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 5;
  min-width: 250px;
  max-width: 250px;
  background: white;
  background-clip: padding-box;
  border-right: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 10px 0 14px -16px rgba(15, 23, 42, 0.48);
  text-align: left;
}

.resource-capacity-table thead .resource-capacity-person-head {
  left: 0;
  z-index: 7;
  background: #f8fafc;
}

.resource-capacity-table tbody th {
  z-index: 5;
}

.resource-person-row th button,
.resource-project-row th a {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.resource-project-row th a {
  padding-left: 32px;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.resource-person-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e0f2fe;
  color: var(--adm-blue);
  font-size: 0.72rem;
  font-weight: 900;
  overflow: hidden;
}

.resource-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-capacity-table strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
}

.resource-capacity-table td.capacity-cell strong {
  color: inherit;
  font-size: 0.74rem;
  line-height: 1;
}

.resource-capacity-table small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
}

.resource-capacity-table td.capacity-cell small {
  color: inherit;
  font-size: 0.62rem;
  line-height: 1.1;
  opacity: 0.82;
}

.resource-project-row th,
.resource-project-row td {
  background: #f8fafc;
}

.resource-person-row:hover th,
.resource-person-row:hover td,
.resource-project-row:hover th,
.resource-project-row:hover td {
  background: #f6fbff;
}

.capacity-cell {
  width: 62px;
  height: 36px;
  border-radius: 7px;
  color: #223247;
  font-weight: 900;
}

.resource-capacity-table td.capacity-cell {
  min-width: 66px;
  height: 38px;
  border-radius: 0;
  background: white;
  box-shadow: inset 2px 0 0 transparent;
  color: #334155;
  text-align: right;
}

.resource-capacity-table td.capacity-cell.empty {
  box-shadow: inset 2px 0 0 #d8e0ea;
  background: #f8fafc;
  color: #64748b;
}

.resource-capacity-table td.capacity-cell.critical-low,
.resource-capacity-table td.capacity-cell.critical-high {
  box-shadow: inset 2px 0 0 rgba(220, 38, 38, 0.46);
  background: #fffafa;
  color: #7f1d1d;
}

.resource-capacity-table td.capacity-cell.low,
.resource-capacity-table td.capacity-cell.high {
  box-shadow: inset 2px 0 0 rgba(234, 88, 12, 0.44);
  background: #fffdf8;
  color: #7c2d12;
}

.resource-capacity-table td.capacity-cell.ok {
  box-shadow: inset 2px 0 0 rgba(22, 163, 74, 0.42);
  background: #fbfefc;
  color: #14532d;
}

.resource-capacity-table td.capacity-cell.watch {
  box-shadow: inset 2px 0 0 rgba(202, 138, 4, 0.42);
  background: #fffef7;
  color: #713f12;
}

.resource-capacity-table td.capacity-cell.is-current-week {
  border-top-color: rgba(15, 111, 179, 0.72);
  border-right-color: rgba(15, 111, 179, 0.72);
  border-bottom-color: rgba(15, 111, 179, 0.72);
  outline: 1px solid rgba(15, 111, 179, 0.35);
  outline-offset: -1px;
}

.capacity-cell.empty {
  background: #f1f5f9;
  color: #94a3b8;
}

.capacity-cell.critical-low,
.capacity-cell.critical-high {
  background: #fee2e2;
  color: #991b1b;
}

.capacity-cell.low,
.capacity-cell.high {
  background: #ffedd5;
  color: #9a3412;
}

.capacity-cell.ok {
  background: #dcfce7;
  color: #166534;
}

.capacity-cell.watch {
  background: #fef9c3;
  color: #854d0e;
}

.executive-financial-grid {
  grid-column: 1 / -1;
}

.stakeholder-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  grid-gap: 22px;
  gap: 22px;
  align-items: stretch;
}

.stakeholder-dashboard-panel,
.stakeholder-dashboard-side {
  min-width: 0;
}

.stakeholder-dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stakeholder-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.stakeholder-dashboard-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stakeholder-dashboard-search {
  min-width: min(320px, 42vw);
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
}

.stakeholder-dashboard-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
}

.stakeholder-dashboard-summary,
.stakeholder-dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stakeholder-dashboard-summary {
  margin-bottom: 20px;
}

.stakeholder-dashboard-summary span,
.stakeholder-dashboard-legend span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #344255;
  font-size: 0.72rem;
  font-weight: 900;
}

.stakeholder-dashboard-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 22px;
  padding: 0;
}

.stakeholder-dashboard-filters label {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.stakeholder-dashboard-combobox {
  position: relative;
}

.stakeholder-dashboard-combobox::after {
  border-color: #64748b transparent transparent transparent;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 13px;
  top: 18px;
}

.stakeholder-dashboard-combobox input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  outline: none;
  padding: 0 58px 0 10px;
}

.stakeholder-dashboard-combobox input:focus {
  border-color: #7da9d4;
  box-shadow: 0 0 0 3px rgba(0, 83, 160, 0.12);
}

.stakeholder-dashboard-combobox-list {
  background: #fff;
  border: 1px solid #bccada;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(28, 45, 70, 0.18);
  display: grid;
  left: 0;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

.stakeholder-dashboard-combobox-list button,
.stakeholder-dashboard-combobox-list span {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.stakeholder-dashboard-combobox-list button {
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
}

.stakeholder-dashboard-combobox-list button:hover,
.stakeholder-dashboard-combobox-list button:focus,
.stakeholder-dashboard-combobox-list button.is-selected {
  background: #edf4fb;
  outline: none;
}

.stakeholder-dashboard-reset {
  height: 40px;
  min-height: 40px;
  white-space: nowrap;
}

.stakeholder-dashboard-reset:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.stakeholder-dashboard-map {
  position: relative;
  margin-top: 0;
  min-height: min(68dvh, 720px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(21, 32, 43, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 32, 43, 0.035) 1px, transparent 1px),
    #fbfcfe;
  background-size: 28px 28px;
}

.stakeholder-dashboard-canvas {
  position: absolute;
  inset: 0;
}

.stakeholder-dashboard-state {
  min-height: min(68dvh, 720px);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.stakeholder-dashboard-state.is-error {
  color: #8f2d2d;
}

.stakeholder-dashboard-empty {
  position: absolute;
  inset: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px dashed #bccada;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}

.stakeholder-dashboard-side {
  align-content: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stakeholder-dashboard-legend {
  display: grid;
  margin-top: 18px;
  padding: 0;
}

.stakeholder-dashboard-legend strong {
  margin: 10px 0 2px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stakeholder-dashboard-legend strong:first-child {
  margin-top: 0;
}

.stakeholder-dashboard-legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.stakeholder-dashboard-legend i.is-project {
  border-radius: 3px;
  background: #2f9e67;
}

.stakeholder-dashboard-legend i.is-program {
  border-radius: 0;
  background: #5c6f82;
  transform: rotate(45deg) scale(0.86);
}

.stakeholder-dashboard-legend i.is-portfolio {
  width: 14px;
  border-radius: 0;
  background: #0b1f33;
  -webkit-clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
          clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.stakeholder-dashboard-legend i.is-person {
  background: var(--adm-blue);
}

.stakeholder-dashboard-legend i.is-company {
  border-radius: 3px;
  border: 1px solid #93a4b8;
  background: #ffffff;
}

.stakeholder-dashboard-legend i.is-highly-connected {
  border: 2px solid var(--adm-blue);
  background: #1769aa;
}

.stakeholder-dashboard-legend i.is-project-role {
  background: #7da9d4;
}

.stakeholder-dashboard-legend i.legend-line {
  width: 24px;
  height: 0;
  border-radius: 0;
  background: transparent;
  border-top: 3px solid #7da9d4;
}

.stakeholder-dashboard-legend i.legend-line.is-company-contact {
  border-top-color: #93a4b8;
  border-top-style: dashed;
}

.stakeholder-dashboard-legend i.legend-line.is-project-role {
  border-top-color: #7da9d4;
}

.stakeholder-dashboard-legend i.legend-line.is-hierarchy {
  border-top-color: #0b1f33;
}

.stakeholder-dashboard-legend i.is-influence-1 {
  background: #2f9e67;
}

.stakeholder-dashboard-legend i.legend-line.is-influence-1 {
  border-top-color: #2f9e67;
}

.stakeholder-dashboard-legend i.is-influence-2 {
  background: #f5a524;
}

.stakeholder-dashboard-legend i.legend-line.is-influence-2 {
  border-top-color: #f5a524;
}

.stakeholder-dashboard-legend i.is-influence-3 {
  background: #d64545;
}

.stakeholder-dashboard-legend i.legend-line.is-influence-3 {
  border-top-color: #d64545;
}

.stakeholder-dashboard-selection {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 22px;
}

.stakeholder-dashboard-selection strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.stakeholder-dashboard-selection span,
.stakeholder-dashboard-selection p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.stakeholder-dashboard-selection div {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.stakeholder-dashboard-open {
  width: -moz-fit-content;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
}

.stakeholder-dashboard-selection small {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #344255;
  font-size: 0.72rem;
  font-weight: 850;
}

@media (max-width: 980px) {
  .stakeholder-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stakeholder-dashboard-filters {
    grid-template-columns: 1fr;
  }

  .stakeholder-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stakeholder-dashboard-tools,
  .stakeholder-dashboard-search {
    width: 100%;
  }
}

.executive-bottom-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  align-items: stretch;
}

.executive-overview-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

@media (min-width: 2200px) {
  .executive-overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr) minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

.executive-overview-summary {
  display: grid;
  height: 100%;
}

.executive-financial-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.executive-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.executive-risk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.executive-risk-panel .executive-risk-grid {
  grid-template-columns: 1fr;
  align-content: center;
}

.executive-supplier-panel {
  min-width: 0;
}

.executive-supplier-panel > .executive-supplier-chart {
  min-height: 310px;
  height: auto;
  align-self: stretch;
}

.executive-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "value value";
  align-items: center;
  grid-gap: 6px 8px;
  gap: 6px 8px;
  min-height: 76px;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.05);
}

.executive-tile svg {
  grid-area: icon;
  color: var(--adm-blue);
}

.executive-tile span {
  grid-area: label;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

.executive-tile strong {
  grid-area: value;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.15;
  text-decoration: none;
  border: 0;
}

.executive-health-tile {
  display: grid;
  min-height: 250px;
}

.executive-health-pie-layout {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  align-content: center;
  justify-content: center;
  grid-gap: 18px;
  gap: 18px;
  min-height: 0;
}

.executive-health-pie-block {
  display: grid;
  align-content: center;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
}

.executive-health-pie-shell {
  justify-self: center;
  width: 190px;
  aspect-ratio: 1;
}

.executive-health-pie {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.executive-health-pie-segment {
  cursor: pointer;
  outline: none;
  stroke: white;
  stroke-width: 2;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.executive-health-pie-segment:hover,
.executive-health-pie-segment.is-active {
  filter: drop-shadow(0 8px 10px rgba(21, 32, 43, 0.18));
}

.executive-health-pie-total {
  fill: var(--ink);
  font-size: 1.7rem;
  font-weight: 900;
  dominant-baseline: middle;
}

.executive-health-pie-label {
  fill: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  dominant-baseline: middle;
}

.executive-health-project-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.executive-health-modal {
  width: min(680px, calc(100vw - 32px));
  align-self: center;
  gap: 14px;
  padding-top: 24px;
}

.executive-health-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-right: 42px;
}

.executive-health-modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.executive-health-modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.executive-health-modal-head .executive-health-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.executive-health-project-list-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1;
}

.executive-health-project-list-items {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  max-height: 132px;
  overflow: auto;
  padding-right: 2px;
}

.executive-health-project-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(21, 32, 43, 0.08);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  text-decoration: none;
}

.executive-health-project-list a:hover {
  border-color: rgba(0, 83, 160, 0.26);
  background: rgba(0, 83, 160, 0.06);
}

.executive-health-project-list a span {
  color: var(--adm-blue);
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.executive-health-project-list a strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-health-project-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.executive-health-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 1px rgba(21, 32, 43, 0.12);
}

.executive-health-dot.green {
  background: var(--green);
}

.executive-health-dot.orange {
  background: var(--yellow);
}

.executive-health-dot.red {
  background: var(--red);
}

.executive-health-counts {
  display: grid;
  align-items: center;
  align-self: center;
  grid-gap: 10px;
  gap: 10px;
  justify-self: start;
  font-size: 1rem;
}

.executive-health-counts button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: inherit;
  font-weight: 900;
  cursor: pointer;
}

.executive-health-counts button:hover,
.executive-health-counts button.is-active {
  border-color: rgba(0, 83, 160, 0.18);
  background: rgba(0, 83, 160, 0.06);
}

.executive-health-structure-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.executive-health-structure-row div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "value value";
  align-items: center;
  grid-gap: 4px 6px;
  gap: 4px 6px;
  min-height: 70px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.executive-health-structure-row svg {
  grid-area: icon;
  color: var(--adm-blue);
}

.executive-health-structure-row span {
  grid-area: label;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-health-structure-row strong {
  grid-area: value;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1;
}

.executive-tile-good strong {
  color: var(--green);
}

.executive-supplier-total-compact {
  display: none;
}

.executive-supplier-label-compact {
  display: none;
}

.executive-tile-warn strong {
  color: var(--yellow);
}

.executive-tile-bad strong {
  color: var(--red);
}

.executive-panel {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-rows: auto 1fr;
  padding: 14px;
}

.executive-health-tile {
  grid-template-rows: auto 1fr auto;
}

.executive-panel .module-card-title {
  margin: 0;
}

.executive-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.executive-panel-action {
  min-height: 34px;
  white-space: nowrap;
}

.executive-chart {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  align-content: stretch;
  min-height: 310px;
}

.executive-chart svg {
  width: 100%;
  min-height: 285px;
  overflow: visible;
}

.executive-burndown-panel .executive-chart {
  min-height: 330px;
}

.executive-burndown-panel .executive-chart svg {
  min-height: 300px;
}

.executive-chart text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.executive-chart-axis {
  stroke: #7b8794;
  stroke-width: 1.4;
}

.executive-chart-grid {
  stroke: #e8edf2;
  stroke-width: 1;
}

.executive-chart-zero {
  stroke: var(--red);
  stroke-width: 1.25;
  stroke-dasharray: 4 3;
}

.executive-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.executive-chart-line.actual {
  stroke: var(--adm-blue);
}

.executive-chart-line.cashflow {
  stroke: var(--adm-blue);
  stroke-dasharray: 8 7;
}

.executive-chart-month {
  font-size: 11px;
}

.executive-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.executive-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.executive-chart-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
}

.legend-actual {
  background: var(--adm-blue);
}

.legend-cashflow {
  background: repeating-linear-gradient(90deg, var(--adm-blue) 0 8px, transparent 8px 13px);
}

.legend-budget {
  background: #94a3b8;
}

.cfo-dashboard-grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.cfo-dashboard-filters {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.cfo-dashboard-filters label {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.cfo-dashboard-filters select {
  min-width: 170px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.cfo-financial-grid {
  grid-column: auto;
}

.cfo-main-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.54fr) minmax(0, 0.46fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: stretch;
}

.cfo-capex-opex-chart {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  overflow: visible;
}

.cfo-capex-opex-chart svg {
  width: 100%;
  min-height: 280px;
  overflow: visible;
}

.cfo-capex-opex-chart text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.cfo-capex-opex-bar.capex,
.cfo-capex-opex-planned-bar.capex,
.legend-capex {
  fill: var(--adm-blue);
  background: var(--adm-blue);
}

.cfo-capex-opex-bar.opex,
.cfo-capex-opex-planned-bar.opex,
.legend-opex {
  fill: var(--green);
  background: var(--green);
}

.cfo-capex-opex-bar.unclassified,
.cfo-capex-opex-planned-bar.unclassified,
.legend-unclassified {
  fill: #94a3b8;
  background: #94a3b8;
}

.cfo-capex-opex-chart .is-forecast .cfo-capex-opex-bar,
.cfo-report-chart .is-forecast .cfo-capex-opex-bar {
  opacity: 0.45;
}

.cfo-capex-opex-planned-bar {
  opacity: 0.58;
}

.cfo-capex-opex-segment {
  cursor: default;
}

.cfo-capex-opex-hitbox {
  fill: transparent;
  pointer-events: all;
}

.cfo-chart-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.cfo-chart-tooltip rect {
  fill: #142033;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.18));
}

.cfo-chart-tooltip text {
  fill: white;
  font-size: 11px;
  font-weight: 900;
}

.cfo-capex-opex-segment:hover .cfo-chart-tooltip,
.cfo-capex-opex-segment:focus-within .cfo-chart-tooltip {
  opacity: 1;
}

.legend-forecast {
  background: repeating-linear-gradient(90deg, #94a3b8 0 6px, transparent 6px 10px);
}

.legend-planned {
  background: linear-gradient(90deg, var(--adm-blue) 0 50%, var(--green) 50% 100%);
  opacity: 0.58;
}

.cfo-revised-budget-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
}

.cfo-burnup-chart {
  min-height: 400px;
}

.cfo-burnup-chart svg {
  min-height: 380px;
}
.executive-chart-line.initial { stroke: #2f8f5b; stroke-dasharray: 6 5; }
.legend-initial { background: #2f8f5b; border-top: 2px dotted #2f8f5b; }

.cfo-budget-reference {
  stroke: #94a3b8;
  stroke-width: 2;
  stroke-dasharray: 5 6;
}

.cfo-money-impact {
  display: inline-grid;
  grid-template-columns: 17px max-content;
  align-items: center;
  justify-content: end;
  gap: 4px;
  white-space: nowrap;
}

.cfo-money-impact svg {
  color: var(--adm-blue);
  stroke-width: 2.35;
}

.cfo-money-impact small {
  font-size: 0.72rem;
  font-weight: 850;
  opacity: 0.78;
}

.cfo-variance-bad {
  color: var(--red);
  font-weight: 900;
}

.cfo-variance-good {
  color: var(--green);
  font-weight: 900;
}

.executive-report-page {
  background: #eef3f8;
}

.executive-report-sheet {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  width: min(1540px, calc(100vw - 44px));
  padding: 22px;
}

.executive-report-header {
  box-sizing: border-box;
  height: 76px;
  padding-bottom: 12px;
}

.executive-report-finance {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  width: 100%;
}

.executive-report-finance .report-metric {
  box-sizing: border-box;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "value value";
  align-items: center;
  gap: 6px 8px;
  min-height: 76px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 10px;
}

.executive-report-finance .report-metric svg {
  grid-area: icon;
}

.executive-report-finance .report-metric > span {
  grid-area: label;
}

.executive-report-finance .report-metric > strong {
  grid-area: value;
}

.executive-report-overview {
  display: grid;
  grid-template-columns: minmax(230px, 0.24fr) minmax(190px, 0.18fr) minmax(300px, 0.29fr) minmax(300px, 0.29fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: stretch;
}

.executive-report-health-card,
.executive-report-risk-summary,
.executive-report-burndown,
.executive-report-suppliers,
.executive-report-bottom .report-card {
  padding: 12px;
}

.executive-report-health-card > h2,
.executive-report-risk-summary > h2,
.executive-report-burndown > h2,
.executive-report-suppliers > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin: 0;
  color: #18283a;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.2;
}

.executive-report-health-card > h2 svg,
.executive-report-risk-summary > h2 svg,
.executive-report-burndown > h2 svg,
.executive-report-suppliers > h2 svg {
  flex: 0 0 16px;
  color: var(--adm-blue);
  stroke-width: 2.25;
}

.executive-report-health-counts {
  display: grid;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
}

.executive-report-health-counts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.executive-report-health-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-gap: 10px;
  gap: 10px;
}

.executive-report-risk-summary {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-gap: 10px;
  gap: 10px;
}

.executive-report-health-main {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  grid-gap: 14px;
  gap: 14px;
}

.executive-report-health-pie {
  position: relative;
  width: 142px;
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  align-content: center;
  grid-gap: 2px;
  gap: 2px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(21, 32, 43, 0.1);
}

.executive-report-health-pie::after {
  content: "";
  position: absolute;
  inset: 25px;
  border-radius: inherit;
  background: white;
  box-shadow: 0 0 0 1px rgba(21, 32, 43, 0.06);
}

.executive-report-health-pie strong,
.executive-report-health-pie span {
  position: relative;
  z-index: 1;
}

.executive-report-health-pie strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.executive-report-health-pie span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
}

.executive-report-health-structure {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.executive-report-health-structure div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "value value";
  align-items: center;
  grid-gap: 4px 6px;
  gap: 4px 6px;
  min-width: 0;
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.executive-report-health-structure svg {
  grid-area: icon;
  color: var(--adm-blue);
}

.executive-report-health-structure span {
  grid-area: label;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-report-health-structure strong {
  grid-area: value;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
}

.executive-report-risk-summary .report-risk-metrics {
  grid-template-columns: 1fr;
  gap: 8px;
  align-self: end;
}

.executive-report-risk-summary .report-risk-metrics div {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "value value";
  align-items: center;
  min-height: 48px;
}

.executive-report-risk-summary .report-risk-metrics svg {
  grid-area: icon;
}

.executive-report-risk-summary .report-risk-metrics span {
  grid-area: label;
}

.executive-report-risk-summary .report-risk-metrics strong {
  grid-area: value;
}

.executive-report-burndown {
  min-height: 315px;
}

.executive-report-suppliers {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 315px;
}

.executive-supplier-chart {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  padding: 8px 0 28px;
}

.executive-supplier-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) minmax(80px, 1.4fr) 58px;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.executive-supplier-row > span,
.executive-supplier-name-link {
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-supplier-name-link {
  text-decoration: none;
}

.executive-supplier-name-link:hover,
.executive-supplier-name-link:focus-visible {
  color: var(--adm-blue);
  text-decoration: underline;
}

.executive-supplier-track {
  display: flex;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2;
}

.executive-supplier-track i {
  display: block;
  flex: 0 0 auto;
  height: 100%;
}

.executive-supplier-capex { background: var(--adm-blue); }
.executive-supplier-opex { background: var(--green); }
.executive-supplier-unclassified { background: var(--red); }
.executive-supplier-legend .legend-unclassified { background: var(--red); }
.executive-supplier-track i:first-child { border-radius: 999px 0 0 999px; }
.executive-supplier-track i:last-child { border-radius: 0 999px 999px 0; }

.executive-supplier-row strong {
  color: var(--ink);
  font-size: 0.7rem;
  text-align: right;
  white-space: nowrap;
}

.executive-supplier-legend {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  justify-content: flex-start;
}

.executive-supplier-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin-top: 0;
}

.executive-supplier-totals .report-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "value value";
  align-items: center;
  grid-gap: 4px 6px;
  gap: 4px 6px;
  min-height: 52px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.executive-supplier-totals .report-metric svg {
  grid-area: icon;
  color: var(--adm-blue);
}

.executive-supplier-totals .report-metric span {
  grid-area: label;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-supplier-totals .report-metric strong {
  grid-area: value;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
}

.executive-supplier-chart-report {
  padding-bottom: 0;
}

.executive-supplier-chart-report .executive-supplier-legend {
  position: static;
  margin-top: auto;
  margin-bottom: 8px;
}

.executive-supplier-chart-web .executive-supplier-legend {
  position: static;
  margin-top: auto;
  margin-bottom: 8px;
}

.executive-supplier-chart-web {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  height: auto;
  min-height: 310px;
  padding-bottom: 112px;
}

.executive-supplier-chart-web .executive-supplier-legend {
  position: absolute;
  right: 0;
  bottom: 82px;
  left: 0;
  margin: 0;
}

.executive-supplier-chart-web .executive-supplier-totals {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.executive-supplier-chart-web .executive-supplier-totals > div {
  min-height: 70px;
  padding: 12px;
}

@media (max-width: 1250px) {
  .executive-report-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .executive-report-overview { grid-template-columns: 1fr; }
}

.executive-report-chart {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}

.executive-report-chart svg {
  width: 100%;
  min-height: 365px;
  overflow: visible;
}

.executive-report-chart .executive-chart-zero {
  stroke: var(--red);
  stroke-width: 1.25;
  stroke-dasharray: 4 3;
}

.executive-report-chart text {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.executive-report-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.executive-report-table {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.executive-report-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 4px 12px;
  gap: 4px 12px;
  align-items: center;
  height: 52px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.executive-report-table strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-report-table span,
.executive-report-table small {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.executive-report-table small {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.executive-report-table small svg {
  color: var(--adm-blue);
}

.executive-report-table > .executive-report-risk-row {
  grid-template-columns: minmax(150px, 1.3fr) minmax(150px, 1fr) minmax(88px, auto) minmax(58px, auto);
  gap: 10px;
  height: 52px;
  min-height: 52px;
  align-content: center;
}

.executive-report-risk-row span,
.executive-report-risk-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-report-table > .executive-report-risk-row small {
  grid-column: auto;
  grid-row: auto;
  justify-content: flex-end;
}

.executive-report-table em {
  justify-self: end;
  font-style: normal;
}

.cfo-report-sheet {
  gap: 12px;
}

.cfo-report-sheet > .executive-report-header {
  width: 100%;
  height: 76px;
  margin-bottom: 0;
  padding-bottom: 12px;
}

.cfo-report-sheet > .executive-report-finance .report-metric {
  height: 76px;
  min-height: 76px;
}

.cfo-report-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  align-items: stretch;
}

.cfo-report-capex-card,
.cfo-report-budget-card,
.cfo-report-burndown-card,
.cfo-report-bottom .report-card {
  padding: 12px;
}

.cfo-report-capex-card > h2,
.cfo-report-budget-card > h2,
.cfo-report-burndown-card > h2,
.cfo-report-bottom .report-card > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin: 0 0 8px;
  color: #18283a;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.2;
}

.cfo-report-capex-card > h2 svg,
.cfo-report-budget-card > h2 svg,
.cfo-report-burndown-card > h2 svg,
.cfo-report-bottom .report-card > h2 svg {
  flex: 0 0 16px;
  color: var(--adm-blue);
  stroke-width: 2.25;
}

.cfo-report-chart {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.cfo-report-chart svg {
  width: 100%;
  min-height: 252px;
  overflow: visible;
}

.cfo-report-chart text {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.cfo-report-budget-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 332px;
}

.cfo-report-capex-card .cfo-report-budget-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: stretch;
  margin-top: 12px;
}

.cfo-report-budget-grid {
  display: grid;
  align-content: center;
  grid-gap: 8px;
  gap: 8px;
}

.cfo-report-budget-grid .report-metric {
  min-height: 78px;
  padding: 10px;
}

.cfo-report-burndown-card {
  min-height: 332px;
}

.cfo-report-burndown-chart svg {
  min-height: 282px;
}

.cfo-report-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cfo-report-bottom > .report-card {
  box-sizing: border-box;
  height: 324px;
  min-height: 324px;
}

.cfo-report-table > div {
  height: 48px;
  min-height: 48px;
}

.resource-report-sheet {
  display: grid;
  align-content: start;
  grid-gap: 12px;
  gap: 12px;
}

.resource-report-chart-card,
.resource-report-person-card {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
}

.resource-report-chart-card > h2,
.resource-report-person-card > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #18283a;
  font-size: 0.94rem;
  font-weight: 900;
}

.resource-report-chart-card > h2 svg,
.resource-report-person-card > h2 svg {
  color: var(--adm-blue);
  stroke-width: 2.25;
}

.resource-report-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  grid-gap: 10px;
  gap: 10px;
  align-items: stretch;
}

.resource-report-chart svg {
  width: 100%;
  min-height: 255px;
  overflow: visible;
}

.resource-report-chart text {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.resource-report-target-line {
  stroke: var(--adm-blue);
  stroke-dasharray: 8 7;
  stroke-width: 1.1;
}

.resource-report-person-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.resource-report-project-line {
  fill: none;
  opacity: 0.82;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
}

.resource-report-chart .executive-chart-axis {
  stroke-width: 1;
}

.resource-report-chart .executive-chart-grid {
  stroke-width: 0.75;
}

.resource-report-chart-legend {
  display: grid;
  align-content: start;
  grid-gap: 7px;
  gap: 7px;
  max-height: 315px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.resource-report-chart-legend span {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  grid-gap: 7px;
  gap: 7px;
  align-items: center;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 850;
}

.resource-report-chart-legend span.is-project {
  padding-left: 16px;
  color: #526276;
  font-size: 0.68rem;
  font-weight: 750;
}

.resource-report-chart-legend i {
  width: 16px;
  height: 4px;
  border-radius: 999px;
}

.resource-report-chart-legend span.is-project i {
  height: 2px;
  opacity: 0.7;
}

.resource-report-capacity-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.resource-report-capacity-legend .capacity-cell {
  display: inline-grid;
  place-items: center;
  width: auto;
  min-width: 48px;
  height: 24px;
  padding: 0 7px;
  line-height: 1;
}

.resource-report-table-wrap {
  overflow: hidden;
}

.resource-report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.64rem;
}

.resource-report-table th,
.resource-report-table td {
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  padding: 5px;
  text-align: center;
}

.resource-report-table thead th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 900;
}

.resource-report-table th:first-child {
  width: 210px;
  text-align: left;
}

.resource-report-table tbody th {
  background: #fff;
}

.resource-report-table .resource-report-project-row th,
.resource-report-table .resource-report-project-row td {
  background: #f8fafc;
}

.resource-report-table .resource-report-project-row th {
  padding-left: 18px;
}

.resource-report-table .resource-report-project-row strong {
  font-size: 0.58rem;
}

.resource-report-table strong,
.resource-report-table small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-report-table strong {
  color: var(--ink);
}

.resource-report-table small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
}

.resource-report-table td.capacity-cell {
  width: auto;
  height: 32px;
  border-radius: 0;
}

.resource-report-table td.capacity-cell strong {
  color: inherit;
  font-size: 0.62rem;
  line-height: 1;
}

.resource-report-table td.capacity-cell small {
  color: inherit;
  font-size: 0.52rem;
  opacity: 0.82;
}

.executive-table {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.executive-bottom-grid .executive-table {
  align-content: start;
}

.executive-table p {
  margin: 0;
  color: var(--muted);
}

.executive-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  align-self: start;
  min-height: 58px;
  box-sizing: border-box;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.executive-table-row:first-child {
  border-top: 0;
}

.executive-table-row:hover strong {
  color: var(--adm-blue);
}

.executive-table-row div {
  min-width: 0;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.executive-table-row strong,
.executive-table-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-table-row strong {
  font-size: 0.9rem;
}

.executive-table-row span,
.executive-table-row small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.executive-impact-icons {
  display: grid;
  grid-template-columns: 120px 64px 52px;
  align-items: center;
  justify-content: flex-end;
  grid-gap: 8px;
  gap: 8px;
}

.executive-impact-icons span {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  grid-gap: 4px;
  gap: 4px;
  color: #344255;
  white-space: nowrap;
  text-align: left;
}

.executive-impact-icons svg {
  color: var(--adm-blue);
  stroke-width: 2.35;
}

.executive-risk-impact-icons {
  grid-template-columns: 120px 64px;
}

.financial-status-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.financial-status-grid article {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.05);
}

.financial-status-grid svg {
  color: var(--adm-blue);
}

.financial-status-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.financial-status-grid strong {
  display: block;
  margin-top: 7px;
  color: #172433;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.program-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 18px;
  gap: 18px;
  align-items: stretch;
}

.program-analytics-card {
  min-width: 0;
}

.block-title,
.program-analytics-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 28px;
}

.block-title svg,
.program-analytics-title svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--adm-blue);
  stroke-width: 2.25;
}

.block-title h2,
.program-analytics-title h2 {
  min-width: 0;
  margin: 0;
  color: #223247;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.program-status-chart {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  grid-gap: 22px;
  gap: 22px;
  align-items: center;
}

.program-status-pie {
  width: min(220px, 100%);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  position: relative;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(21, 32, 43, 0.08);
}

.program-status-pie::after {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 1px rgba(21, 32, 43, 0.06);
}

.program-status-pie strong,
.program-status-pie span {
  position: relative;
  z-index: 1;
  display: block;
  width: 58%;
  text-align: center;
}

.program-status-pie strong {
  color: #172433;
  font-size: 1.75rem;
  line-height: 1;
}

.program-status-pie span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.program-status-legend {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.program-status-legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 9px;
  gap: 9px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.program-status-legend span {
  min-width: 0;
  color: #344255;
  font-size: 0.84rem;
  font-weight: 850;
}

.program-status-legend strong {
  color: #172433;
  font-size: 0.9rem;
}

.program-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.program-status-dot.not-started {
  background: #a7b2bf;
}

.program-status-dot.potential,
.program-timeline-bar.potential { background: #64748b; }
.status-pill.project-status-pill.potential,
.status-pill.project-potential { background: #edf0f4; color: #475569; }

.program-status-dot.planning {
  background: #4f8fcf;
}

.program-status-dot.in-progress {
  background: #2f9e67;
}

.program-status-dot.on-hold {
  background: #f5a524;
}

.program-status-dot.transfer {
  background: #5d7ce2;
}

.program-status-dot.delivered {
  background: #17613e;
}

.program-status-dot.cancelled {
  background: #d64545;
}

.program-budget-burndown .budget-burndown-chart {
  min-height: 240px;
}

.program-budget-burndown .budget-burndown-svg {
  height: 218px;
}

.program-timeline-panel {
  overflow: hidden;
}

.program-timeline {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.program-timeline-rows {
  display: grid;
  position: relative;
  grid-gap: 24px;
  gap: 24px;
  padding-top: 28px;
}

.program-timeline-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: center;
}

.program-timeline-label {
  min-width: 0;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.program-timeline-label strong {
  min-width: 0;
  overflow: hidden;
  color: #223247;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-timeline-label span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.program-timeline-track {
  height: 54px;
  position: relative;
  margin: 0 46px;
}

.program-timeline-bar {
  height: 10px;
  position: absolute;
  top: 18px;
  min-width: 8px;
  border-radius: 999px;
  background: var(--green);
}

.program-timeline-bar.orange {
  background: var(--yellow);
}

.program-timeline-bar.red {
  background: var(--red);
}

.program-timeline-bar.green {
  background: var(--green);
}

.program-timeline-bar.delivered {
  background: #3674b8;
}

.program-timeline-bar.not-started {
  background: #d8dee7;
}

.program-timeline-point {
  width: 13px;
  height: 13px;
  position: absolute;
  top: 23px;
  z-index: 2;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(21, 32, 43, 0.14);
  transform: translate(-50%, -50%);
}

.program-timeline-point em {
  min-width: 92px;
  position: absolute;
  top: 16px;
  left: 50%;
  color: var(--muted);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.program-timeline-point.start {
  background: var(--adm-blue);
}

.program-timeline-point.initial {
  background: #7f8ea3;
}

.program-timeline-point.initial.muted {
  background: white;
  border-color: #7f8ea3;
}

.program-timeline-point.revised {
  background: var(--adm-cyan);
}

.program-timeline-panel .program-timeline-point.revised em {
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
}

.program-timeline-panel .program-timeline-point.initial em.initial-end-above {
  top: auto;
  bottom: 16px;
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
}

.program-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.program-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.program-timeline-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.program-timeline-legend i.start {
  background: var(--adm-blue);
}

.program-timeline-legend i.initial {
  background: #7f8ea3;
}

.program-timeline-legend i.revised {
  background: var(--adm-cyan);
}

.program-timeline-legend i.portfolio-program {
  background: #1f2937;
}

.portfolio-timeline-program-group {
  display: grid;
  grid-gap: 0;
  gap: 0;
}

.portfolio-timeline-program-row {
  min-height: 72px;
}

.portfolio-timeline-program-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 0;
  text-align: left;
}

.portfolio-timeline-program-toggle svg {
  color: #223247;
  margin-top: 2px;
}

.portfolio-timeline-program-toggle span {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-width: 0;
}

.portfolio-timeline-program-toggle em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
}

.portfolio-timeline-program-bar {
  position: absolute;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: #1f2937;
  transform: translateY(-50%);
}

.portfolio-timeline-program-point {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #1f2937;
  box-shadow: 0 0 0 2px #1f2937;
  transform: translate(-50%, -50%);
}

.portfolio-timeline-program-date {
  position: absolute;
  top: calc(50% + 14px);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.portfolio-timeline-program-date.end {
  transform: translateX(-50%);
}

.portfolio-timeline-project-nested {
  margin-left: 22px;
  padding-left: 14px;
  border-left: 2px solid #e4eaf1;
}

.program-timeline-today {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
}

.program-timeline-today > div {
  position: relative;
  margin: 0 46px;
}

.program-timeline-today-line {
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(34, 50, 71, 0.5);
}

.program-timeline-today-line i {
  width: 0;
  height: 0;
  position: absolute;
  top: -1px;
  left: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #223247;
  transform: translateX(-1px);
}

.program-timeline-today-line strong {
  position: absolute;
  top: -3px;
  left: 14px;
  color: #223247;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .program-analytics-grid {
    grid-template-columns: 1fr;
  }

  .program-status-chart {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .program-status-pie {
    width: min(210px, 74vw);
  }

  .program-timeline-panel {
    overflow: visible;
  }

  .program-timeline {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
  }

  .program-timeline-rows,
  .program-timeline-legend {
    min-width: 820px;
  }

  .program-timeline-row,
  .program-timeline-today {
    grid-template-columns: 180px minmax(560px, 1fr);
  }

  .program-timeline-row {
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .program-timeline-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .program-timeline-legend {
    justify-content: flex-start;
  }

  .program-timeline-track {
    height: 62px;
    margin: 0 34px;
  }

  .program-timeline-point em {
    min-width: 78px;
    font-size: 0.6rem;
  }

  .program-timeline-today > div {
    margin: 0 34px;
  }
}

.section-block,
.panel {
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.section-heading .block-title h2,
.section-heading .program-analytics-title h2 {
  color: #223247;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.15;
}

.secondary-action {
  padding: 0 14px;
  border: 1px solid #b8c9d9;
  color: #26445f;
  background: #f7fbff;
  text-decoration: none;
}

.danger-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--red);
  border-radius: 8px;
  color: white;
  background: var(--red);
  font-weight: 850;
  text-decoration: none;
}

.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.danger-icon-action {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.danger-confirm-line {
  align-items: flex-start;
  color: #344255;
  line-height: 1.45;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wbs-page-panel {
  width: 100%;
}

.wbs-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.wbs-selector label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #344255;
  font-size: 0.88rem;
  font-weight: 850;
}

.wbs-selector select,
.wbs-selector input {
  width: 100%;
  height: 44px;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  outline: none;
}

.wbs-combobox {
  position: relative;
}

.wbs-combobox input {
  padding-right: 58px;
}

.wbs-combobox::after {
  border-color: #64748b transparent transparent transparent;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 13px;
  top: 19px;
}

.wbs-combobox-list {
  background: #fff;
  border: 1px solid #bccada;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(28, 45, 70, 0.18);
  display: grid;
  left: 0;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.wbs-combobox-list button,
.wbs-combobox-list span {
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-height: 38px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.wbs-combobox-list button {
  cursor: pointer;
}

.wbs-combobox-list button:hover,
.wbs-combobox-list button:focus,
.wbs-combobox-list button.is-selected {
  background: #edf4fb;
  outline: none;
}

.wbs-combobox-list small {
  color: var(--muted);
  font-size: 0.76rem;
}

.wbs-summary-card {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.wbs-summary-card strong {
  color: #223247;
}

.wbs-summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.project-table {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) 0.7fr 1.2fr 0.8fr 0.7fr;
  grid-gap: 16px;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.table-link,
.project-card,
.back-link {
  color: inherit;
  text-decoration: none;
}

.table-link:hover,
.project-card:hover {
  border-color: #9fbed9;
  box-shadow: 0 8px 24px rgba(21, 32, 43, 0.08);
}

.table-head {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.table-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.registry-table {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.registry-row {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: inherit;
  text-decoration: none;
}

.portfolio-registry-table .registry-row,
.program-registry-table .registry-row {
  grid-template-columns: 0.9fr minmax(220px, 1.8fr) 0.8fr 0.7fr 1fr;
}

.project-registry-table .registry-row {
  grid-template-columns: 64px 0.78fr minmax(260px, 2fr) minmax(140px, 0.9fr) minmax(170px, 1.1fr) minmax(140px, 0.9fr) minmax(150px, 0.9fr);
}

.project-list-health-dot {
  width: 14px;
  height: 14px;
  justify-self: center;
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.project-list-health-dot.green {
  background: var(--green);
}

.project-list-health-dot.orange {
  background: var(--yellow);
}

.project-list-health-dot.red {
  background: var(--red);
}

.project-health-text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 850;
}

.project-health-text small {
  font-size: 0.72rem;
  font-weight: 750;
}

.project-health-text.green {
  color: #16824a;
}

.project-health-text.orange {
  color: #a66208;
}

.project-health-text.red {
  color: #bc2b2b;
}

.project-mobile-card {
  display: none;
}

.program-mobile-card {
  display: none;
}

.portfolio-mobile-card {
  display: none;
}

.registry-link:hover {
  border-color: #9fbed9;
  box-shadow: 0 8px 24px rgba(21, 32, 43, 0.08);
}

.registry-head {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.registry-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.registry-sort-button:hover,
.registry-sort-button:focus-visible {
  color: var(--ink);
}

.registry-sort-button svg {
  flex: 0 0 auto;
  opacity: 0.7;
}

.registry-row strong {
  color: #223247;
}

.access-registry-table .registry-row {
  grid-template-columns: 0.8fr 1.2fr minmax(260px, 2fr) 0.7fr;
}

.users-registry-table .registry-row {
  grid-template-columns: minmax(190px, 1.15fr) minmax(210px, 1.35fr) minmax(190px, 1.25fr) 0.9fr 0.85fr 54px;
}

.users-registry-person {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.users-registry-identity {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}

.users-registry-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-registry-identity small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
}

.users-registry-mobile-meta {
  display: none;
}

.users-registry-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  color: var(--adm-blue);
  background: #e7f0f8;
  font-size: 0.74rem;
  font-weight: 900;
}

.users-registry-avatar.is-active {
  border-color: var(--green);
}

.users-registry-avatar.is-disabled {
  border-color: var(--red);
}

.users-registry-avatar.is-archived {
  border-color: #94a3b8;
}

.users-registry-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logs-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  grid-gap: 14px;
  gap: 14px;
  align-items: center;
}

.contacts-toolbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) 150px auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.contacts-tabs {
  display: inline-flex;
  gap: 6px;
  min-height: 46px;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.contacts-tabs button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 900;
}

.contacts-tabs button.is-selected {
  color: #fff;
  background: var(--adm-blue);
}

.contacts-search {
  min-height: 46px;
  min-width: 0;
}

.archive-filter-select {
  width: 100%;
  min-height: 46px;
  height: 46px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: #223247;
  background: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.contacts-add-action {
  min-height: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.contacts-add-action span {
  display: inline;
}

.contacts-import-action {
  min-height: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.contacts-import-modal {
  width: min(1120px, calc(100vw - 36px));
}

.contacts-import-form {
  gap: 16px;
}

.contacts-import-form .modal-actions {
  grid-column: 1 / -1;
}

.contacts-import-subtitle {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.contacts-import-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.contacts-import-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contacts-import-template-actions .secondary-action {
  min-height: 38px;
  padding: 0 12px;
}

.contacts-import-file-picker {
  min-height: 158px;
}

.contacts-import-file-picker strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contacts-import-hint {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #d6e5f2;
  border-radius: 8px;
  background: #f8fbfe;
}

.contacts-import-hint strong {
  color: #1d4f82;
  font-size: 0.84rem;
  font-weight: 900;
}

.contacts-import-hint span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.contacts-import-preview {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.contacts-import-roles {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.contacts-import-roles strong {
  color: #1d4f82;
  font-size: 0.82rem;
  font-weight: 900;
}

.contacts-import-roles span {
  color: #39536f;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.contacts-import-table-wrap {
  max-height: min(52vh, 520px);
}

.contacts-import-table-wrap .import-preview-table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
}

.contacts-import-table-wrap .import-preview-table th:nth-child(1),
.contacts-import-table-wrap .import-preview-table td:nth-child(1) {
  width: 110px;
  text-align: center;
}

.contacts-import-table-wrap .import-preview-table th:nth-child(2),
.contacts-import-table-wrap .import-preview-table td:nth-child(2) {
  width: 90px;
  text-align: center;
}

.contacts-import-table-wrap .import-preview-table th:nth-child(3),
.contacts-import-table-wrap .import-preview-table td:nth-child(3) {
  width: 85px;
  text-align: center;
}

.contacts-import-table-wrap .import-preview-table th:nth-child(4),
.contacts-import-table-wrap .import-preview-table td:nth-child(4) {
  width: 250px;
}

.contacts-import-table-wrap .import-preview-table th:nth-child(5),
.contacts-import-table-wrap .import-preview-table td:nth-child(5) {
  width: 330px;
}

.contacts-import-table-wrap .import-preview-table th:nth-child(6),
.contacts-import-table-wrap .import-preview-table td:nth-child(6) {
  width: 300px;
}

.contacts-import-table-wrap .import-preview-table td:nth-child(4),
.contacts-import-table-wrap .import-preview-table td:nth-child(5),
.contacts-import-table-wrap .import-preview-table td:nth-child(6) {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.contacts-import-table-wrap .import-preview-table th {
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

.contacts-import-table-wrap .import-preview-table th:first-child,
.contacts-import-table-wrap .import-preview-table td:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  background: inherit;
}

.contacts-mobile-heading-add {
  display: none;
}

.contacts-page-top-add {
  position: absolute;
  top: 28px;
  right: 28px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  z-index: 2;
}

.company-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.contact-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.contact-registry-identity {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}

.company-registry-identity {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}

.company-registry-identity > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-registry-identity small {
  display: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
}

.contact-registry-identity > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-registry-identity small {
  display: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
}

.contact-mobile-company-watermark {
  display: none !important;
}

.contact-company-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.contact-company-cell > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-company-logo {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.contact-company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-table-logo,
.contact-table-avatar,
.contact-photo-preview,
.company-logo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  flex: 0 0 auto;
}

.company-table-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.contact-table-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: #0f8f88;
  border-width: 2px;
  font-size: 0.68rem;
  font-weight: 900;
}

.contact-table-avatar.active {
  border-color: var(--green);
}

.contact-table-avatar.archived {
  border-color: #94a3b8;
}

.company-table-logo img,
.contact-table-avatar img,
.contact-photo-preview img,
.company-logo-preview img {
  display: block;
}

.company-table-logo img,
.company-logo-preview img {
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.contact-table-avatar img,
.contact-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-logo-editor,
.contact-photo-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.company-logo-preview {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  background: #fff;
}

.contact-photo-preview {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: #0f8f88;
  font-size: 1rem;
  font-weight: 900;
}

.company-logo-editor strong,
.contact-photo-editor strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.company-logo-editor p,
.contact-photo-editor p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.company-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.company-logo-controls {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
}

.company-logo-upload {
  position: relative;
  cursor: pointer;
}

.company-logo-upload input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.company-logo-remove {
  min-height: 36px;
}

.company-brandfetch-tools {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.company-brandfetch-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  max-width: 520px;
}

.company-brandfetch-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.86rem;
}

.company-brandfetch-search button {
  min-height: 36px;
  white-space: nowrap;
}

.company-brandfetch-message {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.contacts-registry-table .registry-row {
  grid-template-columns: minmax(160px, 1.2fr) minmax(150px, 1fr) minmax(200px, 1.2fr) minmax(140px, 1fr) 100px;
}

.companies-registry-table .registry-row {
  grid-template-columns: minmax(180px, 1.3fr) minmax(160px, 1fr) 110px 130px minmax(160px, 1fr) 100px;
}

.companies-registry-table .registry-row > * {
  justify-self: start;
  text-align: left;
}

.contacts-list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.contacts-list-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contacts-list-pagination .icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.contacts-list-pagination .icon-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.contacts-list-page-number {
  min-width: 42px;
  text-align: center;
}

.contacts-modal {
  width: min(820px, calc(100vw - 36px));
}

.contact-history-panel,
.contact-replacement-panel {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.contact-history-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contact-history-panel > div strong,
.contact-replacement-panel label > span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.contact-history-panel > div span,
.contact-replacement-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.contact-history-panel ul {
  max-height: 148px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.contact-history-panel li {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.contact-history-panel li span,
.contact-history-panel li em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
}

.contact-history-panel li strong {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.3;
}

.contact-replacement-panel label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  width: 100%;
}

.contact-replacement-panel select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.contact-archive-layer {
  z-index: 90;
}

.contact-archive-confirm-modal {
  width: min(560px, calc(100vw - 36px));
  overflow: visible;
}

.contact-archive-confirm-modal .modal-head p:not(.eyebrow) {
  max-width: 440px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.contact-archive-empty {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.contact-replacement-combobox-list button {
  display: grid;
  align-items: center;
  grid-gap: 2px;
  gap: 2px;
}

.contact-replacement-combobox {
  width: 100%;
}

.contact-replacement-combobox input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  outline: none;
  padding: 0 58px 0 10px;
}

.contact-replacement-combobox input::placeholder {
  color: #94a3b8;
  font-weight: 750;
}

.contact-replacement-combobox input:focus {
  border-color: #7da9d4;
  box-shadow: 0 0 0 3px rgba(0, 83, 160, 0.12);
}

.contact-replacement-combobox-list {
  position: fixed;
  right: auto;
  max-height: min(438px, 58vh);
  z-index: 140;
}

.contact-replacement-combobox-list button strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.contact-replacement-combobox-list button small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
}

.logs-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.logs-filters button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344255;
  background: white;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.logs-filters button.is-selected {
  color: white;
  border-color: var(--adm-blue);
  background: var(--adm-blue);
}

.logs-registry-table .registry-row {
  grid-template-columns: 0.9fr 0.82fr minmax(160px, 1fr) minmax(150px, 0.9fr) 0.78fr 0.55fr minmax(220px, 1.35fr);
  font-size: 0.82rem;
  line-height: 1.25;
}

.logs-registry-table .registry-head {
  font-size: 0.74rem;
}

.logs-registry-table .status-pill {
  font-size: 0.72rem;
  min-height: 22px;
  padding: 3px 8px;
}

.logs-registry-table .registry-row > :nth-child(4) {
  font-size: 0.78rem;
}

.logs-user-agent {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-registry-table .registry-row.is-archived {
  color: #64748b;
  background: #f8fafc;
}

.groups-registry-table .registry-row {
  grid-template-columns: 0.8fr 1.2fr minmax(220px, 1.8fr) 0.7fr 0.7fr;
}

.changes-registry-table .registry-row {
  grid-template-columns: 0.9fr minmax(220px, 1.6fr) minmax(220px, 1.4fr) 0.8fr 0.9fr 1fr;
}

.change-impact-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b6c4d2;
}

.change-impact-icons .is-active {
  color: var(--adm-blue);
}

.change-mobile-card {
  display: none;
}

.change-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #29445d;
  background: #edf4fb;
  font-size: 0.76rem;
  font-weight: 850;
}

.change-status-badge.status-approved {
  color: #17613e;
  background: #e7f7ee;
}

.change-status-badge.status-rejected {
  color: #8f2d2d;
  background: #fdecec;
}

.change-status-badge.status-cancelled {
  color: #6b3d3d;
  background: #f3e5e5;
}

.change-status-badge.status-sent {
  color: #7a5418;
  background: #fff4dc;
}

.list-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  grid-gap: 14px;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.compact-combobox {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #344255;
  font-size: 0.82rem;
  font-weight: 850;
}

.compact-combobox select,
.form-grid select {
  width: 100%;
  height: 42px;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  outline: none;
}

.change-modal-panel {
  width: min(980px, calc(100vw - 28px));
}

.change-detail-topbar {
  align-items: flex-start;
}

.change-detail-action-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.change-detail-form,
.change-two-columns {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.change-two-columns {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.change-detail-block-stack {
  grid-template-columns: 1fr;
}

.change-flow-block,
.change-flow-block .risk-block-content {
  min-height: 0;
}

.change-card {
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.change-card .risk-block-content {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.change-card .section-heading {
  margin-bottom: 0;
}

.change-card-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.change-section-heading {
  align-items: center;
  min-height: 28px;
  padding-right: 40px;
}

.change-section-heading .program-analytics-title {
  align-items: center;
  gap: 9px;
  min-height: 28px;
}

.change-section-heading .program-analytics-title svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke-width: 2.25;
}

.change-section-heading .program-analytics-title h2 {
  margin: 0;
  color: #223247;
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1;
}

.change-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.change-block-title > span {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--adm-blue);
  background: #e8f3fb;
}

.change-block-title h2 {
  margin: 0;
  color: #223247;
  font-size: 1.06rem;
  letter-spacing: 0;
}

.change-block-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.change-card .form-grid {
  gap: 14px 16px;
}

.change-card .form-grid label,
.change-card .compact-combobox {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.change-card .form-grid input,
.change-card .form-grid select,
.change-card .form-grid textarea,
.change-card .compact-combobox select {
  border-color: #bdcad8;
  background: white;
  font-size: 0.88rem;
  font-weight: 750;
}

.change-card .form-grid input[readonly] {
  color: #516478;
  background: #eef3f8;
}

.change-risk-block .risk-block-content {
  display: block;
  padding-top: 12px;
}

.change-form-summary {
  margin-bottom: 0;
}

.change-info-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
}

.change-info-main-row div {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.change-info-main-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.change-info-main-row strong {
  min-width: 0;
  overflow: hidden;
  color: #223247;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-info-modal {
  width: min(920px, calc(100vw - 28px));
}

.change-agenda-summary {
  gap: 18px;
}

.change-agenda-timeline-layout {
  width: 100%;
}

.change-agenda-timeline {
  min-height: 118px;
  padding: 48px clamp(34px, 5vw, 64px) 42px;
}

.change-agenda-point {
  position: absolute;
  z-index: 1;
  width: 118px;
  transform: translateX(-50%);
  color: #344255;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.change-agenda-point i {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border: 3px solid white;
  border-radius: 50%;
  background: var(--adm-blue);
  box-shadow: 0 0 0 1px var(--line);
}

.change-agenda-point.below {
  top: 24px;
}

.change-agenda-point.below i {
  top: -28px;
}

.change-agenda-point.above {
  bottom: 24px;
}

.change-agenda-point.above i {
  bottom: -28px;
}

.change-agenda-point.revised i {
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(203, 51, 59, 0.32);
}

.change-impact-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.change-impact-tile {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.change-impact-tile > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.change-impact-tile > span svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--adm-blue);
}

.change-impact-tile strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #223247;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
}

.change-impact-tile small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.profile-workspace {
  gap: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
  gap: 16px;
}

.profile-card {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.profile-account-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  grid-gap: 18px;
  gap: 18px;
}

.profile-account-side {
  display: grid;
  justify-items: center;
  grid-gap: 12px;
  gap: 12px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.profile-account-main {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.profile-identity {
  min-width: 0;
}

.profile-photo-uploader {
  display: grid;
  justify-items: center;
}

.profile-avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  color: white;
  background: var(--adm-blue);
  font-size: 1.1rem;
  font-weight: 900;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-identity h2 {
  margin: 0;
  color: #172433;
  font-size: 1.28rem;
}

.profile-identity p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.profile-info-grid div {
  min-width: 0;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.profile-info-grid span,
.profile-approval-card p,
.profile-approval-meta small {
  color: var(--muted);
}

.profile-info-grid span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-info-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #223247;
  font-size: 0.9rem;
}

.profile-section-heading {
  align-items: center;
}

.profile-section-heading > span {
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #223247;
  background: #fbfcfe;
  font-weight: 900;
}

.profile-upload-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #223247;
  background: #fbfcfe;
}

.profile-upload-button:hover {
  border-color: #9fbed9;
  background: #f7fbff;
}

.profile-photo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-account-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  max-width: 218px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfe;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.profile-account-shortcut:hover {
  border-color: #9fbed9;
  background: #f7fbff;
}

.profile-account-shortcut svg {
  flex: 0 0 auto;
}

.profile-password-link {
  justify-self: center;
}

.profile-mfa-card {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-mfa-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-mfa-status div {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.profile-mfa-status span:first-child {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-mfa-status strong {
  color: var(--ink);
}

.profile-mfa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-mfa-actions form {
  margin: 0;
}

.profile-menu-preference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-menu-preference div {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  min-width: 0;
}

.profile-menu-preference strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.profile-menu-preference span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.profile-report-open {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.profile-automated-report-form {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.profile-automated-report-form .profile-menu-preference {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.profile-automated-report-form .profile-menu-preference > span {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.profile-automated-report-form .profile-menu-preference input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--adm-blue);
}

.profile-automated-report-modal {
  width: min(680px, 100%);
  align-self: center;
}

.profile-automated-report-layer {
  align-items: center;
}

.profile-automated-report-modal .modal-head {
  padding-right: 0;
}

.profile-automated-report-modal .modal-head-actions {
  gap: 8px;
}

.profile-report-save {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.profile-automated-report-modal .modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-report-schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.profile-report-schedule label {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.profile-report-schedule select {
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #bccada;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

.profile-report-schedule select[name='dayOfWeek'] {
  min-width: 170px;
}

.profile-report-schedule select[name='sendHour'] {
  min-width: 96px;
}

.profile-report-schedule select[name='sendMinute'] {
  min-width: 88px;
}

.profile-report-timezone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.profile-report-options {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.profile-report-options legend {
  padding: 0 8px 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.profile-report-options > label,
.profile-report-project-list > label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-size: 0.82rem;
}

.profile-report-options input {
  margin-top: 2px;
  accent-color: #087f8c;
}

.profile-report-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 2px 18px;
  gap: 2px 18px;
  padding-top: 6px;
}

.profile-report-project-list > label {
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.profile-report-project-list span {
  display: grid;
  min-width: 0;
  grid-gap: 3px;
  gap: 3px;
}

.profile-report-project-list strong,
.profile-report-project-list small {
  overflow-wrap: anywhere;
}

.profile-report-project-list small {
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .profile-report-project-list {
    grid-template-columns: 1fr;
  }
}

.profile-menu-switch {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.profile-menu-switch input {
  width: 15px;
  height: 15px;
  accent-color: var(--adm-blue);
}

.profile-mfa-modal {
  width: min(460px, calc(100vw - 28px));
}

.profile-mfa-qr-frame {
  width: min(250px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.profile-mfa-qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-mfa-qr-frame span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-mfa-code-field {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 850;
}

.profile-mfa-code-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  background: white;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.profile-photo-modal {
  width: min(460px, calc(100vw - 28px));
}

.profile-crop-frame {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef2f7;
  cursor: -webkit-grab;
  cursor: grab;
  touch-action: none;
}

.profile-crop-frame:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.profile-crop-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: none;
}

.profile-zoom-control {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: #344255;
  font-size: 0.86rem;
  font-weight: 850;
}

.profile-zoom-control input {
  width: 100%;
}

.profile-approvals {
  display: grid;
  grid-gap: 24px;
  gap: 24px;
}

.profile-approval-group {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.profile-approval-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.profile-approval-group-title svg {
  color: var(--adm-blue);
}

.profile-approval-group-title h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.profile-approval-panel {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.profile-approval-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.profile-approval-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(112px, 0.5fr) minmax(118px, 0.55fr) minmax(126px, 0.5fr);
  align-items: center;
  grid-gap: 0;
  gap: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.profile-approval-card.has-actions {
  grid-template-columns: minmax(260px, 1.7fr) minmax(112px, 0.5fr) minmax(118px, 0.55fr) minmax(126px, 0.5fr) minmax(92px, 0.35fr);
}

.profile-approval-card:hover,
.profile-approval-card:focus-within {
  border-color: #b9d4ee;
  box-shadow: 0 10px 24px rgba(12, 35, 64, 0.08);
  transform: translateY(-1px);
}

.profile-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.profile-card-link:focus-visible {
  outline: 3px solid rgba(0, 87, 184, 0.26);
  outline-offset: 3px;
}

.profile-approval-title,
.profile-approval-status-cell,
.profile-approval-meta,
.profile-approval-impacts {
  position: relative;
  z-index: 1;
}

.profile-approval-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #172433;
  font-size: 0.9rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-approval-card p {
  min-width: 0;
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-approval-title {
  min-width: 0;
  padding-right: 14px;
}

.profile-approval-status-cell {
  min-width: 0;
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 0 14px;
  border-left: 1px solid var(--line);
}

.profile-approval-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.profile-approval-status {
  color: #516478;
  background: #eef2f7;
}

.profile-approval-status.is-pending {
  color: #17613e;
  background: #e7f7ee;
}

.profile-approval-status.is-waiting {
  color: #73510d;
  background: #fff4d6;
}

.profile-approval-status.is-draft {
  color: #516478;
  background: #eef2f7;
}

.profile-approval-status.is-sent {
  color: #17613e;
  background: #e7f7ee;
}

.profile-approval-status.is-approved {
  color: #17613e;
  background: #e7f7ee;
}

.profile-approval-status.is-change_requested {
  color: #8f2d2d;
  background: #fdecec;
}

.profile-approval-status.is-rejected {
  color: #8f2d2d;
  background: #fdecec;
}

.profile-approval-meta {
  min-width: 0;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  justify-items: center;
  padding: 0 14px;
  border-left: 1px solid var(--line);
}

.profile-approval-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-approval-meta strong {
  color: #223247;
  font-size: 0.82rem;
}

.profile-approval-impacts {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: center;
  padding: 0 14px;
  border-left: 1px solid var(--line);
}

.profile-approval-impacts span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #9aa8b6;
  background: white;
}

.profile-approval-impacts span.is-active {
  color: var(--adm-blue);
  border-color: #b9d4ee;
  background: #f2f8ff;
}

.profile-approval-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: center;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.profile-approval-actions form,
.profile-approval-actions a {
  display: inline-flex;
}

.profile-approval-actions .icon-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
}

.profile-approval-actions .icon-button.is-positive {
  color: #17613e;
  border-color: #b9dcc8;
  background: #f5fbf7;
}

.profile-approval-actions .icon-button.is-warning {
  color: #8f5b00;
  border-color: #f0d38c;
  background: #fff8e6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.52);
}

.modal-card {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.26);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.modal-header h3 {
  margin: 0;
  color: #172433;
  font-size: 1.08rem;
}

.modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.modal-form {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.modal-form label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: #344255;
  font-size: 0.84rem;
  font-weight: 850;
}

.signature-modal {
  width: min(640px, calc(100vw - 28px));
}

.modal-form .signature-confirm-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #344255;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
}

.modal-form .signature-confirm-line input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 1px;
}

.signature-mode-tabs {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.signature-mode-tabs button {
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: #516478;
  background: transparent;
  font-weight: 900;
}

.signature-mode-tabs button.active {
  color: white;
  background: var(--adm-blue);
}

.signature-draw-panel {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.signature-canvas {
  width: 100%;
  height: 190px;
  display: block;
  border: 1px dashed #aebdcb;
  border-radius: 8px;
  background: white;
  touch-action: none;
}

.signature-typed-preview {
  min-height: 58px;
  display: grid;
  align-items: center;
  padding: 10px 12px;
  border: 1px dashed #aebdcb;
  border-radius: 8px;
  color: #172433;
  background: #fbfcfe;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.85rem;
  line-height: 1.1;
}

.profile-empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed #c8d4e0;
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfe;
  font-size: 0.88rem;
}

.change-summary-field {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.change-summary-field input,
.change-summary-field select,
.change-summary-field textarea,
.change-workflow-card select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #223247;
  background: transparent;
  outline: none;
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: none;
}

.change-summary-field textarea {
  min-height: 64px;
  padding-top: 3px;
  line-height: 1.4;
  resize: vertical;
}

.change-summary-field input[readonly] {
  color: #516478;
}

.change-workflow-card label {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}

.change-workflow-card select {
  font-size: 1.05rem;
}

.change-approval-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 0;
  gap: 0;
  padding: 6px 0 2px;
  overflow-x: auto;
}

.change-approval-step {
  position: relative;
  min-width: 150px;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  color: var(--muted);
}

.change-approval-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 21px;
  right: -21px;
  left: 21px;
  height: 2px;
  border-radius: 999px;
  background: #cdd8e4;
}

.change-approval-marker {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid #d7e0ea;
  border-radius: 999px;
  background: #f7fafc;
  box-shadow: 0 0 0 4px #fff;
  overflow: hidden;
  color: #516478;
  font-size: 0.72rem;
  font-weight: 900;
}

.change-approval-step.is-active,
.change-approval-step.is-complete,
.change-approval-step.is-rejected {
  color: #223247;
}

.change-approval-step.is-complete:not(:last-child)::before {
  background: #35a853;
}

.change-approval-step.is-active .change-approval-marker,
.change-approval-step.is-complete .change-approval-marker {
  border-color: #35a853;
  background: #35a853;
  color: white;
}

.change-approval-step.is-rejected .change-approval-marker {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.change-approval-step.is-informed .change-approval-marker {
  border-color: #9ec5fe;
  background: #eef6ff;
  color: var(--adm-blue);
}

.change-approval-step.is-not-required {
  opacity: 0.68;
}

.change-approval-step.is-not-required .change-approval-marker {
  border-color: #d7e0ea;
  background: #f3f6f9;
  color: #7a8999;
}

.change-approval-marker img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.change-approval-step > div {
  min-width: 0;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  padding-right: 16px;
}

.change-approval-step strong {
  color: #142033;
  font-size: 0.95rem;
  font-weight: 900;
}

.change-approval-step span {
  overflow-wrap: anywhere;
  color: #223247;
  font-size: 0.9rem;
  font-weight: 750;
}

.change-approval-step small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.change-approval-step em {
  width: -moz-fit-content;
  width: fit-content;
  padding: 2px 7px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  color: #44556a;
  background: #f7fafc;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
}

.change-approver-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.modal-panel.change-approvers-modal {
  width: min(980px, calc(100vw - 32px));
  overflow: visible;
}

.change-approver-column {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.change-approver-column label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #344255;
  font-size: 0.88rem;
  font-weight: 850;
}

.change-approver-column select,
.change-user-combobox input {
  width: 100%;
  height: 44px;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  outline: none;
}

.change-approver-column select:focus,
.change-user-combobox input:focus {
  border-color: var(--adm-blue);
  box-shadow: 0 0 0 3px rgba(0, 92, 170, 0.12);
}

.change-external-approval-card {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.change-external-approval-card > div:first-child {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.change-external-approval-card strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.change-external-approval-card span,
.change-external-approval-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.change-external-approval-fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

.change-external-approval-fields label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #344255;
  font-size: 0.84rem;
  font-weight: 850;
}

.change-external-approval-fields input,
.change-external-approval-fields textarea {
  width: 100%;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  outline: none;
  font: inherit;
}

.change-external-approval-fields input {
  height: 44px;
}

.change-external-approval-summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.change-external-approval-summary strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.change-user-combobox-list {
  z-index: 25;
}

@media (max-width: 1200px) {
  .change-approver-grid {
    grid-template-columns: 1fr;
  }

  .change-info-main-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .change-info-main-row {
    grid-template-columns: 1fr;
  }
}

.change-status-control {
  width: min(280px, 100%);
}

.approval-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.approval-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
}

.approval-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #a9b8c7;
  font-weight: 900;
}

.approval-step.is-active {
  color: #223247;
  border-color: #9bc6e7;
  background: #eef7fd;
}

.approval-step.is-active span {
  background: var(--adm-blue);
}

.approval-step strong {
  min-width: 0;
  color: inherit;
  font-size: 0.88rem;
}

.single-column-form {
  grid-template-columns: 1fr;
}

.change-wbs-card .change-card-heading {
  align-items: center;
}

.change-wbs-context {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1.8fr) 74px;
  align-items: stretch;
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.change-wbs-project-ref {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.change-wbs-project-ref strong {
  min-width: 0;
  overflow: hidden;
  color: #223247;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-wbs-context-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 74px;
}

.change-wbs-context-action .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.change-wbs-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

.change-wbs-summary span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfe;
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.change-wbs-summary strong {
  color: #223247;
  font-size: 0.82rem;
  line-height: 1;
}

.change-wbs-tree {
  gap: 12px;
}

.change-wbs-tree-section {
  display: grid;
  grid-gap: 0;
  gap: 0;
}

.change-wbs-tree-section > .detail-list-head {
  padding: 0;
}

.change-wbs-tree-section > .deliverable-list {
  margin: 10px 0 0;
}

.change-wbs-action {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #516478;
  background: #eef2f7;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.change-wbs-action.is-add {
  color: #17613e;
  background: #e7f7ee;
}

.change-wbs-action.is-remove {
  color: #8f2d2d;
  background: #fdecec;
}

.change-wbs-delta {
  font-weight: 850 !important;
}

.change-wbs-delta.is-increase {
  color: #b42318 !important;
}

.change-wbs-delta.is-decrease {
  color: #17613e !important;
}

.change-wbs-scope-impact,
.wbs-scope-impact {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 5px !important;
  color: #35536f !important;
  font-size: 0.76rem;
  line-height: 1.4;
}

.change-wbs-node-content {
  min-width: 0;
  width: 100%;
}

.change-wbs-node-title {
  margin-bottom: 4px;
}

.change-wbs-mobile-header {
  display: none;
}

.change-wbs-type-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #d4dde7;
  border-radius: 4px;
  color: #526477;
  background: #f7f9fb;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.change-wbs-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  padding-top: 4px;
}

.change-wbs-scope-grid p {
  min-width: 0;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  margin: 0 !important;
}

.change-wbs-scope-grid p:only-child {
  grid-column: 1 / -1;
}

.change-wbs-scope-grid strong {
  color: #66778a;
  font-size: 0.67rem;
  font-weight: 850;
  text-transform: none;
}

.change-wbs-scope-grid span {
  color: #34475b;
  font-size: 0.76rem;
  line-height: 1.4;
}

.change-wbs-scope-impact strong,
.wbs-scope-impact strong {
  flex: 0 0 auto;
  color: var(--adm-blue);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.change-wbs-financial-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 6px !important;
  color: #526477 !important;
  font-size: 0.74rem;
}

.change-wbs-financial-summary span {
  white-space: nowrap;
}

.change-wbs-financial-summary strong {
  margin-left: 4px;
  color: #24364a;
}

.change-wbs-row-modal input.field-error {
  border-color: #dc2626;
  background: #fff7f7;
  color: #991b1b;
}

.change-wbs-row-modal .field-error-message {
  color: #b42318;
  font-size: 0.74rem;
  font-weight: 700;
}

.change-wbs-add {
  border-color: #b9dcc8 !important;
  background: #f5fbf7 !important;
}

.change-wbs-add > .deliverable-item {
  border-color: #b9dcc8;
  background: #f5fbf7;
}

.change-wbs-remove {
  border-color: #efc7c7 !important;
  background: #fff7f7 !important;
  opacity: 0.82;
}

.change-wbs-remove > .deliverable-item {
  border-color: #efc7c7;
  background: #fff7f7;
}

.change-wbs-remove .wbs-title-line strong,
.change-wbs-remove .deliverable-item p {
  text-decoration: line-through;
}

.change-wbs-tree .icon-button {
  width: 34px;
  height: 34px;
  color: #253348;
  background: white;
}

.change-wbs-tree .icon-button:hover {
  border-color: #9fbed9;
  background: #f7fbff;
}

.change-wbs-row-modal {
  width: min(860px, calc(100vw - 28px));
}

.modal-panel.compact-modal.change-wbs-edit-modal {
  width: min(1000px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 24px 28px;
  overflow-y: auto;
}

.change-wbs-modal-sections {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.change-wbs-modal-section {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.change-wbs-modal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.change-wbs-modal-section h3 {
  margin: 0;
  color: #26384c;
  font-size: 0.88rem;
  font-weight: 900;
}

.change-wbs-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.change-wbs-modal-grid label,
.change-wbs-scope-fields label {
  min-width: 0;
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #344255;
  font-size: 0.78rem;
  font-weight: 850;
}

.change-wbs-modal-grid input,
.change-wbs-modal-grid select,
.change-wbs-scope-fields textarea {
  width: 100%;
}

.change-wbs-information-grid .change-wbs-name-field {
  grid-column: span 3;
}

.change-wbs-budget-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.change-wbs-budget-strip > div {
  min-width: 0;
  height: 78px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  background: #f7f9fb;
}

.change-wbs-budget-strip span {
  overflow: hidden;
  color: #66778a;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.change-wbs-budget-strip strong {
  color: #24364a;
  font-size: 0.86rem;
  line-height: 1.2;
}

.change-wbs-budget-strip .is-error {
  border-color: #dc2626;
  background: #fff7f7;
}

.change-wbs-budget-strip .is-error strong,
.change-wbs-budget-strip .is-error small {
  color: #991b1b;
}

.change-wbs-budget-strip small {
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-wbs-budget-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.change-wbs-inheritance {
  min-height: 44px;
  align-self: end;
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  padding: 0 10px;
}

.change-wbs-inheritance input {
  width: 18px;
  height: 18px;
}

.change-wbs-scope-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.change-wbs-scope-fields textarea {
  min-height: 96px;
  resize: vertical;
}

.modal-panel.change-wbs-add-modal {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
}

.change-wbs-add-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.change-wbs-add-grid label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  min-width: 0;
  color: #344255;
  font-size: 0.88rem;
  font-weight: 850;
}

.change-wbs-add-grid label:nth-child(4) {
  grid-column: 1 / 2;
}

.change-wbs-add-grid label:nth-child(6) {
  grid-column: 2 / 3;
  grid-row: 2;
}

.change-wbs-add-grid label:nth-child(5) {
  grid-column: 3 / 4;
  grid-row: 2;
}

.change-wbs-add-grid .form-wide {
  grid-column: 1 / -1;
}

.change-wbs-add-grid input,
.change-wbs-add-grid select,
.change-wbs-add-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  outline: none;
}

.change-wbs-add-grid input,
.change-wbs-add-grid select {
  height: 44px;
}

.change-wbs-add-grid textarea {
  min-height: 44px;
  height: 44px;
  padding-top: 10px;
  resize: vertical;
}

.change-wbs-add-grid .checkbox-line {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  color: #344255;
  font-size: 0.88rem;
  font-weight: 800;
}

.change-wbs-add-grid .checkbox-line input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.change-wbs-table {
  min-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.change-wbs-row {
  min-width: 1040px;
  display: grid;
  grid-template-columns: 130px minmax(190px, 1.2fr) 120px minmax(220px, 1.5fr) 120px 120px 120px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.change-wbs-row:last-child {
  border-bottom: 0;
}

.change-wbs-head {
  min-height: 34px;
  color: var(--muted);
  background: #f0f5fa;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.change-wbs-row input,
.change-wbs-row select {
  min-width: 0;
  height: 38px;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font-weight: 750;
}

.change-wbs-row span {
  color: #344255;
  font-size: 0.86rem;
  font-weight: 750;
}

.detail-action-bar,
.change-delete-zone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.change-approval-decision-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.change-delete-zone {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.registry-button {
  width: 100%;
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.registry-button:hover {
  border-color: #9fbed9;
  box-shadow: 0 8px 24px rgba(21, 32, 43, 0.08);
}

.user-modal-panel {
  width: min(840px, calc(100vw - 28px));
}

.group-modal-panel {
  width: min(1040px, calc(100vw - 28px));
}

.group-modal-panel .form-grid textarea {
  height: 44px;
  min-height: 44px;
  padding-top: 10px;
  resize: vertical;
}

.user-modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.user-photo-center {
  display: grid;
  justify-items: center;
  grid-gap: 8px;
  gap: 8px;
  margin-top: -2px;
}

.user-photo-large {
  width: 92px;
  height: 92px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7e2ee;
  border-radius: 999px;
  color: var(--adm-blue);
  background: #edf6ff;
}

.user-photo-large img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.user-photo-upload-button {
  width: 34px;
  height: 34px;
}

.user-photo-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.user-photo-remove-button {
  width: 34px;
  height: 34px;
  color: #b42318;
  border-color: #f1b6af;
  background: #fff5f4;
}

.user-photo-remove-button:hover {
  border-color: #d92d20;
  background: #ffe7e4;
}

.user-photo-field {
  align-items: stretch;
}

.user-photo-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px dashed #b9c8d7;
  border-radius: 8px;
  background: #f8fafc;
}

.user-photo-preview,
.program-manager-avatar {
  width: 54px;
  height: 54px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #dceeff;
  color: var(--adm-blue);
  font-size: 0.9rem;
  font-weight: 900;
}

.user-photo-preview img,
.program-manager-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-photo-upload input {
  min-width: 0;
}

.user-group-picker {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.user-group-picker > strong {
  color: #223247;
}

.user-group-picker > div {
  max-height: 170px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.user-group-picker label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #344255;
  font-weight: 750;
}

.group-dual-picker {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding-top: 2px;
}

.group-dual-picker + .group-dual-picker {
  margin-top: 6px;
}

.group-dual-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-dual-picker-head strong {
  color: #223247;
  font-size: 0.95rem;
}

.group-dual-picker-head span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #344255;
  font-size: 0.74rem;
  font-weight: 900;
}

.group-dual-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.group-dual-picker-column {
  min-width: 0;
  display: grid;
  grid-template-rows: 36px 40px minmax(150px, 1fr);
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.group-dual-picker-column-head {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.group-dual-picker-column-head span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.group-dual-picker-column-head .ghost-action {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.group-dual-picker-column-head .ghost-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.group-dual-picker-search {
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #bccada;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.group-dual-picker-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.group-dual-picker-list {
  max-height: 220px;
  min-height: 150px;
  display: grid;
  align-content: start;
  grid-gap: 7px;
  gap: 7px;
  overflow: auto;
  padding-right: 4px;
}

.group-dual-picker-list button,
.group-dual-picker-empty {
  min-height: 46px;
  display: grid;
  align-content: center;
  grid-gap: 3px;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #fff;
  color: #223247;
  text-align: left;
}

.group-dual-picker-list button {
  cursor: pointer;
  font: inherit;
}

.group-dual-picker-list button:hover,
.group-dual-picker-list button:focus {
  border-color: #9fbed9;
  background: #edf6ff;
  outline: none;
}

.group-dual-picker-list.is-selected button {
  border-color: #b9d6ef;
  background: #f2f8ff;
}

.group-dual-picker-list strong {
  overflow: hidden;
  color: #223247;
  font-size: 0.84rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-dual-picker-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-dual-picker-empty {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.split-actions {
  justify-content: space-between;
}

.delete-inline,
.user-account-actions,
.user-disable-action,
.modal-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-account-actions {
  align-items: flex-start;
}

.user-disable-action .checkbox-line {
  min-height: 38px;
  margin: 0;
}

.user-archive-impact {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.user-archive-impact.empty {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.user-archive-impact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-archive-impact-head strong,
.user-archive-impact.empty strong {
  color: #7c2d12;
}

.user-archive-impact.empty strong {
  color: #17613e;
}

.user-archive-impact-head span,
.user-archive-impact.empty span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
}

.user-archive-impact-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-archive-impact-summary span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 0.76rem;
  font-weight: 900;
}

.user-archive-replacements {
  gap: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.settings-tile {
  min-height: 230px;
  display: grid;
  align-content: start;
  grid-gap: 12px;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.05);
}

.settings-tile svg {
  color: var(--adm-blue);
}

.settings-tile h2 {
  margin: 2px 0 0;
  color: #223247;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.settings-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.ai-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-gap: 18px;
  gap: 18px;
  align-items: start;
}

.application-settings-layout,
.application-settings-form {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.application-settings-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 18px;
  gap: 18px;
  align-items: stretch;
}

.application-settings-card {
  display: grid;
  align-content: start;
  grid-gap: 16px;
  gap: 16px;
}

.resource-capacity-card {
  grid-column: 1 / -1;
  position: relative;
}

.application-settings-card-wide {
  grid-column: 1 / -1;
}

.application-settings-card .ai-settings-grid {
  align-items: end;
}

.visual-branding-card {
  display: grid;
  grid-gap: 22px;
  gap: 22px;
}

.visual-branding-assets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 0 20px;
  gap: 0 20px;
}

.visual-branding-asset {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-gap: 10px 14px;
  gap: 10px 14px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.visual-branding-preview {
  grid-row: span 3;
  width: 112px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  background: #25313f;
}

.visual-branding-empty {
  padding: 6px;
  color: #64748b;
  font-size: 0.72rem;
  text-align: center;
}

.visual-branding-asset.is-background .visual-branding-preview {
  background: #eef2f6;
}

.visual-branding-preview img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.visual-branding-asset.is-background .visual-branding-preview img {
  padding: 0;
  object-fit: cover;
}

.visual-branding-asset-copy {
  min-width: 0;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.visual-branding-asset-copy strong {
  color: #223247;
  font-size: 0.82rem;
}

.visual-branding-asset-copy span,
.visual-branding-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.visual-branding-upload {
  min-height: 32px;
  width: -moz-fit-content;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #bfd2e4;
  border-radius: 6px;
  color: var(--adm-blue);
  background: #f7fbff;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.visual-branding-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.visual-branding-reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #536274;
  font-size: 0.7rem;
  font-weight: 750;
}

.visual-branding-reset input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--adm-blue);
}

.visual-branding-colors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(180px, 1.25fr);
  grid-gap: 14px;
  gap: 14px;
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.visual-branding-colors > label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #344255;
  font-size: 0.74rem;
  font-weight: 800;
}

.visual-branding-transparency {
  grid-column: 1 / -1;
}

.visual-branding-transparency > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.visual-branding-transparency output {
  color: var(--muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.visual-branding-transparency input[type='range'] {
  width: 100%;
  accent-color: var(--adm-blue);
}

.visual-branding-colors > label > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-gap: 6px;
  gap: 6px;
}

.visual-branding-colors input[type='color'] {
  width: 38px;
  height: 38px;
  padding: 3px;
  border: 1px solid #c8d4df;
  border-radius: 6px;
  background: white;
}

.visual-branding-colors input[type='text'] {
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #c8d4df;
  border-radius: 6px;
  color: #223247;
  background: white;
  font-size: 0.76rem;
}

.visual-branding-menu-preview {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 5px;
  gap: 5px;
  padding: 9px;
  border-radius: 6px;
  font-size: 0.68rem;
}

.visual-branding-menu-preview strong {
  grid-column: 1 / -1;
}

.visual-branding-menu-preview span {
  padding: 6px 7px;
  border-radius: 4px;
}

.visual-branding-note {
  margin: -8px 0 0;
}

@media (max-width: 1180px) {
  .visual-branding-assets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-branding-colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-branding-menu-preview {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .visual-branding-assets,
  .visual-branding-colors {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-branding-asset {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .visual-branding-preview {
    width: 96px;
    height: 72px;
  }
}

.hourly-rates-section {
  display: grid;
  min-width: 0;
}

.hourly-rates-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 18px;
  gap: 18px;
  align-items: stretch;
}

.hourly-rates-table-card {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  min-width: 0;
  align-content: start;
  position: relative;
}

.hourly-rates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hourly-rates-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hourly-rates-actions .icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
}

.hourly-rates-actions .resource-capacity-add {
  position: static;
  top: auto;
  right: auto;
}

.hourly-rates-actions .icon-button svg {
  width: 17px;
  height: 17px;
}

.hourly-rates-actions .icon-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.hourly-rates-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.hourly-rates-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hourly-rates-duplicate-alert {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--red) 28%, white);
  border-radius: 7px;
  background: color-mix(in srgb, var(--red) 8%, white);
  color: color-mix(in srgb, var(--red) 82%, #301014);
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hourly-rates-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(110px, 0.65fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
}

.hourly-rates-filters label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.hourly-rates-filters select,
.hourly-rate-combobox input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0 9px;
}

.hourly-rate-combobox {
  position: relative;
  min-width: 0;
}

.hourly-rate-combobox input {
  padding-right: 58px;
}

.hourly-rate-combobox input::placeholder {
  color: #94a3b8;
}

.hourly-rate-combobox::after {
  border-color: #64748b transparent transparent transparent;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 13px;
  top: 17px;
}

.hourly-rate-combobox-list {
  background: #fff;
  border: 1px solid #bccada;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(28, 45, 70, 0.18);
  display: grid;
  left: 0;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

.hourly-rate-combobox-list button,
.hourly-rate-combobox-list > span {
  min-height: 34px;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
}

.hourly-rate-combobox-list button {
  cursor: pointer;
}

.hourly-rate-combobox-list button span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.hourly-rate-combobox-list button:hover,
.hourly-rate-combobox-list button:focus,
.hourly-rate-combobox-list button.is-selected {
  background: #edf4fb;
  outline: none;
}

.hourly-rates-table-wrap {
  overflow: auto;
  max-height: 340px;
}

.hourly-rates-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.hourly-rates-table th,
.hourly-rates-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.hourly-rates-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hourly-rates-table tr.is-duplicate td {
  background: color-mix(in srgb, var(--red) 7%, white);
}

.hourly-rates-table select,
.hourly-rates-table input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0 8px;
}

.hourly-rates-table .hourly-rate-combobox input {
  height: 34px;
  padding-right: 58px;
}

.hourly-rates-table .hourly-rate-combobox::after {
  top: 16px;
}

.hourly-rates-table .icon-button {
  width: 32px;
  height: 32px;
}

.hourly-rate-row-error {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 850;
}

.hourly-rates-import-modal {
  max-width: 980px;
}

.hourly-rates-import-preview .import-preview-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.contacts-import-preview-table {
  display: grid;
  max-height: min(44vh, 420px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contacts-import-preview-row {
  display: grid;
  grid-template-columns: 92px 70px minmax(220px, 1fr) 90px 110px 110px minmax(190px, 0.8fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  min-width: 980px;
  min-height: 42px;
  padding: 8px 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.contacts-import-preview-row:first-child {
  border-top: 0;
}

.contacts-import-preview-row.is-head {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 36px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contacts-import-preview-row.added > span:last-child,
.contacts-import-preview-row.valid > span:last-child {
  color: var(--green);
}

.contacts-import-preview-row.error > span:last-child,
.contacts-import-preview-row.removed > span:last-child {
  color: var(--red);
}

.contacts-import-preview-row.modified > span:last-child {
  color: var(--yellow);
}

.application-settings-summary {
  grid-template-columns: 1fr;
  align-items: start;
}

.application-settings-summary dl {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.application-settings-actions {
  justify-content: flex-end;
}

.application-secret-status,
.application-delete-secret {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.application-delete-secret {
  cursor: pointer;
}

.application-delete-secret input {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

.ai-settings-panel,
.ai-settings-side {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.ai-settings-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.ai-settings-head > div,
.ai-settings-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-settings-head > div {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.ai-settings-head svg,
.ai-settings-status svg {
  color: var(--adm-blue);
}

.ai-settings-head h2 {
  margin: 0;
  color: #223247;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.ai-settings-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.4;
}

.ai-provider-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.78rem;
  font-weight: 800;
}

.ai-provider-pill.local {
  background: #ecfdf5;
  color: #047857;
}

.ai-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.ai-settings-grid label,
.ai-settings-switches label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #334155;
  font-weight: 800;
  font-size: 0.84rem;
}

.ai-settings-grid input,
.ai-settings-grid select {
  width: 100%;
  height: 44px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: #223247;
  background: #fff;
  font: inherit;
}

.ai-settings-grid select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  line-height: 1;
}

.resource-capacity-editor {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  min-width: 0;
}

.resource-capacity-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.resource-capacity-toolbar,
.resource-capacity-selected {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
}

.resource-capacity-toolbar {
  grid-template-columns: minmax(0, 1fr);
}

.resource-capacity-profile-picker,
.resource-capacity-selected label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  min-width: 0;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 850;
}

.resource-capacity-combobox {
  position: relative;
}

.resource-capacity-combobox input,
.resource-capacity-selected input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
}

.resource-capacity-combobox input {
  padding-right: 58px;
}

.resource-capacity-combobox::after {
  border-color: #64748b transparent transparent transparent;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 13px;
  top: 18px;
}

.resource-capacity-combobox-list {
  background: #fff;
  border: 1px solid #bccada;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(28, 45, 70, 0.18);
  display: grid;
  left: 0;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
}

.resource-capacity-combobox-list button,
.resource-capacity-combobox-list span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
}

.resource-capacity-combobox-list button {
  cursor: pointer;
}

.resource-capacity-combobox-list button:hover,
.resource-capacity-combobox-list button:focus,
.resource-capacity-combobox-list button.is-selected {
  background: #edf4fb;
  outline: none;
}

.resource-capacity-save,
.resource-capacity-add,
.resource-capacity-delete {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
}

.resource-capacity-save {
  position: absolute;
  top: 18px;
  right: 114px;
  border-color: var(--adm-blue);
  background: var(--adm-blue);
  color: #fff;
}

.resource-capacity-save:hover,
.resource-capacity-save:focus-visible {
  border-color: #0f5f9f;
  background: #0f5f9f;
  color: #fff;
}

.resource-capacity-add {
  position: absolute;
  top: 18px;
  right: 18px;
  border-color: var(--adm-blue);
  background: var(--adm-blue);
  color: #fff;
}

.resource-capacity-add:hover,
.resource-capacity-add:focus-visible {
  background: #0f5f9f;
  color: #fff;
}

.resource-capacity-delete {
  position: absolute;
  top: 18px;
  right: 66px;
}

.resource-capacity-chart-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.resource-capacity-chart {
  width: 100%;
  min-width: 680px;
  height: auto;
  display: block;
  touch-action: none;
}

.resource-capacity-chart-grid {
  stroke: #dbe5ef;
  stroke-width: 1;
}

.resource-capacity-chart-grid.is-vertical {
  stroke-dasharray: 4 6;
}

.resource-capacity-chart-y-label,
.resource-capacity-chart-x-label {
  fill: #64748b;
  font-size: 0.52rem;
  font-weight: 800;
}

.resource-capacity-chart-line {
  fill: none;
  stroke: var(--adm-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.resource-capacity-chart-point {
  fill: #fff;
  stroke: var(--adm-blue);
  stroke-width: 2;
  cursor: -webkit-grab;
  cursor: grab;
}

.resource-capacity-chart-point:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.resource-capacity-chart-point:focus {
  outline: none;
  stroke: #0f5f9f;
}

.resource-capacity-chart-value {
  fill: #223247;
  font-size: 0.54rem;
  font-weight: 900;
  pointer-events: none;
}

.resource-profile-delete-modal {
  width: min(680px, calc(100vw - 32px));
}

.resource-profile-delete-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.resource-profile-delete-summary strong {
  overflow: hidden;
  color: #223247;
  font-size: 0.95rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-profile-delete-summary span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.resource-profile-replacement {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  margin-top: 14px;
  color: #223247;
  font-size: 0.82rem;
  font-weight: 900;
}

.resource-profile-replacement select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #223247;
  padding: 0 12px;
}

.resource-profile-impact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 14px;
}

.resource-profile-impact-list > div {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.resource-profile-impact-list strong {
  color: #223247;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-profile-impact-list span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .resource-capacity-person-select,
  .resource-capacity-chart-layout {
    grid-template-columns: 1fr;
  }

  .resource-capacity-toolbar,
  .resource-capacity-selected {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .resource-profile-delete-summary,
  .resource-profile-impact-list {
    grid-template-columns: 1fr;
  }
}

.ai-settings-key {
  grid-column: 1 / -1;
}

.ai-settings-switches {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.ai-settings-switches label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ai-settings-switches input {
  width: 16px;
  height: 16px;
}

.ai-settings-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
}

.ai-settings-warning p {
  margin: 0;
  line-height: 1.45;
  font-size: 0.86rem;
}

.ai-settings-status {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ai-settings-status div {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.ai-settings-status strong {
  color: #223247;
}

.ai-settings-status span,
.ai-settings-empty-key {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.4;
}

.ai-settings-side dl {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin: 0;
}

.ai-settings-side dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ai-settings-side dt {
  color: #64748b;
  font-weight: 700;
}

.ai-settings-side dd {
  margin: 0;
  color: #223247;
  font-weight: 800;
  text-align: right;
}

.ai-settings-empty-key {
  display: flex;
  align-items: center;
  gap: 8px;
}

.application-settings-summary dl div {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  justify-content: stretch;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.application-settings-summary dd {
  text-align: left;
}

.stakeholder-roles-editor {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.stakeholder-roles-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
}

.stakeholder-roles-add label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}

.stakeholder-roles-add input,
.stakeholder-role-row input {
  width: 100%;
  height: 44px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: #223247;
  background: #fff;
  font: inherit;
}

.stakeholder-roles-add-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0;
}

.stakeholder-roles-list {
  max-height: 310px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  overflow: auto;
  padding-right: 12px;
  scrollbar-gutter: stable;
}

.stakeholder-role-row {
  display: grid;
  grid-template-columns: minmax(0, calc(100% - 56px)) 40px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}

.stakeholder-role-row .icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

.stakeholder-roles-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.stakeholder-roles-footer p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.stakeholder-roles-footer .secondary-action {
  min-height: 38px;
  white-space: nowrap;
}

.health-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.health {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.budget-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 0;
}

.budget-kpis > div {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  grid-gap: 8px;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.budget-kpis svg {
  color: var(--adm-blue);
}

.budget-kpis span,
.budget-row small,
.budget-import-list span,
.chart-legend span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.budget-kpis strong {
  font-size: 1.08rem;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.neutral {
  color: var(--muted);
}

.cashflow-table td.negative {
  color: var(--red);
  font-weight: 850;
}

.cashflow-table td.positive {
  color: var(--green);
  font-weight: 850;
}

.cashflow-table td.neutral {
  color: var(--muted);
}

.budget-import-trigger {
  flex: 0 0 auto;
}

.budget-import-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.budget-import-history-modal {
  width: calc(100vw - 24px);
  max-width: none;
}

.budget-import-history-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.budget-import-history-select {
  width: min(100%, 680px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.budget-import-history-select-control {
  min-height: 46px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 49, 81, 0.06);
  overflow: hidden;
}

.budget-import-history-select-control > svg {
  justify-self: center;
  color: var(--adm-blue);
}

.budget-import-history-select select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 0 36px 0 12px;
  color: #223247;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 850;
  outline: none;
  text-transform: none;
}

.budget-import-history-context {
  margin: -4px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 750;
}

.budget-import-history-empty {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-weight: 750;
}

.budget-import-modal-form {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.budget-import-file-input {
  display: none;
}

.budget-import-file-picker {
  min-height: 168px;
  display: grid;
  place-items: center;
  grid-gap: 8px;
  gap: 8px;
  padding: 22px;
  border: 1px dashed #9fbed9;
  border-radius: 8px;
  color: #344255;
  background: #f7fbff;
  text-align: center;
}

.budget-import-file-picker span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: var(--adm-blue);
}

.budget-import-file-picker strong {
  font-size: 1rem;
}

.budget-import-file-picker small {
  color: var(--muted);
  font-weight: 800;
}

.budget-import-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.budget-import-list span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.budget-section-panel {
  margin-top: 0;
}

.import-preview-modal {
  width: calc(100vw - 24px);
  max-width: none;
}

.import-preview-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.import-preview-summary span,
.import-preview-summary button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344255;
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.import-preview-summary button {
  cursor: pointer;
  font-family: inherit;
}

.import-preview-summary button:hover,
.import-preview-summary button:focus-visible,
.import-preview-summary button.is-active {
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
  background: color-mix(in srgb, var(--blue) 9%, white);
  outline: none;
}

.import-preview-summary .added,
.import-preview-action-chip-added {
  color: var(--green);
}

.import-preview-summary .modified,
.import-preview-action-chip-modified {
  color: var(--yellow);
}

.import-preview-summary .removed,
.import-preview-action-chip-removed,
.import-preview-action-chip-error {
  color: var(--red);
}

.budget-import-scope-note {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #f7c66a;
  border-radius: 8px;
  background: #fff8e5;
  color: #6f4b00;
  font-size: 0.84rem;
  font-weight: 800;
}

.budget-import-scope-note span {
  color: #7d5a10;
  font-weight: 700;
}

.import-preview-table-wrap {
  width: 100%;
  height: min(52vh, 560px);
  min-height: 260px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overscroll-behavior: contain;
}

.import-preview-paged-table {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
}

.import-preview-pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.import-preview-pagination-controls {
  align-items: center;
  display: flex;
  gap: 8px;
}

.import-preview-pagination-controls label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.import-preview-pagination-controls input {
  width: 58px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  text-align: center;
}

.import-preview-pagination .icon-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
}

.import-preview-table {
  border-collapse: collapse;
  table-layout: fixed;
}

.import-preview-table-dynamic {
  min-width: 100%;
}

.import-preview-table.is-resizing,
.import-preview-table.is-resizing * {
  cursor: col-resize;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.import-preview-table th,
.import-preview-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: #344255;
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
}

.import-preview-table th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.import-preview-col-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.import-preview-col-head > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-preview-col-resize-handle {
  width: 8px;
  align-self: stretch;
  flex: 0 0 8px;
  cursor: col-resize;
  border-right: 2px solid transparent;
}

.import-preview-col-resize-handle:hover {
  border-right-color: #9fbed9;
}

.import-preview-table tbody tr:last-child td {
  border-bottom: 0;
}

.import-preview-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-preview-table th:nth-child(5),
.import-preview-table th:nth-child(6),
.import-preview-money {
  text-align: right;
}

.import-preview-action-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: white;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.import-preview-action-chip-added {
  background: color-mix(in srgb, var(--green) 12%, white);
}

.import-preview-action-chip-modified {
  background: color-mix(in srgb, var(--yellow) 18%, white);
}

.import-preview-action-chip-removed {
  background: color-mix(in srgb, var(--red) 10%, white);
}

.import-preview-action-chip-error {
  background: color-mix(in srgb, var(--red) 10%, white);
}

.import-preview-action-chip-unchanged {
  color: var(--muted);
  background: white;
}

.import-preview-empty {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.budget-table {
  display: grid;
  width: 100%;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.budget-table-head,
.budget-row {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.55fr);
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}

.budget-table-head {
  color: #344255;
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.budget-row {
  background: white;
  font-size: 0.9rem;
}

.budget-row-wp {
  background: #f7fbff;
  font-weight: 850;
}

.budget-row span:first-child {
  min-width: 0;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.budget-table-head span,
.budget-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-table-head span:not(:first-child),
.budget-row span:not(:first-child) {
  text-align: right;
}

.budget-row:last-child {
  border-bottom: 0;
}

.budget-burndown {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.budget-burndown-chart {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  min-height: 300px;
}

.budget-burndown-ylabels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0 22px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: right;
}

.budget-burndown-svg {
  width: 100%;
  height: 278px;
  overflow: visible;
}

.budget-burndown-axis {
  stroke: #9aa9b8;
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
}

.budget-burndown-gridline {
  stroke: #d9e0e8;
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
}

.budget-burndown-zero-axis {
  stroke: #6f7d8f;
  stroke-width: 0.75;
}

.budget-burndown-zero-axis.is-negative {
  stroke: var(--red);
  stroke-width: 1.1;
  stroke-dasharray: 4 3;
}

.budget-burndown-line-actual,
.budget-burndown-line-planned,
.budget-burndown-line-forecast,
.budget-burndown-line-compare,
.budget-burndown-line-ideal,
.budget-burndown-line-opex-actual,
.budget-burndown-line-opex-projected,
.budget-burndown-line-capex-actual,
.budget-burndown-line-capex-projected {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.budget-burndown-line-actual {
  stroke: var(--adm-blue);
  stroke-width: 2.2;
}

.budget-burndown-line-planned {
  stroke: #7f8ea3;
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
}

.budget-burndown-line-forecast {
  stroke: var(--adm-cyan);
  stroke-width: 2;
  stroke-dasharray: 7 5;
}

.budget-burndown-line-compare {
  stroke: #9b5de5;
  stroke-width: 2;
  stroke-dasharray: 2 5;
}

.budget-burndown-line-ideal {
  stroke: var(--green);
  stroke-width: 1.5;
  stroke-dasharray: 2 4;
}

.budget-burndown-line-opex-actual,
.budget-burndown-line-opex-projected {
  stroke: #f5a524;
  stroke-width: 1.8;
}

.budget-burndown-line-opex-projected {
  stroke-dasharray: 5 5;
}

.budget-burndown-line-capex-actual,
.budget-burndown-line-capex-projected {
  stroke: #5d7ce2;
  stroke-width: 1.8;
}

.budget-burndown-line-capex-projected {
  stroke-dasharray: 5 5;
}

.budget-burndown-xlabels {
  display: grid;
  min-height: 58px;
  margin-left: 80px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
}

.budget-burndown-xlabels span {
  min-width: 0;
  overflow: visible;
  text-align: left;
  white-space: nowrap;
  transform: rotate(-45deg);
  transform-origin: top left;
}

.project-risk-exposure {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.project-risk-change-grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

@media (min-width: 1800px) {
  .project-risk-change-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .project-risk-change-grid > * {
    min-width: 0;
  }
}

.project-risk-exposure-heading {
  flex-direction: row;
  align-items: center;
}

.project-risk-heading-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.project-risk-heading-action,
.project-change-request-heading-action,
.project-stakeholder-heading-action {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  flex: 0 0 40px;
  border-color: #b9d4ee;
  background: #f2f8ff;
  color: var(--adm-blue);
  text-decoration: none;
}

.project-risk-heading-action svg,
.project-change-request-heading-action svg,
.project-stakeholder-heading-action svg {
  display: block;
}

.project-risk-heading-action:hover,
.project-risk-heading-action:focus-visible,
.project-change-request-heading-action:hover,
.project-change-request-heading-action:focus-visible,
.project-stakeholder-heading-action:hover,
.project-stakeholder-heading-action:focus-visible {
  border-color: var(--adm-blue);
  background: var(--adm-blue);
  color: #fff;
  text-decoration: none;
}

.project-risk-heading-actions .project-risk-add-action {
  border-color: var(--adm-blue);
  background: var(--adm-blue);
  color: #fff;
}

.project-risk-heading-actions .project-risk-add-action:hover,
.project-risk-heading-actions .project-risk-add-action:focus-visible {
  border-color: #0f5f9f;
  background: #0f5f9f;
  color: #fff;
  text-decoration: none;
}

.project-risk-metrics {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.project-risk-metrics div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-column-gap: 8px;
  column-gap: 8px;
  grid-row-gap: 2px;
  row-gap: 2px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid #d8e7f4;
  border-radius: 8px;
  background: #f8fbff;
}

.project-risk-metrics svg {
  grid-row: 1 / span 2;
  color: var(--adm-blue);
}

.project-risk-metrics span {
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-risk-metrics strong {
  min-width: 0;
  overflow: hidden;
  color: #172033;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.project-top-risks {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.project-top-risks-head {
  align-items: flex-end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.project-top-risks-head strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.project-top-risks-head span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.cashflow-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.cashflow-month-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.scenario-month-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cashflow-month-picker select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
}

.cashflow-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 14px;
}

.cashflow-kpis article {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-height: 118px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.cashflow-kpis svg {
  color: var(--adm-blue);
}

.cashflow-kpis span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.cashflow-kpis strong {
  color: #223247;
  font-size: 1.22rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.cashflow-heading-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cashflow-export-button,
.cashflow-s-curve-button,
.cashflow-copy-button,
.cashflow-lock-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
}

.icon-button.cashflow-save-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: var(--adm-blue);
  background: var(--adm-blue);
  color: #fff;
}

.icon-button.cashflow-save-button:hover,
.icon-button.cashflow-save-button:focus-visible {
  border-color: #0f5f9f;
  background: #0f5f9f;
  color: #fff;
}

.icon-button.cashflow-save-button svg {
  color: #fff;
  stroke: currentColor;
}

.cashflow-lock-status {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.cashflow-lock-status.locked {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.cashflow-lock-status.open {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.cashflow-table-wrap {
  position: relative;
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cashflow-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.cashflow-table th,
.cashflow-table td {
  box-sizing: border-box;
  min-width: 84px;
  height: 48px;
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  color: #344255;
  font-size: 0.78rem;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

.cashflow-table th:first-child,
.cashflow-table td:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  text-align: left;
  background: white;
  box-shadow: 1px 0 0 var(--line);
}

.cashflow-table th:nth-child(2),
.cashflow-table td:nth-child(2),
.cashflow-table th:nth-child(3),
.cashflow-table td:nth-child(3),
.cashflow-table th:nth-last-child(1),
.cashflow-table td:nth-last-child(1),
.cashflow-table th:nth-last-child(2),
.cashflow-table td:nth-last-child(2),
.cashflow-table th:nth-last-child(3),
.cashflow-table td:nth-last-child(3) {
  min-width: 104px;
}

.cashflow-table th.cashflow-month-cell,
.cashflow-table td.cashflow-month-cell {
  width: 75px;
  min-width: 75px;
  max-width: 75px;
  padding-right: 5px;
  padding-left: 5px;
}

.cashflow-table th.cashflow-actual-month-cell,
.cashflow-table td.cashflow-actual-month-cell {
  color: #374151;
  background: #f1f5f9;
}

.cashflow-table th.cashflow-actual-month-cell {
  color: #475569;
  background: #e8eef5;
}

.cashflow-table th.cashflow-forecast-month-cell,
.cashflow-table td.cashflow-forecast-month-cell {
  color: #17406f;
  background: #f7fbff;
}

.cashflow-table th.cashflow-forecast-month-cell {
  color: #245987;
  background: #eef7ff;
}

.cashflow-table th.cashflow-forecast-start-cell,
.cashflow-table td.cashflow-forecast-start-cell {
  border-left: 3px solid #d8232a;
}

.cashflow-table th.cashflow-forecast-start-cell {
  box-shadow: inset 3px 0 0 #d8232a;
}

.cashflow-table td.cashflow-locked-month-cell {
  background: #f8fafc;
}

.cashflow-table td.cashflow-locked-month-cell input {
  color: #64748b;
  background: #eef2f7;
  cursor: not-allowed;
}

.cashflow-table td.cashflow-actual-month-cell span {
  font-weight: 850;
}

.cashflow-table td.cashflow-forecast-month-cell span,
.cashflow-table td.cashflow-forecast-month-cell input {
  font-weight: 750;
}

.cashflow-table th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 3;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cashflow-table th:first-child {
  z-index: 4;
  background: var(--surface-soft);
}

.cashflow-table td.cashflow-element-cell {
  padding: 0;
}

.cashflow-element-content {
  min-height: 47px;
  display: grid;
  align-content: center;
  grid-gap: 3px;
  gap: 3px;
  padding: 7px 9px;
  overflow: hidden;
}

.cashflow-element-content strong,
.cashflow-element-content span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cashflow-element-content span {
  color: var(--muted);
}

.cashflow-row-total td,
.cashflow-row-total td:first-child {
  background: #f7fbff;
  font-weight: 850;
}

.cashflow-row-nature-total td,
.cashflow-row-nature-total td:first-child {
  background: #fff8ed;
  border-top: 3px solid #d6a24a;
}

.cashflow-row-nature-total + .cashflow-row-nature-total td,
.cashflow-row-nature-total + .cashflow-row-nature-total td:first-child {
  border-top: 1px solid #ead8b8;
}

.cashflow-row-nature-total .cashflow-element-content strong {
  color: #24364f;
}

.cashflow-row-project-total td,
.cashflow-row-project-total td:first-child {
  background: #eef4ff;
  border-top: 2px solid #8da7cf;
}

.cashflow-row-project-total .cashflow-element-content strong {
  color: #17345d;
}

.cashflow-row-total td.cashflow-actual-month-cell {
  color: #334155;
  background: #eaf1f8;
}

.cashflow-row-total td.cashflow-forecast-month-cell {
  color: #17345d;
  background: #f3f9ff;
}

.cashflow-row-nature-total td.cashflow-actual-month-cell {
  background: #f4ede1;
}

.cashflow-row-nature-total td.cashflow-forecast-month-cell {
  background: #fffaf0;
}

.cashflow-row-project-total td.cashflow-actual-month-cell {
  background: #dfe9f7;
}

.cashflow-row-project-total td.cashflow-forecast-month-cell {
  background: #edf5ff;
}

.cashflow-table input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 4px;
  text-align: right;
}

.cashflow-actions {
  margin-top: 14px;
}

.cashflow-mobile-editor {
  display: none;
}

.cashflow-mobile-selector,
.cashflow-mobile-month-group {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.cashflow-mobile-selector span,
.cashflow-mobile-month-group > strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cashflow-mobile-selector select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
}

.cashflow-mobile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.cashflow-mobile-summary div {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.cashflow-mobile-summary span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.cashflow-mobile-summary strong {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.cashflow-mobile-month-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cashflow-mobile-month-row span {
  color: #344255;
  font-size: 0.86rem;
  font-weight: 850;
}

.cashflow-mobile-month-row strong {
  color: #344255;
  text-align: right;
}

.cashflow-mobile-month-row input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  text-align: right;
}

.cashflow-mobile-month-row.is-actual {
  color: #6b7280;
  background: #f3f4f6;
}

.chart-legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
}

.planned-dot {
  background: #7f8ea3;
}

.actual-dot {
  background: var(--adm-blue);
}

.forecast-dot {
  background: var(--adm-cyan);
}

.compare-dot {
  background: #9b5de5;
}

.ideal-dot {
  background: var(--green);
}

.opex-dot {
  background: #f5a524;
}

.capex-dot {
  background: #5d7ce2;
}

.risk-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
}

.risk-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.risk-filter-bar label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.risk-filter-bar input,
.risk-filter-bar select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
}

.risk-step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.risk-step-tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: white;
  font-size: 0.76rem;
  font-weight: 900;
}

.risk-step-tabs button.active {
  border-color: var(--adm-blue);
  color: white;
  background: var(--adm-blue);
}

.hidden-step {
  display: none;
}

.risk-matrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
}

.risk-matrix-cell {
  min-height: 54px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #253348;
  background: #eef7f3;
}

.risk-matrix-cell span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.risk-matrix-cell strong {
  font-size: 1rem;
}

.risk-matrix-cell.yellow {
  background: #fff7d6;
}

.risk-matrix-cell.orange {
  background: #ffe7ce;
}

.risk-matrix-cell.red {
  color: #8f2522;
  background: #ffe1df;
}

.risk-list-table {
  min-width: 0;
}

.risk-list-head,
.risk-list-row {
  grid-template-columns: 110px minmax(230px, 1.7fr) 96px 78px 130px 116px 130px;
}

.risk-list-row {
  color: #344255;
  font-size: 0.9rem;
}

.risk-list-row > span {
  line-height: 1.35;
}

.risk-list-row strong,
.risk-list-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-list-row small {
  margin-top: 4px;
  color: var(--muted);
}

.risk-mobile-card {
  display: none;
}

.risk-locked-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  color: #7a4d11;
  background: #fff8e7;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
}

.risk-editor-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.risk-editor-fieldset.is-locked {
  opacity: 0.78;
}

.risk-score-pill,
.status-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.risk-score-pill.green {
  color: #0f6844;
  background: #dff5eb;
}

.risk-score-pill.yellow {
  color: #7a4d11;
  background: #fff2ca;
}

.risk-score-pill.orange {
  color: #8a4a12;
  background: #ffe7ce;
}

.risk-score-pill.red {
  color: #8f2522;
  background: #ffe1df;
}

.status-pill {
  color: #344255;
  background: #eef2f7;
}

.status-pill.active {
  color: #17613e;
  background: #e7f7ee;
}

.status-pill.archived {
  color: #7c2d12;
  background: #ffedd5;
}

.status-pill.danger {
  color: #8f2522;
  background: #ffe1df;
}

.status-pill.project-status-pill.not-started {
  color: #526170;
  background: #e8edf2;
}

.status-pill.project-status-pill.planning {
  color: #245b91;
  background: #e1effb;
}

.status-pill.project-status-pill.in-progress {
  color: #17613e;
  background: #e3f5eb;
}

.status-pill.project-status-pill.on-hold {
  color: #825b08;
  background: #fff1c9;
}

.status-pill.project-status-pill.transfer {
  color: #445ab0;
  background: #e7eaff;
}

.status-pill.project-status-pill.delivered {
  color: #0d4d31;
  background: #cfeedd;
}

.status-pill.project-status-pill.cancelled,
.change-status-badge.project-cancellation-approved {
  color: #fff;
  background: #000;
}

.status-pill.project-status-pill.cancelling,
.change-status-badge.project-cancellation-pending {
  color: #713700;
  background: #ffb454;
}

.user-status-line {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 850;
}

.user-status-line.active {
  color: var(--green);
}

.user-status-line.archived {
  color: #c2410c;
}

.status-pill.risk-status-pill {
  min-width: 92px;
}

.status-pill.risk-status-pill.green {
  background: #dff5eb;
  color: #0f6844;
}

.status-pill.risk-status-pill.blue {
  background: #e3efff;
  color: #225d9f;
}

.status-pill.risk-status-pill.orange {
  background: #ffe7ce;
  color: #8a4a12;
}

.status-pill.risk-status-pill.red {
  background: #ffe1df;
  color: #8f2522;
}

.status-pill.risk-status-pill.neutral {
  background: #eef2f7;
  color: #344255;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
}

.risk-modal-panel {
  width: min(1120px, calc(100vw - 36px));
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
}

.risk-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.risk-block-grid.change-detail-block-stack {
  grid-template-columns: 1fr;
}

.project-context-selector {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.project-context-selector label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.project-context-selector select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
}

.risk-context-readonly {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.risk-context-readonly div {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
}

.risk-context-readonly span,
.risk-edit-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.risk-context-readonly strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-editor-block-wide {
  grid-column: 1 / -1;
}

.risk-editor-block {
  position: relative;
  min-height: 220px;
  padding-top: 18px;
}

.risk-context-block,
.risk-paired-block {
  min-height: 0;
}

.risk-editor-block > .icon-button {
  position: absolute;
  top: 14px;
  right: 22px;
}

.risk-editor-block > h2,
.risk-editor-block > .risk-block-title {
  margin: 0 54px 16px 0;
}

.risk-editor-block > h2 {
  color: #223247;
  font-size: 1rem;
}

.risk-editor-block dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  grid-gap: 8px 12px;
  gap: 8px 12px;
  margin: 0;
}

.risk-editor-block dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.risk-editor-block dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #344255;
  font-size: 0.82rem;
  font-weight: 750;
  text-overflow: ellipsis;
}

.risk-info-summary {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
}

.risk-editor-block > :is(.risk-workflow-card, .risk-info-summary, .risk-context-summary, .risk-evaluation-summary, .risk-simulation-summary, .risk-plan-summary, dl) {
  padding-top: 12px;
}

.risk-editor-block > :is(.risk-workflow-card, .risk-info-summary, .risk-context-summary, .risk-evaluation-summary, .risk-simulation-summary, .risk-plan-summary) {
  gap: 14px;
}

.risk-editor-block > :is(.risk-info-summary, .risk-context-summary, .risk-evaluation-summary, .risk-simulation-summary, .risk-plan-summary) :is(.risk-info-summary-row, .risk-evaluation-row, .risk-simulation-settings-grid, .risk-simulation-results, .risk-simulation-selection-summary) {
  gap: 14px;
}

.risk-info-summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.risk-info-summary-row div,
.risk-info-description,
.risk-info-summary-description {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.risk-info-summary span,
.risk-info-description span,
.risk-info-summary-description span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.risk-info-summary strong,
.risk-info-description strong,
.risk-info-summary-description strong {
  min-width: 0;
  overflow: hidden;
  color: #223247;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-info-description strong,
.risk-info-summary-description strong {
  white-space: normal;
  line-height: 1.4;
}

.risk-scope-summary {
  margin-top: 10px;
}

.risk-context-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.risk-context-summary div {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.risk-context-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.risk-context-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #223247;
  font-size: 0.84rem;
  line-height: 1.4;
}

.risk-plan-summary {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.risk-plan-summary div {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.risk-plan-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.risk-plan-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #223247;
  font-size: 0.84rem;
  line-height: 1.4;
}

.risk-evaluation-summary {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.risk-evaluation-block,
.risk-matrix-block {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.risk-evaluation-block .risk-evaluation-summary,
.risk-matrix-block .risk-matrix-preview-layout {
  height: 100%;
}

.risk-evaluation-block .risk-evaluation-summary {
  align-content: space-between;
}

.risk-evaluation-summary h3,
.risk-assessment-edit h3 {
  margin: 8px 0 0;
  color: #223247;
  font-size: 0.82rem;
}

.risk-evaluation-row {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.risk-evaluation-row-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.risk-evaluation-row div {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.risk-evaluation-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.risk-evaluation-row strong {
  min-width: 0;
  overflow: hidden;
  color: #223247;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-assessment-edit {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.risk-assessment-edit section {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.risk-assessment-edit > section:first-child {
  padding-top: 0;
  border-top: 0;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.risk-assessment-edit .form-grid-three {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.risk-simulation-field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.risk-help-tooltip {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bccada;
  border-radius: 999px;
  color: var(--accent);
  background: #fff;
  cursor: help;
}

.risk-help-tooltip:focus-visible {
  outline: 2px solid rgba(36, 99, 235, 0.26);
  outline-offset: 2px;
}

.risk-help-tooltip-content {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 50;
  width: min(280px, calc(100vw - 56px));
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.risk-help-tooltip-content::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #0f172a;
  content: "";
  transform: translate(-50%, -5px) rotate(45deg);
}

.risk-help-tooltip:hover .risk-help-tooltip-content,
.risk-help-tooltip:focus .risk-help-tooltip-content,
.risk-help-tooltip:focus-within .risk-help-tooltip-content {
  opacity: 1;
  transform: translate(-50%, 0);
}

.risk-target-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.risk-target-toggle button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--muted);
  background: white;
  font-size: 0.76rem;
  font-weight: 900;
}

.risk-target-toggle button.is-active {
  border-color: var(--adm-blue);
  color: white;
  background: var(--adm-blue);
}

.risk-workflow-card {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.risk-workflow-card > div:first-child {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.risk-workflow-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.risk-workflow-card strong {
  color: #223247;
  font-size: 1.05rem;
}

.risk-workflow-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.risk-workflow-sequence span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: white;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.risk-workflow-sequence span.complete {
  border-color: #b9ead7;
  color: #0f6844;
  background: #e8f8f1;
}

.risk-workflow-sequence span.active {
  border-color: var(--adm-blue);
  color: white;
  background: var(--adm-blue);
}

.change-workflow-card .change-approval-marker {
  width: 42px;
  height: 42px;
  display: grid;
  border-radius: 999px;
  font-size: 0.72rem;
}

.change-workflow-card .change-approval-step strong {
  color: #142033;
  font-size: 0.95rem;
  font-weight: 900;
}

.change-workflow-card .change-approval-step span:not(.change-approval-marker) {
  overflow-wrap: anywhere;
  color: #223247;
  font-size: 0.9rem;
  font-weight: 750;
}

.risk-matrix-preview-layout {
  display: grid;
  grid-template-columns: auto minmax(128px, 1fr);
  grid-gap: 14px;
  gap: 14px;
  align-items: start;
}

.risk-matrix-preview-panel {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.risk-matrix-preview-panel dl {
  padding-top: 0;
}

.risk-matrix-preview-board {
  display: grid;
  grid-template-columns: 82px auto;
  grid-gap: 5px 8px;
  gap: 5px 8px;
  align-items: start;
}

.risk-matrix-y-labels {
  display: grid;
  grid-template-rows: repeat(5, 36px);
  grid-gap: 5px;
  gap: 5px;
}

.risk-matrix-y-labels span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
}

.risk-matrix-preview {
  display: grid;
  grid-template-columns: repeat(5, 42px);
  grid-gap: 5px;
  gap: 5px;
}

.risk-matrix-x-labels {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(5, 42px);
  grid-gap: 5px;
  gap: 5px;
  min-height: 54px;
  align-items: start;
  margin-top: 10px;
}

.risk-matrix-x-labels span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-32deg);
  transform-origin: top center;
  white-space: nowrap;
}

.risk-matrix-legend {
  min-height: 100%;
  display: grid;
  align-content: start;
  grid-gap: 10px;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.risk-matrix-legend h3 {
  margin: 0;
  color: #223247;
  font-size: 0.82rem;
}

.risk-matrix-legend-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.risk-matrix-legend-item {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
  align-items: start;
}

.risk-matrix-legend-item div {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.risk-matrix-legend-item strong {
  color: #223247;
  font-size: 0.78rem;
}

.risk-matrix-legend-item span:not(.risk-matrix-legend-swatch) {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.risk-matrix-legend-swatch {
  width: 15px;
  height: 15px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 5px;
}

.risk-matrix-legend-swatch.green { background: #dff5eb; }
.risk-matrix-legend-swatch.yellow { background: #fff2ca; }
.risk-matrix-legend-swatch.orange { background: #ffe7ce; }
.risk-matrix-legend-swatch.red { background: #ffe1df; }

.risk-matrix-preview-cell {
  width: 42px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  color: #223247;
  font-size: 0.82rem;
  font-weight: 900;
}

.risk-matrix-preview-cell.green {
  background: #dff5eb;
}

.risk-matrix-preview-cell.yellow {
  background: #fff2ca;
}

.risk-matrix-preview-cell.orange {
  background: #ffe7ce;
}

.risk-matrix-preview-cell.red {
  background: #ffe1df;
}

.risk-matrix-preview-cell.selected {
  outline: 3px solid var(--adm-blue);
  outline-offset: 1px;
}

.risk-simulation-block {
  min-height: 0;
}

.risk-simulation-summary {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.risk-simulation-settings-grid,
.risk-simulation-selection-summary {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.risk-simulation-settings-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.risk-simulation-selection-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.risk-simulation-settings-grid div,
.risk-simulation-selection-summary div {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.risk-simulation-settings-grid span,
.risk-simulation-selection-summary span,
.risk-simulation-chart-header span,
.risk-simulation-metrics span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.risk-simulation-settings-grid span,
.risk-simulation-selection-summary span {
  text-transform: uppercase;
}

.risk-simulation-settings-grid strong,
.risk-simulation-selection-summary strong,
.risk-simulation-chart-header strong {
  min-width: 0;
  overflow: hidden;
  color: #223247;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-simulation-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.risk-simulation-chart-card {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.risk-simulation-chart-header {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.risk-simulation-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 92px;
  padding-top: 4px;
}

.risk-simulation-bar {
  flex: 1 1;
  min-width: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--adm-blue);
  opacity: 0.72;
}

.risk-simulation-bar-schedule {
  background: #d97706;
}

.risk-simulation-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 6px 10px;
  gap: 6px 10px;
}

.risk-simulation-helper {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.risk-editor-actions {
  margin-top: 16px;
}

.risk-block-modal {
  width: min(860px, calc(100vw - 36px));
}

.risk-block-modal:has(.risk-owner-combobox) {
  overflow: visible;
}

.risk-block-modal:has(.risk-help-tooltip) {
  overflow: visible;
}

.risk-info-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.risk-owner-combobox {
  position: relative;
}

.risk-owner-combobox input {
  padding-right: 58px;
}

.risk-owner-combobox::after {
  border-color: #64748b transparent transparent transparent;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 13px;
  top: 19px;
}

.risk-owner-combobox-list {
  background: #fff;
  border: 1px solid #bccada;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(28, 45, 70, 0.18);
  display: grid;
  left: 0;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
}

.risk-owner-combobox-list button,
.risk-owner-combobox-list span {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  min-height: 38px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.risk-owner-combobox-list button {
  cursor: pointer;
}

.risk-owner-combobox-list button:hover,
.risk-owner-combobox-list button:focus {
  background: #edf4fb;
  outline: none;
}

.contact-replacement-combobox-list {
  position: fixed;
  right: auto;
  max-height: min(438px, 58vh);
  z-index: 140;
}

.risk-date-picker {
  position: relative;
}

.risk-date-field {
  color: #344255;
  display: grid;
  font-size: 0.88rem;
  font-weight: 850;
  grid-gap: 7px;
  gap: 7px;
}

.risk-date-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #bccada;
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  gap: 9px;
  height: 42px;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}

.risk-date-trigger svg {
  color: var(--adm-blue);
  flex: 0 0 auto;
}

.risk-date-trigger span {
  font-weight: 800;
}

.risk-date-popover {
  inset: 0;
  position: fixed;
  z-index: 120;
}

.risk-date-backdrop {
  background: transparent;
  border: 0;
  cursor: default;
  inset: 0;
  padding: 0;
  position: fixed;
}

.risk-date-calendar {
  background: #fff;
  border: 1px solid #bccada;
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(28, 45, 70, 0.2);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  max-height: min(520px, calc(100vh - 48px));
  overflow: auto;
  padding: 12px;
  position: fixed;
  z-index: 121;
}

.risk-date-calendar-head {
  align-items: center;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  grid-gap: 8px;
  gap: 8px;
}

.risk-date-calendar-head button {
  align-items: center;
  background: #edf4fb;
  border: 0;
  border-radius: 8px;
  color: var(--adm-blue);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.risk-date-calendar-head .risk-date-calendar-title {
  background: transparent;
  color: #223247;
  font-size: 0.92rem;
  font-weight: 900;
  height: 34px;
  padding: 0 8px;
  text-align: center;
  text-transform: capitalize;
  width: 100%;
}

.risk-date-calendar-head .risk-date-calendar-title:hover:not(:disabled),
.risk-date-calendar-head .risk-date-calendar-title:focus:not(:disabled) {
  background: #edf4fb;
  outline: none;
}

.risk-date-calendar-head .risk-date-calendar-title:disabled {
  cursor: default;
  opacity: 1;
}

.risk-date-weekdays,
.risk-date-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 5px;
  gap: 5px;
}

.risk-date-weekdays span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.risk-date-days button {
  align-items: center;
  aspect-ratio: 1;
  background: #f7f9fc;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #223247;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
}

.risk-date-days button:hover,
.risk-date-days button:focus {
  border-color: var(--adm-blue);
  outline: none;
}

.risk-date-days button.is-outside {
  color: #a5b1c2;
  background: #fbfcfe;
}

.risk-date-days button.is-today {
  border-color: #7ca7d9;
}

.risk-date-days button.is-selected {
  background: var(--adm-blue);
  color: #fff;
}

.risk-date-months,
.risk-date-years {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.risk-date-months button,
.risk-date-years button {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #223247;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  justify-content: center;
  min-height: 42px;
  padding: 8px;
  text-align: center;
  text-transform: capitalize;
}

.risk-date-months button:hover,
.risk-date-months button:focus,
.risk-date-years button:hover,
.risk-date-years button:focus {
  border-color: var(--adm-blue);
  outline: none;
}

.risk-date-months button.is-selected,
.risk-date-years button.is-selected {
  background: var(--adm-blue);
  color: #fff;
}

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

  .risk-block-grid {
    grid-template-columns: 1fr;
  }

  .project-context-selector {
    grid-template-columns: 1fr;
  }

  .risk-info-summary-row {
    grid-template-columns: 1fr;
  }

  .risk-context-summary {
    grid-template-columns: 1fr;
  }

  .risk-evaluation-row-three {
    grid-template-columns: 1fr;
  }


  .risk-matrix-preview-layout {
    grid-template-columns: 1fr;
  }

  .risk-matrix-legend {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .risk-matrix-legend-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .risk-simulation-settings-grid,
  .risk-simulation-selection-summary {
    grid-template-columns: 1fr;
  }

  .risk-filter-bar {
    grid-template-columns: 1fr;
  }

  .risk-list-head {
    display: none;
  }

  .risk-list-row {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 12px;
  }

  .risk-list-row > span {
    display: none;
  }

  .risk-mobile-card {
    display: grid;
    grid-gap: 10px;
    gap: 10px;
    min-width: 0;
  }

  .risk-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  .risk-mobile-head strong {
    color: #0b1f33;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.02em;
  }

  .risk-mobile-project {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .risk-mobile-score-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
  }

  .risk-mobile-score-dot.green {
    background: #2f9e67;
  }

  .risk-mobile-score-dot.yellow {
    background: #f5c542;
  }

  .risk-mobile-score-dot.orange {
    background: #f5a524;
  }

  .risk-mobile-score-dot.red {
    background: #d64545;
  }

  .risk-mobile-head .status-pill {
    min-height: 24px;
    flex: 0 0 auto;
    font-size: 0.68rem;
  }

  .risk-mobile-card p {
    margin: 0;
    color: #223247;
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .risk-mobile-impacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 8px;
    gap: 8px;
  }

  .risk-mobile-impacts span {
    min-width: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 7px;
    border: 1px solid #d8e5f2;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--adm-blue);
  }

  .risk-mobile-impacts svg {
    flex: 0 0 auto;
  }

  .risk-mobile-impacts strong {
    min-width: 0;
    overflow: hidden;
    color: #223247;
    font-size: 0.72rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.health.green {
  color: #0f6844;
  background: #dff5eb;
}

.health.yellow {
  color: #7a4d11;
  background: #fff2ca;
}

.health.red {
  color: #8f2522;
  background: #ffe1df;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 18px;
  gap: 18px;
  margin-top: 18px;
}

.wbs-list,
.lesson-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wbs-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-gap: 2px 12px;
  gap: 2px 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.wbs-list span {
  grid-row: span 2;
  color: var(--adm-blue);
  font-weight: 900;
}

.wbs-list p,
.change-list p,
.risk-list p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.change-list,
.risk-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.change-list div,
.risk-list div,
.lesson-list li {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.risk-list span {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-list li {
  line-height: 1.45;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.project-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, 0.24fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
}

.projects-list-search-bar {
  grid-template-columns: minmax(320px, 1fr) max-content minmax(250px, 0.28fr);
}

.project-search-bar.changes-search-bar {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.22fr) minmax(180px, 0.2fr);
}

.project-search-bar.users-search-bar {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.18fr);
}

.archive-scope-topbar .archive-scope-filter {
  min-width: 230px;
}

.project-search {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
}

.project-archive-filter {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.project-mine-filter {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.project-mine-filter input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

.project-mine-filter span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.project-archive-filter span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.project-archive-filter select {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  outline: none;
}

.project-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.project-raci-panel { min-width: 0; max-width: 100%; overflow: hidden; }
.project-raci-actions { display: flex; gap: 8px; }
.project-raci-version-selector { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.project-raci-version-selector span { color: var(--muted); font-size: .68rem; font-weight: 850; }
.project-raci-version-selector select { border: 0; color: var(--adm-blue); background: transparent; font-size: .76rem; font-weight: 850; }
.project-raci-actions .project-raci-add-domain { border-color: var(--adm-blue); background: var(--adm-blue); color: #fff; }
.project-raci-actions .project-raci-add-domain:hover, .project-raci-actions .project-raci-add-domain:focus-visible { border-color: #0f5f9f; background: #0f5f9f; color: #fff; text-decoration: none; }
.project-raci-actions .project-raci-save { position: static; top: auto; right: auto; }
.project-raci-summary { display: flex; gap: 18px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.project-raci-status { color: var(--blue); }
.project-raci-table-wrap { width: 100%; min-width: 0; max-width: 100%; margin-top: 14px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.project-raci-accordion { min-width: 0; max-width: 100%; margin-top: 14px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: white; }
.project-raci-accordion.project-raci-table-wrap { overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; scrollbar-gutter: stable; }
.project-raci-domain-row td { padding: 0; background: #f7f9fc; }
.project-raci-domain-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.project-raci-domain-actions { display: flex; gap: 5px; padding-right: 8px; }
.project-raci-domain-actions { position: -webkit-sticky; position: sticky; right: 0; z-index: 3; background: #f7f9fc; }
.project-raci-domain-row + tr th, .project-raci-domain-row + tr td { background: #fbfcfe; }
.project-raci-domain-toggle { position: -webkit-sticky; position: sticky; left: 0; z-index: 4; width: max-content; min-width: 280px; min-height: 44px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; grid-gap: 8px; gap: 8px; padding: 0 12px; border: 0; color: var(--ink); background: #f7f9fc; text-align: left; cursor: pointer; }
.project-raci-domain-toggle span { color: var(--muted); font-size: .76rem; font-weight: 750; }
.project-raci-domain-toggle:hover { background: rgba(37, 99, 235, .04); }
.project-raci-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: .78rem; }
.project-raci-table th, .project-raci-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.project-raci-table th:first-child { min-width: 280px; text-align: left; }
.project-raci-table thead th:first-child,
.project-raci-table tbody tr:not(.project-raci-domain-row) th:first-child { position: -webkit-sticky; position: sticky; left: 0; z-index: 2; background: #fbfcfe; }
.project-raci-table thead th:first-child { z-index: 4; background: #f4f7fa; }
.project-raci-table thead th { color: var(--muted); font-size: .72rem; }
.project-raci-table th small { display: block; margin-top: 3px; color: var(--ink); font-size: .72rem; font-weight: 700; }
.project-raci-table tbody th { color: var(--ink); font-weight: 750; }
.project-raci-table td { color: var(--blue); font-weight: 900; }
.project-raci-cell-select { min-width: 58px; border: 0; color: var(--blue); background: transparent; font: inherit; font-weight: 900; text-align: center; }
.project-raci-cell-select.is-raci-red, .raci-report-table td.is-raci-red { color: #b91c1c; }
.project-raci-cell-select.is-raci-blue, .raci-report-table td.is-raci-blue { color: #2563eb; }
.project-raci-cell-select.is-raci-black, .raci-report-table td.is-raci-black { color: #111827; }
.project-raci-note { margin: 12px 0 0; color: var(--muted); font-size: .75rem; }
.raci-report-sheet { min-height: 0; }
.raci-report-page.raci-paper-a2 .report-toolbar,
.raci-report-page.raci-paper-a2 .report-sheet { width: min(2200px, calc(100vw - 44px)); max-width: none; }
.raci-report-page.raci-paper-a2 .raci-report-table-wrap { width: 100%; }
.raci-report-controls { display: inline-flex; align-items: center; gap: 10px; }
.raci-report-controls .program-report-project-selector { position: relative; }
.raci-report-controls summary { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #bfd5ea; border-radius: 6px; color: var(--adm-blue); background: white; font-size: .78rem; font-weight: 850; cursor: pointer; list-style: none; }
.raci-report-controls summary::-webkit-details-marker { display: none; }
.raci-report-controls summary strong { color: #172433; }
.raci-report-controls .program-report-project-selector-menu { right: 0; left: auto; z-index: 10; min-width: 250px; }
.raci-paper-menu { display: grid; grid-gap: 4px; gap: 4px; padding: 8px; }
.raci-paper-menu button { border: 0; border-radius: 5px; padding: 8px 10px; color: var(--ink); background: white; text-align: left; font: inherit; cursor: pointer; }
.raci-paper-menu button:hover, .raci-paper-menu button.is-selected { color: var(--adm-blue); background: #eef5fb; }
.raci-report-table thead th { font-size: var(--raci-report-header-font-size, 10px); }
.raci-report-table thead th small { font-size: calc(var(--raci-report-header-font-size, 10px) - 1px); }
.raci-report-table tbody th:first-child { font-size: var(--raci-report-font-size, 10px); }
.raci-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #d7e1eb; }
.raci-report-heading .block-title { display: inline-flex; align-items: center; gap: 8px; }
.raci-report-heading h2 { margin: 0; font-size: 1rem; }
.raci-report-heading > span { color: #66778b; font-size: .76rem; font-weight: 800; }
.raci-report-table-wrap { overflow: auto; border: 1px solid #d7e1eb; border-radius: 6px; }
.raci-report-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: .76rem; }
.raci-report-table th, .raci-report-table td { padding: 8px 10px; border-bottom: 1px solid #e1e8ef; border-right: 1px solid #e1e8ef; text-align: center; vertical-align: middle; }
.raci-report-table thead th { color: #66778b; background: #f4f7fa; font-size: .7rem; }
.raci-report-table thead th:first-child, .raci-report-table tbody th { min-width: 250px; text-align: left; }
.raci-report-table thead th strong, .raci-report-table thead th small { display: block; }
.raci-report-person-heading { display: block; }
.raci-header-vertical .raci-report-table thead th:not(:first-child) { min-width: 64px; height: 260px; padding: 10px 6px; vertical-align: bottom; overflow: hidden; }
.raci-header-vertical .raci-report-person-heading { display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: flex-end; height: 240px; margin: 0 auto; writing-mode: vertical-rl; -webkit-text-orientation: mixed; text-orientation: mixed; transform: rotate(180deg); white-space: nowrap; text-align: left; color: #172433; line-height: 1.08; }
.raci-header-vertical .raci-report-person-heading strong, .raci-header-vertical .raci-report-person-heading small { display: block; margin: 0; }
.raci-header-vertical .raci-report-person-heading strong { font-size: var(--raci-report-header-font-size, 10px); font-weight: 800; }
.raci-header-vertical .raci-report-person-heading small { color: #172433; font-size: calc(var(--raci-report-header-font-size, 10px) - 1px); font-weight: 500; }
.raci-report-table thead th small { margin-top: 3px; color: #172433; font-size: .7rem; }
.raci-report-table tbody td { min-width: 64px; color: var(--adm-blue); font-weight: 900; }
.raci-report-table .raci-report-domain th { padding: 8px 10px; color: #172433; background: #eef3f7; font-size: .78rem; }
.raci-report-table .raci-report-domain span { margin-left: 10px; color: #66778b; font-size: .68rem; font-weight: 700; }
.raci-report-table thead th { font-size: var(--raci-report-header-font-size, 10px) !important; }
.raci-report-table thead th small { font-size: calc(var(--raci-report-header-font-size, 10px) - 1px) !important; }
.raci-report-note { margin: 10px 0 0; color: #66778b; font-size: .7rem; }
@media print {
  .raci-report-page { padding: 0; }
  .raci-report-sheet { height: 275mm; padding: 22px; overflow: hidden; }
  .raci-report-table-wrap { overflow: visible; }
}
.project-raci-confirm-modal { width: min(460px, calc(100vw - 32px)); }
.project-raci-confirm-modal h2 { margin: 0; font-size: 1.05rem; }
.project-raci-confirm-modal p { color: var(--muted); line-height: 1.5; }
.project-raci-domain-modal { width: min(560px, calc(100vw - 32px)); }
.project-raci-domain-modal h2 { margin: 0 0 18px; font-size: 1.05rem; }
.project-raci-domain-name-field { display: grid; grid-gap: 7px; gap: 7px; }
.project-raci-domain-name-field span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.project-raci-domain-name-field input { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; }
.project-raci-modal-activities { display: grid; grid-gap: 7px; gap: 7px; margin-top: 18px; }
.project-raci-modal-activities-head { display: flex; align-items: center; justify-content: space-between; }
.project-raci-modal-activities > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; grid-gap: 8px; gap: 8px; min-height: 36px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.project-raci-modal-activities > div input { min-height: 36px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 0 9px; color: var(--ink); background: white; }
.project-raci-modal-order-actions { display: inline-flex; gap: 4px; }
.raci-catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: var(--ink); }
.raci-domain-list, .raci-activity-list { display: grid; grid-gap: 8px; gap: 8px; margin-top: 10px; }
.raci-domain-list label, .raci-activity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 8px; gap: 8px; align-items: center; }
.raci-domain-list label span { display: none; }
.raci-domain-list input, .raci-activity-row input, .raci-activity-row select { min-height: 38px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: white; color: var(--ink); }
.raci-activity-row select { height: 38px; box-sizing: border-box; font: inherit; }
.raci-activity-row { grid-template-columns: minmax(220px, 1fr) minmax(180px, .6fr) minmax(260px, 1.2fr) auto; }
.raci-catalog-help { color: var(--muted); font-size: .75rem; }
.raci-help-raci-red { color: #b91c1c; }
.raci-help-raci-blue { color: #2563eb; }
.raci-help-raci-black { color: #111827; }
.raci-domain-order-actions { display: inline-flex; align-items: center; gap: 4px; }
.raci-domain-list label .raci-domain-order-actions { display: inline-flex; }

.result-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.list-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-pagination .icon-button {
  width: 34px;
  height: 34px;
  text-decoration: none;
}

.list-pagination .icon-button.is-active {
  border-color: #1b5dbf;
  color: #1b5dbf;
  background: #edf5ff;
}

.list-pagination-arrow {
  display: none;
}

.list-pagination .is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.project-card {
  min-height: 236px;
  display: grid;
  align-content: space-between;
  grid-gap: 18px;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.project-card-link {
  color: inherit;
  text-decoration: none;
}

.project-card-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.project-card-actions {
  display: flex;
  justify-content: flex-start;
}

.project-card h3 {
  margin: 8px 0;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.project-code {
  color: var(--adm-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #41546a;
  background: white;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
}

.project-progress div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce5ee;
}

.project-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--adm-blue), var(--adm-cyan));
}

.project-progress strong {
  font-size: 0.84rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: #31516f;
  font-weight: 850;
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  grid-gap: 24px;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.project-detail-hero p {
  margin: 0;
  max-width: 840px;
  color: #4f5f70;
  line-height: 1.55;
}

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

.detail-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.detail-grid dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 5px 0 0;
  font-weight: 850;
}

.progress-ring {
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 14px solid #d7ecfb;
  border-top-color: var(--adm-blue);
  border-radius: 50%;
  background: white;
}

.progress-ring strong,
.progress-ring span {
  grid-column: 1;
  grid-row: 1;
}

.progress-ring strong {
  margin-top: -18px;
  font-size: 2rem;
}

.progress-ring span {
  margin-top: 38px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.detail-list,
.timeline-list,
.budget-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.detail-list > div,
.timeline-list > div,
.budget-list > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.detail-list-head,
.budget-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
}

.wbs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
}

.wbs-kpi-grid article {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.wbs-kpi-grid svg {
  color: var(--adm-blue);
}

.wbs-kpi-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wbs-kpi-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #223247;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wbs-project-actions {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
}

.wbs-version-selector {
  min-width: 250px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  color: #344255;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wbs-version-selector select {
  width: 100%;
  height: 36px;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font-size: 0.82rem;
  font-weight: 750;
  outline: none;
  text-transform: none;
}

.wbs-lock-trigger {
  width: 36px;
  min-height: 36px;
  padding: 0;
  color: var(--adm-blue);
  background: #e8f2fb;
}

.wbs-lock-badge {
  width: -moz-fit-content;
  width: fit-content;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #bfd5ea;
  border-radius: 999px;
  color: var(--adm-blue);
  background: #eef6fd;
  font-size: 0.74rem;
  font-weight: 900;
}

.wbs-delta-added {
  border-color: inherit;
  background: inherit;
  box-shadow: none;
}

.wbs-delta-chip {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.wbs-delta-chip.added {
  color: #116238;
  background: #dff7e9;
}

.wbs-separator {
  color: #c5ced8;
  font-weight: 700;
}

.wbs-delta-chip.removed {
  color: #9b1c1c;
  background: #fde2e2;
}

.wbs-delta-removed-block {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  border-color: #efb2b2 !important;
  background: #fff5f5 !important;
}

.wbs-delta-removed-block > strong {
  color: #7f1d1d;
  font-size: 0.88rem;
}

.wbs-delta-removed-block > div {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.wbs-delta-removed {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  grid-gap: 10px;
  gap: 10px;
  padding: 10px;
  border: 1px solid #f0b4b4;
  border-radius: 8px;
  background: #fffafa;
  box-shadow: inset 3px 0 0 #dc2626;
}

.wbs-delta-removed strong {
  color: #7f1d1d;
}

.wbs-delta-removed p {
  margin: 3px 0 0;
  color: #6b3b3b;
  font-size: 0.78rem;
}

.role-editor-form {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.role-delete-modal {
  width: min(460px, 100%);
}

.role-delete-modal-head {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding-right: 44px;
}

.role-delete-modal-head h2 {
  margin: 0;
  color: #223247;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.role-delete-modal-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.role-editor-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.role-editor-actions .primary-action {
  align-self: flex-end;
}

.role-info-block .form-wide {
  grid-column: auto;
}

.role-module-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 16px;
}

.role-module-tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #344255;
  background: white;
  font-weight: 850;
  cursor: pointer;
}

.role-module-tabs button.active {
  border-color: var(--adm-blue);
  color: var(--adm-blue);
  background: #eef6fd;
}

.role-matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
  gap: 16px;
}

.role-matrix-grid article {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.role-matrix-grid h3 {
  margin: 0;
  color: #223247;
  font-size: 0.95rem;
}

.role-permission-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.role-permission-matrix label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: white;
  color: #344255;
  font-weight: 800;
}

.role-settings-matrix {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.role-settings-head,
.role-settings-row,
.role-settings-footer {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(4, minmax(86px, 1fr)) 58px;
  grid-gap: 0;
  gap: 0;
  align-items: center;
}

.role-contacts-matrix .role-settings-head,
.role-contacts-matrix .role-settings-row,
.role-contacts-matrix .role-settings-footer {
  grid-template-columns: minmax(170px, 1.2fr) repeat(5, minmax(82px, 1fr)) 58px;
}

.role-contacts-matrix .role-settings-head {
  height: 40px;
  min-height: 40px;
}

.role-contacts-matrix .role-settings-row,
.role-contacts-matrix .role-settings-footer {
  min-height: 44px;
}

.role-contacts-matrix .role-settings-head > span,
.role-contacts-matrix .role-settings-row > strong,
.role-contacts-matrix .role-settings-row > label,
.role-contacts-matrix .role-settings-row > button,
.role-contacts-matrix .role-settings-footer > strong,
.role-contacts-matrix .role-settings-footer > button {
  height: 44px;
  min-height: 44px;
}

.role-contacts-matrix .role-settings-head > span {
  height: 40px;
  min-height: 40px;
  padding-inline: 8px;
  white-space: nowrap;
}

.role-settings-head,
.role-settings-footer > strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-settings-head {
  min-height: 40px;
  background: #f3f7fb;
}

.role-settings-head > span,
.role-settings-row > strong,
.role-settings-row > label,
.role-settings-row > .role-settings-na,
.role-settings-row > button,
.role-settings-footer > strong,
.role-settings-footer > button {
  min-height: 44px;
  border-right: 1px solid var(--line);
}

.role-settings-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.role-settings-head > span:first-child,
.role-settings-row > strong,
.role-settings-footer > strong {
  justify-content: flex-start;
}

.role-settings-head > span:last-child,
.role-settings-row > :last-child,
.role-settings-footer > :last-child {
  border-right: 0;
}

.role-settings-row,
.role-settings-footer {
  border-top: 1px solid var(--line);
}

.role-settings-footer {
  background: #fbfdff;
}

.role-settings-row strong,
.role-settings-footer > strong {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.role-settings-row strong {
  color: #223247;
  font-size: 0.86rem;
}

.role-settings-row label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.role-settings-na {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9aa7b8;
  font-weight: 800;
}

.role-settings-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #536274;
  background: transparent;
  cursor: pointer;
}

.role-settings-toggle:hover {
  color: var(--adm-blue);
  background: #eef6fd;
}

.role-settings-toggle-all {
  color: var(--adm-blue);
}

.role-advanced-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.role-advanced-head,
.role-advanced-row,
.role-advanced-footer {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(260px, 2fr) 86px;
  align-items: center;
}

.role-advanced-head {
  min-height: 40px;
  color: var(--muted);
  background: #f3f7fb;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-advanced-head > span,
.role-advanced-row > strong,
.role-advanced-row > span,
.role-advanced-row > label,
.role-advanced-footer > strong,
.role-advanced-footer > span,
.role-advanced-footer > button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}

.role-advanced-row,
.role-advanced-footer {
  border-top: 1px solid var(--line);
}

.role-advanced-row > :last-child,
.role-advanced-head > :last-child,
.role-advanced-footer > :last-child {
  border-right: 0;
}

.role-advanced-row strong {
  color: #223247;
  font-size: 0.86rem;
}

.role-advanced-row span {
  color: #344255;
  font-size: 0.84rem;
  font-weight: 750;
}

.role-advanced-row label,
.role-advanced-footer > button {
  justify-content: center;
}

.role-advanced-footer {
  background: #fbfdff;
}

.role-advanced-footer > strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .role-module-tabs,
  .role-matrix-grid,
  .role-permission-matrix,
  .role-settings-head,
  .role-settings-row,
  .role-settings-footer,
  .role-advanced-head,
  .role-advanced-row,
  .role-advanced-footer {
    grid-template-columns: 1fr;
  }

  .role-settings-head,
  .role-advanced-head {
    display: none;
  }
}

.wbs-template-download {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  gap: 8px;
}

.wbs-import-preview-table table {
  min-width: 960px;
}

.wbs-import-errors {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
}

.wbs-import-errors > strong {
  color: #991b1b;
}

.wbs-import-errors ul {
  max-height: 240px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wbs-import-errors li {
  display: grid;
  grid-template-columns: 86px 110px minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: start;
  padding: 8px;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fff;
}

.wbs-import-errors li span,
.wbs-import-errors li b {
  color: #7f1d1d;
  font-size: 0.78rem;
  font-weight: 900;
}

.wbs-import-errors li p {
  margin: 0;
  color: #344255;
  font-size: 0.84rem;
  font-weight: 750;
}

.wbs-import-errors small {
  color: #7f1d1d;
  font-weight: 850;
}

.wbs-title-line {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.wbs-title-line strong {
  min-width: 0;
}

.wbs-title-line > span:not(.wbs-nature-group):not(.wbs-risk-cost):not(.change-wbs-action):not(.change-wbs-type-badge):not(.wbs-delta-chip):not(.wbs-separator) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #536274;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.wbs-title-line > span:not(.wbs-nature-group):not(.wbs-risk-cost):not(.change-wbs-action):not(.change-wbs-type-badge):not(.wbs-delta-chip):not(.wbs-separator)::before,
.wbs-nature-group::before {
  content: '|';
  color: #c5ced8;
  font-weight: 700;
}

.wbs-title-line > .wbs-risk-cost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.wbs-title-line > .wbs-risk-cost::before {
  content: '|';
  color: #c5ced8;
  font-weight: 700;
}

.wbs-nature-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.wbs-nature-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  color: #344255;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  background: white;
}

.detail-list p,
.timeline-list p {
  margin: 7px 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.timeline-list span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--adm-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.budget-list span {
  color: #344255;
  font-weight: 850;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-scrim {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(21, 32, 43, 0.46);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  padding: 22px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.modal-close:hover {
  background: #f8fafc;
}

.modal-panel.import-preview-modal {
  width: min(70vw, 1280px);
  max-width: calc(100vw - 32px);
  align-self: flex-start;
}

.compact-modal {
  width: min(520px, 100%);
}

.modal-layer-nested {
  z-index: 120;
  align-items: center;
}

.contacts-duplicate-modal {
  align-self: center;
}

.signed-document-download-modal {
  width: min(560px, calc(100vw - 32px));
}

.signed-document-download-modal .modal-header {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.signed-document-download-modal .modal-header h2 {
  margin: 0;
  color: #172433;
  font-size: 1.08rem;
}

.signed-document-download-modal .modal-header p {
  margin: 0;
}

.signed-document-download-options {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.signed-document-download-options a {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfe;
  text-decoration: none;
}

.signed-document-download-options a:hover {
  border-color: #9fbed9;
  background: #f7fbff;
}

.signed-document-download-options svg {
  color: var(--adm-blue);
}

.signed-document-download-options span {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.signed-document-download-options strong {
  font-size: 0.94rem;
}

.signed-document-download-options small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.project-archive-modal {
  width: min(620px, calc(100vw - 32px));
}

.project-closure-modal {
  width: min(720px, calc(100vw - 32px));
}

.project-closure-recall-modal {
  width: min(560px, calc(100vw - 32px));
}

.project-closure-recall-modal > .modal-head {
  padding-right: 52px;
}

.project-closure-modal > .modal-head {
  align-items: flex-start;
}

.project-closure-modal > .modal-head > div {
  min-width: 0;
}

.project-closure-modal > .modal-head .status-pill {
  flex: 0 0 auto;
  max-width: 100%;
  margin-right: 52px;
}

@media (max-width: 560px) {
  .project-closure-modal > .modal-head {
    display: grid;
    justify-content: stretch;
  }

  .project-closure-modal > .modal-head .status-pill {
    justify-self: start;
    margin-right: 0;
  }
}

.project-closure-flow-panel {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  padding: 18px;
}

.project-closure-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.project-closure-flow-head .block-title {
  margin: 0;
}

.project-closure-flow-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.project-closure-external-action {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.project-closure-approval-flow {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.project-closure-approval-flow .change-approval-step {
  min-width: 170px;
}

.project-closure-note-field {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  width: 100%;
  color: #344255;
  font-size: 0.88rem;
  font-weight: 850;
}

.project-closure-note-field textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
  color: var(--ink);
  background: white;
  line-height: 1.45;
  resize: vertical;
}

.project-closure-automatic-actions {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 0;
}

.project-closure-steps {
  width: 100%;
  display: grid;
  grid-template-columns: 100% 100%;
  overflow: hidden;
}

.project-closure-step {
  min-width: 0;
  display: grid;
  align-content: start;
  grid-gap: 14px;
  gap: 14px;
  transition: transform 220ms ease;
}

.project-closure-steps[data-step="1"] .project-closure-step {
  transform: translateX(0);
}

.project-closure-steps[data-step="2"] .project-closure-step {
  transform: translateX(-100%);
}

.project-closure-step-head {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.project-closure-step-head strong {
  color: #223247;
  font-size: 0.95rem;
  font-weight: 950;
}

.project-closure-step-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.project-closure-vertical-flow {
  display: grid;
  grid-gap: 0;
  gap: 0;
  padding: 4px 0;
}

.project-closure-vertical-step {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
  color: #223247;
  cursor: default;
}

.project-closure-vertical-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: -8px;
  left: 18px;
  width: 2px;
  border-radius: 999px;
  background: #cdd8e4;
}

.project-closure-vertical-step.is-active:not(:last-child)::before,
.project-closure-vertical-step.is-originator:not(:last-child)::before {
  background: #35a853;
}

.project-closure-vertical-marker {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid #d7e0ea;
  border-radius: 999px;
  background: #f7fafc;
  box-shadow: 0 0 0 4px #fff;
  color: #516478;
  font-size: 0.72rem;
  font-weight: 950;
}

.project-closure-vertical-step.is-active .project-closure-vertical-marker,
.project-closure-vertical-step.is-originator .project-closure-vertical-marker {
  border-color: #35a853;
  background: #35a853;
  color: #ffffff;
}

.project-closure-vertical-step.is-not-required {
  color: var(--muted);
  opacity: 0.74;
}

.project-closure-vertical-step.is-not-required .project-closure-vertical-marker {
  border-color: #d7e0ea;
  background: #f3f6f9;
  color: #7a8999;
}

.project-closure-vertical-step > div {
  min-width: 0;
  display: grid;
  align-content: start;
  grid-gap: 4px;
  gap: 4px;
  padding: 0 0 18px;
}

.project-closure-vertical-step strong {
  color: #142033;
  font-size: 0.92rem;
  font-weight: 950;
}

.project-closure-vertical-step span:not(.project-closure-vertical-marker):not(.project-closure-level-toggle) {
  color: #223247;
  font-size: 0.88rem;
  font-weight: 800;
}

.project-closure-vertical-step small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.project-closure-vertical-step em {
  width: -moz-fit-content;
  width: fit-content;
  padding: 2px 7px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  color: #44556a;
  background: #f7fafc;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
}

.project-closure-level-toggle {
  width: -moz-fit-content;
  width: fit-content;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #223247 !important;
  font-size: 0.76rem !important;
  font-weight: 850 !important;
}

.project-closure-level-toggle input {
  margin: 0;
}

.project-closure-level-mode {
  width: min(100%, 320px);
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  margin-top: 6px;
  color: #44556a;
  font-size: 0.72rem;
  font-weight: 850;
}

.project-closure-level-mode select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 7px 34px 7px 10px;
  color: #223247;
  background: #ffffff;
  font: inherit;
  font-size: 0.8rem;
}

.notification-settings-table {
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.notification-settings-head,
.notification-settings-row {
  display: grid;
  grid-template-columns: 86px minmax(170px, 0.75fr) minmax(260px, 1.25fr);
  align-items: center;
}

.notification-settings-head {
  min-height: 38px;
  background: #f4f7fb;
  border-bottom: 1px solid #dbe4ee;
  color: #607086;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-settings-head > span,
.notification-settings-row > * {
  min-width: 0;
  padding: 10px 14px;
}

.notification-settings-head > span:first-child,
.notification-settings-check-cell {
  display: grid;
  place-items: center;
}

.notification-settings-row {
  min-height: 58px;
  border-bottom: 1px solid #edf2f7;
}

.notification-settings-row:last-child {
  border-bottom: 0;
}

.notification-settings-row:hover {
  background: #fbfdff;
}

.notification-settings-event {
  color: #1f2f43;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.notification-settings-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.notification-checkbox {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.notification-checkbox input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.notification-checkbox span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #b9c8d9;
  border-radius: 5px;
  background: #ffffff;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.notification-checkbox span::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.notification-checkbox input:checked + span {
  border-color: var(--adm-blue);
  background: var(--adm-blue);
  box-shadow: 0 0 0 2px rgba(0, 111, 186, 0.12);
}

.notification-checkbox input:checked + span::after {
  opacity: 1;
}

.notification-checkbox input:focus-visible + span {
  outline: 2px solid rgba(0, 111, 186, 0.35);
  outline-offset: 2px;
}

.notification-checkbox input:disabled + span {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 760px) {
  .notification-settings-table {
    display: grid;
    grid-gap: 10px;
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .notification-settings-head {
    display: none;
  }

  .notification-settings-row {
    min-height: 0;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 11px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
  }

  .notification-settings-row > * {
    padding: 0;
  }

  .notification-settings-check-cell {
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 1px;
  }

  .notification-settings-event {
    grid-column: 2;
  }

  .notification-settings-row p {
    grid-column: 2;
    font-size: 0.78rem;
  }
}

.project-closure-signers {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.project-closure-signers > div:first-child {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.project-closure-signers > div:first-child strong {
  color: #223247;
  font-size: 0.92rem;
  font-weight: 900;
}

.project-closure-signers > div:first-child span,
.project-closure-signers p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.project-closure-signers-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.project-closure-signer-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  grid-gap: 9px;
  gap: 9px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.project-closure-signer-row span {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.project-closure-signer-row strong {
  color: #223247;
  font-size: 0.82rem;
  font-weight: 900;
}

.project-closure-signer-row small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .project-closure-signers-list {
    grid-template-columns: 1fr;
  }
}

.project-archive-checks {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.project-archive-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-gap: 10px;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}

.project-archive-check.ok svg {
  color: #15803d;
}

.project-archive-check.blocked svg {
  color: #b91c1c;
}

.project-archive-check.warning svg {
  color: #b45309;
}

.project-archive-check strong,
.project-archive-check span {
  display: block;
}

.project-archive-check strong {
  color: #111827;
  font-size: 0.9rem;
}

.project-archive-check span {
  color: #64748b;
  font-size: 0.82rem;
  margin-top: 2px;
}

.project-archive-banner {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff7ed;
  color: #7c2d12;
}

.project-archive-banner strong {
  font-size: 0.92rem;
}

.project-archive-banner span,
.project-archive-banner p {
  margin: 0;
  color: #92400e;
  font-size: 0.86rem;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-head-actions,
.block-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-head-actions {
  flex-shrink: 0;
}

.block-head-actions {
  margin-bottom: 14px;
}

.block-head-actions h2 {
  margin: 0;
}

.modal-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
}

.icon-button.resource-capacity-add {
  border-color: var(--adm-blue);
  background: var(--adm-blue);
  color: #fff;
}

.icon-button.resource-capacity-save,
.icon-button.profile-report-save {
  border-color: var(--adm-blue);
  background: var(--adm-blue);
  color: #fff;
}

.icon-button.resource-capacity-save svg,
.icon-button.resource-capacity-add svg,
.icon-button.profile-report-save svg {
  color: #fff;
  stroke: currentColor;
}

.icon-button.resource-capacity-save:hover,
.icon-button.resource-capacity-save:focus-visible,
.icon-button.resource-capacity-add:hover,
.icon-button.resource-capacity-add:focus-visible,
.icon-button.profile-report-save:hover,
.icon-button.profile-report-save:focus-visible {
  border-color: #0f5f9f;
  background: #0f5f9f;
  color: #fff;
}

.danger-icon-button {
  color: var(--red);
  border-color: #f0b5b5;
  background: #fff7f7;
}

.danger-icon-button:hover {
  color: white;
  border-color: var(--red);
  background: var(--red);
}

.inline-confirm-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #f0b5b5;
  border-radius: 8px;
  color: #7f1d1d;
  background: #fff7f7;
  font-size: 0.86rem;
  font-weight: 850;
}

.inline-confirm-box div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.form-grid,
.health-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.form-grid label,
.health-picker-grid label,
.compact-modal label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #344255;
  font-size: 0.88rem;
  font-weight: 850;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.health-picker-grid select,
.compact-modal input,
.compact-modal select,
.compact-modal textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bccada;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  outline: none;
}

.form-grid input,
.form-grid select,
.health-picker-grid select,
.compact-modal input,
.compact-modal select {
  height: 44px;
}

.form-grid textarea,
.compact-modal textarea {
  min-height: 96px;
  padding-top: 10px;
  resize: vertical;
}

.compact-modal .checkbox-line {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344255;
  font-size: 0.88rem;
  font-weight: 800;
}

.compact-modal .checkbox-line input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.project-report-email-modal textarea {
  min-height: 150px;
  line-height: 1.45;
}

.form-wide {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.primary-action,
.ghost-action,
.danger-submit {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 850;
}

.primary-action {
  border: 0;
  color: white;
  background: var(--adm-blue);
  text-decoration: none;
}

.add-action {
  white-space: nowrap;
}

.add-action svg {
  flex: 0 0 auto;
}

.danger-submit {
  border: 0;
  color: white;
  background: var(--red);
}

.ghost-action {
  border: 1px solid var(--line);
  color: #344255;
  background: white;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.deliverable-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin: 10px 0;
}

.deliverable-list > span,
.inline-add {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #41546a;
  background: white;
  font-size: 0.78rem;
  font-weight: 850;
}

.deliverable-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.deliverable-tree-node {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.deliverable-children {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-left: 22px;
  padding-left: 14px;
  border-left: 2px solid #d9e0e8;
}

.deliverable-item strong {
  display: block;
  color: #223247;
  font-size: 0.88rem;
}

.deliverable-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.deliverable-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 110px;
}

.deliverable-meta span {
  min-height: 26px;
}

.wbs-budget-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.wbs-risk-cost {
  color: #b42318;
  font-weight: 900;
}

.inline-add {
  cursor: pointer;
}

.danger-action {
  color: white;
}

.danger-action svg {
  color: currentColor;
  stroke: currentColor;
}

.wbs-action-group .danger-action,
.deliverable-meta .danger-action {
  color: #1f2a37;
}

.wbs-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.wbs-demo-note {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.76rem;
  font-weight: 850;
}

@media (min-width: 1101px) and (max-width: 1380px) {
  .executive-dashboard-grid {
    grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
    gap: 12px;
  }

  .executive-financial-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .executive-overview-summary {
    grid-column: 1;
  }

  .executive-overview-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .executive-bottom-grid {
    gap: 12px;
  }

  .executive-tile {
    min-height: 66px;
    padding: 8px;
    gap: 4px 7px;
  }

  .executive-tile svg {
    width: 17px;
    height: 17px;
  }

  .executive-tile span {
    font-size: 0.68rem;
  }

  .executive-tile strong {
    font-size: 0.94rem;
  }

  .executive-financial-grid .executive-tile {
    color: var(--ink);
    text-decoration: none;
  }

  .executive-financial-grid .executive-tile:not(.executive-tile-good):not(.executive-tile-warn):not(.executive-tile-bad) strong {
    color: var(--ink);
  }

  .executive-financial-grid .executive-tile span,
  .executive-financial-grid .executive-tile strong {
    text-decoration: none;
    border-bottom: 0;
  }

  .executive-financial-grid .executive-financial-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon label"
      "value value";
    align-items: center;
    min-height: 66px;
    height: 100%;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 22px rgba(21, 32, 43, 0.05);
  }

  .executive-panel {
    gap: 8px;
    padding: 11px;
  }

  .executive-panel .module-card-title {
    font-size: 0.9rem;
  }

  .executive-health-tile {
    min-height: 0;
  }

  .executive-health-pie-layout {
    gap: 8px;
  }

  .executive-health-pie-shell {
    width: 150px;
  }

  .executive-health-pie-total {
    font-size: 1.38rem;
  }

  .executive-health-counts {
    gap: 5px;
    font-size: 0.86rem;
  }

  .executive-health-counts button {
    min-height: 24px;
    padding: 1px 5px;
  }

  .executive-health-structure-row {
    gap: 6px;
  }

  .executive-health-structure-row div {
    min-height: 58px;
    padding: 9px;
  }

  .executive-health-structure-row svg {
    width: 16px;
    height: 16px;
  }

  .executive-health-structure-row span {
    font-size: 0.62rem;
  }

  .executive-health-structure-row strong {
    font-size: 0.98rem;
  }

  .executive-risk-grid {
    gap: 8px;
  }

  .executive-chart {
    min-height: 250px;
  }

  .executive-chart svg {
    min-height: 224px;
  }

  .executive-chart text {
    font-size: 10.5px;
  }

  .executive-chart-legend {
    gap: 8px;
    font-size: 0.7rem;
  }

  .executive-table {
    font-size: 0.76rem;
  }

  .executive-table-row {
    padding: 8px 9px;
  }

  .executive-table-row strong {
    font-size: 0.78rem;
  }

  .executive-table-row span,
  .executive-table-row small {
    font-size: 0.69rem;
  }

  .executive-impact-icons {
    gap: 5px;
  }

  .executive-impact-icons span {
    min-width: 62px;
    padding: 4px 5px;
    font-size: 0.68rem;
  }

  .cfo-dashboard-grid {
    gap: 12px;
  }

  .cfo-main-grid {
    grid-template-columns: minmax(360px, 0.56fr) minmax(0, 0.44fr);
    gap: 12px;
  }

  .cfo-capex-opex-chart {
    gap: 6px;
  }

  .cfo-capex-opex-chart svg {
    min-height: 230px;
  }

  .cfo-capex-opex-chart text {
    font-size: 10.5px;
  }

  .cfo-revised-budget-grid {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .cfo-revised-budget-grid .executive-tile {
    min-height: 60px;
  }

  .cfo-burnup-chart {
    min-height: 300px;
  }

  .cfo-burnup-chart svg {
    min-height: 276px;
  }

  .cfo-money-impact {
    grid-template-columns: 15px max-content;
    gap: 3px;
    font-size: 0.72rem;
  }

  .cfo-money-impact svg {
    width: 14px;
    height: 14px;
  }

  .cfo-money-impact small {
    font-size: 0.64rem;
  }
}

@media (max-width: 760px) {
  .executive-supplier-total-full {
    display: none;
  }

  .executive-supplier-total-compact {
    display: inline;
  }

  .executive-supplier-label-full {
    display: none;
  }

  .executive-supplier-label-compact {
    display: inline;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    display: block;
    padding-top: 64px;
  }

  .executive-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .executive-overview-summary,
  .executive-financial-grid,
  .executive-overview-grid,
  .executive-bottom-grid {
    grid-column: auto;
  }

  .executive-overview-summary {
    order: 1;
  }

  .executive-financial-grid {
    order: 2;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .executive-overview-grid {
    order: 3;
  }

  .executive-burndown-panel {
    order: 1;
  }

  .executive-risk-panel {
    order: 2;
  }

  .executive-bottom-grid {
    order: 4;
    grid-template-columns: 1fr;
  }

  .executive-overview-grid {
    grid-template-columns: 1fr;
  }

  .cfo-main-grid {
    grid-template-columns: 1fr;
  }

  .cfo-nature-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .executive-financial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-overview-summary > .executive-health-tile {
    min-height: 0;
  }

  .executive-chart svg {
    min-width: 760px;
  }

  .executive-chart {
    overflow-x: auto;
  }

  .executive-ddc-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .executive-ddc-row .executive-impact-icons {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .executive-ddc-row .executive-impact-icons span {
    min-width: 0;
  }

  .executive-risk-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .executive-risk-row .executive-impact-icons {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .executive-risk-row .executive-impact-icons span {
    min-width: 0;
  }

  .cfo-overrun-row,
  .cfo-change-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .cfo-overrun-row .cfo-money-impact,
  .cfo-change-row .cfo-money-impact {
    justify-self: center;
  }

  .app-shell > .sidebar {
    display: none;
  }

  .mobile-app-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--nav);
    box-shadow: 0 10px 28px rgba(21, 32, 43, 0.08);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
  }

  .mobile-app-bar img {
    width: 126px;
    height: auto;
  }

  .mobile-menu-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 35;
    width: min(292px, calc(100vw - 48px));
    display: flex;
    flex-direction: column;
    padding: 18px;
    color: white;
    background: var(--nav);
    box-shadow: 18px 0 38px rgba(21, 32, 43, 0.18);
    transform: translateX(-104%);
    transition: transform 180ms ease;
  }

  .mobile-sidebar .nav-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-sidebar .nav-list a {
    width: 100%;
  }

  .mobile-sidebar-open {
    transform: translateX(0);
  }

  .mobile-sidebar form {
    margin-top: auto;
  }

  .mobile-sidebar .nav-user-link {
    margin-top: auto;
    margin-bottom: 10px;
  }

  .mobile-menu-scrim {
    position: fixed;
    inset: 64px 0 0;
    z-index: 31;
    display: block;
    border: 0;
    background: rgba(21, 32, 43, 0.34);
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .logout {
    margin-top: 18px;
  }

  .hero-band,
  .metric-grid,
  .two-column,
  .project-list,
  .project-detail-hero,
  .detail-grid,
  .wbs-selector,
  .budget-kpis {
    grid-template-columns: 1fr;
  }

  .import-preview-summary {
    grid-template-columns: 1fr;
  }

  .import-preview-modal {
    width: calc(100vw - 24px);
  }

  .import-preview-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .import-preview-pagination-controls {
    justify-content: space-between;
  }

  .import-preview-table {
    min-width: 860px;
  }

  .progress-ring {
    justify-self: start;
  }

  .table-row {
    grid-template-columns: 1fr 0.6fr 1fr;
  }

  .table-row > :nth-child(4),
  .table-row > :nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  input {
    font-size: 16px;
  }

  .login-shell {
    display: block;
    min-height: 100vh;
    padding: 0;
    overflow: visible;
    background: white;
  }

  .login-bg-picture {
    position: relative;
    inset: auto;
    width: 100%;
    height: 42vh;
    min-height: 300px;
  }

  .login-bg {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    object-fit: cover;
  }

  .login-overlay {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: 42vh;
    min-height: 300px;
    background:
      linear-gradient(0deg, rgba(9, 28, 48, 0.58), rgba(9, 28, 48, 0.24)),
      rgba(0, 0, 0, 0.16);
  }

  .login-panel {
    position: static;
    width: 100%;
    margin: 0;
    padding: 28px 24px 30px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: white;
  }

  .login-title {
    white-space: normal;
  }

  .login-brand {
    position: absolute;
    z-index: 1;
    top: calc(max(42vh, 300px) - 82px);
    left: 24px;
    justify-content: flex-start;
    margin: 0;
  }

  .login-brand.simple {
    justify-content: flex-start;
  }

  .login-brand img {
    width: 220px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .workspace {
    padding: 18px;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .archive-scope-topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .archive-scope-topbar .archive-scope-filter {
    min-width: 0;
    width: 100%;
  }

  .dashboard-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .dashboard-mobile-report-action,
  .icon-button.dashboard-mobile-report-action {
    display: inline-flex;
    flex: 0 0 42px;
  }

  .dashboard-desktop-report-action,
  .icon-button.dashboard-desktop-report-action {
    display: none;
  }

  .dashboard-actions,
  .dashboard-context {
    grid-column: 1;
    grid-row: auto;
  }

  .dashboard-actions,
  .dashboard-selector,
  .dashboard-selector select {
    width: 100%;
  }

  .dashboard-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .separated-dashboard-actions::before {
    display: none;
  }

  .dashboard-selector {
    display: grid;
    order: 1;
    grid-column: auto;
    width: 100%;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.14);
  }

  .dashboard-selector.executive-dashboard-selector {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .separated-dashboard-actions .dashboard-selector {
    order: 1;
  }

  .separated-dashboard-actions .dashboard-selector.executive-dashboard-selector {
    order: 1;
  }

  .dashboard-selector span {
    display: none;
  }

  .dashboard-selector select {
    width: 100%;
    min-width: 0;
  }

  .dashboard-actions .executive-top-metric-selector,
  .dashboard-actions .cfo-dashboard-filters,
  .dashboard-actions .resource-dashboard-filters,
  .dashboard-actions .budget-steering-filters,
  .dashboard-actions .partner-dashboard-top-filters {
    order: 2;
  }

  .dashboard-actions .dashboard-mobile-context {
    display: block;
    order: 2;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.14);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.35;
  }

  .dashboard-actions .executive-top-metric-selector {
    order: 4;
  }

  .dashboard-actions .executive-project-scope-selector {
    order: 3;
  }

  .dashboard-actions .executive-hierarchy-filters {
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-actions .executive-hierarchy-filters select {
    width: 100%;
    min-width: 0;
  }

  .dashboard-actions .executive-top-metric-selector {
    order: 5;
  }

  .dashboard-executive-context {
    display: none;
  }

  .dashboard-actions .dashboard-desktop-report-action {
    display: none;
  }

  .dashboard-context {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .cfo-dashboard-filters {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cfo-dashboard-filters label {
    width: 100%;
  }

  .cfo-dashboard-filters select {
    width: 100%;
    min-width: 0;
  }

  .program-detail-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    grid-gap: 10px 12px;
    gap: 10px 12px;
  }

  .program-detail-topbar .topbar-title {
    display: contents;
  }

  .program-detail-topbar .back-link {
    grid-column: 1;
    grid-row: 1;
    width: -moz-fit-content;
    width: fit-content;
    align-self: center;
  }

  .program-detail-topbar .topbar-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: center;
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
    gap: 8px;
  }

  .program-detail-topbar h1 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .risk-edit-topbar .risk-edit-subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 2px;
  }

  .risk-edit-topbar h1 {
    grid-row: 3;
  }

  .risk-edit-topbar .topbar-actions {
    grid-row: 4;
  }

  .program-detail-topbar .detail-topbar-status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin-bottom: 0;
    min-height: 32px;
    max-width: 118px;
    justify-content: center;
    padding: 0 9px;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar .add-action {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .topbar .add-action span {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-search-bar {
    grid-template-columns: 1fr;
  }

  .projects-list-search-bar {
    grid-template-columns: 1fr;
  }

  .project-mine-filter {
    min-height: 42px;
    justify-content: flex-start;
  }

  .project-search-bar.users-search-bar {
    grid-template-columns: 1fr;
  }

  .project-search-bar.users-search-bar .project-search,
  .project-search-bar.users-search-bar .project-archive-filter {
    width: 100%;
  }

  .project-search-bar.changes-search-bar {
    grid-template-columns: 1fr;
  }

  .project-archive-filter {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 8px 12px;
  }

  .topbar .secondary-action {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .topbar .secondary-action span {
    display: none;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
  }

  .detail-list-head,
  .budget-list > div,
  .form-grid,
  .health-picker-grid {
    grid-template-columns: 1fr;
  }

  .wbs-kpi-grid {
    grid-template-columns: 1fr;
  }

  .deliverable-item {
    flex-direction: column;
  }

  .deliverable-meta {
    justify-content: flex-start;
  }

}

@media (min-width: 721px) and (max-width: 1100px) {
  .risk-list-head {
    display: grid;
  }

  .risk-list-head,
  .risk-list-row {
    grid-template-columns: minmax(80px, 0.75fr) minmax(160px, 1.6fr) 78px 64px minmax(90px, 0.8fr) minmax(96px, 0.8fr) minmax(105px, 0.9fr);
  }

  .risk-list-row {
    min-height: 58px;
    padding: 12px 14px;
  }

  .risk-list-row > span {
    display: block;
  }

  .risk-mobile-card {
    display: none;
  }
}

@media (max-width: 1100px) {
  .budget-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cashflow-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-risk-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .budget-section-panel {
    margin-top: 14px;
  }

  .budget-status-panel .section-heading {
    align-items: center;
    flex-direction: row;
  }

  .budget-status-panel .section-heading > div {
    min-width: 0;
  }

  .budget-status-panel .section-heading h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .budget-kpis,
  .cashflow-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .budget-kpis > div,
  .cashflow-kpis > article {
    min-height: 104px;
    padding: 14px;
  }

  .budget-kpis strong,
  .cashflow-kpis strong {
    font-size: 1rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .budget-table {
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .budget-table-head {
    display: none;
  }

  .budget-row {
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 20px rgba(21, 32, 43, 0.04);
  }

  .budget-row-wp {
    background: #f7fbff;
  }

  .budget-row span:first-child {
    grid-column: 1 / -1;
    padding-left: 0 !important;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .budget-row span:not(:first-child) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    white-space: normal;
  }

  .budget-row span:not(:first-child)::before {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .budget-row span:nth-child(2)::before { content: 'Planifie :'; }
  .budget-row span:nth-child(3)::before { content: 'Reel :'; }
  .budget-row span:nth-child(4)::before { content: 'Engage :'; }
  .budget-row span:nth-child(5)::before { content: 'Reel + engage :'; }
  .budget-row span:nth-child(6)::before { content: 'Ecart :'; }
  .budget-row span:nth-child(7)::before { content: 'Consommation :'; }

  .budget-burndown-chart {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 240px;
    gap: 8px;
  }

  .budget-burndown-svg {
    height: 226px;
  }

  .budget-burndown-ylabels {
    font-size: 0.66rem;
    padding-bottom: 18px;
  }

  .budget-burndown-xlabels {
    position: relative;
    min-height: 68px;
    margin-left: 54px;
    font-size: 0.58rem;
  }

  .mobile-pruned-xlabels span {
    position: absolute;
    top: 8px;
    width: 0;
    font-size: 0;
    transform: rotate(-45deg);
    transform-origin: top left;
    white-space: nowrap;
  }

  .mobile-pruned-xlabels span::before {
    content: attr(data-mobile-label);
    display: inline-block;
    font-size: 0.58rem;
    white-space: nowrap;
  }

  .mobile-pruned-xlabels span:last-child {
    width: 0;
    text-align: right;
    transform: none;
  }

  .mobile-pruned-xlabels span:last-child::before {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    transform: rotate(-45deg);
    transform-origin: top right;
  }

  .project-risk-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-risk-metrics div:first-child {
    grid-column: 1 / -1;
  }

  .project-risk-exposure-heading {
    align-items: center;
    flex-direction: row;
  }

  .project-risk-exposure-heading > .block-title {
    min-width: 0;
  }

  .project-risk-heading-actions {
    flex: 0 0 auto;
  }

  .chart-legend,
  .scenario-month-controls,
  .cashflow-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .chart-legend {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .cashflow-month-picker {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .cashflow-month-picker select,
  .cashflow-export-button,
  .cashflow-copy-button,
  .cashflow-lock-button,
  .cashflow-lock-status,
  .scenario-month-controls select {
    width: 100%;
  }

  .cashflow-table-wrap {
    margin-inline: -2px;
    max-width: calc(100vw - 32px);
  }

  .cashflow-table th:first-child,
  .cashflow-table td:first-child {
    width: 210px;
    min-width: 210px;
    max-width: 210px;
  }

  .cashflow-table th,
  .cashflow-table td {
    min-width: 78px;
    height: 46px;
    padding: 7px 6px;
    font-size: 0.72rem;
  }

  .cashflow-table th:nth-child(2),
  .cashflow-table td:nth-child(2),
  .cashflow-table th:nth-child(3),
  .cashflow-table td:nth-child(3),
  .cashflow-table th:nth-last-child(1),
  .cashflow-table td:nth-last-child(1),
  .cashflow-table th:nth-last-child(2),
  .cashflow-table td:nth-last-child(2),
  .cashflow-table th:nth-last-child(3),
  .cashflow-table td:nth-last-child(3) {
    min-width: 92px;
  }

  .cashflow-element-content {
    padding: 7px 8px;
  }

  .cashflow-actions .primary-action {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .cashflow-kpis {
    grid-template-columns: 1fr;
  }

  .budget-row {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 720px) {
  .cashflow-mobile-editor {
    display: grid;
    grid-gap: 14px;
    gap: 14px;
  }

  .cashflow-panel .cashflow-table-wrap {
    display: none;
  }
}

@media (max-width: 420px) {
  .cashflow-mobile-summary,
  .cashflow-mobile-month-row {
    grid-template-columns: 1fr;
  }

  .cashflow-mobile-month-row strong,
  .cashflow-mobile-month-row input {
    text-align: left;
  }
}


.portfolio-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-gap: 18px;
  gap: 18px;
  align-items: start;
}

.portfolio-tree-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 18px;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.portfolio-tree-panel > strong {
  color: #223247;
  font-size: 0.92rem;
}

.portfolio-tree-list,
.portfolio-list,
.program-list {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.portfolio-tree-node {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 10px 0 10px 12px;
  border-left: 3px solid #d9e8f6;
}

.portfolio-tree-node span {
  color: #223247;
  font-size: 0.84rem;
  font-weight: 900;
}

.portfolio-tree-node small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.portfolio-card {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.portfolio-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.portfolio-card-heading > div {
  min-width: 0;
}

.portfolio-card-heading span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-card-heading h2 {
  margin: 5px 0 0;
  color: #223247;
  font-size: 1.22rem;
}

.portfolio-card-heading p {
  max-width: 780px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.portfolio-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.portfolio-card-metrics div {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.portfolio-card-metrics span,
.portfolio-scope-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.portfolio-card-metrics strong {
  color: #223247;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.portfolio-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

/* Shared icon / label / value tiles used across project, program, budget, WBS and portfolio pages. */
.financial-status-grid article,
.budget-kpis > div,
.cashflow-kpis article,
.wbs-kpi-grid article {
  display: grid;
  align-content: space-between;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.04);
}

.panel :is(
  .financial-status-grid article,
  .budget-kpis > div,
  .cashflow-kpis article,
  .wbs-kpi-grid article
) {
  background: #f7f9fc;
  box-shadow: none;
}

.financial-status-grid svg,
.budget-kpis svg,
.cashflow-kpis svg,
.wbs-kpi-grid svg {
  width: 20px;
  height: 20px;
  color: var(--adm-blue);
  stroke-width: 2.15;
}

.financial-status-grid span,
.budget-kpis span,
.cashflow-kpis span,
.wbs-kpi-grid span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.financial-status-grid strong,
.budget-kpis strong,
.cashflow-kpis strong,
.wbs-kpi-grid strong {
  align-self: end;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #172433;
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.financial-status-grid strong.metric-good,
.budget-kpis strong.positive,
.cashflow-kpis strong.positive {
  color: var(--green);
}

.financial-status-grid strong.metric-warning {
  color: var(--yellow);
}

.budget-kpis strong.negative,
.cashflow-kpis strong.negative {
  color: var(--red);
}

.wbs-kpi-grid strong {
  white-space: nowrap;
}

.portfolio-scope-grid.one-column {
  grid-template-columns: 1fr;
}

.portfolio-scope-grid > div {
  display: grid;
  align-content: start;
  grid-gap: 8px;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.portfolio-scope-grid strong {
  color: #223247;
  font-size: 0.86rem;
}

.portfolio-modal {
  width: min(760px, calc(100vw - 28px));
}

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

  .portfolio-tree-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .portfolio-card-heading {
    flex-direction: column;
  }

  .portfolio-card-metrics,
  .portfolio-scope-grid {
    grid-template-columns: 1fr;
  }

  .wbs-selector {
    grid-template-columns: 1fr;
  }

}


.portfolio-info-block > .icon-button {
  position: absolute;
  top: 18px;
  right: 22px;
}

.portfolio-info-block > h2,
.portfolio-info-block > .portfolio-info-title {
  min-height: 38px;
  margin-bottom: 22px;
  padding-right: 68px;
}

.program-info-block > .icon-button {
  top: 18px;
  right: 22px;
}

.program-info-block > .program-info-title {
  min-height: 38px;
  margin-bottom: 22px;
  padding-right: 68px;
}

.portfolio-info-summary {
  margin-top: 0;
}

.portfolio-info-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  grid-gap: 24px;
  gap: 24px;
  align-items: start;
  padding-right: 10px;
}

.portfolio-info-layout .risk-info-summary-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-manager-profile > span:not(.program-manager-avatar) {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.portfolio-info-summary .risk-info-summary-description {
  grid-column: 1 / -1;
}

.portfolio-info-summary .risk-info-summary-description strong {
  white-space: normal;
}

.program-info-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  grid-gap: 24px;
  gap: 24px;
  align-items: start;
  padding-right: 10px;
}

.program-manager-profile {
  display: grid;
  justify-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding-top: 4px;
  text-align: center;
}

.program-manager-profile .program-manager-avatar {
  width: 86px;
  height: 86px;
  font-size: 1.2rem;
}

.program-manager-profile strong {
  max-width: 150px;
  color: #223247;
  font-size: 0.9rem;
  line-height: 1.25;
  text-align: center;
}

.project-info-block > .icon-button {
  top: 18px;
  right: 22px;
}

.project-info-block > .project-info-title {
  min-height: 38px;
  margin-bottom: 22px;
  padding-right: 68px;
}

.project-info-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  grid-gap: 28px;
  gap: 28px;
  align-items: start;
  padding-right: 10px;
}

.project-stakeholders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 18px;
  gap: 18px;
}

.project-person-profile {
  display: grid;
  justify-items: center;
  grid-gap: 7px;
  gap: 7px;
  min-width: 0;
  padding-top: 4px;
  text-align: center;
}

.project-person-profile .program-manager-avatar {
  width: 86px;
  height: 86px;
  font-size: 1.2rem;
}

.project-person-profile strong {
  margin-top: 2px;
  color: #223247;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
}

.project-person-profile span:last-child {
  max-width: 170px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.25;
}

.project-context-summary {
  margin: 0;
}

.project-context-summary .risk-info-summary-row {
  grid-template-columns: 1fr;
}

.project-context-link {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.project-context-link:visited {
  color: inherit;
}

.project-context-link:hover {
  border-color: #9fbed9;
  box-shadow: 0 8px 24px rgba(21, 32, 43, 0.08);
  text-decoration: none;
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .program-info-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-right: 0;
  }

  .portfolio-info-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding-right: 0;
  }

  .program-manager-profile {
    justify-items: center;
    text-align: center;
  }

  .program-manager-profile strong {
    max-width: none;
  }

  .program-info-block .portfolio-info-summary,
  .program-info-block .risk-info-summary-row {
    grid-template-columns: 1fr;
  }

  .program-info-block .portfolio-info-summary {
    gap: 10px;
  }

  .portfolio-info-layout .portfolio-info-summary,
  .portfolio-info-layout .risk-info-summary-row {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .project-info-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-right: 0;
  }

  .project-stakeholders {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1100px) {
  .financial-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-health-grid,
  .portfolio-detail-grid,
  .change-two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .group-dual-picker-grid {
    grid-template-columns: 1fr;
  }

  .group-dual-picker-list {
    max-height: 190px;
  }

  .registry-head {
    display: none;
  }

  .portfolio-registry-table .registry-row,
  .program-registry-table .registry-row,
  .project-registry-table .registry-row,
  .changes-registry-table .registry-row,
  .access-registry-table .registry-row,
  .users-registry-table .registry-row,
  .groups-registry-table .registry-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-registry-table .registry-row:not(.registry-head) {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    min-height: 0;
    padding: 12px;
  }

  .project-registry-table .registry-row:not(.registry-head) > :not(.project-mobile-card) {
    display: none;
  }

  .program-registry-table .registry-row:not(.registry-head) {
    min-height: 0;
    padding: 12px;
  }

  .program-registry-table .registry-row:not(.registry-head) > :not(.program-mobile-card) {
    display: none;
  }

  .portfolio-registry-table .registry-row:not(.registry-head) {
    min-height: 0;
    padding: 12px;
  }

  .portfolio-registry-table .registry-row:not(.registry-head) > :not(.portfolio-mobile-card) {
    display: none;
  }

  .changes-registry-table .registry-row:not(.registry-head) {
    min-height: 0;
    padding: 12px;
  }

  .changes-registry-table .registry-row:not(.registry-head) > :not(.change-mobile-card) {
    display: none;
  }

  .project-mobile-card {
    display: grid;
    width: 100%;
    grid-gap: 12px;
    gap: 12px;
    min-width: 0;
  }

  .program-mobile-card,
  .portfolio-mobile-card,
  .change-mobile-card {
    display: grid;
    grid-gap: 12px;
    gap: 12px;
    min-width: 0;
  }

  .project-mobile-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    grid-gap: 10px;
    gap: 10px;
  }

  .project-mobile-card-head strong,
  .program-mobile-card-head strong,
  .portfolio-mobile-card-head strong,
  .change-mobile-head strong {
    min-width: 0;
    color: #162437;
    font-size: 0.96rem;
    line-height: 1.25;
  }

  .project-mobile-global-dot {
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-top: 3px;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
  }

  .project-mobile-global-dot.green {
    background: var(--green);
  }

  .project-mobile-global-dot.orange {
    background: var(--yellow);
  }

  .project-mobile-global-dot.red {
    background: var(--red);
  }

  .change-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  .change-mobile-project {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .change-mobile-status-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #8a98a8;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
  }

  .change-mobile-status-dot.status-draft {
    background: #8a98a8;
  }

  .change-mobile-status-dot.status-sent {
    background: var(--adm-blue);
  }

  .change-mobile-status-dot.status-approved {
    background: var(--green);
  }

  .change-mobile-status-dot.status-rejected {
    background: var(--red);
  }

  .change-mobile-head .change-status-badge {
    min-height: 24px;
    flex: 0 0 auto;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .change-mobile-card p {
    margin: 0;
    color: #223247;
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .change-mobile-impacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 8px;
    gap: 8px;
  }

  .change-mobile-impacts span {
    min-width: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 7px;
    border: 1px solid #d8e5f2;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--adm-blue);
  }

  .change-mobile-impacts svg {
    flex: 0 0 auto;
  }

  .change-mobile-impacts strong {
    min-width: 0;
    overflow: hidden;
    color: #223247;
    font-size: 0.72rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-mobile-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 8px;
    gap: 8px;
  }

  .program-mobile-metrics,
  .portfolio-mobile-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 8px;
    gap: 8px;
  }

  .project-mobile-metrics > div,
  .project-mobile-schedule,
  .program-mobile-metrics > div,
  .program-mobile-schedule,
  .portfolio-mobile-metrics > div,
  .portfolio-mobile-schedule {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .project-mobile-metrics .project-health-icon,
  .project-mobile-schedule .project-health-icon {
    flex: 0 0 auto;
  }

  .program-mobile-icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    color: var(--adm-blue);
    background: #eef6ff;
  }

  .project-mobile-metrics > div > span:last-child,
  .program-mobile-metrics > div > span:last-child,
  .portfolio-mobile-metrics > div > span:last-child {
    min-width: 0;
    display: grid;
    grid-gap: 3px;
    gap: 3px;
  }

  .project-mobile-metrics strong,
  .program-mobile-metrics strong,
  .portfolio-mobile-metrics strong {
    color: #223247;
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .project-mobile-metrics small,
  .project-mobile-schedule small,
  .program-mobile-metrics small,
  .program-mobile-schedule small,
  .portfolio-mobile-metrics small,
  .portfolio-mobile-schedule small {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .project-mobile-schedule > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .project-mobile-schedule {
    display: grid;
  }

  .program-mobile-schedule > div:first-child,
  .portfolio-mobile-schedule > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .program-mobile-schedule,
  .portfolio-mobile-schedule {
    display: grid;
  }

  .project-mobile-schedule-track,
  .program-mobile-schedule-track,
  .portfolio-mobile-schedule-track {
    position: relative;
    height: 8px;
    margin: 10px 4px 2px;
    border-radius: 999px;
    background: #dfe6ee;
  }

  .project-mobile-schedule-track::before,
  .project-mobile-schedule-track::after,
  .program-mobile-schedule-track::before,
  .program-mobile-schedule-track::after,
  .portfolio-mobile-schedule-track::before,
  .portfolio-mobile-schedule-track::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    border: 2px solid #fff;
    border-radius: 999px;
    background: #8a98a8;
    box-shadow: 0 0 0 1px var(--line);
  }

  .project-mobile-schedule-track::before {
    left: -1px;
  }

  .project-mobile-schedule-track::after,
  .program-mobile-schedule-track::after,
  .portfolio-mobile-schedule-track::after {
    right: -1px;
  }

  .program-mobile-schedule-track::before,
  .portfolio-mobile-schedule-track::before {
    left: -1px;
  }

  .project-mobile-schedule-track span,
  .program-mobile-schedule-track span,
  .portfolio-mobile-schedule-track span {
    position: absolute;
    z-index: 1;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--adm-blue);
    box-shadow: 0 0 0 1px rgba(21, 91, 173, 0.28);
  }

  .list-filter-bar,
  .approval-flow {
    grid-template-columns: 1fr;
  }

  .change-card {
    padding: 16px;
  }

  .change-card .form-grid {
    grid-template-columns: 1fr;
  }

  .change-card .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .change-block-title {
    align-items: flex-start;
  }

  .change-wbs-context {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .change-wbs-project-ref {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .change-wbs-summary {
    justify-content: flex-start;
  }

  .change-wbs-add-grid {
    grid-template-columns: 1fr;
  }

  .change-wbs-add-grid label:nth-child(4),
  .change-wbs-add-grid label:nth-child(5),
  .change-wbs-add-grid label:nth-child(6),
  .change-wbs-add-grid .form-wide {
    grid-column: 1;
    grid-row: auto;
  }

  .modal-panel.compact-modal.change-wbs-edit-modal {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 18px;
  }

  .change-wbs-modal-grid,
  .change-wbs-budget-strip,
  .change-wbs-scope-fields {
    grid-template-columns: 1fr;
  }

  .change-wbs-budget-strip > div {
    height: auto;
    min-height: 72px;
  }

  .change-wbs-information-grid .change-wbs-name-field {
    grid-column: 1;
  }

  .change-wbs-node-content {
    overflow: visible;
  }

  .change-wbs-node-title {
    display: none;
  }

  .change-wbs-mobile-header {
    min-width: 0;
    display: grid;
    grid-gap: 9px;
    gap: 9px;
    margin-bottom: 10px;
  }

  .change-wbs-mobile-header > strong {
    min-width: 0;
    color: #223247;
    font-size: 0.84rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .change-wbs-mobile-finance,
  .change-wbs-mobile-meta {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #536274;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .change-wbs-mobile-finance .change-wbs-delta {
    font-size: 0.72rem;
  }

  .change-wbs-mobile-finance .wbs-nature-badge,
  .change-wbs-mobile-meta .change-wbs-type-badge,
  .change-wbs-mobile-meta .change-wbs-action {
    min-height: 23px;
    font-size: 0.66rem;
  }

  .change-wbs-scope-grid {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 9px;
    padding-top: 10px;
    border-top: 1px solid #e1e7ee;
  }

  .change-detail-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-gap: 12px;
    gap: 12px;
  }

  .change-detail-topbar > div:first-child {
    display: contents;
  }

  .change-detail-topbar .back-link {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .change-detail-topbar h1 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
    text-align: left;
  }

  .change-detail-topbar > .topbar-actions {
    display: contents;
  }

  .change-detail-topbar .change-status-badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .change-detail-topbar .change-detail-action-buttons {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .detail-action-bar,
  .change-delete-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .change-approval-decision-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-action-bar > *,
  .change-approval-decision-actions > *,
  .change-delete-zone > button {
    width: 100%;
  }

  .change-modal-panel {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .change-wbs-row {
    min-width: 920px;
    grid-template-columns: 120px minmax(160px, 1.1fr) 110px minmax(190px, 1.4fr) 110px 110px 110px;
  }

  .list-pagination {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
  }

  .list-pagination-count {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
  }

  .list-pagination > div {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .list-pagination .secondary-action {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    justify-content: center;
    padding: 0;
  }

  .list-pagination .secondary-action span {
    display: none;
  }

  .list-pagination-arrow {
    display: block;
  }

  .list-pagination .icon-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  .users-registry-table .registry-row:not(.registry-head),
  .access-registry-table .registry-row:not(.registry-head),
  .groups-registry-table .registry-row:not(.registry-head),
  .logs-registry-table .registry-row:not(.registry-head),
  .contacts-registry-table .registry-row:not(.registry-head),
  .companies-registry-table .registry-row:not(.registry-head) {
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 0.58fr);
  }

  .users-registry-table .registry-row:not(.registry-head) {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .users-registry-table .registry-row:not(.registry-head) > :nth-child(n + 2) {
    display: none;
  }

  .users-registry-table .registry-row:not(.registry-head) > :nth-child(1) {
    width: 100%;
  }

  .users-registry-table .registry-row:not(.registry-head) > :nth-child(1)::before { content: none; }
  .users-registry-table .registry-row:not(.registry-head) > :nth-child(2)::before { content: "Courriel : "; font-weight: 850; color: var(--muted); }
  .users-registry-table .registry-row:not(.registry-head) > :nth-child(3)::before { content: "Rôle : "; font-weight: 850; color: var(--muted); }
  .users-registry-table .users-registry-person {
    width: 100%;
    justify-self: stretch;
    text-align: left;
  }

  .users-registry-table .users-registry-mobile-meta {
    display: block;
  }

  .groups-registry-table .registry-row:not(.registry-head) > :nth-child(1)::before { content: "Code : "; font-weight: 850; color: var(--muted); }
  .groups-registry-table .registry-row:not(.registry-head) > :nth-child(2)::before { content: "Nom : "; font-weight: 850; color: var(--muted); }
  .groups-registry-table .registry-row:not(.registry-head) > :nth-child(3)::before { content: "Description : "; font-weight: 850; color: var(--muted); }
  .groups-registry-table .registry-row:not(.registry-head) > :nth-child(4)::before { content: "Utilisateurs : "; font-weight: 850; color: var(--muted); }
  .groups-registry-table .registry-row:not(.registry-head) > :nth-child(5)::before { content: "Rôles : "; font-weight: 850; color: var(--muted); }

  .logs-toolbar {
    grid-template-columns: 1fr;
  }

  .logs-filters {
    justify-content: flex-start;
  }

  .logs-registry-table .registry-row:not(.registry-head) > :nth-child(1)::before { content: "Date : "; font-weight: 850; color: var(--muted); }
  .logs-registry-table .registry-row:not(.registry-head) > :nth-child(2)::before { content: "Événement : "; font-weight: 850; color: var(--muted); }
  .logs-registry-table .registry-row:not(.registry-head) > :nth-child(3)::before { content: "Utilisateur : "; font-weight: 850; color: var(--muted); }
  .logs-registry-table .registry-row:not(.registry-head) > :nth-child(4)::before { content: "Détail : "; font-weight: 850; color: var(--muted); }
  .logs-registry-table .registry-row:not(.registry-head) > :nth-child(5)::before { content: "IP : "; font-weight: 850; color: var(--muted); }
  .logs-registry-table .registry-row:not(.registry-head) > :nth-child(6)::before { content: "Durée : "; font-weight: 850; color: var(--muted); }
  .logs-registry-table .registry-row:not(.registry-head) > :nth-child(7)::before { content: "Navigateur : "; font-weight: 850; color: var(--muted); }

  .contacts-toolbar {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .contacts-tabs,
  .contacts-tabs button {
    width: 100%;
  }

  .contacts-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-tabs button {
    justify-content: center;
  }

  .contacts-search,
  .archive-filter-select,
  .contacts-import-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .contacts-import-action {
    justify-content: center;
  }

  .contacts-add-action {
    display: none !important;
  }

  .contacts-import-form {
    grid-template-columns: 1fr;
  }

  .contacts-import-files {
    grid-template-columns: 1fr;
  }

  .contacts-import-template-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contacts-import-template-actions .secondary-action {
    justify-content: center;
    width: 100%;
  }

  .contacts-import-file-picker {
    min-height: 132px;
  }

  .contacts-workspace {
    position: relative;
  }

  .contacts-page-top-add {
    top: 48px;
    right: 18px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .contacts-page-top-add span {
    display: none;
  }

  .contacts-registry-table .registry-row:not(.registry-head) {
    position: relative;
    grid-template-columns: 1fr;
    align-items: start;
    overflow: hidden;
  }

  .contacts-registry-table .registry-row:not(.registry-head) > :nth-child(n + 2):not(.contact-mobile-company-watermark) {
    display: none;
  }

  .contacts-registry-table .registry-row:not(.registry-head) > :nth-child(1) {
    width: 100%;
  }

  .contacts-registry-table .registry-row:not(.registry-head) > :nth-child(1)::before { content: none; }
  .contacts-registry-table .registry-row:not(.registry-head) > :nth-child(2)::before { content: "Compagnie : "; font-weight: 850; color: var(--muted); }
  .contacts-registry-table .registry-row:not(.registry-head) > :nth-child(3)::before { content: "Courriel : "; font-weight: 850; color: var(--muted); }
  .contacts-registry-table .registry-row:not(.registry-head) > :nth-child(4)::before { content: "Fonction : "; font-weight: 850; color: var(--muted); }
  .contacts-registry-table .registry-row:not(.registry-head) > :nth-child(5)::before { content: "Statut : "; font-weight: 850; color: var(--muted); }

  .contacts-registry-table .contact-name-cell {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: left;
  }

  .contacts-registry-table .contact-registry-identity small {
    display: block;
  }

  .contacts-registry-table .contact-mobile-company-watermark {
    position: absolute;
    top: 50%;
    right: 18px;
    z-index: 0;
    width: 68px;
    height: 68px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0.07;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .contacts-registry-table .contact-mobile-company-watermark::before {
    content: none !important;
  }

  .contacts-registry-table .contact-mobile-company-watermark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .companies-registry-table .registry-row:not(.registry-head) > :nth-child(1)::before { content: "Compagnie : "; font-weight: 850; color: var(--muted); }
  .companies-registry-table .registry-row:not(.registry-head) > :nth-child(2)::before { content: "Nom légal : "; font-weight: 850; color: var(--muted); }
  .companies-registry-table .registry-row:not(.registry-head) > :nth-child(3)::before { content: "Contacts : "; font-weight: 850; color: var(--muted); }
  .companies-registry-table .registry-row:not(.registry-head) > :nth-child(4)::before { content: "Site web : "; font-weight: 850; color: var(--muted); }
  .companies-registry-table .registry-row:not(.registry-head) > :nth-child(5)::before { content: "Statut : "; font-weight: 850; color: var(--muted); }

  .companies-registry-table .registry-row:not(.registry-head) {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .companies-registry-table .registry-row:not(.registry-head) > :nth-child(n + 2) {
    display: none;
  }

  .companies-registry-table .registry-row:not(.registry-head) > :nth-child(1) {
    width: 100%;
  }

  .companies-registry-table .registry-row:not(.registry-head) > :nth-child(1)::before {
    content: none;
  }

  .companies-registry-table .company-name-cell {
    width: 100%;
    text-align: left;
  }

  .companies-registry-table .company-registry-identity small {
    display: block;
  }

  .financial-status-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .ai-settings-layout,
  .ai-settings-grid,
  .application-settings-card-grid,
  .application-settings-summary,
  .application-settings-summary dl {
    grid-template-columns: 1fr;
  }

  .ai-settings-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-settings-side dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .ai-settings-side dd {
    text-align: left;
  }

  .relation-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .program-projects-panel .section-heading {
    align-items: center;
    flex-direction: row;
  }

  .program-projects-panel .section-heading > div {
    min-width: 0;
  }

  .program-projects-panel .section-heading h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .program-financial-status .financial-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-projects-panel .relation-list a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .project-change-request-list,
  .project-top-risk-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .project-top-risk-row,
  .project-change-request-row {
    grid-template-columns: minmax(220px, 1.5fr) minmax(110px, 0.45fr) repeat(3, minmax(112px, 0.55fr));
    width: max-content;
    min-width: max(720px, 100%);
  }

  .project-top-risk-row .project-change-impact,
  .project-change-impact {
    width: 100%;
  }

  .project-stakeholder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }

  .project-stakeholder-card {
    flex: initial;
    min-width: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    min-height: 142px;
    text-align: center;
  }

  .project-stakeholder-avatar {
    grid-row: auto;
    width: 52px;
    height: 52px;
    font-size: 0.92rem;
  }

  .program-projects-panel .program-project-text {
    display: grid;
    grid-gap: 4px;
    gap: 4px;
    min-width: 0;
  }

  .program-projects-panel .program-project-text span {
    overflow: hidden;
    color: #223247;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .program-projects-panel .project-health-icons {
    justify-content: flex-end;
    align-self: center;
  }

  .health-choice-group {
    grid-template-columns: 1fr;
  }

  .project-health-actions {
    justify-content: stretch;
  }

  .project-health-actions .primary-action {
    width: 100%;
  }

  .change-approval-flow {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
    padding: 2px 0;
  }

  .change-approval-step {
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 22px;
  }

  .change-approval-step:not(:last-child)::before {
    top: 42px;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .change-approval-marker {
    width: 40px;
    height: 40px;
  }

  .change-approval-step > div {
    position: static;
    width: auto;
    padding-right: 0;
    transform: none;
    gap: 3px;
    text-align: left;
  }

  .change-approval-step strong {
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .change-approval-step span {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .change-approval-step small {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .change-agenda-timeline {
    padding-right: 44px;
    padding-left: 44px;
  }

  .change-agenda-point {
    width: 92px;
    font-size: 0.66rem;
  }

  .change-impact-tiles {
    grid-template-columns: 1fr;
  }

  .profile-grid,
  .profile-account-layout,
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-approval-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .profile-approval-title {
    grid-column: 1 / 2;
  }

  .profile-approval-status-cell {
    grid-column: 2 / 3;
    justify-self: end;
    align-self: center;
    padding: 0;
    border-left: 0;
  }

  .profile-approval-meta,
  .profile-approval-impacts,
  .profile-approval-actions {
    grid-column: 1 / -1;
  }

  .profile-approval-meta {
    grid-template-columns: auto auto;
    justify-content: flex-start;
    align-items: center;
    justify-items: start;
    padding: 0;
    border-left: 0;
  }

  .profile-approval-impacts,
  .profile-approval-actions {
    padding: 0;
    border-left: 0;
  }

  .profile-approval-actions {
    justify-content: flex-start;
  }

  .profile-account-side {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-password-link {
    width: 100%;
  }

  .wbs-project-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

.wbs-version-selector {
    width: 100%;
    min-width: 0;
  }

  .wbs-version-selector select {
    width: 100%;
  }

  .profile-identity {
    justify-items: center;
    text-align: center;
  }
}

.portfolio-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
  gap: 16px;
}

.relation-panel .section-heading {
  align-items: center;
}

.relation-panel-heading {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

.relation-panel-heading .block-title {
  min-width: 0;
}

.relation-panel-heading .icon-button {
  flex: 0 0 auto;
}

.relation-list,
.association-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.project-report-page {
  min-height: 100vh;
  padding: 22px;
  color: #172433;
  background: white;
  font-family: Arial, Helvetica, sans-serif;
}

.report-toolbar {
  max-width: 1580px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 14px;
}

.report-toolbar-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.report-toolbar-actions .executive-top-metric-selector,
.report-toolbar-actions .executive-project-scope-selector {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #bfd5ea;
  border-radius: 6px;
  background: white;
}

.report-toolbar-actions .executive-hierarchy-filters {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.report-toolbar-actions .executive-hierarchy-filters label {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #bfd5ea;
  border-radius: 6px;
  background: white;
  color: #66778b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-toolbar-actions .executive-hierarchy-filters select {
  min-width: 0;
  height: 32px;
  border: 0;
  color: var(--adm-blue);
  background: transparent;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 900;
}

.report-toolbar-actions .executive-top-metric-selector span,
.report-toolbar-actions .executive-project-scope-selector span {
  color: #66778b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-toolbar-actions .executive-top-metric-selector select,
.report-toolbar-actions .executive-project-scope-selector select {
  min-width: 0;
  height: 32px;
  border: 0;
  color: var(--adm-blue);
  background: transparent;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 900;
}

.report-toolbar a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #bfd5ea;
  border-radius: 6px;
  color: var(--adm-blue);
  background: white;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.report-toolbar-button,
.program-report-toolbar-button,
.program-report-date-control,
.program-report-toggle-control {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #bfd5ea;
  border-radius: 6px;
  color: var(--adm-blue);
  background: white;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.project-report-download-modal {
  width: min(620px, calc(100vw - 28px));
}

.project-report-download-options {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.project-report-download-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #ffffff;
}

.project-report-download-option input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--adm-blue);
}

.project-report-download-option span {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.project-report-download-option strong {
  color: #172433;
  font-size: 0.92rem;
}

.project-report-download-option small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.report-toolbar-button,
.program-report-toolbar-button {
  cursor: pointer;
}

.program-report-date-control,
.program-report-toggle-control {
  color: #223247;
  font-size: 0.78rem;
}

.program-report-date-control span,
.program-report-toggle-control span {
  color: #66778b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.program-report-date-control input[type="date"] {
  height: 32px;
  border: 0;
  color: var(--adm-blue);
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
}

.program-report-toggle-control input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--adm-blue);
}

.program-report-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-report-project-selector {
  position: relative;
}

.program-report-project-selector summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #bfd5ea;
  border-radius: 6px;
  color: #223247;
  background: white;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  list-style: none;
}

.program-report-project-selector summary::-webkit-details-marker {
  display: none;
}

.program-report-project-selector summary span {
  color: #66778b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.program-report-project-selector summary strong {
  color: var(--adm-blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.program-report-project-selector-menu {
  width: 360px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 42px rgba(20, 35, 55, 0.18);
}

.program-report-project-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #223247;
  font-size: 0.8rem;
  font-weight: 900;
}

.program-report-project-selector-header span {
  color: var(--adm-blue);
}

.program-report-project-selector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.program-report-project-selector-actions button {
  min-height: 32px;
  border: 1px solid #cfd9e6;
  border-radius: 7px;
  color: #223247;
  background: #f8fafc;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.program-report-project-selector-actions button:hover:not(:disabled),
.program-report-project-selector-actions button:focus-visible:not(:disabled) {
  border-color: var(--adm-blue);
  color: var(--adm-blue);
  background: #eef5fb;
}

.program-report-project-selector-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.program-report-project-selector-list {
  max-height: 280px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  overflow: auto;
}

.program-report-project-selector-list label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  margin: 0;
  padding: 7px;
  border: 1px solid #e0e7ef;
  border-radius: 7px;
  background: #f8fafc;
  color: #223247;
  cursor: pointer;
}

.program-report-project-selector-list label.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.program-report-project-selector-list input {
  width: 15px;
  height: 15px;
}

.program-report-project-selector-list label span {
  min-width: 0;
  display: block;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-report-project-selector-list label strong {
  margin-right: 6px;
  color: var(--adm-blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.program-report-project-selector-menu > button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: var(--adm-blue);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.resource-report-person-selector .program-report-project-selector-menu {
  width: 380px;
}

.resource-report-person-selector .program-report-project-selector-list {
  max-height: 300px;
}

.resource-report-person-selector .program-report-project-selector-list label span {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.report-sheet {
  width: min(1580px, 100%);
  min-height: 1080px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  background: white;
  box-shadow: none;
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 2px solid #d9e2ec;
}

.report-header p,
.report-header h1,
.report-header span,
.report-header strong,
.report-header small {
  margin: 0;
}

.report-header p {
  color: var(--adm-blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-header h1 {
  margin-top: 3px;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.report-header span,
.report-header small {
  display: block;
  margin-top: 5px;
  color: #596b80;
  font-size: 0.84rem;
}

.report-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  text-align: right;
}

.report-header-meta img {
  width: 118px;
  height: auto;
  object-fit: contain;
}

.report-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  grid-gap: 16px;
  gap: 16px;
}

.report-column {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.report-column:first-child {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.report-column:first-child .report-note {
  min-height: 0;
}

.report-card,
.report-health-grid article,
.report-consumption-gauge,
.report-metric,
.report-risk-metrics div {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: white;
}

.report-card {
  padding: 14px;
}

.report-card h2,
.report-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #18283a;
  font-size: 0.94rem;
}

.report-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.report-info-grid div {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: white;
  border: 1px solid #e0e7ef;
}

.report-info-grid span,
.report-consumption-gauge span,
.report-metric span,
.report-risk-metrics span {
  color: #66778b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-info-grid strong,
.report-consumption-gauge strong,
.report-metric strong,
.report-risk-metrics strong {
  min-width: 0;
  overflow: hidden;
  color: #18283a;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-project-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-gap: 10px;
  gap: 10px;
}

.report-project-info-layout > .report-project-description {
  border-left: 1px solid #d6e1ec;
}

.report-project-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.report-person-card {
  display: grid;
  place-items: center;
  align-content: start;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
  padding: 2px 4px;
  text-align: center;
}

.report-person-avatar {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f2fb;
  color: var(--adm-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.report-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-project-description {
  min-width: 0;
}

.report-person-card span:not(.report-person-avatar),
.report-project-description > span {
  color: #66778b;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-person-card strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #18283a;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-project-description {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  padding: 2px 0 2px 12px;
}

.report-project-description p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #2c3d52;
  font-size: 0.76rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.report-health-grid,
.report-metric-grid,
.report-risk-metrics {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.report-health-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-health-grid article {
  display: grid;
  align-content: center;
  grid-gap: 7px;
  gap: 7px;
  min-height: 58px;
  padding: 10px 12px;
}

.project-report-page .report-health-grid article {
  min-height: 78px;
  align-content: center;
  gap: 10px;
  padding: 14px 14px;
}

.report-health-grid article > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 900;
}

.report-health-grid small {
  color: #66778b;
  font-size: 0.74rem;
}

.report-health-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.report-health-dot.green {
  background: #238b57;
}

.report-health-dot.orange {
  background: #d97706;
}

.report-health-dot.red {
  background: #c2413b;
}

.report-health-pill {
  width: -moz-fit-content;
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.report-health-pill.green {
  color: #17613e;
  background: #e7f7ee;
}

.report-health-pill.orange {
  color: #8f5b00;
  background: #fff4d6;
}

.report-health-pill.red {
  color: #8f2d2d;
  background: #fdecec;
}

.report-finance-summary {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
  align-items: stretch;
}

.report-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-consumption-gauge,
.report-metric,
.report-risk-metrics div {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  padding: 10px;
}

.report-consumption-gauge {
  place-items: center;
  align-content: center;
  min-height: 126px;
  text-align: center;
}

.report-consumption-gauge svg {
  width: 86px;
  height: 86px;
  margin: 2px 0;
  transform: rotate(-90deg);
}

.report-consumption-gauge circle {
  fill: none;
  stroke-width: 10;
}

.report-consumption-gauge .track {
  stroke: #e3e9f1;
}

.report-consumption-gauge .progress {
  stroke: var(--adm-blue);
  stroke-linecap: round;
}

.report-consumption-gauge .progress.warn {
  stroke: #c2410c;
}

.report-consumption-gauge strong {
  font-size: 1.1rem;
}

.report-consumption-gauge small {
  color: #66778b;
  font-size: 0.68rem;
  font-weight: 800;
}

.report-metric svg,
.report-risk-metrics svg,
.report-health-grid svg,
.report-card h2 svg,
.report-section-head svg {
  color: var(--adm-blue);
}

.report-metric strong.good {
  color: #17613e;
}

.report-metric strong.warn {
  color: #9a3412;
}

.report-note {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-row-gap: 12px;
  row-gap: 12px;
}

.report-note-head {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.report-note-head h2 {
  margin-bottom: 0;
}

.report-note-body {
  display: flex;
  align-items: center;
  min-height: 0;
}

.report-note p,
.report-note-content {
  margin: 0;
  color: #2c3d52;
  font-size: 0.88rem;
  line-height: 1.45;
}

.report-note-content p,
.report-note-content ul,
.report-note-content ol,
.report-note-content blockquote,
.report-note-content h3,
.report-note-content h4 {
  margin: 0 0 8px;
}

.report-note-content p:last-child,
.report-note-content ul:last-child,
.report-note-content ol:last-child,
.report-note-content blockquote:last-child,
.report-note-content h3:last-child,
.report-note-content h4:last-child {
  margin-bottom: 0;
}

.report-note-content ul,
.report-note-content ol {
  padding-left: 22px;
}

.report-note-content blockquote {
  border-left: 3px solid #cbd5e1;
  padding-left: 12px;
  color: #53657a;
}

.report-note-head small,
.report-empty {
  color: #66778b;
  font-size: 0.78rem;
}

.report-chart-card {
  min-height: 335px;
}

.report-chart {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.report-chart-legend {
  display: flex;
  gap: 14px;
  color: #53677e;
  font-size: 0.74rem;
  font-weight: 850;
}

.report-chart-legend i {
  width: 20px;
  height: 3px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.report-chart-legend .actual {
  background: var(--adm-blue);
}

.report-chart-legend .forecast {
  background: var(--adm-blue);
}

.report-chart-legend .ideal {
  background: #93a4b5;
}

.report-chart-plot {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
  align-items: stretch;
}

.report-chart-y-axis {
  position: relative;
  height: 230px;
  color: #66778b;
  font-size: 0.62rem;
  font-weight: 850;
  text-align: right;
}

.report-chart-y-axis span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  white-space: nowrap;
}

.report-chart svg {
  width: 100%;
  height: 230px;
  overflow: visible;
  border-left: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.report-chart .axis {
  stroke: #cbd5e1;
  stroke-width: 0.55;
}

.report-chart .grid {
  stroke: #e2e8f0;
  stroke-width: 0.35;
}

.report-chart .actual-line,
.report-chart .ideal-line,
.report-chart .forecast-line {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-chart .actual-line {
  stroke: var(--adm-blue);
  stroke-width: 2.4;
}

.report-chart .forecast-line {
  stroke: var(--adm-blue);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.report-chart .ideal-line {
  stroke: #93a4b5;
  stroke-width: 1.8;
  stroke-dasharray: 3 5;
}

.report-chart-labels {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  margin-left: 66px;
  color: #66778b;
  font-size: 0.62rem;
  text-align: center;
}

.report-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.report-section-head h2 {
  margin: 0;
}

.report-heading-count {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #d6e1ec;
  border-radius: 999px;
  color: #18283a;
  background: white;
  font-size: 0.76rem;
  font-weight: 900;
}

.report-timeline {
  overflow: hidden;
  padding: 46px 64px 44px;
}

.report-timeline-track {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: #c9d7e5;
}

.report-timeline .point {
  position: absolute;
  top: 50%;
  width: 118px;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -50%);
}

.report-timeline .point i {
  width: 13px;
  height: 13px;
  position: absolute;
  top: 50%;
  left: 50%;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--adm-blue);
  box-shadow: 0 0 0 1px #adc6df;
  transform: translate(-50%, -50%);
}

.report-timeline .point span {
  position: absolute;
  left: 50%;
  width: 118px;
  transform: translateX(-50%);
}

.report-timeline .point.top {
  padding: 0;
}

.report-timeline .point.top span {
  bottom: 13px;
}

.report-timeline .point.bottom {
  padding: 0;
}

.report-timeline .point.bottom span {
  top: 13px;
}

.report-risk-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 10px;
}

.report-risk-table,
.report-change-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.74rem;
}

.report-risk-table th,
.report-risk-table td,
.report-change-table th,
.report-change-table td {
  padding: 6px 7px;
  border: 1px solid #dce3ec;
  text-align: left;
  vertical-align: middle;
}

.report-risk-table th,
.report-change-table th {
  color: #5d7085;
  background: white;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-risk-table td,
.report-change-table td {
  color: #223247;
}

.report-risk-table th:first-child,
.report-risk-table td:first-child {
  width: 42%;
}

.report-risk-table th:nth-child(2),
.report-risk-table td:nth-child(2) {
  width: 18%;
}

.report-risk-table th:nth-child(3),
.report-risk-table td:nth-child(3) {
  width: 14%;
  text-align: center;
}

.report-risk-table th:nth-child(4),
.report-risk-table td:nth-child(4) {
  width: 10%;
  text-align: center;
}

.report-risk-table th:last-child,
.report-risk-table td:last-child {
  width: 16%;
  text-align: right;
}

.report-change-table th:first-child,
.report-change-table td:first-child {
  width: 42%;
}

.report-change-table th:nth-child(2),
.report-change-table td:nth-child(2) {
  width: 18%;
  text-align: center;
}

.report-change-table th:nth-child(3),
.report-change-table td:nth-child(3),
.report-change-table th:nth-child(4),
.report-change-table td:nth-child(4),
.report-change-table th:last-child,
.report-change-table td:last-child {
  width: 13.33%;
  text-align: right;
}

.report-risk-table td:first-child strong,
.report-change-table td:first-child strong {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-status-pill {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.report-status-pill.green {
  color: #17613e;
  background: #e7f7ee;
}

.report-status-pill.blue {
  color: #164d89;
  background: #e8f2ff;
}

.report-status-pill.orange {
  color: #8f5b00;
  background: #fff4d6;
}

.report-status-pill.red {
  color: #8f2d2d;
  background: #fdecec;
}

.report-status-pill.neutral {
  color: #516478;
  background: #eef2f7;
}

.program-report-sheet {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-content: start;
  grid-gap: 12px;
  gap: 12px;
  width: min(1580px, 100%);
  min-height: 1080px;
  page-break-after: avoid;
}

.program-report-page {
  page: program-report;
}

.program-report-sheet .report-header {
  grid-column: 1 / -1;
}

.program-report-finance {
  grid-column: 1;
  grid-row: 2 / 5;
  align-self: stretch;
  align-content: stretch;
  grid-template-columns: 1fr;
  grid-template-rows:
    minmax(126px, 0.72fr)
    minmax(64px, 0.42fr)
    minmax(96px, 0.58fr)
    minmax(0, 2.28fr);
  gap: 8px;
}

.program-report-manager-card {
  display: grid;
  align-content: center;
  justify-items: center;
  grid-gap: 4px;
  gap: 4px;
  min-height: 126px;
  padding: 10px 8px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: white;
  text-align: center;
}

.program-report-manager-avatar {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #e0e8f2;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--adm-blue);
  font-size: 1rem;
  font-weight: 900;
}

.program-report-manager-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-report-manager-card strong {
  color: #66778b;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.program-report-manager-card span:not(.program-report-manager-avatar) {
  color: #18283a;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.program-report-client-card {
  display: grid;
  align-content: center;
  justify-items: center;
  grid-gap: 2px;
  gap: 2px;
  min-height: 64px;
  padding: 8px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: white;
  text-align: center;
}

.program-report-client-card strong {
  color: #18283a;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.program-report-client-card span {
  color: #66778b;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-report-finance .program-report-client-card svg {
  width: 16px;
  height: 16px;
  color: var(--adm-blue);
}

.program-report-finance .report-consumption-gauge {
  min-height: 96px;
  padding: 7px;
  grid-template-areas:
    "label"
    "gauge"
    "value";
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  place-items: center;
  column-gap: 0;
  row-gap: 3px;
}

.program-report-finance .report-consumption-gauge span {
  grid-area: label;
  font-size: 0.58rem;
}

.program-report-finance .report-consumption-gauge svg {
  grid-area: gauge;
  width: 50px;
  height: 50px;
  margin: 0;
}

.program-report-finance .report-consumption-gauge strong {
  grid-area: value;
  align-self: center;
  justify-self: center;
  font-size: 0.94rem;
  line-height: 1;
  transform: none;
}

.program-report-finance .report-consumption-gauge small {
  display: none;
}

.program-report-metric-grid {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(6, minmax(0, 1fr));
}

.program-report-metric-grid .report-metric {
  min-height: 58px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  padding: 7px;
}

.program-report-metric-grid .report-metric svg {
  grid-row: 1 / 3;
  width: 15px;
  height: 15px;
}

.program-report-metric-grid .report-metric span {
  font-size: 0.58rem;
}

.program-report-metric-grid .report-metric strong {
  font-size: 0.74rem;
}

.program-report-two-columns {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-gap: 14px;
  gap: 14px;
}

.report-program-status-chart {
  min-height: 260px;
  grid-template-columns: 210px minmax(0, 1fr);
}

.report-program-status-chart .program-status-legend {
  grid-template-columns: 1fr;
  gap: 6px;
}

.report-program-status-chart .program-status-legend div {
  min-height: 28px;
  padding: 6px 8px;
}

.report-program-status-chart .program-status-legend span {
  font-size: 0.72rem;
}

.report-program-status-chart .program-status-legend strong {
  font-size: 0.78rem;
}

.program-report-two-columns .report-chart-card {
  min-height: 292px;
}

.program-report-timeline-card {
  grid-column: 2;
  grid-row: 4;
  height: 372px;
  overflow: hidden;
}

.program-report-timeline-card.is-pdf {
  height: 382px;
  padding-bottom: 6px;
  overflow: visible;
}

.program-report-timeline-card .report-program-timeline {
  height: calc(100% - 32px);
  padding: 0;
}

.program-report-timeline-card.is-pdf .report-program-timeline {
  height: calc(100% - 24px);
}

.program-report-timeline-card .program-timeline-rows {
  height: 100%;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 8px;
  overflow: hidden;
}

.program-report-timeline-card.is-pdf .program-timeline-rows {
  padding-bottom: 2px;
  overflow: visible;
}

.program-report-timeline-card.is-pdf.is-compact .program-timeline-rows {
  transform: translateY(-5px);
}

.program-report-timeline-card .program-timeline-row,
.program-report-timeline-card .program-timeline-today {
  grid-template-columns: 146px minmax(0, 1fr);
  gap: 10px;
  min-height: 38px;
}

.program-report-timeline-card .program-timeline-label {
  color: #18283a;
  text-decoration: none;
}

.program-report-timeline-card .program-timeline-label strong {
  font-size: var(--program-timeline-label-size, 0.76rem);
}

.program-report-timeline-card .program-timeline-label span {
  display: block;
  font-size: var(--program-timeline-status-size, 0.62rem);
  line-height: 1.1;
}

.program-report-timeline-card .program-timeline-point em,
.program-report-timeline-card .program-timeline-today-line strong {
  color: #111827;
  font-size: max(var(--program-timeline-date-size, 0.62rem), 0.62rem);
  font-weight: 900;
}

.program-report-timeline-card .program-timeline-point em {
  top: 50%;
  left: auto;
  min-width: 54px;
  transform: translateY(-50%);
}

.program-report-timeline-card .program-timeline-point.start em {
  right: 13px;
  text-align: right;
}

.program-report-timeline-card .program-timeline-point.initial em,
.program-report-timeline-card .program-timeline-point.revised em {
  left: 13px;
  text-align: left;
}

.program-report-timeline-card.is-pdf .program-timeline-point.initial em.compact-initial {
  top: 16px;
  left: 50%;
  min-width: 92px;
  text-align: center;
  transform: translateX(-50%);
}

.program-report-timeline-card.is-pdf .program-timeline-point.initial em.print-initial {
  top: 16px;
  left: 50%;
  min-width: 92px;
  text-align: center;
  transform: translateX(-50%);
}

.program-report-timeline-card.is-pdf .program-timeline-point.revised em.compact-revised {
  left: 13px;
  text-align: left;
  transform: translateY(-50%);
}

.program-report-timeline-card.is-pdf .program-timeline-point.revised em.print-revised {
  left: 13px;
  text-align: left;
  transform: translateY(-50%);
}

.program-report-timeline-card.is-pdf .program-timeline-point.initial em.print-initial,
.program-report-timeline-card.is-pdf .program-timeline-point.revised em.print-revised {
  top: 10px;
}

.program-report-timeline-card .program-timeline-today-line strong {
  top: -2px;
  left: 24px;
}

.program-report-timeline-card.is-relaxed .program-timeline-rows {
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 12px;
}

.program-report-timeline-card.is-relaxed .program-timeline-row,
.program-report-timeline-card.is-relaxed .program-timeline-today {
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 14px;
  min-height: 48px;
}

.program-report-timeline-card.is-balanced .program-timeline-rows {
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 4px;
}

.program-report-timeline-card.is-balanced .program-timeline-row,
.program-report-timeline-card.is-balanced .program-timeline-today {
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 12px;
  min-height: 32px;
}

.program-report-timeline-card .program-timeline-track {
  height: 38px;
  margin: 0 92px;
}

.program-report-timeline-card .program-timeline-bar {
  height: 8px;
  top: 13px;
}

.portfolio-report-timeline .program-timeline-bar.neutral {
  background: #18283a;
}

.program-report-timeline-card .program-timeline-point {
  width: 9px;
  height: 9px;
  top: 17px;
}

.program-report-timeline-card .program-timeline-point em {
  min-width: 54px;
  line-height: 1.08;
}

.program-report-timeline-card .program-timeline-today > div {
  margin: 0 92px;
}

.program-report-timeline-card.is-relaxed .program-timeline-track {
  height: 54px;
  margin: 0 100px;
}

.program-report-timeline-card.is-relaxed .program-timeline-bar {
  height: 10px;
  top: 18px;
}

.program-report-timeline-card.is-relaxed .program-timeline-point {
  width: 12px;
  height: 12px;
  top: 23px;
}

.program-report-timeline-card.is-relaxed .program-timeline-point em {
  min-width: 60px;
  line-height: 1.15;
}

.program-report-timeline-card.is-relaxed .program-timeline-today > div {
  margin: 0 100px;
}

.program-report-timeline-card.is-compact .program-timeline {
  gap: 6px;
}

.program-report-timeline-card.is-compact .program-timeline-rows {
  gap: 4px;
  align-content: start;
  max-height: none;
  padding-top: 8px;
  padding-bottom: 2px;
  overflow: hidden;
}

.program-report-timeline-card.is-compact .program-timeline-row,
.program-report-timeline-card.is-compact .program-timeline-today {
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 28px;
  padding-bottom: 0;
}

.program-report-timeline-card.is-compact .program-timeline-label {
  gap: 1px;
}

.program-report-timeline-card.is-compact .program-timeline-label strong {
  font-size: var(--program-timeline-label-size, 0.72rem);
}

.program-report-timeline-card.is-compact .program-timeline-label span {
  font-size: var(--program-timeline-status-size, 0.62rem);
}

.program-report-timeline-card.is-compact .program-timeline-track {
  height: 32px;
  margin: 0 88px;
}

.program-report-timeline-card.is-compact .program-timeline-bar {
  height: 7px;
  top: 11px;
}

.program-report-timeline-card.is-compact .program-timeline-point {
  width: 8px;
  height: 8px;
  top: 15px;
}

.program-report-timeline-card.is-compact .program-timeline-point em {
  min-width: 52px;
  font-size: max(var(--program-timeline-date-size, 0.6rem), 0.6rem);
  line-height: 1.05;
}

.program-report-timeline-card.is-compact .program-timeline-today > div {
  margin: 0 88px;
}

.program-report-timeline-card.is-compact .program-timeline-today-line strong {
  font-size: max(var(--program-timeline-date-size, 0.6rem), 0.6rem);
}

.program-report-timeline-card.is-dense .program-timeline-rows {
  gap: 2px;
  align-content: start;
  padding-top: 6px;
  padding-bottom: 0;
  max-height: none;
  overflow: visible;
}

.program-report-timeline-card.is-dense .program-timeline-row,
.program-report-timeline-card.is-dense .program-timeline-today {
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 26px;
}

.program-report-timeline-card.is-dense .program-timeline-track {
  height: 30px;
  margin: 0 88px;
}

.program-report-timeline-card.is-dense .program-timeline-bar {
  top: 10px;
}

.program-report-timeline-card.is-dense .program-timeline-point {
  top: 14px;
}

.program-report-risk-card {
  grid-column: 2;
  grid-row: 3;
}

.program-report-risk-card .report-risk-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0;
}

.program-report-risk-card .report-risk-metrics div {
  min-height: 58px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  padding: 7px;
}

.program-report-risk-card .report-risk-metrics svg {
  grid-row: 1 / 3;
  width: 15px;
  height: 15px;
}

.program-report-risk-card .report-risk-metrics span {
  font-size: 0.58rem;
}

.program-report-risk-card .report-risk-metrics strong {
  font-size: 0.74rem;
}

.assistant-widget {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 70;
  pointer-events: none;
}

.assistant-fab,
.assistant-panel,
.assistant-panel button,
.assistant-input input {
  pointer-events: auto;
}

.assistant-fab {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--adm-blue);
  color: white;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
  cursor: pointer;
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(420px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 116px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #d8e2ee;
  border-radius: 14px;
  background: white;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.assistant-panel-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.assistant-panel-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--adm-blue);
}

.assistant-panel-header strong,
.assistant-panel-header small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-panel-header strong {
  color: #152236;
  font-size: 0.94rem;
  font-weight: 900;
}

.assistant-panel-header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.assistant-panel-header button,
.assistant-input button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: white;
  color: #344255;
  cursor: pointer;
}

.assistant-shortcuts {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.assistant-shortcuts button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #f7f9fc;
  color: #28384d;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.assistant-shortcuts button:disabled,
.assistant-input button:disabled,
.assistant-input input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  background: #f7f9fc;
}

.assistant-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  color: #18283a;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-wrap;
}

.assistant-message.assistant {
  align-self: flex-start;
  border: 1px solid #dbe5ef;
  background: white;
}

.assistant-message.user {
  align-self: flex-end;
  background: var(--adm-blue);
  color: white;
}

.assistant-message.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.assistant-message.is-loading svg {
  animation: spin 1s linear infinite;
}

.assistant-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 8px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: white;
}

.assistant-input input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d7e0ea;
  border-radius: 9px;
  color: #162235;
  font-size: 0.86rem;
  font-weight: 800;
}

.assistant-input input:focus {
  outline: 2px solid rgba(0, 95, 168, 0.16);
  border-color: var(--adm-blue);
}

.assistant-input button {
  background: var(--adm-blue);
  border-color: var(--adm-blue);
  color: white;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@page program-report {
  size: A3 landscape;
  margin: 8mm;
}

@page raci-a2 {
  size: A2 landscape;
  margin: 8mm;
}

@media (max-width: 720px) {
  .assistant-widget {
    right: 16px;
    bottom: 16px;
  }

  .assistant-fab {
    width: 54px;
    height: 54px;
  }

  .assistant-panel {
    position: fixed;
    inset: auto 10px 82px 10px;
    width: auto;
    height: min(78vh, 640px);
    margin-bottom: 0;
    border-radius: 14px;
  }

  .project-report-page {
    min-height: 100vh;
    width: 100vw;
    padding: 14px;
    overflow: auto;
    background: #f2f5f8;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .project-report-page .report-toolbar {
    width: 1580px;
    max-width: none;
    margin: 0 0 12px;
  }

  .project-report-page .report-sheet {
    width: 1580px;
    min-width: 1580px;
    max-width: none;
    margin: 0;
  }
}

@page {
  size: A3 landscape;
  margin: 11mm;
}

@media print {
  body {
    background: white;
  }

  .executive-report-finance .report-metric {
    box-sizing: border-box;
    height: 76px !important;
    min-height: 76px !important;
  }

  .report-toolbar {
    display: none;
  }

  .project-report-page {
    box-sizing: border-box;
    width: 100%;
    height: 275mm;
    min-height: auto;
    padding: 0;
    overflow: hidden;
    background: white;
  }

  .report-sheet {
    box-sizing: border-box;
    width: 100%;
    height: 275mm;
    min-height: auto;
    margin: 0;
    padding: 22px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .raci-report-page.raci-paper-a2 {
    page: raci-a2;
    width: 100%;
    height: auto;
    min-height: 404mm;
    padding: 0;
    overflow: visible;
  }

  .raci-report-page.raci-paper-a2 .raci-report-sheet {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 404mm;
    padding: 8mm;
    overflow: visible;
  }

  .raci-report-page.raci-paper-a2 .raci-report-table-wrap {
    width: 100%;
    max-width: none;
    overflow: visible;
  }

  .raci-report-page.raci-paper-a2 .raci-report-table {
    width: 100%;
    max-width: none;
    min-width: 0;
    table-layout: auto;
  }

  .raci-report-page.raci-paper-a2 .raci-report-table thead {
    display: table-header-group;
  }

  .raci-report-page.raci-paper-a2 .raci-report-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .raci-report-page.raci-paper-a3 {
    height: auto;
    min-height: 275mm;
    overflow: visible;
  }

  .raci-report-page.raci-paper-a3 .raci-report-sheet {
    height: auto;
    min-height: 275mm;
    overflow: visible;
  }

  .raci-report-page.raci-paper-a3 .raci-report-table-wrap {
    overflow: visible;
  }

  .raci-report-page.raci-paper-a3 .raci-report-table {
    page-break-inside: auto;
    break-inside: auto;
  }

  .raci-report-page.raci-paper-a3 .raci-report-table thead {
    display: table-header-group;
  }

  .raci-report-page.raci-paper-a3 .raci-report-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .project-report-page .report-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .project-report-page .report-columns {
    height: calc(100% - 112px);
    min-height: 0;
    overflow: hidden;
  }

  .project-report-page .report-column {
    min-height: 0;
    overflow: hidden;
  }

  .project-report-page .report-card,
  .project-report-page .report-health-grid,
  .project-report-page .report-finance-summary {
    min-height: 0;
    overflow: hidden;
  }

  .project-report-page .program-report-timeline-card.is-pdf,
  .project-report-page .program-report-timeline-card.is-pdf .program-timeline-rows {
    overflow: visible;
  }

  .stakeholder-report-page {
    overflow: hidden;
  }

  .stakeholder-report-sheet {
    min-height: 0;
    height: 100%;
    padding: 22px;
    overflow: hidden;
  }

  .stakeholder-report-sheet .report-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .stakeholder-report-layout {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 14px;
  }

  .stakeholder-report-map-card,
  .stakeholder-report-legend {
    min-height: 0;
    height: 805px;
  }

  .stakeholder-report-svg {
    min-height: 0;
    height: 781px;
    background: #ffffff;
  }

  .stakeholder-report-controls {
    display: none;
  }

  .stakeholder-report-map-editor-toolbar {
    display: none;
  }
}

.relation-list a,
.association-list label {
  display: grid;
  grid-template-columns: 0.7fr minmax(0, 1.5fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: inherit;
  text-decoration: none;
}

.relation-list a:hover {
  border-color: #9fbed9;
}

.relation-list small {
  color: var(--muted);
  font-weight: 800;
}

.project-change-requests-panel {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.project-change-requests-panel .section-heading {
  flex-direction: row;
  align-items: center;
}

.project-change-request-heading-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.project-change-request-add {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
  text-decoration: none;
}

.project-change-request-add:hover,
.project-change-request-add:focus-visible {
  color: #fff;
  text-decoration: none;
}

.project-change-request-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.project-change-request-metrics div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-column-gap: 8px;
  column-gap: 8px;
  grid-row-gap: 2px;
  row-gap: 2px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #d8e7f4;
  border-radius: 8px;
  background: #f8fbff;
}

.project-change-request-metrics svg {
  grid-row: 1 / span 2;
  color: var(--adm-blue);
}

.project-change-request-metrics span {
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-change-request-metrics strong {
  color: #172033;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.1;
}

.project-change-request-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 4px;
}

.project-change-request-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(110px, 0.45fr) repeat(3, minmax(112px, 0.55fr));
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.project-change-request-row:hover,
.project-change-request-row:focus {
  background: #f7f9fc;
  border-color: #9fbed9;
  outline: none;
  text-decoration: none;
}

.project-change-request-main {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
}

.project-change-request-main strong {
  color: #223247;
  font-size: 0.96rem;
  line-height: 1.2;
}

.project-change-request-main strong,
.project-change-request-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-change-request-main small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-change-impact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #d9e8f5;
  border-radius: 8px;
  color: #334155;
  background: #f7fbff;
  font-size: 0.85rem;
  font-weight: 850;
}

.project-change-impact svg {
  flex: 0 0 auto;
  color: var(--adm-blue);
}

.project-change-impact > span {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}

.project-change-impact small {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.project-change-impact strong {
  overflow: hidden;
  color: #223247;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-change-impact.is-muted {
  border-color: #e5eaf0;
  color: #94a3b8;
  background: #f8fafc;
}

.project-change-impact.is-muted svg,
.project-change-impact.is-muted strong {
  color: #94a3b8;
}

@media (max-width: 760px) {
  .project-change-request-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-change-request-metrics div:first-child {
    grid-column: 1 / -1;
  }
}

.project-stakeholders-panel {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.project-stakeholders-panel .section-heading {
  flex-direction: row;
  align-items: center;
}

.project-stakeholder-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.project-stakeholder-add {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
  text-decoration: none;
}

.project-stakeholder-add:hover {
  color: white;
  text-decoration: none;
}

.project-stakeholder-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 0 6px;
  scrollbar-width: thin;
}

.project-stakeholder-sections,
.project-stakeholder-section {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.project-stakeholder-section + .project-stakeholder-section {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.project-stakeholder-section-title {
  color: #223247;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-stakeholder-card {
  position: relative;
  flex: 0 0 154px;
  min-width: 154px;
  display: grid;
  justify-items: center;
  grid-gap: 7px;
  gap: 7px;
  min-height: 154px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.project-stakeholder-raci-indicator {
  position: absolute;
  top: 9px;
  right: 9px;
  display: inline-grid;
  place-items: center;
  color: var(--adm-blue);
}

button.project-stakeholder-card {
  cursor: pointer;
  font: inherit;
}

button.project-stakeholder-card:disabled {
  cursor: default;
}

button.project-stakeholder-card:not(:disabled):hover,
button.project-stakeholder-card:not(:disabled):focus-visible {
  border-color: #9fbed9;
  box-shadow: 0 8px 24px rgba(21, 32, 43, 0.08);
  outline: none;
}

.project-stakeholder-card.is-inherited {
  background: #f7f9fc;
}

.project-stakeholder-avatar {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e7f0f8;
  color: var(--adm-blue);
  font-size: 1rem;
  font-weight: 900;
}

.project-stakeholder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-stakeholder-card strong {
  max-width: 100%;
  overflow: hidden;
  color: #223247;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-stakeholder-card > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
}

.project-stakeholder-influence {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--adm-blue);
  background: #e7f0f8;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.project-stakeholder-modal {
  max-width: 720px;
  overflow: visible;
}

.project-stakeholder-modal .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.project-stakeholder-modal .project-stakeholder-capacity-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-column: 1 / -1;
}

.project-stakeholder-modal .project-stakeholder-capacity-fields > label:nth-child(1) { order: 1; }
.project-stakeholder-modal .project-stakeholder-capacity-fields > label:nth-child(2) { order: 3; }
.project-stakeholder-modal .project-stakeholder-capacity-fields > label:nth-child(3) { order: 2; }

.project-stakeholder-modal .form-grid > label.project-stakeholder-capacity-toggle:last-child {
  grid-column: 1 / -1;
}

.project-stakeholder-capacity-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  align-items: end;
  grid-column: 1 / -1;
}

.project-stakeholder-modal .modal-form label.project-stakeholder-capacity-toggle,
.modal-form label.project-stakeholder-capacity-toggle,
.project-stakeholder-capacity-toggle {
  min-height: 42px;
  display: grid;
  grid-template-columns: 14px max-content;
  align-items: center;
  grid-column-gap: 8px;
  column-gap: 8px;
  grid-row-gap: 0;
  row-gap: 0;
  justify-content: start;
  padding: 0 10px;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: #fff;
  color: #344255;
  font-weight: 800;
  line-height: 1.1;
}

.project-stakeholder-modal .modal-form label.project-stakeholder-capacity-toggle span,
.modal-form label.project-stakeholder-capacity-toggle span,
.project-stakeholder-capacity-toggle span {
  display: inline;
  white-space: nowrap;
}

.project-stakeholder-capacity-toggle input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--adm-blue);
}

.project-stakeholder-capacity-fields label:not(.project-stakeholder-capacity-toggle) {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #334155;
  font-weight: 800;
  font-size: 0.84rem;
}

.project-stakeholder-capacity-fields input[type="number"] {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: #223247;
  background: #fff;
  font: inherit;
}
.project-stakeholder-raci-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink); font-size: .78rem; font-weight: 750; }

@media (max-width: 720px) {
  .project-stakeholder-modal .form-grid {
    grid-template-columns: 1fr;
  }

  .project-stakeholder-modal .project-stakeholder-capacity-fields {
    grid-template-columns: 1fr;
  }

  .project-stakeholder-modal .form-grid > label.project-stakeholder-capacity-toggle:last-child {
    grid-column: auto;
  }

  .project-stakeholder-capacity-fields {
    grid-template-columns: 1fr;
  }
}

.project-stakeholder-map-modal {
  width: min(80vw, calc(100vw - 32px));
  height: min(80dvh, calc(100dvh - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  padding: 20px;
}

.stakeholder-map-toolbar,
.stakeholder-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stakeholder-map-summary,
.stakeholder-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.stakeholder-map-summary span,
.stakeholder-map-legend span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #344255;
  font-size: 0.72rem;
  font-weight: 900;
}

.stakeholder-map-summary svg {
  color: var(--adm-blue);
}

.stakeholder-map-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.stakeholder-map-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.stakeholder-map-mode-toggle button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #516478;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.stakeholder-map-mode-toggle button.is-active {
  color: white;
  background: var(--adm-blue);
}

.stakeholder-map-shell {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(21, 32, 43, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 32, 43, 0.035) 1px, transparent 1px),
    #fbfcfe;
  background-size: 28px 28px;
}

.stakeholder-map-canvas {
  position: absolute;
  inset: 0;
}

.stakeholder-map-state {
  min-height: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.stakeholder-map-state.is-error {
  color: #8f2d2d;
}

.stakeholder-map-legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.stakeholder-map-legend i.is-project {
  border-radius: 3px;
  background: #2f9e67;
}

.stakeholder-map-legend i.is-program {
  border-radius: 0;
  background: #5c6f82;
  transform: rotate(45deg) scale(0.86);
}

.stakeholder-map-legend i.is-portfolio {
  width: 14px;
  border-radius: 0;
  background: #0b1f33;
  -webkit-clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
          clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.stakeholder-map-legend i.is-person {
  background: var(--adm-blue);
}

.stakeholder-map-legend i.is-company {
  border-radius: 3px;
  border: 1px solid #93a4b8;
  background: #ffffff;
}

.stakeholder-map-legend i.is-common {
  width: 18px;
  height: 0;
  border-top: 2px dashed #f5a524;
  border-radius: 0;
}

.stakeholder-map-legend i.legend-line {
  width: 24px;
  height: 0;
  border-radius: 0;
  background: transparent;
  border-top: 3px solid #7da9d4;
}

.stakeholder-map-legend i.legend-line.is-company-contact {
  border-top-color: #93a4b8;
  border-top-style: dashed;
}

.stakeholder-map-legend i.legend-line.is-project-role {
  border-top-color: #7da9d4;
}

.stakeholder-map-legend i.legend-line.is-hierarchy {
  border-top-color: #0b1f33;
}

.stakeholder-map-legend i.legend-line.is-influence-1 {
  border-top-color: #2f9e67;
}

.stakeholder-map-legend i.legend-line.is-influence-2 {
  border-top-color: #f5a524;
}

.stakeholder-map-legend i.legend-line.is-influence-3 {
  border-top-color: #d64545;
}

.stakeholder-map-selection {
  min-width: min(420px, 100%);
  display: grid;
  justify-items: end;
  grid-gap: 3px;
  gap: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: right;
}

.stakeholder-map-selection strong {
  color: #223247;
  font-size: 0.86rem;
}

.stakeholder-report-sheet {
  min-height: 1010px;
}

.stakeholder-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-gap: 18px;
  gap: 18px;
  align-items: stretch;
}

.stakeholder-report-map-card {
  min-height: 775px;
  padding: 12px;
  overflow: hidden;
}

.stakeholder-report-map-editor {
  position: relative;
  height: 100%;
  min-height: 748px;
}

.stakeholder-report-map-editor-toolbar {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(20, 35, 55, 0.14);
}

.stakeholder-report-map-editor-toolbar button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfd5ea;
  border-radius: 6px;
  color: #223247;
  background: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.stakeholder-report-map-editor-toolbar button.is-active {
  border-color: var(--adm-blue);
  color: var(--adm-blue);
  background: #eef6ff;
}

.stakeholder-report-map-editor-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.stakeholder-report-map-editor-toolbar span {
  color: #536274;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.stakeholder-report-svg {
  width: 100%;
  height: 100%;
  min-height: 748px;
  display: block;
  border-radius: 8px;
  background: #ffffff;
}

.stakeholder-report-map-editor.is-editing .stakeholder-report-node {
  cursor: move;
}

.stakeholder-report-map-editor.is-editing .stakeholder-report-node:hover {
  filter: drop-shadow(0 5px 10px rgba(0, 83, 160, 0.25));
}

.stakeholder-report-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.stakeholder-report-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media print {
  .stakeholder-report-map-editor-toolbar,
  .stakeholder-report-controls {
    display: none !important;
  }
}

.stakeholder-report-font-selector-menu {
  width: 168px;
}

.stakeholder-report-font-options {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.stakeholder-report-font-options button {
  min-height: 32px;
  border: 1px solid #e0e7ef;
  border-radius: 7px;
  color: #223247;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: left;
}

.stakeholder-report-font-options button.is-selected {
  border-color: #8bb9e6;
  color: var(--adm-blue);
  background: #eef6ff;
}

.stakeholder-report-font-options button span {
  display: block;
}

.stakeholder-report-company-empty {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px;
}

.stakeholder-report-label {
  fill: #223247;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--stakeholder-report-label-size, 11px);
  font-weight: 800;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-linejoin: round;
  stroke-width: 4px;
}

.stakeholder-report-project-label {
  font-size: var(--stakeholder-report-project-label-size, 12px);
  font-weight: 900;
}

.stakeholder-report-initials {
  fill: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.stakeholder-report-legend {
  min-height: 775px;
  display: grid;
  align-content: start;
  grid-gap: 14px;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: white;
}

.stakeholder-report-legend h2 {
  margin: 0;
  color: #223247;
  font-size: 1rem;
  font-weight: 900;
}

.stakeholder-report-legend-group {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid #e4ebf2;
}

.stakeholder-report-legend-group strong {
  color: #66778b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stakeholder-report-legend span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #223247;
  font-size: 0.78rem;
  font-weight: 800;
}

.stakeholder-report-legend i {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 50%;
}

.stakeholder-report-legend i.is-project {
  border-radius: 3px;
  background: #2f9e67;
}

.stakeholder-report-legend i.is-program {
  border-radius: 0;
  background: #5c6f82;
  transform: rotate(45deg) scale(0.86);
}

.stakeholder-report-legend i.is-portfolio {
  width: 14px;
  border-radius: 0;
  background: #0b1f33;
  -webkit-clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
          clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.stakeholder-report-legend i.is-person {
  background: var(--adm-blue);
}

.stakeholder-report-legend i.is-company {
  border: 1px solid #93a4b8;
  border-radius: 3px;
  background: #ffffff;
}

.stakeholder-report-legend i.legend-line {
  width: 30px;
  height: 0;
  border-radius: 0;
  background: transparent;
  border-top: 3px solid #7da9d4;
}

.stakeholder-report-legend i.legend-line.is-company-contact {
  border-top-color: #93a4b8;
  border-top-style: dashed;
}

.stakeholder-report-legend i.legend-line.is-project-role {
  border-top-color: #7da9d4;
}

.stakeholder-report-legend i.legend-line.is-hierarchy {
  border-top-color: #0b1f33;
}

.stakeholder-report-legend i.legend-line.is-influence-1 {
  border-top-color: #2f9e67;
}

.stakeholder-report-legend i.legend-line.is-influence-2 {
  border-top-color: #f5a524;
}

.stakeholder-report-legend i.legend-line.is-influence-3 {
  border-top-color: #d64545;
}

@media (max-width: 1100px) {
  .project-stakeholder-map-modal {
    width: calc(100vw - 24px);
    height: auto;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 16px;
  }

  .stakeholder-map-shell,
  .stakeholder-map-state {
    height: auto;
    min-height: min(54dvh, 500px);
  }
}

@media (max-width: 720px) {
  .project-stakeholder-map-layer {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
  }

  .project-stakeholder-map-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    width: 100dvw;
    max-width: none;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    padding: 14px;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .stakeholder-map-toolbar,
  .stakeholder-map-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .stakeholder-map-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    background: #fff;
  }

  .stakeholder-map-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .stakeholder-map-shell,
  .stakeholder-map-state {
    height: 100%;
    min-height: 50dvh;
  }

  .stakeholder-map-legend {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .stakeholder-map-legend span {
    flex: 0 0 auto;
  }

  .stakeholder-map-selection {
    justify-items: start;
    text-align: left;
  }
}

.project-stakeholder-delete-trigger {
  margin-right: auto;
  width: 42px;
  padding: 0;
}

.project-stakeholder-clear-replacement {
  width: -moz-fit-content;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
}

.project-stakeholder-combobox-list button {
  display: grid;
  justify-items: start;
  grid-gap: 2px;
  gap: 2px;
}

.project-stakeholder-combobox-list button.is-assigned {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.project-stakeholder-combobox-list button.is-assigned:hover,
.project-stakeholder-combobox-list button.is-assigned:focus {
  background: #ffe4e6;
}

.project-stakeholder-combobox-list small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.project-stakeholder-combobox-list button.is-assigned small {
  color: #be123c;
}

.project-stakeholder-combobox-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-stakeholder-combobox-meta em {
  background: #e11d48;
  border-radius: 999px;
  color: #fff;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  padding: 4px 7px;
  text-transform: uppercase;
}

.program-project-text {
  min-width: 0;
  display: contents;
}

.project-health-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.project-health-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085;
}

.project-health-icon.green {
  background: #e7f7ee;
  color: var(--green);
}

.project-health-icon.orange {
  background: #fff4dc;
  color: var(--yellow);
}

.project-health-icon.red {
  background: #fdecec;
  color: var(--red);
}

.association-list label {
  grid-template-columns: auto minmax(0, 1fr);
  cursor: pointer;
}

.association-list span {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.project-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.project-global-health {
  position: relative;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.project-global-health-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-right: 48px;
}

.project-global-health-edit {
  position: absolute;
  top: 16px;
  right: 16px;
}

.project-global-health-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.project-global-health-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-global-health-badge.green,
.project-health-track-done.green {
  background: var(--green);
}

.project-global-health-badge.orange,
.project-health-track-done.orange {
  background: var(--yellow);
}

.project-global-health-badge.red,
.project-health-track-done.red {
  background: var(--red);
}

.project-health-timeline {
  padding: 34px clamp(42px, 7vw, 96px) 42px;
}

.project-health-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #dfe6ee;
}

.project-health-track-done {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.project-health-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
}

.project-health-segment.green {
  background: var(--green);
}

.project-health-segment.orange {
  background: var(--yellow);
}

.project-health-segment.red {
  background: var(--red);
}

.project-health-point {
  position: absolute;
  z-index: 1;
  width: 112px;
  transform: translateX(-50%);
  color: #344255;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.project-health-point i {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border: 3px solid white;
  border-radius: 50%;
  background: var(--adm-blue);
  box-shadow: 0 0 0 1px var(--line);
}

.project-health-point.top {
  bottom: 22px;
}

.project-health-point.top i {
  bottom: -28px;
}

.project-health-point.bottom {
  top: 22px;
}

.project-health-point.bottom i {
  top: -28px;
}

.project-health-point.muted {
  color: #687789;
}

.project-health-point.muted i {
  background: #8a98a8;
}

.project-health-card {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.project-health-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-health-card-head svg {
  color: var(--adm-blue);
}

.health-choice-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.health-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.health-choice span,
.health-choice-button {
  min-height: 36px;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344255;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.health-choice-button {
  background: #fff;
  font-family: inherit;
}

.health-choice-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.health-choice input:checked + span,
.health-choice-button.selected {
  color: white;
}

.health-choice.ok input:checked + span,
.health-choice-button.ok.selected {
  border-color: var(--green);
  background: var(--green);
}

.health-choice.attention input:checked + span,
.health-choice-button.attention.selected {
  border-color: var(--yellow);
  background: var(--yellow);
}

.health-choice.action input:checked + span,
.health-choice-button.action.selected {
  border-color: var(--red);
  background: var(--red);
}

.project-health-confirm-modal {
  gap: 16px;
}

.project-health-confirm-head {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  padding-right: 44px;
}

.project-health-confirm-head h2 {
  margin: 0;
  color: #223247;
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.project-health-confirm-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-health-card dl {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin: 0;
}

.project-health-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.project-health-card dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-health-card dd {
  margin: 0;
  color: #223247;
  font-weight: 850;
  text-align: right;
}

.project-health-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.project-journal-panel {
  min-height: 480px;
  display: grid;
  align-content: start;
  grid-gap: 18px;
  gap: 18px;
}

.project-journal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 14px;
}

.section-title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.section-title-with-icon svg {
  color: var(--adm-blue);
  flex: 0 0 auto;
}

.section-title-with-icon h2 {
  margin: 0;
}

.project-journal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-journal-actions .icon-button,
.project-journal-add {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
}

.project-journal-import,
.project-journal-export {
  flex: 0 0 auto;
}

.project-journal-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 240px));
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
}

.project-journal-filters select,
.project-journal-multi-filter > summary {
  width: 100%;
  height: 40px;
  min-height: 40px;
  border: 1px solid #bccada;
  border-radius: 8px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 13px) 17px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  color: #223247;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 36px 0 12px;
}

.project-journal-multi-filter {
  position: relative;
  min-width: 0;
}

.project-journal-multi-filter > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.project-journal-multi-filter > summary::-webkit-details-marker {
  display: none;
}

.project-journal-multi-filter > summary span {
  flex: 0 0 auto;
  color: #536274;
  font-size: 0.72rem;
}

.project-journal-multi-filter > summary strong {
  min-width: 0;
  overflow: hidden;
  color: #223247;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-journal-multi-filter[open] > summary {
  border-color: var(--adm-blue);
  box-shadow: 0 0 0 3px rgba(21, 91, 173, 0.12);
}

.project-journal-filter-popover {
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 280px);
  overflow: hidden;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 49, 68, 0.16);
}

.project-journal-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #e1e7ee;
  background: #f7f9fb;
}

.project-journal-filter-actions button {
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid #e1e7ee;
  color: var(--adm-blue);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.project-journal-filter-actions button:first-child {
  border-left: 0;
}

.project-journal-filter-actions button:hover {
  background: #edf4fb;
}

.project-journal-filter-options {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}

.project-journal-filter-options label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border-radius: 5px;
  color: #34475b;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.project-journal-filter-options label:hover {
  background: #f2f6fa;
}

.project-journal-filter-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--adm-blue);
}

.project-journal-filters select:focus {
  border-color: var(--adm-blue);
  box-shadow: 0 0 0 3px rgba(21, 91, 173, 0.16);
  outline: none;
}

.project-journal-list {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.project-journal-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

.project-journal-marker {
  width: 34px;
  display: flex;
  justify-content: center;
  position: relative;
}

.project-journal-marker::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: -18px;
  width: 1px;
  background: rgba(148, 163, 184, 0.45);
}

.project-journal-entry:last-child .project-journal-marker::after {
  display: none;
}

.project-journal-marker svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--adm-blue);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15);
  z-index: 1;
}

.project-journal-entry.is-important .project-journal-marker svg {
  background: #fff1f2;
  color: #be123c;
  box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.18);
}

.project-journal-entry-body {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.project-journal-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-journal-entry-head strong {
  display: block;
  color: #0f172a;
  font-size: 0.96rem;
}

.project-journal-entry-head small {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 3px;
}

.project-journal-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.project-journal-badges span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 8px;
}

.project-journal-badges .include-report {
  background: #ecfdf5;
  color: #047857;
}

.project-journal-badges form {
  display: inline-flex;
}

.project-journal-edit,
.project-journal-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}

.project-journal-edit {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--adm-blue);
}

.project-journal-edit:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.project-journal-delete {
  border: 1px solid #fecaca;
  background: #fff7f7;
  color: #b91c1c;
}

.project-journal-delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.project-journal-content {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-journal-content p,
.project-journal-content ul,
.project-journal-content ol,
.project-journal-content blockquote {
  margin: 0;
}

.project-journal-content p + p,
.project-journal-content p + ul,
.project-journal-content p + ol,
.project-journal-content ul + p,
.project-journal-content ol + p,
.project-journal-content blockquote + p {
  margin-top: 8px;
}

.project-journal-content ul,
.project-journal-content ol {
  padding-left: 20px;
}

.project-journal-content li + li {
  margin-top: 4px;
}

.project-journal-content blockquote {
  border-left: 3px solid #bfdbfe;
  padding-left: 10px;
  color: #475569;
}

.project-journal-content a {
  color: var(--adm-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-journal-entry-body > p {
  margin: 0;
  color: #334155;
  line-height: 1.5;
  white-space: pre-line;
}

.project-journal-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: 8px;
  padding: 18px;
}

.project-journal-more {
  justify-self: center;
}

.project-journal-modal {
  width: min(680px, 100%);
  gap: 16px;
}

.project-journal-import-modal {
  width: min(980px, calc(100vw - 28px));
  gap: 16px;
}

.project-journal-template-download {
  width: -moz-fit-content;
  width: fit-content;
  gap: 8px;
}

.project-journal-modal-head {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  padding-right: 44px;
}

.project-journal-modal-head h2 {
  margin: 0;
  color: #223247;
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.project-journal-modal-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-journal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.project-journal-form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rich-text-editor {
  display: grid;
  border: 1px solid #bccada;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.rich-text-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.rich-text-toolbar-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  cursor: pointer;
}

.rich-text-toolbar-button:hover:not(:disabled),
.rich-text-toolbar-button.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--adm-blue);
}

.rich-text-toolbar-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.rich-text-toolbar-separator {
  width: 1px;
  height: 22px;
  background: #dbe4ef;
  margin: 0 2px;
}

.rich-text-editor .tiptap,
.rich-text-editor-content {
  outline: none;
  padding: 12px;
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
}

.rich-text-editor .tiptap strong,
.rich-text-editor .tiptap b {
  font-weight: 800;
}

.rich-text-editor .tiptap p,
.rich-text-editor .tiptap ul,
.rich-text-editor .tiptap ol,
.rich-text-editor .tiptap blockquote {
  margin: 0;
}

.rich-text-editor .tiptap p + p,
.rich-text-editor .tiptap p + ul,
.rich-text-editor .tiptap p + ol,
.rich-text-editor .tiptap ul + p,
.rich-text-editor .tiptap ol + p,
.rich-text-editor .tiptap blockquote + p {
  margin-top: 8px;
}

.rich-text-editor .tiptap ul,
.rich-text-editor .tiptap ol {
  padding-left: 20px;
}

.rich-text-editor .tiptap blockquote {
  border-left: 3px solid #bfdbfe;
  color: #475569;
  padding-left: 10px;
}

.rich-text-editor .tiptap a {
  color: var(--adm-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text-editor .tiptap:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.project-journal-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #334155;
  font-weight: 700;
}

.project-journal-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.3;
}

.project-journal-checks input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 auto;
}

.project-journal-ai-tools {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.project-journal-ai-tools .secondary-action {
  justify-self: start;
}

.project-journal-ai-tools span,
.project-journal-ai-tools p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.project-journal-ai-tools p {
  color: #b91c1c;
  font-weight: 700;
}

.project-journal-import-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.project-journal-import-summary strong {
  color: #223247;
}

.project-journal-import-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 800;
}

.project-journal-import-preview {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  overflow-x: auto;
}

.project-journal-import-preview table {
  min-width: 760px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-journal-import-preview th,
.project-journal-import-preview td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.82rem;
}

.project-journal-import-preview th {
  color: #64748b;
  background: #f8fafc;
  font-weight: 900;
  text-transform: uppercase;
}

.project-journal-import-preview td {
  color: #223247;
  font-weight: 750;
}

.project-journal-import-preview tbody tr:last-child td {
  border-bottom: 0;
}

.project-journal-import-preview small {
  color: #64748b;
  font-weight: 800;
}

.project-dependencies-panel {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.project-dependency-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project-dependency-add,
.project-change-request-add {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
}

.project-dependency-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.project-dependency-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
}

.project-dependency-list > strong {
  color: #223247;
  font-size: 0.86rem;
}

.project-dependency-list > p {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: #64748b;
  font-size: 0.84rem;
}

.project-dependency-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.project-dependency-row.is-editable {
  cursor: pointer;
}

.project-dependency-row.is-editable:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.09);
  transform: translateY(-1px);
}

.project-dependency-row a {
  color: #223247;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.project-dependency-row small,
.project-dependency-row em {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 750;
}

.project-dependency-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.project-dependency-meta i {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.project-dependency-meta .risk-status.red {
  background: #fee2e2;
  color: #b91c1c;
}

.project-dependency-meta .risk-status.orange {
  background: #ffedd5;
  color: #c2410c;
}

.project-dependency-meta .risk-status.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.project-dependency-delete {
  width: 26px;
  height: 26px;
  color: #b91c1c;
}

.project-dependency-modal {
  max-width: 780px;
}

.project-dependency-map-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  width: 70vw;
  max-width: none;
  height: 70vh;
  max-height: none;
  overflow: hidden;
}

.project-dependency-focus-map-editor {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

.project-dependency-focus-map-shell {
  position: relative;
  display: grid;
  place-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(#eef2f7 1px, transparent 1px),
    linear-gradient(90deg, #eef2f7 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
  touch-action: none;
  cursor: -webkit-grab;
  cursor: grab;
}

.project-dependency-focus-map-shell:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.project-dependency-focus-map-shell.is-compact {
  place-items: center;
  height: auto;
  overflow: visible;
  cursor: default;
}

.project-dependency-focus-map {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  border: 0;
  background: transparent;
  touch-action: none;
  will-change: transform;
}

.project-dependency-map-modal .project-dependency-focus-map {
  position: absolute;
  top: 0;
  left: 0;
  align-self: stretch;
  max-width: none;
  margin: 0;
}

.project-dependency-focus-map.is-compact {
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.project-dependency-focus-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.project-dependency-focus-link line {
  stroke: #64748b;
  stroke-width: 2.2;
}

.project-dependency-focus-link path {
  fill: #64748b;
}

.project-dependency-focus-link text {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  fill: #475569;
  font-size: 11px;
  font-weight: 900;
}

.project-dependency-focus-link.red line,
.project-dependency-focus-link.red path {
  stroke: #dc2626;
  fill: #dc2626;
}

.project-dependency-focus-link.orange line,
.project-dependency-focus-link.orange path {
  stroke: #f97316;
  fill: #f97316;
}

.project-dependency-focus-link.blue line,
.project-dependency-focus-link.blue path {
  stroke: #2563eb;
  fill: #2563eb;
}

.project-dependency-focus-column > strong {
  position: absolute;
  top: 18px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-dependency-focus-column.is-left > strong {
  left: 28px;
}

.project-dependency-focus-column.is-right > strong {
  right: 28px;
}

.project-dependency-focus-node {
  position: absolute;
  z-index: 4;
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-gap: 6px;
  gap: 6px;
  align-content: center;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  text-align: left;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: none;
}

.project-dependency-focus-node.is-draggable {
  cursor: -webkit-grab;
  cursor: grab;
}

.project-dependency-focus-node.is-draggable:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.project-dependency-map-modal .project-dependency-focus-node {
  cursor: -webkit-grab;
  cursor: grab;
}

.project-dependency-map-modal .project-dependency-focus-node:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.project-dependency-focus-node.is-current {
  border-color: var(--adm-blue);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.16);
}

.project-dependency-focus-node.red {
  border-color: #fecaca;
}

.project-dependency-focus-node.orange {
  border-color: #fed7aa;
}

.project-dependency-focus-node.blue {
  border-color: #bfdbfe;
}

.project-dependency-focus-node-title {
  display: -webkit-box;
  min-height: 2.05em;
  max-width: 100%;
  overflow: hidden;
  color: #172033;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-dependency-focus-node small {
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dependency-focus-node-metrics {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  align-content: center;
}

.project-dependency-focus-node-metrics span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 850;
}

.project-dependency-focus-node-metrics .project-dependency-focus-node-budget {
  justify-content: space-between;
  gap: 10px;
}

.project-dependency-focus-node-budget > span {
  min-width: 0;
}

.project-dependency-focus-node-budget em {
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.project-dependency-focus-node-metrics strong {
  min-width: 0;
  overflow: hidden;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dependency-focus-node-metrics svg {
  color: #2563eb;
}

.project-dependency-focus-node-metrics svg.green {
  color: var(--green);
}

.project-dependency-focus-node-metrics svg.orange {
  color: var(--yellow);
}

.project-dependency-focus-node-metrics svg.red {
  color: var(--red);
}

.project-dependency-focus-empty {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  min-height: 42px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.project-dependency-focus-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.project-dependency-focus-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-dependency-focus-legend i {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #64748b;
}

.project-dependency-focus-legend i.critical {
  background: #dc2626;
}

.project-dependency-focus-legend i.high {
  background: #f97316;
}

.project-dependency-focus-legend i.medium {
  background: #64748b;
}

.project-dependency-focus-legend i.low {
  background: #2563eb;
}

@media (max-width: 720px) {
  .project-dependency-map-layer {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
  }

  .project-dependency-map-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    width: 100dvw;
    max-width: none;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    padding: 10px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .project-dependency-map-modal .modal-head {
    min-height: auto;
    padding-bottom: 0;
  }

  .project-dependency-map-modal .modal-head h2 {
    font-size: 0.98rem;
  }

  .project-dependency-map-modal .modal-head p {
    font-size: 0.72rem;
  }

  .project-dependency-map-modal .project-dependency-focus-map-editor,
  .project-dependency-map-modal .project-dependency-focus-map-shell {
    height: 100%;
    min-height: 0;
  }

  .project-dependency-focus-legend {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .project-dependency-focus-legend span {
    flex: 0 0 auto;
  }
}

.project-dependency-report-layout {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.project-dependency-report-map-card {
  min-height: 560px;
  padding: 12px;
  background: #fff;
}

.project-dependency-report-map-card .project-dependency-focus-map-editor,
.project-dependency-report-map-card .project-dependency-focus-map-shell.is-compact {
  background: #fff;
}

.project-dependency-report-map-card .project-dependency-focus-map {
  min-height: 540px;
  border: 0;
  border-radius: 6px;
  background: #fff;
}

.project-dependency-report-map-card .project-dependency-focus-node {
  box-shadow: none;
}

.project-dependency-report-map-card .project-dependency-focus-map-editor,
.project-dependency-report-map-card .project-dependency-focus-map-shell.is-compact {
  height: 100%;
  min-height: 540px;
}

.project-dependency-report-map-card .stakeholder-report-map-editor-toolbar {
  top: auto;
  bottom: 12px;
  left: 12px;
}

.project-dependency-report-page .stakeholder-report-map-editor-toolbar {
  display: none;
}

.project-dependency-report-page .report-toolbar + .project-dependency-report-sheet .stakeholder-report-map-editor-toolbar {
  display: inline-flex;
}

.project-dependency-report-map-card .project-dependency-focus-map-shell.is-compact {
  place-items: stretch;
}

.project-dependency-report-legend .is-project {
  border-radius: 8px;
  background: var(--adm-blue);
}

@media print {
  .project-dependency-report-page .report-toolbar {
    display: none;
  }

  .project-dependency-focus-map-editor .stakeholder-report-map-editor-toolbar {
    display: none !important;
  }

  .project-dependency-report-sheet {
    min-height: calc(100vh - 22mm);
  }

  .project-dependency-report-map-card {
    min-height: 560px;
  }
}

.project-dependency-dashboard {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.project-dependency-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.project-dependency-map-panel {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.project-dependency-map-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.project-dependency-focus-combobox-field {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: min(420px, 100%);
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-dependency-focus-combobox {
  position: relative;
}

.project-dependency-focus-combobox input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #223247;
  font-size: 0.86rem;
  font-weight: 800;
  outline: none;
  text-transform: none;
}

.project-dependency-focus-combobox input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.project-dependency-focus-combobox-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  width: min(520px, 92vw);
  max-height: 310px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  text-transform: none;
}

.project-dependency-focus-combobox-list button {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #223247;
  text-align: left;
  cursor: pointer;
}

.project-dependency-focus-combobox-list button:hover,
.project-dependency-focus-combobox-list button[aria-selected='true'] {
  background: #eef6ff;
}

.project-dependency-focus-combobox-list strong {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dependency-focus-combobox-list span {
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dependency-map-scroll {
  position: relative;
  overflow: hidden;
  height: min(72vh, 760px);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(#eef2f7 1px, transparent 1px),
    linear-gradient(90deg, #eef2f7 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
  cursor: -webkit-grab;
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: none;
}

.project-dependency-map-scroll.is-panning {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.project-dependency-map {
  position: relative;
  min-height: 440px;
  transform-origin: 0 0;
}

.project-dependency-portfolio-box,
.project-dependency-program-box {
  position: absolute;
  display: block;
  border-radius: 12px;
  pointer-events: none;
}

.project-dependency-portfolio-box {
  z-index: 1;
  border: 1px solid #bfdbfe;
  background: rgba(239, 246, 255, 0.62);
}

.project-dependency-program-box {
  z-index: 2;
  border: 1px solid #d8e7f4;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.project-dependency-box-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.project-dependency-portfolio-box .project-dependency-box-title {
  background: rgba(219, 234, 254, 0.66);
  border-radius: 12px 12px 0 0;
}

.project-dependency-box-title strong {
  overflow: hidden;
  color: #172033;
  font-size: 0.82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dependency-box-title span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-dependency-map-links {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 4;
  pointer-events: none;
}

.project-dependency-link line {
  stroke: #64748b;
  stroke-width: 2;
  opacity: 0.76;
  transition: opacity 0.16s ease, stroke-width 0.16s ease;
}

.project-dependency-link path {
  fill: #64748b;
}

.project-dependency-link text {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  fill: #475569;
  font-size: 11px;
  font-weight: 900;
  transition: opacity 0.16s ease;
}

.project-dependency-link.is-muted line,
.project-dependency-link.is-muted path,
.project-dependency-link.is-muted text {
  opacity: 0.12;
}

.project-dependency-link.is-highlighted line {
  stroke-width: 3.5;
  opacity: 0.96;
}

.project-dependency-link.is-highlighted text {
  opacity: 1;
}

.project-dependency-link.critical line,
.project-dependency-link.critical path {
  stroke: #dc2626;
  fill: #dc2626;
}

.project-dependency-link.high line,
.project-dependency-link.high path {
  stroke: #f97316;
  fill: #f97316;
}

.project-dependency-link.low line,
.project-dependency-link.low path {
  stroke: #2563eb;
  fill: #2563eb;
}

.dependency-resolved-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.82rem;
  color: #475569;
}

.dependency-resolved-filter input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
}

.project-dependency-focus-map-editor:has(> .dependency-resolved-filter) {
  grid-template-rows: auto minmax(0, 1fr);
}

.project-dependency-link.is-resolved > line,
.project-dependency-focus-link.is-resolved > line {
  stroke: #9ca3af;
  stroke-width: 1.5;
  stroke-dasharray: none;
}

.project-dependency-link.is-resolved > text,
.project-dependency-focus-link.is-resolved > text {
  fill: #6b7280;
  font-weight: 600;
}

.dependency-resolved-mark {
  pointer-events: auto;
}

.dependency-resolved-mark circle {
  fill: #fff;
  stroke: #9ca3af;
  stroke-width: 1;
}

.project-dependency-link .dependency-resolved-mark path,
.project-dependency-focus-link .dependency-resolved-mark path {
  fill: none;
  stroke: #6b7280;
  stroke-width: 2;
}

.project-dependency-link.is-muted .dependency-resolved-mark {
  opacity: 0.12;
}

.dependency-resolved-legend {
  color: #6b7280;
}

@media print {
  .dependency-resolved-filter {
    display: none;
  }
  .project-dependency-focus-map-editor:has(> .dependency-resolved-filter) {
    grid-template-rows: minmax(0, 1fr);
  }
}

.project-dependency-node {
  position: absolute;
  z-index: 5;
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-gap: 6px;
  gap: 6px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #223247;
  cursor: -webkit-grab;
  cursor: grab;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: none;
}

.project-dependency-node:hover {
  border-color: #93c5fd;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
}

.project-dependency-node:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.project-dependency-node.is-muted {
  opacity: 0.28;
}

.project-dependency-node.is-related {
  border-color: #bfdbfe;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.project-dependency-node.is-selected {
  z-index: 7;
  border-color: var(--adm-blue);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.2);
}

.project-dependency-node-health {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.project-dependency-node-health.green {
  background: var(--green);
}

.project-dependency-node-health.orange {
  background: var(--yellow);
}

.project-dependency-node-health.red {
  background: var(--red);
}

.project-dependency-node-title {
  display: -webkit-box;
  min-height: 2.05em;
  max-width: 100%;
  overflow: hidden;
  color: #172033;
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-dependency-node small {
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dependency-node-metrics {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  align-content: center;
}

.project-dependency-node-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 850;
}

.project-dependency-node-metrics strong {
  min-width: 0;
  overflow: hidden;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dependency-node-metrics svg {
  color: #2563eb;
}

.project-dependency-node-budget {
  justify-content: space-between;
  min-width: 0;
}

.project-dependency-node-budget > span {
  min-width: 0;
}

.project-dependency-node-budget em {
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.project-dependency-node-metrics .project-dependency-metric-icon.green {
  color: var(--green);
}

.project-dependency-node-metrics .project-dependency-metric-icon.orange {
  color: var(--yellow);
}

.project-dependency-node-metrics .project-dependency-metric-icon.red {
  color: var(--red);
}

.project-dependency-node-health-row {
  display: none;
}

.project-dependency-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.project-dependency-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-dependency-legend i {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #64748b;
}

.project-dependency-legend i.critical {
  background: #dc2626;
}

.project-dependency-legend i.high {
  background: #f97316;
}

.project-dependency-legend i.medium {
  background: #64748b;
}

.project-dependency-legend i.low {
  background: #2563eb;
}

.project-dependency-heading {
  flex-direction: row;
  align-items: center;
}

.project-dependency-heading-action {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  flex: 0 0 40px;
  text-decoration: none;
}

.project-dependency-add {
  border-color: var(--adm-blue);
  background: var(--adm-blue);
  color: #fff;
}

.project-dependency-add:hover,
.project-dependency-add:focus-visible {
  border-color: #0f5f9f;
  background: #0f5f9f;
  color: #fff;
}

.project-dependency-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.project-dependency-columns {
  grid-template-columns: 1fr;
}

.project-dependency-list {
  gap: 10px;
}

.project-dependency-list > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-dependency-list > strong::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--adm-blue);
}

.project-dependency-row {
  grid-template-columns: minmax(260px, 1.45fr) minmax(110px, 0.45fr) repeat(2, minmax(150px, 0.65fr)) 40px;
  min-height: 74px;
  padding: 12px;
  border-radius: 8px;
  box-shadow: none;
}

.project-dependency-row.is-editable:hover {
  border-color: #9fbed9;
  box-shadow: none;
  transform: none;
  background: #f7f9fc;
}

.project-dependency-main a {
  overflow: hidden;
  color: #223247;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.project-dependency-main em {
  overflow: hidden;
  color: #64748b;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dependency-status {
  justify-content: center;
  min-width: 74px;
}

.project-dependency-impact strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dependency-row-actions {
  display: inline-flex;
  justify-content: flex-end;
}

.project-dependency-delete {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-color: #fee2e2;
  color: #b91c1c;
  background: #fff;
}

@media (max-width: 720px) {
  .project-health-grid {
    grid-template-columns: 1fr;
  }

  .project-health-card {
    width: 100%;
  }

  .project-global-health-head {
    flex-direction: column;
    padding-right: 48px;
  }

  .project-health-timeline {
    padding-right: 44px;
    padding-left: 44px;
  }

  .project-health-point {
    width: 86px;
    height: 32px;
    font-size: 0.66rem;
  }

  .project-health-card dl div {
    align-items: center;
  }

  .project-health-actions {
    justify-content: stretch;
  }

  .project-health-actions .primary-action {
    width: 100%;
  }

  .project-journal-entry-head {
    align-items: stretch;
    flex-direction: column;
  }

  .project-journal-title-row {
    align-items: center;
    flex-direction: row;
  }

  .project-journal-title-row .block-title {
    min-width: 0;
  }

  .project-journal-title-row .block-title h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-journal-add {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .project-journal-add span {
    display: none;
  }

  .project-journal-actions {
    flex: 0 0 auto;
  }

  .project-journal-badges {
    justify-content: flex-start;
  }

  .project-journal-filters {
    grid-template-columns: 1fr;
  }

  .project-journal-form-grid {
    grid-template-columns: 1fr;
  }

  .project-journal-form-grid-three {
    grid-template-columns: 1fr;
  }

  .budget-steering-filters,
  .budget-steering-filters label,
  .budget-steering-filters select,
  .budget-steering-filters button {
    width: 100%;
  }

  .budget-steering-grid {
    grid-template-columns: 1fr;
  }

  .budget-steering-scope-panel {
    grid-template-columns: 1fr;
  }

  .budget-steering-warning-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .budget-steering-chart {
    overflow-x: auto;
  }

  .budget-steering-chart svg {
    min-width: 680px;
  }

  .budget-steering-projects {
    max-height: none;
  }

  .budget-steering-project-detail summary,
  .budget-steering-project-metrics {
    grid-template-columns: 1fr;
  }

  .budget-steering-project-metrics > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
  }

  .budget-steering-comparison-table {
    overflow-x: auto;
  }

  .budget-steering-comparison-row {
    min-width: 760px;
  }

  .project-dependency-dashboard-summary {
    grid-template-columns: 1fr;
  }

  .project-dependency-map-header {
    display: grid;
    align-items: stretch;
  }

  .project-dependency-focus-combobox-field {
    min-width: 0;
  }

  .project-dependency-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-dependency-metrics div:first-child {
    grid-column: 1 / -1;
  }

  .project-dependency-list {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .project-dependency-row {
    grid-template-columns: minmax(210px, 1.45fr) minmax(102px, 0.45fr) repeat(2, minmax(122px, 0.55fr)) 38px;
    min-width: max(720px, 100%);
  }

  .project-dependency-meta {
    justify-content: flex-start;
  }

  .project-dependency-map-scroll {
    margin-inline: -12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .hourly-rates-editor {
    grid-template-columns: 1fr;
  }

  .hourly-rates-table-wrap {
    max-height: 280px;
  }
}

/* Keep initial end dates below their marker in program PDF timelines. */
.program-report-timeline-card .program-timeline-point.initial em {
  top: 16px;
  left: 50%;
  min-width: 92px;
  text-align: center;
  transform: translateX(-50%);
}

.partner-dashboard {
  display: grid;
  grid-gap: 20px;
  gap: 20px;
}

.partner-dashboard .section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #223247;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: none;
}

.partner-section-context {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.partner-dashboard-filters {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.partner-dashboard-filters label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 170px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.partner-dashboard-filters label svg {
  vertical-align: middle;
  margin-right: 4px;
}

.partner-filter-field {
  min-width: min(360px, 100%);
}

.partner-dashboard-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  grid-gap: 8px;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
}

.partner-dashboard-empty h2 {
  margin: 0;
  color: var(--text);
}

.partner-dashboard-empty p {
  margin: 0;
}

.partner-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.partner-dashboard-summary .report-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon label" "value value";
  align-items: center;
  grid-gap: 6px 8px;
  gap: 6px 8px;
  min-height: 92px;
  padding: 12px;
}

.partner-dashboard-summary .report-card svg { grid-area: icon; color: var(--adm-blue); }
.partner-dashboard-summary .report-card span { grid-area: label; color: var(--muted); font-size: 0.74rem; font-weight: 800; line-height: 1.2; }
.partner-dashboard-summary .report-card strong {
  grid-area: value;
  color: var(--ink);
  font-size: 21px;
}

.partner-dashboard-combobox input::placeholder { color: #94a3b8; font-weight: 750; }

.partner-dashboard-combobox-list {
  position: absolute;
  z-index: 200;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 308px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.partner-dashboard-combobox-list button,
.partner-dashboard-combobox-list span {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  width: 100%;
  min-height: 42px;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.partner-dashboard-combobox-list button { cursor: pointer; }
.partner-dashboard-combobox-list button:hover,
.partner-dashboard-combobox-list button:focus { background: #eff6ff; outline: none; }
.partner-dashboard-combobox-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; }
.partner-dashboard-combobox-list small { color: var(--muted); font-size: 0.74rem; font-weight: 750; }

.partner-dashboard-chart,
.partner-dashboard-projects {
  padding: 20px;
}

.partner-dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  align-items: stretch;
}

.partner-dashboard-chart-grid > .partner-dashboard-chart {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  box-sizing: border-box;
}

.partner-dashboard-chart-grid > .partner-dashboard-projects {
  grid-column: auto;
}

@media (min-width: 2200px) {
  .partner-dashboard-chart-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  }

  .partner-dashboard-chart-grid > .partner-dashboard-projects {
    grid-column: 1 / -1;
  }
}

.partner-financial-chart svg {
  flex: 1 1;
  width: 100%;
  min-height: 0;
  height: 100%;
}

.partner-financial-chart {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  min-height: 0;
}

.partner-financial-plot {
  position: relative;
  flex: 1 1;
  min-height: 0;
}

.partner-financial-tooltip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid #cbd8e5;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
  color: var(--muted);
  font-size: 0.7rem;
  pointer-events: none;
}

.partner-financial-tooltip strong,
.partner-financial-tooltip b { color: var(--ink); }

.partner-nature-chart {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  align-content: center;
  justify-content: center;
  grid-gap: 18px;
  gap: 18px;
  flex: 1 1;
  min-height: 210px;
}

.partner-nature-donut {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 190px;
  justify-self: center;
  aspect-ratio: 1;
  border-radius: 50%;
}

.partner-nature-donut::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: inherit;
  background: white;
}

.partner-nature-donut strong,
.partner-nature-donut span {
  position: relative;
  z-index: 1;
}

.partner-nature-donut strong { color: var(--ink); font-size: 1rem; }
.partner-nature-donut span { color: var(--muted); font-size: 0.68rem; font-weight: 850; }

.partner-nature-legend { display: grid; grid-gap: 10px; gap: 10px; justify-self: end; width: auto; }
.partner-nature-legend div { display: grid; grid-template-columns: 9px minmax(0, 1fr); grid-gap: 5px 7px; gap: 5px 7px; align-items: center; }
.partner-nature-legend i { grid-row: span 2; width: 9px; height: 9px; border-radius: 50%; }
.partner-nature-legend .legend-capex { background: var(--adm-blue); }
.partner-nature-legend .legend-opex { background: var(--green); }
.partner-nature-legend .legend-unclassified { background: var(--red); }
.partner-nature-legend span { color: var(--muted); font-size: 0.7rem; font-weight: 850; }
.partner-nature-legend strong { color: var(--ink); font-size: 0.78rem; }

.partner-project-chart {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  flex: 1 1;
  min-height: 250px;
  position: relative;
  padding: 10px 4px 36px;
}

.partner-project-bar-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 62px;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.partner-project-bar-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-project-bar-track {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2;
}

.partner-project-bar-track i {
  display: block;
  height: 100%;
  flex: 0 0 auto;
}

.partner-project-bar-capex { background: var(--adm-blue); }
.partner-project-bar-opex { background: var(--green); }
.partner-project-bar-unclassified { background: var(--red); }
.partner-dashboard .legend-unclassified { background: var(--red); }
.partner-financial-chart .cfo-capex-opex-bar.unclassified {
  fill: var(--red);
  background: var(--red);
}

.partner-project-bar-track i:first-child {
  border-radius: 999px 0 0 999px;
}

.partner-project-bar-track i:last-child {
  border-radius: 0 999px 999px 0;
}

.partner-project-chart-legend {
  justify-content: flex-start;
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  padding-top: 0;
}

.partner-project-chart-legend .legend-capex,
.partner-project-chart-legend .legend-opex {
  display: inline-block;
  width: 18px;
  height: 4px;
  margin-right: 5px;
  border-radius: 999px;
  vertical-align: middle;
}

.partner-project-chart-legend .legend-capex { background: var(--adm-blue); }
.partner-project-chart-legend .legend-opex { background: var(--green); }

.partner-project-bar-row strong {
  color: var(--ink);
  text-align: right;
  font-size: 0.75rem;
}

.partner-monthly-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 280px;
  padding: 22px 8px 6px;
  overflow-x: auto;
  border-bottom: 1px solid #dbe5ef;
  background: repeating-linear-gradient(to top, transparent 0, transparent 54px, rgba(219, 229, 239, 0.72) 55px, transparent 56px);
}

.partner-month {
  flex: 1 0 44px;
  min-width: 44px;
  height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 8px;
}

.partner-bars {
  height: 210px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
}

.partner-bar {
  display: block;
  width: 18px;
  min-height: 0;
  border-radius: 2px;
}

.partner-bar.capex,
.partner-legend-swatch.capex { background: var(--adm-blue); }
.partner-bar.opex,
.partner-legend-swatch.opex { background: var(--green); }
.partner-bar.unclassified,
.partner-legend-swatch.unclassified { background: var(--red); }

.executive-chart-legend .partner-legend-swatch {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.partner-month small {
  color: #64748b;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 800;
}

.partner-project-table {
  max-height: 560px;
  overflow-x: auto;
  overflow-y: auto;
}

.partner-project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 150px);
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  width: max(760px, 100%);
  padding: 12px 14px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
}

.partner-project-row > :first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-project-summary-metrics {
  display: contents;
}

.partner-project-row.is-header {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.partner-project-detail summary {
  cursor: pointer;
  list-style: none;
}

.partner-project-detail summary::-webkit-details-marker { display: none; }
.partner-project-detail summary:hover { background: var(--surface-muted); }
.partner-project-detail a { color: var(--text); text-decoration: none; }
.partner-project-detail a:hover { color: var(--accent); }

.partner-otp-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px 20px;
  gap: 8px 20px;
  margin: 0 14px;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--border);
}

.partner-otp-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.partner-po-list {
  margin: 0 0 14px;
  padding: 10px 14px 0;
  border-top: 1px solid var(--line);
}

.partner-po-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 150px);
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  width: max(760px, 100%);
  min-height: 34px;
  box-sizing: border-box;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

@media (max-width: 1250px) and (min-width: 761px) {
  .partner-project-row,
  .partner-po-row {
    gap: 8px;
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .partner-project-row.is-header,
  .partner-po-row.is-header {
    font-size: 0.62rem;
  }
}

.partner-po-row:not(.is-header) {
  color: var(--ink);
  border-top: 1px solid #edf1f5;
}

.partner-po-row > :first-child {
  justify-self: end;
  padding-left: 0;
  text-align: right !important;
}
.partner-po-row > :not(:first-child) { text-align: right; }
.partner-po-row.is-header { color: var(--muted); font-size: 0.68rem; font-weight: 850; text-transform: uppercase; }
.partner-project-row.is-header > :not(:first-child),
.partner-po-row.is-header > :not(:first-child) { text-align: right; }
.partner-project-row:not(.is-header) > :not(:first-child) { text-align: right; }
.partner-po-row strong { color: var(--ink); }

.partner-amount-compact { display: none; }

.project-purchase-orders-panel {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  max-height: 560px;
  overflow: hidden;
}

.project-purchase-orders-panel .section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.project-purchase-orders-panel .section-heading p,
.project-purchase-orders-empty,
.project-purchase-order-title small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.project-purchase-orders-table {
  max-height: 460px;
  padding-bottom: 12px;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}

.project-purchase-order-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(100px, .7fr) minmax(180px, 1fr) repeat(3, 120px) 150px;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 20px 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}

.project-purchase-order-row[role='button'] { cursor: pointer; }
.project-purchase-order-row[role='button']:hover { background: var(--surface-muted); }
.project-purchase-order-row.is-header { min-height: 34px; border-top: 0; color: var(--muted); font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }
.project-purchase-order-row.is-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 2; background: var(--surface); }
.project-purchase-order-row > :not(:first-child) { text-align: right; }
.project-purchase-order-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.project-purchase-order-title-button { min-width: 0; overflow: hidden; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.project-purchase-order-title-button strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-purchase-order-status { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.project-purchase-order-edit-trigger { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border: 0; padding: 2px; background: transparent; color: var(--adm-blue); cursor: pointer; }
.project-purchase-order-edit { display: flex; gap: 8px; align-items: center; padding: 8px 0; }
.project-purchase-order-edit input { flex: 1 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.project-purchase-order-edit button { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; font-weight: 800; cursor: pointer; }
.project-purchase-order-edit button:first-of-type { border-color: var(--adm-blue); background: var(--adm-blue); color: white; }
.project-purchase-order-edit-modal { position: relative; width: min(520px, calc(100vw - 32px)); }
.project-purchase-order-edit-modal h2 { margin: 0 36px 4px 0; }
.project-purchase-order-edit-modal > p { margin: 0 0 18px; color: var(--muted); font-weight: 750; }
.project-purchase-order-edit-modal label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.project-purchase-order-edit-modal input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.project-purchase-order-edit-modal .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.project-purchase-order-edit-modal .modal-actions button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; font-weight: 800; cursor: pointer; }
.project-purchase-order-edit-modal .modal-actions button:last-child { border-color: var(--adm-blue); background: var(--adm-blue); color: white; }
.project-purchase-order-modal { position: relative; width: min(900px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); overflow: auto; }
.project-purchase-order-modal h2 { margin: 0 36px 4px 0; }
.project-purchase-order-modal > p { margin: 0 0 16px; color: var(--muted); font-weight: 750; }
.project-purchase-order-modal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; margin-bottom: 18px; }
.project-purchase-order-modal-summary span { display: grid; grid-gap: 4px; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.project-purchase-order-modal-summary svg { color: var(--adm-blue); }
.project-purchase-order-modal-summary strong { color: var(--ink); font-size: 1rem; }
.project-purchase-order-line { display: grid; grid-template-columns: minmax(0, 1fr) 145px repeat(3, 120px); grid-gap: 10px; gap: 10px; align-items: center; min-height: 40px; border-top: 1px solid var(--line); font-size: 0.8rem; }
.project-purchase-order-line > :not(:first-child) { text-align: right; }
.project-purchase-order-line.is-header { border-top: 0; color: var(--muted); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; }

@media (max-width: 760px) {
  .partner-dashboard,
  .partner-dashboard > *,
  .partner-dashboard-chart-grid,
  .partner-dashboard-chart-grid > *,
  .partner-dashboard-top-filters,
  .partner-dashboard-top-filters label,
  .partner-dashboard-combobox {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .partner-dashboard-combobox > input[role='combobox'],
  .partner-dashboard-top-filters select {
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }

  .partner-dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-dashboard-chart-grid { grid-template-columns: 1fr; }
  .partner-dashboard-filters { display: grid; grid-template-columns: 1fr; }
  .partner-dashboard-filters label,
  .partner-filter-field { min-width: 0; }
  .partner-dashboard-filters button { width: 100%; }
  .partner-dashboard-top-filters { display: grid; grid-template-columns: 1fr; width: 100%; }
  .partner-dashboard-top-filters input { min-width: 0; width: 100%; }
  .partner-dashboard-top-filters select,
  .partner-top-select { min-width: 0; width: 100%; }
  .partner-dashboard-chart,
  .partner-dashboard-projects { padding: 14px; }
  .partner-project-table { max-height: 65vh; }
  .partner-project-row {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 10px 0;
  }
  .partner-project-row .partner-project-title {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    text-align: left;
  }
  .partner-project-summary-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 6px;
    gap: 6px;
    width: 100%;
    text-align: right;
  }
  .partner-project-summary-metrics > * { min-width: 0; }
  .partner-project-row.is-header {
    display: none;
  }
  .partner-project-summary-metrics {
    grid-template-columns: 1fr;
    justify-items: end;
  }
  .partner-project-summary-metrics > span {
    display: none;
  }
  .partner-project-summary-metrics > strong {
    display: none;
  }
  .partner-otp-list { grid-template-columns: 1fr; }
  .partner-po-list { margin-inline: 0; overflow-x: visible; }
  .partner-po-row {
    width: 100%;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.85fr));
    gap: 5px;
  }
  .partner-po-row > :first-child {
    justify-self: start;
    text-align: left !important;
  }
  .partner-amount-full { display: none; }
  .partner-amount-compact { display: inline; }

  .project-purchase-orders-panel { padding: 14px; }
  .project-purchase-orders-panel { max-height: 520px; }
  .project-purchase-orders-table { max-height: 420px; overflow: auto; }
  .project-purchase-order-row { grid-template-columns: minmax(190px, 1fr) minmax(90px, .6fr) minmax(150px, .9fr) repeat(3, minmax(72px, .8fr)) minmax(110px, .8fr); gap: 6px; min-width: 820px; }
  .project-purchase-order-row > :nth-child(3),
  .project-purchase-order-row > :nth-child(7) { display: none; }
  .project-purchase-order-row.is-header { grid-template-columns: minmax(190px, 1fr) minmax(90px, .6fr) minmax(150px, .9fr) repeat(3, minmax(72px, .8fr)) minmax(110px, .8fr); }
  .project-purchase-order-modal-summary { grid-template-columns: 1fr; }
  .project-purchase-order-line { grid-template-columns: minmax(0, 1fr) minmax(90px, 1fr) repeat(3, minmax(70px, 0.8fr)); gap: 6px; font-size: 0.72rem; }
}

@media (max-width: 1100px) {
  .project-purchase-order-row,
  .project-purchase-order-row.is-header {
    grid-template-columns: minmax(0, 1fr) repeat(4, minmax(72px, .8fr));
    min-width: 0;
    gap: 6px;
  }

  .project-purchase-order-row > :first-child {
    grid-column: 1 / -1;
  }

  .project-purchase-order-row > :nth-child(3),
  .project-purchase-order-row > :nth-child(7) {
    display: none;
  }

  .project-purchase-order-row.is-header {
    grid-template-columns: repeat(4, minmax(72px, .8fr));
  }

  .project-purchase-order-row.is-header > :first-child {
    display: none;
  }
}

@media (max-width: 760px) {
  .project-purchase-order-row,
  .project-purchase-order-row.is-header {
    grid-template-columns: repeat(4, minmax(54px, 1fr));
    gap: 3px;
    padding-right: 8px;
    font-size: .68rem;
  }

  .project-purchase-order-row:not(.is-header) {
    grid-template-columns: repeat(4, minmax(54px, .72fr));
  }

  .project-purchase-order-row > span,
  .project-purchase-order-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-purchase-order-row > :not(:first-child) {
    text-align: right;
  }
}

