:root {
  --navy-950: #06182c;
  --navy-900: #08213b;
  --navy-800: #0d2d4c;
  --ink: #10233f;
  --muted: #66758b;
  --line: #dfe6ee;
  --line-soft: #eaf0f5;
  --page: #f3f7fa;
  --surface: #ffffff;
  --teal: #00a99d;
  --teal-dark: #007c77;
  --teal-soft: #e1f7f4;
  --blue: #296df1;
  --green: #18ad5c;
  --green-soft: #e4f7eb;
  --amber: #f4ab18;
  --amber-soft: #fff3d7;
  --red: #ea4435;
  --red-soft: #ffebe8;
  --violet: #7255e9;
  --shadow: 0 10px 30px rgba(23, 46, 75, 0.07);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-site);
  font-size: 14px;
}

button,
select,
input {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 169, 157, 0.24);
  outline-offset: 2px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: 238px;
  flex-direction: column;
  padding: 26px 16px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 8%, rgba(0, 183, 174, 0.2), transparent 26%),
    linear-gradient(180deg, var(--navy-950), #052440 72%, #061a31);
  transition: transform 0.25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 24px;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  color: var(--navy-950);
  background: linear-gradient(145deg, #66e7d9, #00b8aa);
  box-shadow: 0 8px 20px rgba(0, 182, 170, 0.24);
  font-family: var(--font-site);
  font-size: 20px;
  font-weight: 800;
}

.brand-mark span,
.brand-mark i {
  font-style: normal;
  line-height: 1;
}

.brand-mark i {
  margin-left: -2px;
  color: #fff;
  font-size: 14px;
}

.brand strong {
  display: block;
  font-family: var(--font-site);
  font-size: 21px;
  letter-spacing: -0.7px;
}

.brand strong span {
  color: #21d1c3;
}

.brand small,
.sidebar-profile small {
  color: #9db0c3;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.main-nav {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 0 13px;
  border-radius: 10px;
  color: #dce6ee;
  text-decoration: none;
  transition: 0.18s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 169, 157, 0.75), rgba(0, 169, 157, 0.47));
  box-shadow: 0 10px 22px rgba(0, 169, 157, 0.18);
}

.nav-item svg {
  width: 19px;
  height: 19px;
}

.sidebar-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 8px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.18s ease;
}

.sidebar-profile:hover {
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-profile .avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: #eafffc;
  background: #11766f;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-profile strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.sidebar-profile svg {
  width: 15px;
  transform: rotate(90deg);
}

.sidebar-close,
.mobile-menu,
.sidebar-backdrop {
  display: none;
}

/* La navegación lateral está siempre disponible en escritorio. */
@media (min-width: 1101px) {
  .mobile-menu { display: none !important; }
}

.main-content {
  min-width: 0;
  margin-left: 238px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 93px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.title-group {
  display: flex;
  min-width: 250px;
  align-items: center;
  gap: 12px;
}

.title-group h1 {
  margin: 1px 0 3px;
  font-family: var(--font-site);
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.05;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.title-group > div > p:last-child {
  margin: 0;
  color: var(--muted);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.period-control,
.date-control,
.date-range-control {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 16px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
}

.period-control span,
.date-control small,
.date-range-control > span:first-child {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.period-control select {
  min-width: 145px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.currency-control select {
  min-width: 78px;
}

.date-control {
  min-width: 165px;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.date-control input {
  width: 122px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: 0;
  font-size: 12px;
  font-weight: 700;
}

.date-range-control {
  min-width: 285px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.date-range-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-range-inputs input {
  width: 118px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: 0;
  font-size: 12px;
  font-weight: 700;
}

.date-range-inputs i {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.export-button-disabled,
.export-button-disabled:disabled {
  cursor: not-allowed;
  color: #7b8798;
  border-color: var(--line);
  background: #eef2f5;
  box-shadow: none;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font-weight: 700;
}

.primary-button {
  padding: 0 17px;
  border: 1px solid var(--navy-950);
  color: #fff;
  background: var(--navy-950);
  box-shadow: 0 8px 18px rgba(6, 24, 44, 0.14);
}

.primary-button:hover {
  background: #0d3154;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary-button {
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  color: inherit;
  background: transparent;
}

.notification-button {
  position: relative;
  color: var(--navy-900);
}

.read-only-badge,
.data-mode-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #cdebe8;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.data-mode-badge {
  border-color: #dce6f0;
  color: #52627a;
  background: #f4f7fa;
}

.data-mode-badge.api {
  border-color: #cdebe8;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.notification-button span {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 9px;
  font-weight: 800;
}

.notification-button span:empty,
.notification-button span[data-empty="true"] {
  display: none;
}

.modal-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.activity-list {
  display: grid;
  gap: 9px;
  max-height: min(60vh, 510px);
  overflow: auto;
  padding: 2px;
}

.activity-entry {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #fff;
}

.activity-entry-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 15px;
  font-weight: 800;
}

.activity-entry strong,
.activity-entry span,
.activity-entry small {
  display: block;
}

.activity-entry strong { font-size: 12px; }
.activity-entry span { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.activity-entry small { margin-top: 5px; color: #7d8ba0; font-size: 10px; }

.activity-empty {
  margin: 0;
  padding: 22px 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  align-items: end;
  gap: 13px;
  padding: 14px 26px 15px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.filters .secondary-button {
  min-width: 118px;
}

.filters label > span {
  display: block;
  margin-bottom: 6px;
  color: #53657d;
  font-size: 10px;
  font-weight: 700;
}

.filters select {
  width: 100%;
  min-height: 40px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.dashboard-body {
  display: grid;
  gap: 14px;
  padding: 15px 16px 28px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(165px, 1fr));
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.kpi-card {
  min-width: 165px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(21, 43, 71, 0.035);
}

.kpi-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.kpi-top > div {
  min-width: 0;
}

.metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
}

.metric-icon svg {
  width: 18px;
  height: 18px;
}

.metric-icon.teal { color: var(--teal-dark); background: var(--teal-soft); }
.metric-icon.blue { color: var(--blue); background: #eaf1ff; }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-icon.amber { color: #db8c00; background: var(--amber-soft); }
.metric-icon.red { color: var(--red); background: var(--red-soft); }
.metric-icon.violet { color: var(--violet); background: #eeeafd; }

.kpi-card h3 {
  min-height: 24px;
  margin: 2px 0 4px;
  color: #506078;
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.kpi-value {
  display: block;
  margin: 0 0 5px;
  font-family: var(--font-site);
  font-size: clamp(17px, 1.15vw, 21px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.05;
  white-space: nowrap;
}

.kpi-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
}

.kpi-note strong.good { color: var(--green); }
.kpi-note strong.bad { color: var(--red); }

.sparkline {
  width: 100%;
  height: 22px;
}

.dashboard-grid {
  display: grid;
  gap: 12px;
}

.primary-grid {
  grid-template-columns: minmax(250px, 0.8fr) minmax(390px, 1.35fr) minmax(470px, 1.7fr);
}

.secondary-grid {
  grid-template-columns: 1.75fr 1fr;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-heading h2 {
  margin: 3px 0 0;
  font-family: var(--font-site);
  font-size: 14px;
  letter-spacing: -0.25px;
  text-transform: uppercase;
}

.more-button {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: #f5f8fa;
  font-weight: 700;
}

.panel-badge {
  padding: 5px 8px;
  border-radius: 20px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-badge.neutral {
  color: #54657d;
  background: #f1f4f7;
}

.status-content {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 13px;
  min-height: 270px;
  padding: 16px;
}

.donut-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.donut {
  position: relative;
  display: grid;
  width: 158px;
  height: 158px;
  place-items: center;
  border-radius: 50%;
  background: #eff3f6;
  box-shadow: inset 0 0 0 1px #e7edf3;
}

.donut > div {
  position: relative;
  z-index: 1;
  display: grid;
  width: 102px;
  height: 102px;
  place-content: center;
  border-radius: 50%;
  background: #fff;
  text-align: center;
}

.donut svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-segment {
  cursor: pointer;
  transition: opacity .18s ease, filter .18s ease;
}

.donut-segment:hover,
.donut-segment:focus {
  filter: brightness(1.05);
  opacity: .78;
  outline: none;
}

.status-tooltip {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 190px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy-900);
  box-shadow: 0 8px 18px rgba(8, 33, 59, .2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .16s ease, transform .16s ease;
}

.status-tooltip.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.donut strong,
.donut span {
  display: block;
}

.donut strong {
  font-family: var(--font-site);
  font-size: 25px;
}

.donut span {
  color: var(--muted);
  font-size: 9px;
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 7px;
}

.legend-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #f9fbfd;
  color: #44566f;
  font-size: 10px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.legend-row:hover { border-color: #a8dcd7; background: #f1fbfa; }

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-row strong {
  grid-column: 2;
  color: var(--ink);
}

.trend-charts {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 330px;
  padding: 15px 18px 16px;
}

.performance-metrics {
  display: grid;
  grid-template-columns: 130px 130px 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 11px;
}

.performance-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 7px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #f9fbfd;
}

.performance-metric > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.performance-metric.spi > span { background: #008d87; }
.performance-metric.cpi > span { background: #5dab16; }

.performance-metric strong {
  font-family: var(--font-site);
  font-size: 18px;
}

.performance-metric small {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.performance-metrics p {
  align-self: center;
  margin: 0;
  padding: 0 10px;
  color: #54657c;
  font-size: 11px;
  line-height: 1.45;
}

.performance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 4px 3px;
  color: #596a82;
  font-size: 10px;
  font-weight: 700;
}

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

.performance-line {
  width: 19px;
  height: 3px;
  border-radius: 3px;
}

.performance-line.spi { background: #008d87; }
.performance-line.cpi { background: #5dab16; }

.chart-canvas {
  width: 100%;
  min-height: 220px;
}

.performance-canvas { min-height: 220px; }

.performance-canvas.short-range {
  min-height: 132px;
}

.performance-short-state {
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(260px, 1.2fr);
  gap: 24px;
  align-items: center;
  min-height: 128px;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(90deg, #f8fbfc, #fff);
}

.performance-short-copy strong,
.performance-short-copy span {
  display: block;
}

.performance-short-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.performance-short-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.performance-short-track {
  position: relative;
  height: 64px;
}

.performance-short-line {
  position: absolute;
  top: 24px;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #008d87, #5dab16);
}

.performance-short-point {
  position: absolute;
  top: 11px;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: #4c5d74;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.performance-short-point.start { left: 16px; }
.performance-short-point.end { right: 16px; }

.performance-short-point i {
  display: block;
  width: 26px;
  height: 26px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--teal-dark);
  box-shadow: 0 0 0 2px #008d87, 0 3px 8px rgba(16, 35, 63, .15);
}

.performance-short-point.end i {
  background: #5dab16;
  box-shadow: 0 0 0 2px #5dab16, 0 3px 8px rgba(16, 35, 63, .15);
}

.performance-short-point:hover i,
.performance-short-point:focus i { transform: scale(1.08); }

.chart-canvas svg {
  width: 100%;
  height: 220px;
  overflow: visible;
}

.chart-grid-line {
  stroke: #e9eef3;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.chart-axis-label {
  fill: #8290a3;
  font-family: var(--font-site);
}

.chart-y-label {
  fill: #52647c;
  font-size: 12px;
  font-weight: 700;
}

.chart-x-label {
  fill: #60718a;
  font-size: 11px;
  font-weight: 700;
}

.chart-hotspot {
  cursor: pointer;
  transition: r .16s ease;
}

.chart-hotspot:hover,
.chart-hotspot:focus { r: 6px; outline: none; }

.timeline {
  min-height: 250px;
  padding: 15px 16px 13px;
  overflow-x: auto;
}

.portfolio-gantt {
  min-width: 720px;
}

.portfolio-gantt-header,
.portfolio-gantt-row {
  display: grid;
  grid-template-columns: 155px minmax(530px, 1fr);
}

.portfolio-gantt-header {
  min-height: 30px;
  color: #728198;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.portfolio-gantt-header > span {
  padding: 5px 8px 0 0;
}

.portfolio-timescale,
.portfolio-track {
  position: relative;
  background-image: linear-gradient(to right, #edf1f5 1px, transparent 1px);
  background-size: 16.66% 100%;
}

.portfolio-timescale {
  border-bottom: 1px solid var(--line-soft);
}

.portfolio-timescale span {
  position: absolute;
  top: 4px;
  bottom: 0;
  overflow: hidden;
  padding-left: 6px;
  border-left: 1px solid #edf1f5;
  color: #75849a;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-gantt-row {
  min-height: 34px;
}

.portfolio-gantt-row .timeline-project {
  padding-right: 9px;
  border-bottom: 1px solid #f0f3f6;
}

.portfolio-track {
  min-height: 34px;
  border-bottom: 1px solid #f0f3f6;
}

.portfolio-project-bar {
  position: absolute;
  top: 12px;
  height: 10px;
  min-width: 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(18, 48, 76, .14);
}

.portfolio-project-bar::after {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 6px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.milestone-diamond {
  position: absolute;
  z-index: 3;
  top: 9px;
  width: 13px;
  height: 13px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(18, 48, 76, .18);
  cursor: pointer;
  transform: translateX(-50%) rotate(45deg);
}

.milestone-diamond:hover,
.milestone-diamond:focus {
  filter: brightness(1.08);
  outline: 2px solid rgba(0, 169, 157, .3);
  outline-offset: 2px;
}

.timeline-grid {
  display: grid;
  min-width: 505px;
  grid-template-columns: 132px repeat(7, minmax(48px, 1fr));
  grid-auto-rows: 29px;
  align-items: center;
  font-size: 9px;
}

.milestone-grid {
  min-width: 760px;
}

.timeline-grid > div {
  position: relative;
  min-width: 0;
}

.timeline-month {
  align-self: stretch;
  padding-top: 4px;
  border-left: 1px solid #edf1f4;
  color: #7a899d;
  text-align: center;
}

.timeline-project {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #344963;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-project small,
.project-cell small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.timeline-project .legend-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
}

.timeline-cell {
  align-self: stretch;
  border-top: 1px solid #f0f3f6;
  border-left: 1px solid #edf1f4;
}

.timeline-bar {
  z-index: 2;
  height: 8px;
  align-self: center;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(18, 48, 76, 0.13);
}

.project-plan-bar {
  z-index: 1;
  height: 10px;
  opacity: 0.28;
}

.timeline-bar::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.milestone-marker {
  z-index: 3;
  display: flex;
  max-width: 96%;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  align-self: center;
  padding: 3px 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(16, 35, 63, 0.08);
}

.milestone-marker span {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
}

.milestone-marker b {
  overflow: hidden;
  color: #344963;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-gantt-card {
  overflow-x: auto;
}

.project-gantt-grid {
  display: grid;
  min-width: 720px;
  grid-auto-rows: 36px;
  align-items: center;
  font-size: 9px;
}

.milestone-marker.full-label {
  justify-self: start;
}

.gantt-activity-name {
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
  padding-right: 8px;
}

.gantt-activity-name .legend-dot {
  display: none;
}

.gantt-activity-bar {
  position: relative;
  z-index: 2;
  height: 14px;
  align-self: center;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8f2;
  box-shadow: inset 0 0 0 1px rgba(16, 35, 63, 0.05);
}

.gantt-activity-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.gantt-activity-bar b {
  position: relative;
  z-index: 1;
  display: block;
  padding-right: 7px;
  color: #fff;
  font-size: 8px;
  line-height: 14px;
  text-align: right;
  text-shadow: 0 1px 2px rgba(6, 24, 44, 0.35);
}

.compact-heading {
  min-height: 56px;
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
}

.finance-card {
  position: relative;
  min-height: 110px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #fafdff);
}

.finance-card h3 {
  max-width: 75%;
  min-height: 25px;
  margin: 0 0 8px;
  color: #52627a;
  font-size: 9px;
  line-height: 1.35;
  text-transform: uppercase;
}

.finance-card strong {
  display: block;
  font-family: var(--font-site);
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.08;
  white-space: nowrap;
}

.finance-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.finance-card svg {
  position: absolute;
  right: 11px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  opacity: 0.8;
}

.alerts-list {
  display: grid;
  gap: 7px;
  max-height: 146px;
  padding: 11px 14px 14px;
  overflow: auto;
}

.alert-count {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 11px;
  font-weight: 800;
}

.alert-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 6px 7px;
  border-radius: 8px;
  background: #fbfcfd;
  font-size: 10px;
}

.alert-item .legend-dot {
  width: 7px;
  height: 7px;
}

.alert-item strong {
  display: block;
  margin-bottom: 1px;
  font-size: 10px;
}

.alert-item span:not(.legend-dot) {
  color: var(--muted);
}

.alert-item b {
  color: var(--red);
  font-family: var(--font-site);
}

.portfolio-panel {
  overflow: hidden;
}

.portfolio-heading {
  min-height: 64px;
}

.table-search {
  display: flex;
  width: min(270px, 40vw);
  min-height: 37px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.table-search svg {
  width: 16px;
}

.table-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}

th {
  color: #627187;
  background: #fbfcfd;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  color: #344963;
  font-size: 10px;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: #f7fbfc;
}

tbody tr.clickable-row {
  cursor: pointer;
}

.project-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.project-badge {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: var(--navy-900);
  background: #eaf1f6;
  font-size: 9px;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  min-width: 65px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
}

.status-pill.on-time { color: #08773e; background: var(--green-soft); }
.status-pill.at-risk { color: #9b6500; background: var(--amber-soft); }
.status-pill.critical { color: #b3281f; background: var(--red-soft); }
.status-pill.finished { color: #56647a; background: #edf1f5; }

.table-action {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #53647c;
  background: #fff;
}

.table-action svg {
  width: 14px;
  height: 14px;
}

.table-footer {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 10px;
}

.pagination {
  display: flex;
  gap: 4px;
}

.pagination button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}

.pagination button.active {
  border-color: var(--navy-950);
  color: #fff;
  background: var(--navy-950);
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  padding: 13px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--navy-950);
  box-shadow: 0 12px 30px rgba(4, 20, 38, 0.28);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.info-bubble {
  position: fixed;
  z-index: 120;
  max-width: 330px;
  padding: 16px 22px 16px 26px;
  border: 1px solid rgba(176, 225, 239, .2);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, rgba(35, 54, 71, .98), rgba(19, 37, 54, .98));
  box-shadow: 0 16px 38px rgba(4, 20, 38, .32);
  font-size: 13px;
  line-height: 1.42;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: 0.16s ease;
}

.info-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.info-bubble-close {
  position: absolute;
  top: -11px;
  left: -11px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: #fff;
  background: #35414c;
  box-shadow: 0 5px 12px rgba(4,20,38,.28);
  cursor: pointer;
  font-size: 0;
  transition: color .16s ease, background .16s ease;
}

.info-bubble-close::before,
.info-bubble-close::after { position: absolute; top: 14px; left: 8px; width: 12px; height: 1.5px; border-radius: 99px; background: currentColor; content: ''; }
.info-bubble-close::before { transform: rotate(45deg); }
.info-bubble-close::after { transform: rotate(-45deg); }

.info-bubble-close:hover,
.info-bubble-close:focus-visible { border-color: #fff; background: #008ed8; outline: none; }
.info-bubble-content { display:grid; gap:4px; }
.info-bubble-content strong { color:#fff; font-size:14px; letter-spacing:.01em; }
.info-bubble-content span { display:block; color:#d3e0e9; }

.empty-state {
  padding: 25px;
  color: var(--muted);
  text-align: center;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

.management-view {
  min-height: calc(100vh - 93px);
  padding: 25px 26px 36px;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 169, 157, 0.07), transparent 25%),
    var(--page);
}

.management-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 19px;
}

.management-header h2 {
  margin: 4px 0 5px;
  font-family: var(--font-site);
  font-size: 25px;
  letter-spacing: -0.8px;
  text-transform: uppercase;
}

.management-header p:last-child {
  margin: 0;
  color: var(--muted);
}

.management-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}

.add-guide-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 15px;
  border-color: #cdebe8;
  background:
    linear-gradient(135deg, rgba(0, 169, 157, 0.1), transparent 42%),
    #ffffff;
}

.add-guide-card h3 {
  margin: 3px 0 4px;
  font-size: 15px;
  text-transform: uppercase;
}

.add-guide-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.management-stat {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}

.management-stat strong,
.management-stat span {
  display: block;
}

.management-stat strong {
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.08;
  white-space: nowrap;
}

.management-stat span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.management-panel {
  overflow: hidden;
}

.module-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

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

.report-card-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.module-card {
  min-height: 122px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.module-card h3 {
  margin: 12px 0 5px;
  font-size: 13px;
  text-transform: uppercase;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.module-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.management-table {
  min-width: 1180px;
}

.notice-table {
  min-width: 1240px;
  border-collapse: collapse;
}

.notice-table thead {
  display: table-header-group;
}

.notice-list-row { cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.notice-list-row:hover { background: #f2f9ff; box-shadow: inset 3px 0 0 var(--blue); }
.notice-list-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.notice-list-row td strong,
.notice-list-row td small { display: block; }
.notice-list-row td strong { color: var(--ink); font-size: 13px; }
.notice-list-row td small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.notice-table td { vertical-align: middle; }
.notice-table td:nth-child(6) { min-width: 116px; }
.notice-table td:nth-child(7) { min-width: 215px; }
.notice-table td:last-child { min-width: 165px; }
.notice-table-actions { display: flex; min-width: 160px; align-items: center; gap: 6px; flex-wrap: nowrap; }
.management-panel:hover { transform: none; }
.notice-table-actions .row-action,
.notice-table-actions .row-action:hover,
.notice-table-actions .row-action:focus-visible { transform: none !important; transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.notice-table-actions .row-action:hover { box-shadow: 0 3px 8px rgba(7, 55, 78, .08); }

.notice-card-row:hover {
  background: transparent;
}

.notice-card-row td {
  padding: 0;
  border: 0;
  white-space: normal;
}

.notice-preview-card {
  overflow: hidden;
  border: 1px solid #cfe4e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(7, 28, 49, 0.1);
  cursor: pointer;
}

.project-detail-grid:has(.notice-detail-report) { grid-template-columns: 1fr; }
.notice-detail-report { padding: 0; overflow: hidden; border-color: #c7dde2; }
.notice-detail-side { display: grid; grid-template-columns: minmax(0, 1fr); }
.notice-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-action { color: #b3281f; border-color: #f2c6c1; background: #fff8f7; }
.danger-action:hover { color: #8e2018; border-color: #e89f97; background: #fff0ee; }

.notice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  min-height: 196px;
  color: #fff;
  background: radial-gradient(circle at 84% 15%, rgba(0, 241, 223, .18), transparent 28%), linear-gradient(126deg, #063d48 0%, #00756f 56%, #008f88 100%);
}

.notice-hero-copy {
  padding: 24px 26px 20px;
}

.notice-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: none;
}

.notice-hero h3 {
  max-width: 560px;
  margin: 0;
  font-family: var(--font-site);
  font-size: clamp(25px, 2.6vw, 40px);
  letter-spacing: -1.4px;
  line-height: 0.98;
  text-transform: uppercase;
}

.notice-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.5;
}

.notice-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.notice-hero-meta strong,
.notice-hero-meta span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(2, 22, 35, 0.24);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.notice-visual {
  position: relative;
  display: grid;
  min-height: 196px;
  align-items: start;
  padding: 22px;
  overflow: hidden;
}

.notice-visual::before {
  position: absolute;
  right: -24px;
  bottom: -70px;
  width: 310px;
  height: 245px;
  border: 1px solid rgba(0, 241, 223, .28);
  border-radius: 50%;
  background: transparent;
  transform: rotate(-18deg);
  content: "";
}

.notice-brand-mark {
  position: absolute;
  top: 20px;
  right: 22px;
  display: flex;
  align-items: baseline;
  gap: 1px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.notice-brand-mark span {
  color: #dff6f4;
}

.notice-brand-mark b {
  color: #00f1df;
}

.notice-technical-label { position: relative; z-index: 1; color: #a5fff7; font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.notice-hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: 100%; margin-top: 16px; }
.notice-hero-stats div { min-height: 60px; padding: 9px; border: 1px solid rgba(213,255,251,.22); border-radius: 10px; background: rgba(1,35,42,.22); }
.notice-hero-stats span, .notice-hero-stats strong { display: block; }
.notice-hero-stats span { color: rgba(235,255,253,.62); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.notice-hero-stats strong { margin-top: 5px; color: #fff; font-size: 12px; line-height: 1.05; }

.notice-render-block {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  justify-self: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  background: rgba(2, 22, 35, 0.33);
  box-shadow: 0 18px 38px rgba(4, 20, 34, 0.26);
  backdrop-filter: blur(8px);
}

.notice-render-block small,
.notice-render-block span,
.notice-render-block strong {
  display: block;
}

.notice-render-block small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-render-block strong {
  margin-top: 7px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.notice-render-block span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 800;
}

.notice-status {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-status.review { color: #9a6700; }
.notice-status.draft { color: #52627a; }
.notice-status.rejected { color: var(--red); }

.notice-table .notice-status {
  position: static;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  white-space: nowrap;
}

.notice-responsibles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #9aa5aa;
}

.notice-responsibles div {
  padding: 12px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.notice-responsibles span,
.notice-responsibles strong {
  display: block;
}

.notice-responsibles span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-responsibles strong {
  margin-top: 4px;
  font-size: 11px;
}

.notice-body-grid {
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(235px, .78fr) minmax(360px, 1.4fr);
  gap: 14px;
  padding: 16px;
  background: #f7fafb;
}

.notice-cost-box,
.notice-scope-box,
.notice-plan-box {
  min-height: 252px;
  padding: 14px;
  border: 1px solid #dbe8eb;
  border-radius: 14px;
  background: #fff;
}

.notice-plan-box { border-color: #bcdce0; background: linear-gradient(180deg, #fff, #f9fdfd); }
.notice-plan-box h4::before, .notice-cost-box h4::before, .notice-scope-box h4::before { display: inline-block; width: 5px; height: 12px; margin-right: 7px; border-radius: 4px; background: #00a99d; content: ""; vertical-align: -2px; }
.notice-plan-box h4::before { background: #e5484d; }

.notice-cost-box h4,
.notice-scope-box h4,
.notice-plan-box h4,
.notice-bottom-grid h4 {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.notice-cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f4;
}

.notice-cost-row:first-of-type { margin-top: 3px; padding: 11px 9px; border-radius: 9px; background: #eaf8f7; }
.notice-cost-row:first-of-type strong { color: #00766f; font-size: 14px; }

.notice-cost-row:last-child {
  border-bottom: 0;
}

.notice-cost-row span,
.notice-cost-row strong {
  display: block;
}

.notice-cost-row span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.notice-cost-row strong {
  color: var(--ink);
  font-size: 11px;
  text-align: right;
}

.notice-scope-box p {
  margin: 0;
  color: #42536a;
  font-size: 10px;
  line-height: 1.5;
}

.notice-equipment-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.notice-equipment-list span {
  padding: 8px;
  border-radius: 9px;
  color: #53657d;
  background: #f4f8fa;
  font-size: 9px;
  font-weight: 700;
}

.notice-equipment-list b {
  color: var(--ink);
}

.notice-mini-gantt {
  position: relative;
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.notice-gantt-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-gantt-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 8px;
}

.notice-gantt-row > span {
  overflow: hidden;
  color: #4f6077;
  font-size: 8px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.notice-gantt-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #e7eef3;
}

.notice-gantt-track i {
  position: absolute;
  inset: 2px auto 2px 0;
  min-width: 12px;
  overflow: hidden;
  border-radius: 999px;
}

.notice-gantt-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.34);
}

.notice-gantt-milestones {
  position: relative;
  height: 18px;
  margin-left: 94px;
  border-top: 1px dashed #cad8df;
}

.notice-gantt-milestones i {
  position: absolute;
  top: -5px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(16, 35, 63, 0.18);
}

.notice-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(300px, 1.1fr);
  gap: 14px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 94% 0%, rgba(0, 241, 223, 0.18), transparent 25%),
    #005f5b;
}

.notice-bottom-grid h4 {
  color: rgba(255, 255, 255, 0.9);
}

.notice-bottom-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-bottom-grid li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.notice-bottom-grid li span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-bottom-grid li strong {
  color: #fff;
  font-size: 9px;
  line-height: 1.25;
}

.notice-cashflow-bars {
  display: flex;
  height: 92px;
  align-items: end;
  gap: 8px;
  padding: 8px 8px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.notice-cashflow-chart { min-width: 0; padding: 10px 10px 5px; border-radius: 12px; background: rgba(255,255,255,.07); }
.cashflow-chart-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 3px; }.cashflow-chart-title span { color: rgba(255,255,255,.65); font-size: 9px; font-weight: 800; text-transform: uppercase; }.cashflow-chart-title strong { color: #b7fff8; font-size: 11px; }
.notice-cashflow-chart svg { display: block; width: 100%; overflow: visible; }
.cashflow-grid line { stroke: rgba(255,255,255,.14); stroke-dasharray: 2 4; }.cashflow-grid text, .cashflow-labels text { fill: rgba(255,255,255,.62); font-size: 8px; font-weight: 700; }
.cashflow-area { fill: url(#cashflow-gradient); fill: rgba(0,241,223,.12); }
.cashflow-line { fill: none; stroke: #00f1df; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(0,241,223,.25)); }
.cashflow-point circle { fill: #00f1df; stroke: #005f5b; stroke-width: 2; cursor: pointer; }.cashflow-point text { fill: #fff; font-size: 8px; font-weight: 800; opacity: 0; transition: opacity .15s ease; }.cashflow-point:hover text { opacity: 1; }
.notice-cashflow-empty { padding: 24px 12px; border-radius: 10px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); font-size: 11px; }

.notice-cashflow-bars span {
  position: relative;
  display: block;
  flex: 1;
  min-height: 14px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #00f1df, #00a99d);
}

.notice-cashflow-bars b {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 4px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 7px;
  transform: translateX(50%);
  white-space: nowrap;
}

.notice-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #e6eef0;
  background: #fff;
}

.notice-card-actions > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.notice-detail-shell .notice-preview-card {
  border: 0;
  box-shadow: none;
  cursor: default;
}

.notice-wbs-detail { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.notice-wbs-detail .table-wrap { border: 1px solid var(--line); border-radius: 12px; }
.small-button { min-height: 34px; padding: 0 13px; font-size: 12px; }

.notice-detail-shell .notice-card-actions {
  display: none;
}

.compact-table {
  min-width: 760px;
}

.compact-table td,
.compact-table th {
  font-size: 10px;
}

.row-actions {
  display: flex;
  gap: 6px;
}

.row-action {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #4f6077;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
}

.row-action:hover {
  color: var(--teal-dark);
  border-color: #a8ddd8;
  background: #f0fbfa;
}

.row-action:disabled,
.table-action:disabled {
  cursor: default;
  opacity: 0.65;
}

.row-action:disabled:hover {
  color: #4f6077;
  border-color: var(--line);
  background: #fff;
}

.row-action svg {
  width: 13px;
  height: 13px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.master-access-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(170px, .8fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 230, 255, .06), rgba(255,255,255,.9));
}

.master-access-form label { display: grid; gap: 5px; }
.master-access-form label span { color: var(--muted); font-size: 10px; font-weight: 800; }
.master-access-form input,
.master-access-form select { min-height: 38px; }
.master-access-form .primary-button { min-height: 38px; white-space: nowrap; }

.cell-note { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }

.master-activity { display: grid; gap: 8px; padding: 10px 11px 4px; }
.master-activity article { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.master-activity article > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--teal-dark); background: #e7faf8; font-size: 8px; font-weight: 900; }
.master-activity strong,
.master-activity small,
.master-activity time { display: block; }
.master-activity strong { color: var(--ink); font-size: 11px; }
.master-activity small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.master-activity time { margin-top: 3px; color: var(--muted); font-size: 8px; }
.master-role-note { display: grid; gap: 4px; margin: 10px 11px 12px; padding: 11px; border-radius: 10px; color: var(--ink); background: #f4fbff; }
.master-role-note strong { font-size: 10px; }
.master-role-note span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.master-roles { border-top: 1px solid var(--line-soft); }

.role-guide {
  display: grid;
  gap: 3px;
  padding: 11px;
}

.role-guide > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 9px;
  border-radius: 10px;
}

.role-guide > div:hover {
  background: #f6fafb;
}

.role-guide p,
.role-guide strong,
.role-guide small {
  display: block;
  margin: 0;
}

.role-guide strong {
  margin-bottom: 2px;
  font-size: 11px;
}

.role-guide small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.role-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
}

.role-icon.admin { color: var(--violet); background: #eeeafd; }
.role-icon.pmo { color: var(--teal-dark); background: var(--teal-soft); }
.role-icon.manager { color: var(--blue); background: #eaf1ff; }
.role-icon.viewer { color: #a36d00; background: var(--amber-soft); }

.user-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-cell strong,
.user-cell small {
  display: block;
}

.user-cell small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.mini-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-800), var(--teal-dark));
  font-size: 9px;
  font-weight: 800;
}

.role-pill,
.active-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
}

.role-pill { color: #31526d; background: #edf4f7; }
.active-pill.active { color: #08773e; background: var(--green-soft); }
.active-pill.inactive { color: #7a899d; background: #edf1f5; }

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 20, 38, 0.58);
  backdrop-filter: blur(5px);
}

.modal-backdrop.open {
  display: flex;
}

.app-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(3, 18, 34, 0.35);
  animation: modal-in 0.18s ease-out;
}

.compact-modal {
  width: min(600px, 100%);
}

.session-modal {
  width: min(520px, 100%);
}

.project-detail-modal {
  width: min(1180px, 100%);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-header h2 {
  margin: 3px 0 0;
  font-size: 18px;
  text-transform: uppercase;
}

.modal-close {
  border-radius: 9px;
  color: var(--muted);
  background: #f3f6f8;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.detail-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 19px 20px 21px;
}

.form-grid label > span {
  display: block;
  margin-bottom: 6px;
  color: #52627a;
  font-size: 10px;
  font-weight: 800;
}
.project-hybrid-phases { margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.project-hybrid-phases legend { padding: 0 5px; color: var(--ink); font-size: 12px; font-weight: 800; }
.project-hybrid-phases > span { display:block; margin-bottom:10px; color:var(--muted); font-size:11px; }
.project-hybrid-phases > div { display:flex; flex-wrap:wrap; gap:8px; }
.project-hybrid-phases label { display:flex; align-items:center; gap:6px; padding:7px 9px; border-radius:8px; background:#f4f8fb; font-size:11px; font-weight:700; }

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

.form-wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 5px;
}

.evm-box {
  padding: 14px;
  border: 1px solid #cdebe8;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(0, 169, 157, 0.08), rgba(41, 109, 241, 0.04));
}

.evm-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.evm-heading h3 {
  margin: 3px 0 0;
  font-size: 14px;
  text-transform: uppercase;
}

.evm-heading small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.evm-grid {
  padding: 0;
}

.evm-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 11px;
}

.evm-results div {
  padding: 10px;
  border: 1px solid rgba(0, 169, 157, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.evm-results span,
.evm-results strong {
  display: block;
}

.evm-results span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.evm-results strong {
  margin-top: 4px;
  font-size: 17px;
}

.project-detail-content {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f6f9fb;
}

.project-phase-nav {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.project-phase-nav button {
  display: inline-flex;
  flex: 1 0 max-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: 800 12px var(--font-ui);
  cursor: pointer;
}

.project-phase-nav button span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #6d7d91;
  background: #eef3f7;
  font-size: 9px;
}

.project-phase-nav button.active {
  color: #0b2d4d;
  background: #e9f8fb;
  box-shadow: inset 0 0 0 1px rgba(0, 188, 212, .24);
}

.project-phase-nav button.active span { color: #fff; background: #008ed8; }
.project-phase-content { display: grid; gap: 14px; }
.project-detail-modal[data-project-phase] .project-phase-content { display: none; }
.project-detail-modal[data-project-phase="overview"] [data-project-phase-content="overview"],
.project-detail-modal[data-project-phase="planning"] [data-project-phase-content="planning"],
.project-detail-modal[data-project-phase="execution"] [data-project-phase-content="execution"],
.project-detail-modal[data-project-phase="control"] [data-project-phase-content="control"] { display: grid; }

.project-phase-heading { padding: 4px 3px 0; }
.project-phase-heading p { margin: 0 0 3px; }
.project-phase-heading h3 { margin: 0; color: var(--ink); font: 800 18px/1.2 var(--font-ui); letter-spacing: -.35px; }
.project-phase-heading span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Restauración temporal de la ficha anterior mientras se rediseña la plataforma completa. */
.project-detail-modal { border: 0; border-radius: 16px; background: #fff; }
.project-detail-modal > .modal-header { min-height: 0; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); color: inherit; background: #fff; }
.project-detail-modal > .modal-header::after { display: none; }
.project-detail-modal > .modal-header .section-kicker { color: inherit; }
.project-detail-modal > .modal-header h2 { color: var(--ink); font-size: 18px; letter-spacing: normal; text-transform: uppercase; }
.project-detail-modal > .modal-header .detail-meta { color: var(--muted); }
.project-detail-modal > .modal-header .secondary-button { border-color: var(--line); color: var(--ink); background: #fff; }
.project-detail-modal > .modal-header .modal-close { color: var(--muted); background: #f3f6f8; }
.project-detail-content { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px; background: #f6f9fb; }
.project-phase-visible { display: grid !important; grid-column: auto; }
.project-detail-kpis { gap: 10px; }
.detail-kpi { min-height: 92px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.detail-kpi.good, .detail-kpi.warn, .detail-kpi.bad { background: #fff; }
.detail-card { border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }

/* Workspace de proyecto: lectura ejecutiva y navegación por fase. */
.project-detail-modal {
  overflow: hidden;
  border: 1px solid #d9e5ef;
  border-radius: 22px;
  background: #eef4f8;
}

.project-detail-modal > .modal-header {
  position: relative;
  z-index: 1;
  min-height: 108px;
  padding: 23px 26px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 77% 20%, rgba(0, 215, 233, .26), transparent 24%),
    linear-gradient(115deg, #061d35 0%, #0a3155 58%, #075e80 150%);
}

.project-detail-modal > .modal-header::after {
  position: absolute;
  top: -115px;
  right: 130px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(97, 234, 247, .22);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.project-detail-modal > .modal-header > * { position: relative; z-index: 1; }
.project-detail-modal > .modal-header .section-kicker { color: #63eaf7; }
.project-detail-modal > .modal-header h2 { max-width: 650px; color: #fff; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.7px; text-transform: none; }
.project-detail-modal > .modal-header .detail-meta { color: #b7cce0; }
.project-detail-modal > .modal-header .secondary-button { border-color: rgba(191, 231, 241, .35); color: #fff; background: rgba(255,255,255,.09); }
.project-detail-modal > .modal-header .modal-close { color: #fff; background: rgba(255,255,255,.12); }

.project-workspace-preview {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(420px, .9fr);
  gap: 24px;
  align-items: center;
  margin: 4px 0 16px;
  padding: 25px 28px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(23, 210, 225, .28), transparent 24%),
    linear-gradient(116deg, #061d35, #0a355b 62%, #087287 140%);
  box-shadow: 0 18px 32px rgba(8, 43, 72, .16);
}
.project-workspace-preview .section-kicker { color: #62eaf6; }
.workspace-preview-title { display: flex; align-items: center; gap: 10px; }
.workspace-preview-title span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(135, 233, 241, .42); border-radius: 11px; color: #77edf7; background: rgba(255,255,255,.08); font: 800 11px var(--font-ui); }
.workspace-preview-title h3 { margin: 4px 0; color: #fff; font: 800 clamp(23px, 2vw, 31px)/1.1 var(--font-ui); letter-spacing: -.8px; }
.workspace-preview-copy > p:last-of-type { margin: 6px 0 17px; color: #b5cede; font-size: 13px; }
.workspace-preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.workspace-preview-actions .primary-button { min-height: 40px; color: #07304a; background: #fff; box-shadow: none; }
.workspace-preview-actions .primary-button:hover { background: #dffafd; }
.workspace-preview-actions .status-pill { border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.1); }
.workspace-preview-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.workspace-preview-metrics > div { min-height: 86px; padding: 13px 14px; border: 1px solid rgba(172, 227, 237, .18); border-radius: 14px; background: rgba(1, 22, 41, .24); backdrop-filter: blur(8px); }
.workspace-preview-metrics span, .workspace-preview-metrics strong, .workspace-preview-metrics small { display: block; }
.workspace-preview-metrics span { color: #94b8cc; font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.workspace-preview-metrics strong { margin: 6px 0 3px; color: #fff; font-size: 20px; line-height: 1; }
.workspace-preview-metrics small { color: #c6d9e5; font-size: 10px; }

.project-detail-content {
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f3f8fb, #eef4f7);
}

.project-phase-nav {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 5px;
  padding: 7px;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: #092845;
  box-shadow: 0 16px 32px rgba(8, 37, 62, .15);
}

.project-phase-nav::before {
  padding: 9px 10px 7px;
  color: #83a8c2;
  content: "RECORRIDO DEL PROYECTO";
  font: 800 9px/1.2 var(--font-ui);
  letter-spacing: .8px;
}

.project-phase-nav button {
  justify-content: flex-start;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 10px;
  border-radius: 11px;
  color: #b8cada;
  text-align: left;
}

.project-phase-nav button:hover { color: #fff; background: rgba(255,255,255,.08); }
.project-phase-nav button span { color: #9cb6c9; background: rgba(255,255,255,.1); }
.project-phase-nav button.active { color: #06233d; background: #fff; box-shadow: 0 7px 18px rgba(0,0,0,.19); }
.project-phase-nav button.active span { background: #09b8d1; }

.project-phase-content { grid-column: 2; min-width: 0; }
.project-phase-heading { padding: 3px 5px 5px; }
.project-phase-heading h3 { font-size: 22px; letter-spacing: -.6px; }
.project-phase-heading span { max-width: 680px; }

.project-detail-kpis { gap: 12px; }
.detail-kpi { min-height: 108px; padding: 15px; border: 0; border-radius: 15px; box-shadow: 0 8px 20px rgba(20, 55, 82, .08); }
.detail-kpi span { color: #71859a; }
.detail-kpi strong { font-size: clamp(16px, 1.35vw, 24px); }
.detail-kpi.good { background: linear-gradient(145deg, #fff, #effcf6); }
.detail-kpi.warn { background: linear-gradient(145deg, #fff, #fff8e9); }
.detail-kpi.bad { background: linear-gradient(145deg, #fff, #fff1f0); }
.detail-card { border: 0; border-radius: 16px; box-shadow: 0 8px 22px rgba(20, 55, 82, .08); }
.detail-card .section-kicker { color: #078ba7; }

@media (max-width: 760px) {
  .project-workspace-preview { grid-template-columns: 1fr; gap: 18px; margin: 0 0 14px; padding: 21px 18px; border-radius: 17px; }
  .workspace-preview-title h3 { font-size: 24px; }
  .workspace-preview-metrics { gap: 7px; }
  .workspace-preview-metrics > div { min-height: 78px; padding: 11px; }
  .project-detail-modal { border-radius: 20px 20px 0 0; }
  .project-detail-modal > .modal-header { min-height: 96px; padding: 18px 17px; }
  .project-detail-modal > .modal-header::after { right: 46px; width: 170px; height: 170px; }
  .project-detail-modal > .modal-header h2 { max-width: 220px; font-size: 20px; }
  .project-detail-modal > .modal-header .detail-meta { max-width: 230px; line-height: 1.35; }
  .project-detail-modal .modal-header-actions .secondary-button { display: none; }
  .project-detail-content { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 12px; }
  .project-phase-nav { position: static; display: flex; gap: 5px; overflow-x: auto; padding: 6px; border-radius: 14px; }
  .project-phase-nav::before { display: none; }
  .project-phase-nav button { justify-content: center; min-width: 42px; min-height: 38px; padding: 0 11px; font-size: 0; }
  .project-phase-nav button span { width: 24px; height: 24px; font-size: 10px; }
  .project-phase-nav button.active { min-width: 116px; font-size: 11px; }
  .project-phase-content { grid-column: auto; }
  .project-phase-heading h3 { font-size: 19px; }
  .project-detail-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .detail-kpi { min-height: 93px; padding: 12px; }
  .detail-kpi strong { font-size: 18px; }
}

.project-detail-kpis {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
}

.detail-kpi {
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-kpi span,
.detail-kpi strong,
.detail-kpi small {
  display: block;
}

.detail-kpi span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-kpi strong {
  margin-top: 7px;
  color: var(--ink);
  font-size: clamp(15px, 1.1vw, 21px);
  line-height: 1.08;
  white-space: nowrap;
}

.detail-kpi small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.detail-kpi.good strong { color: var(--green); }
.detail-kpi.warn strong { color: #af7300; }
.detail-kpi.bad strong { color: var(--red); }

.project-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.detail-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 11px;
}

.detail-facts div {
  padding: 10px;
  border-radius: 11px;
  background: #f7fafc;
}

.detail-facts span,
.detail-facts strong {
  display: block;
}

.detail-facts span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-facts strong {
  margin-top: 4px;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.detail-alerts {
  display: grid;
  gap: 8px;
}

.detail-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 11px;
  background: #f8fafc;
}

.detail-alert strong,
.detail-alert span {
  display: block;
}

.detail-alert strong {
  font-size: 11px;
}

.detail-alert span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

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

.baseline-planning-box {
  padding: 18px;
  border: 1px solid #cce7ef;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4fbfd, #fff);
}

.baseline-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.curve-config-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #d9e5ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(12, 45, 71, .04);
}

.curve-config-card.financial-config { border-top: 3px solid #f4ab18; }
.curve-config-card.physical-config { border-top: 3px solid #0b84f3; }

.curve-config-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.financial-config .curve-config-kicker { color: #b66c00; }

.curve-config-card strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.curve-config-card > div:first-child small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
}

.curve-config-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.curve-config-fields .curve-type-field { grid-column: 1 / -1; }

.baseline-preview {
  min-height: 70px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #07324b;
  color: #fff;
}

.baseline-preview span,
.baseline-preview small {
  display: block;
}

.baseline-preview span { font-size: .78rem; opacity: .72; }
.baseline-preview strong { display: block; margin: 3px 0; font-size: 1rem; }
.baseline-preview small { color: #8ee7ec; }

.curve-config-card .baseline-preview {
  min-height: auto;
  padding: 10px 12px;
}

.baseline-curve-card { grid-column: 1 / -1; }

.baseline-compare-control {
  display: grid;
  gap: 4px;
  min-width: 170px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.baseline-compare-control select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  text-transform: none;
}

.curve-card {
  min-height: 310px;
}

.editable-curve { cursor: pointer; border-radius: 12px; }
.editable-curve:hover { background: rgba(11, 132, 243, .035); }
.editable-curve:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.inline-curve-editor { margin-top: 14px; }
.inline-curve-editor label { display: grid; gap: 6px; min-width: 0; font-size: 12px; }
.inline-curve-editor input, .inline-curve-editor select { width: 100%; min-width: 0; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
.inline-curve-editor small { color: var(--muted); }
.curve-editor-preview svg { width: 100%; height: 180px; }
.curve-edit-dialog { width: min(540px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #dce5ef; border-radius: 20px; color: #142b43; background: #fff; box-shadow: 0 24px 90px #09233f40; }
.curve-edit-dialog::backdrop { background: #081c3659; backdrop-filter: blur(3px); }
.curve-edit-dialog .inline-curve-editor { margin: 0; padding: 24px; border: 0; box-shadow: none; gap: 18px; }
.curve-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.curve-editor-heading h2 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.curve-edit-dialog .form-actions { margin: 0; }
.curve-edit-dialog .form-actions .primary-button { width: auto; min-width: 108px; padding: 11px 20px; font-size: 14px; color: #fff; }
.curve-edit-dialog .curve-editor-preview { aspect-ratio: 620 / 245; }
.curve-edit-dialog .curve-editor-preview svg { height: 100%; }
.curve-edit-dialog small { font-size: 12px; line-height: 1.5; }
.curve-type-help { position: relative; padding-right: 34px; }
.curve-help-toggle { position: absolute; right: 0; top: 29px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #b7cee4; background: #f0f7ff; color: #1865a3; cursor: pointer; }
.curve-help-bubble { position: absolute; z-index: 2; top: calc(100% + 9px); left: 0; right: 0; padding: 14px 16px; border-radius: 12px; background: #14344e; color: white; font-size: 13px; line-height: 1.55; box-shadow: 0 8px 24px #102d4533; }
.curve-help-bubble::before { content: ""; position: absolute; top: -6px; right: 16px; border: 6px solid transparent; border-top: 0; border-bottom-color: #14344e; }
.planned-series-chart { stroke: none; }
.planned-series-chart .chart-axis-label { stroke: none; fill: #60738a; font-family: var(--font-site); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.curve-grid .curve-card .compact-heading { padding-bottom: 12px; margin-bottom: 12px; }
.curve-grid .curve-legend { font-size: 12px; font-weight: 500; gap: 16px; margin-bottom: 16px; }
.curve-grid .curve-canvas { height: auto; aspect-ratio: 620 / 245; }
.curve-grid .curve-card { min-height: 0; }
@media (max-width: 600px) {
  .curve-edit-dialog .inline-curve-editor { padding: 18px; }
  .curve-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .baseline-config-grid { grid-template-columns: 1fr; }
}

.curve-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.curve-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-line {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.legend-line.planned { background: var(--amber); }
.legend-line.earned { background: var(--teal-dark); }
.legend-line.actual { background: var(--red); }

.curve-canvas {
  width: 100%;
  height: 225px;
}

.curve-canvas svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.weekly-card .panel-heading {
  margin-bottom: 10px;
}

.weekly-card .panel-heading p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.weekly-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 13px;
}

.weekly-form label > span {
  display: block;
  margin-bottom: 5px;
  color: #52627a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.weekly-form input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.weekly-form textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  resize: vertical;
}

.weekly-wide {
  grid-column: 1 / -2;
}

.weekly-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

.weekly-form input[readonly] {
  color: #56647a;
  background: #f4f7fa;
  cursor: default;
}

.weekly-submit {
  min-height: 38px;
  white-space: nowrap;
}

.weekly-table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.weekly-table {
  min-width: 980px;
}

.session-users {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.session-user {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.session-user:hover,
.session-user.current {
  border-color: #a5dcd7;
  background: #f1fbfa;
}

.session-user strong,
.session-user small {
  display: block;
}

.session-user small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.session-user > span:last-child {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 800;
}

@media (max-width: 1450px) {
  .primary-grid { grid-template-columns: 0.9fr 1.4fr; }
  .timeline-panel { grid-column: 1 / -1; }
  .kpi-grid { grid-template-columns: repeat(8, 160px); }
}

@media (max-width: 1100px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close {
    position: absolute;
    top: 19px;
    right: 10px;
    display: grid;
  }
  .sidebar-backdrop {
    position: fixed;
    z-index: 30;
    inset: 0;
    background: rgba(4, 20, 38, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }
  .sidebar-backdrop.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .main-content { margin-left: 0; }
  .mobile-menu { display: grid; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .secondary-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .module-grid.two-columns,
  .report-card-grid { grid-template-columns: 1fr; }
  .notice-hero,
  .notice-body-grid,
  .notice-bottom-grid { grid-template-columns: 1fr; }
  .notice-responsibles { grid-template-columns: 1fr; }
  .project-detail-kpis { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .project-detail-grid,
  .curve-grid { grid-template-columns: 1fr; }
  .weekly-form { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .weekly-submit { width: max-content; }
}

@media (max-width: 760px) {
  .master-access-form { grid-template-columns: 1fr; }
  .master-access-form .primary-button { width: 100%; }
  .master-profile-button { padding: 0 10px; font-size: 10px; }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    padding: 15px;
  }
  .title-group h1 { font-size: 20px; }
  .title-group > div > p:last-child,
  .eyebrow { display: none; }
  .date-control { display: none; }
  .primary-button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    padding: 12px 15px;
  }
  .filters label:nth-child(3),
  .filters label:nth-child(5) { display: none; }
  .dashboard-body { padding: 12px 10px 20px; }
  .primary-grid { grid-template-columns: 1fr; }
  .timeline-panel { grid-column: auto; }
  .status-content { min-height: auto; }
  .trend-charts { grid-template-columns: 1fr; }
  .trend-chart + .trend-chart {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }
  .finance-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-heading { align-items: flex-start; }
  .table-search { width: 46%; }
  .management-view { padding: 18px 12px 25px; }
  .management-stats { grid-template-columns: 1fr 1fr; }
  .management-header { align-items: flex-start; }
  .management-header .primary-button { width: auto; padding: 0 13px; font-size: 11px; }
  .notice-hero-copy,
  .notice-visual,
  .notice-body-grid,
  .notice-bottom-grid { padding: 14px; }
  .notice-hero h3 { font-size: 25px; }
  .notice-card-actions { align-items: flex-start; flex-direction: column; }
  .notice-cost-row { grid-template-columns: 1fr; }
  .notice-cost-row strong { text-align: left; }
  .notice-bottom-grid li { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .modal-header-actions { align-items: flex-end; flex-direction: column-reverse; }
  .project-detail-kpis,
  .detail-facts,
  .weekly-form { grid-template-columns: 1fr; }
  .weekly-submit { width: 100%; }
}

/* Aurora Flow: capa visual del layout y Dashboard. Conserva la estructura y lógica existentes. */
:root {
  --deep-plum: #3B0F2F;
  --dark-plum: #24071F;
  --medium-plum: #541241;
  --aurora-turquoise: #22D1C2;
  --aurora-turquoise-dark: #149E99;
  --aurora-turquoise-light: #9BE8E1;
  --aurora-coral: #FF7E6B;
  --aurora-coral-light: #FFB3A8;
  --soft-cream: #FFF7F0;
  --main-background: #FFFDFC;
  --surface: #FFFFFF;
  --main-text: #32142D;
  --secondary-text: #766772;
  --soft-border: #EEE6EB;
  --success: #18A66A;
  --warning: #F4A524;
  --critical: #E5484D;
  --information: #367BF5;
  --gradient-aurora: linear-gradient(135deg, #3B0F2F 0%, #22D1C2 52%, #FF7E6B 100%);
  --gradient-aurora-fresh: linear-gradient(135deg, #22D1C2 0%, #9BE8E1 100%);
  --gradient-aurora-warm: linear-gradient(135deg, #541241 0%, #FF7E6B 100%);
  --ink: var(--main-text);
  --muted: var(--secondary-text);
  --line: var(--soft-border);
  --line-soft: #f4edf1;
  --page: var(--main-background);
  --teal: var(--aurora-turquoise);
  --teal-dark: var(--aurora-turquoise-dark);
  --teal-soft: #e8fbf9;
  --green: var(--success);
  --amber: var(--warning);
  --red: var(--critical);
  --violet: var(--medium-plum);
  --shadow: 0 8px 28px rgba(59, 15, 47, 0.06);
  --radius: 18px;
  --font-ui: var(--font-site);
}

body { color: var(--main-text); background: var(--main-background); font-family: var(--font-site); font-size: 14px; }
.app-shell { background: var(--main-background); }
.sidebar { width: 264px; padding: 24px 15px 18px; color: #fff; background: var(--dark-plum); box-shadow: 12px 0 38px rgba(36, 7, 31, .10); }
.brand { display: block; margin: 0 4px 16px; padding: 12px 10px; border-radius: 16px; background: var(--soft-cream); }
.brand img { display: block; width: min(100%, 232px); height: auto; }
.brand .brand-symbol { display: none; }
.nav-group-label { margin: 13px 12px 5px; color: rgba(255,255,255,.46); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { min-height: 0; gap: 2px; margin: 0; overflow: auto; padding-right: 3px; }
.nav-item { min-height: 39px; gap: 12px; padding: 0 13px; border: 1px solid transparent; border-radius: 14px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 700; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); transform: none; }
.nav-item.active { position: relative; color: var(--deep-plum); background: var(--soft-cream); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.nav-item.active::before { position: absolute; left: 0; width: 4px; height: 22px; border-radius: 0 8px 8px 0; background: var(--aurora-turquoise); content: ""; }
.nav-item.active svg { color: var(--medium-plum); }
.nav-item-disabled { width: 100%; border: 0; color: rgba(255,255,255,.45); background: transparent; text-align: left; cursor: not-allowed; }
.nav-item-disabled small { margin-left: auto; font-size: 9px; font-weight: 700; }
.sidebar-profile { padding: 16px 9px 2px; border-top-color: rgba(255,255,255,.13); border-radius: 14px; }
.sidebar-profile small { color: rgba(255,255,255,.57); }
.sidebar-profile .avatar { border-color: var(--aurora-turquoise-light); color: #fff; background: var(--medium-plum); }
.main-content { margin-left: 264px; transition: margin-left .24s ease; }
.topbar { min-height: 96px; gap: 20px; padding: 18px 34px; border-bottom-color: var(--soft-border); background: rgba(255,255,255,.94); }
.title-group { gap: 9px; }
.title-group h1 { margin-top: 2px; color: var(--deep-plum); font-family: var(--font-site); font-size: clamp(27px, 2.2vw, 35px); font-weight: 400; letter-spacing: -.4px; }
.title-group > div > p:last-child { color: var(--secondary-text); font-size: 13px; }
.eyebrow, .section-kicker { color: var(--aurora-turquoise-dark); font-size: 10px; letter-spacing: .12em; }
.sidebar-collapse { display: grid; width: 39px; height: 39px; border: 1px solid var(--soft-border); border-radius: 12px; color: var(--medium-plum); background: #fff; }
.topbar-actions { gap: 9px; }
.global-search { display: flex; width: 205px; height: 42px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--soft-border); border-radius: 12px; color: var(--secondary-text); background: var(--main-background); }
.global-search svg { width: 17px; height: 17px; }
.global-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--main-text); background: transparent; font-size: 12px; }
.period-control, .date-control, .date-range-control { min-height: 42px; border-color: var(--soft-border); border-radius: 12px; background: #fff; }
.date-range-control { min-width: 260px; }
.date-range-inputs input { color: var(--main-text); }
.read-only-badge { display: none !important; }
.data-mode-badge {
  display: inline-flex !important;
  min-height: 42px;
  align-items: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.data-mode-badge:hover,
.data-mode-badge:focus-visible {
  border-color: var(--aurora-turquoise);
  background: #e8fbfa;
  box-shadow: 0 6px 16px rgba(0, 174, 190, .12);
  outline: 0;
  transform: translateY(-1px);
}
.cloud-auth-message { min-height: 18px; margin: -2px 0 0; color: var(--secondary-text); font-size: 12px; font-weight: 600; }
.wbs-box { padding: 17px; border: 1px solid #d5e5f0; border-radius: 16px; background: linear-gradient(135deg, #f7fbff, #f6fffe); }
.wbs-box .evm-heading { margin-bottom: 8px; }
.wbs-help { margin: 0 0 12px; color: var(--secondary-text); font-size: 12px; line-height: 1.55; }
.wbs-box textarea { min-height: 156px; font-family: var(--font-site); font-size: 12px; line-height: 1.55; }
.wbs-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cost-sheet-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid #d5e5f0; border-radius: 13px; background: #fff; }
.cost-sheet { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 12px; }
.cost-sheet th { padding: 10px 8px; color: #fff; background: #087f82; font-weight: 800; text-align: left; }
.cost-sheet th small { color: rgba(255,255,255,.75); font-weight: 700; }
.cost-sheet td { padding: 6px; border-top: 1px solid #e4edf4; vertical-align: middle; }
.cost-sheet tfoot th { color: #07344d; background: #edf8f8; }
.cost-sheet input { min-width: 70px; width: 100%; padding: 7px 6px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; }
.cost-sheet input:hover, .cost-sheet input:focus { border-color: #8bc8d2; background: #f7fdff; outline: 0; }
.cost-sheet select { min-width: 142px; width: 100%; padding: 7px 25px 7px 7px; border: 1px solid transparent; border-radius: 7px; color: #173553; background: #f5fbfd; font: inherit; font-weight: 750; outline: 0; }
.cost-sheet select:hover, .cost-sheet select:focus { border-color: #8bc8d2; background: #fff; }
.wbs-category-catalog { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding: 10px 12px; border: 1px solid #dce9ef; border-radius: 11px; background: #f8fcfe; }
.wbs-category-catalog > span { margin-right: 2px; color: #506a82; font-size: .69rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.wbs-category-catalog b { padding: 5px 8px; border-radius: 999px; color: #0d6070; background: #e5f7f5; font-size: .71rem; }
.wbs-category-catalog small { margin-left: auto; color: #72869a; font-size: .71rem; }
.three-point-inputs { display: grid; grid-template-columns: repeat(3, 44px); gap: 3px; }
.three-point-inputs input { min-width: 0; text-align: center; }
.milestone-bullet { color: var(--teal); font-size: 1.35rem; line-height: 1; margin-right: 7px; vertical-align: middle; }
.milestone-input-cell { display: flex; min-width: 0; align-items: center; gap: 7px; }
.milestone-input-cell .milestone-bullet { flex: 0 0 auto; margin: 0; }
.milestone-input-cell input { min-width: 0 !important; flex: 1 1 auto; }
.milestone-locked-text { min-width: 0; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.35; }
.milestone-row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; white-space: nowrap; }
.milestone-icon-button { display: inline-grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue); cursor: pointer; font-size: 14px; line-height: 1; transition: .18s ease; }
.milestone-icon-button:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-1px); }
.milestone-icon-button.danger { color: #c54435; }
.milestone-icon-button.danger:hover { border-color: #e8b4ae; background: #fff1f0; }
.milestone-sheet { min-width: 0 !important; border-collapse: separate; border-spacing: 0 7px; table-layout: fixed; }
.milestone-sheet td { overflow: hidden; border-top: 1px solid #e0ebf1; border-bottom: 1px solid #e0ebf1; background: #f9fcfe; }
.milestone-sheet td:first-child { border-left: 1px solid #e0ebf1; border-radius: 9px 0 0 9px; }
.milestone-sheet td:last-child { width: 82px; border-right: 1px solid #e0ebf1; border-radius: 0 9px 9px 0; text-align: right; }
.milestone-sheet .empty-state { border: 1px dashed #d5e3eb !important; border-radius: 9px !important; text-align: center !important; }
.risk-bullet { color: var(--red); }
.risk-suggestions { display: grid; gap: 8px; margin-top: 12px; padding: 13px; border: 1px solid #d9e8f1; border-radius: 12px; background: linear-gradient(135deg, #f8fcff, #f2fbfa); }
.risk-suggestions-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1px 3px 7px; border-bottom: 1px solid #dcebf1; }
.risk-suggestions-heading > div { display: grid; gap: 3px; }
.risk-suggestions-heading span { color: #087fe8; font-size: .65rem; font-weight: 850; letter-spacing: .09em; }
.risk-suggestions-heading strong { color: #183451; font-size: .78rem; }
.risk-suggestion-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e1ebf0; border-radius: 9px; background: #fff; }
.risk-suggestion-item p { margin: 0; color: #536a82; font-size: .76rem; line-height: 1.35; }
.risk-level { padding: 4px 7px; border-radius: 999px; font-size: .63rem; font-weight: 850; }
.risk-level.risk-alto { color: #b42318; background: #ffebe9; }.risk-level.risk-medio { color: #9a6400; background: #fff3d6; }.risk-level.risk-bajo { color: #08735f; background: #dff7ee; }
.risk-suggestions-empty { margin: 4px 2px; color: #5f748a; font-size: .76rem; }
.transformer-section { padding: 20px !important; background: linear-gradient(145deg, #fbfdff, #f2fafb) !important; }
.transformer-section-heading { margin-bottom: 14px; }
.transformer-section-heading h3 { margin: 0; color: #102542; font-size: 1.1rem; }
.transformer-list { display: grid; gap: 8px; }
.transformer-card { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; padding: 14px 16px; border: 1px solid #dce8ef; border-radius: 12px; background: #fff; }
.transformer-card-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: #183653; font-weight: 800; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.transformer-fields { display: grid; grid-template-columns: 150px minmax(180px, 1fr); gap: 9px; align-content: center; }
.transformer-fields label { display: grid; gap: 5px; min-width: 0; }
.transformer-fields label span { color: #65758a; font-size: .72rem; font-weight: 750; }
.transformer-fields select, .transformer-fields input { min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #d6e1ea; border-radius: 10px; color: #102542; background: #fff; font: inherit; font-size: .86rem; }
.transformer-fields :is(select, input):disabled { color: #a2afbd; background: #f4f7f9; }
.transformer-description { grid-column: auto; }
.transformer-output { display: flex; flex-direction: column; justify-content: center; padding: 11px 13px; border-left: 3px solid #0ca7a2; border-radius: 9px; color: #073d59; background: #effafa; }
.transformer-output span { color: #438098; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.transformer-output strong { margin-top: 3px; font-size: 1.3rem; line-height: 1.1; }
.transformer-output strong small { font-size: .76rem; }
.transformer-output em { margin-top: 6px; color: #54748a; font-size: .72rem; font-style: normal; }
.transformer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.transformer-footer strong { color: #284963; font-size: .84rem; }
.charger-section { padding: 20px !important; background: linear-gradient(145deg, #fbfdff, #f2fafb) !important; }
.charger-mode { display: grid; max-width: 300px; gap: 5px; margin-bottom: 12px; }
.charger-mode span, .charger-fields label span { color: #65758a; font-size: .72rem; font-weight: 750; }
.charger-list { display: grid; gap: 8px; }
.charger-card { padding: 14px 16px; border: 1px solid #dce8ef; border-radius: 12px; background: #fff; }
.charger-fields { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 9px; }
.charger-fields label { display: grid; gap: 5px; min-width: 0; }
.charger-fields select, .charger-fields input, .charger-mode select { min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #d6e1ea; border-radius: 10px; color: #102542; background: #fff; font: inherit; font-size: .82rem; }
.charger-fields select:disabled { color: #7c8d9e; background: #f3f7f9; }
@media (max-width: 760px) { .charger-section { padding: 16px !important; } .charger-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .transformer-section { padding: 16px !important; } .transformer-card { grid-template-columns: 1fr; padding: 13px; } .transformer-fields { grid-template-columns: 1fr; } .transformer-output { min-height: 72px; } .transformer-footer { align-items: flex-start; flex-direction: column; gap: 9px; } }

/* Investment Notice: formulario de trabajo ejecutivo */
.notice-entry-modal { width: min(1080px, 100%); border: 1px solid #dce7ef; border-radius: 22px; background: #f7fafc; box-shadow: 0 28px 84px rgba(8, 31, 55, .34); }
.notice-entry-modal .modal-header { position: sticky; z-index: 3; top: 0; padding: 20px 26px; border-bottom-color: #deebf2; background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.notice-entry-modal .modal-header h2 { color: #112844; font-size: 1.35rem; }
.notice-entry-modal .modal-close { width: 36px; height: 36px; border: 1px solid #deebf2; color: #577089; background: #f9fcfe; }
.notice-entry-form { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 15px; padding: 24px 26px 28px; }
.notice-flow-nav { position: sticky; z-index: 2; top: 76px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 7px; border: 1px solid #dce8ef; border-radius: 13px; background: rgba(247,250,252,.94); box-shadow: 0 7px 18px rgba(24,55,80,.06); backdrop-filter: blur(12px); }
.notice-flow-nav button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; border: 0; border-radius: 8px; color: #668098; background: transparent; transition: .18s ease; }
.notice-flow-nav button:hover, .notice-flow-nav button.active { color: #0d5772; background: #eaf9f8; }
.notice-flow-nav b { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #087fe8; background: #e8f4ff; font-size: .65rem; }
.notice-flow-nav span { font-size: .72rem; font-weight: 800; }
.notice-entry-form[data-active-step] [data-notice-step] { display: none; }
.notice-entry-form[data-active-step="identity"] [data-notice-step="identity"], .notice-entry-form[data-active-step="technical"] [data-notice-step="technical"], .notice-entry-form[data-active-step="controls"] [data-notice-step="controls"] { display: block; }
.notice-entry-form[data-active-step="identity"] label[data-notice-step="identity"], .notice-entry-form[data-active-step="technical"] label[data-notice-step="technical"] { display: block; }
.notice-entry-form[data-active-step="identity"] .notice-field-code, .notice-entry-form[data-active-step="identity"] .notice-field-title, .notice-entry-form[data-active-step="identity"] .notice-field-client, .notice-entry-form[data-active-step="identity"] .notice-field-bac, .notice-entry-form[data-active-step="identity"] .notice-field-sponsor, .notice-entry-form[data-active-step="identity"] .notice-field-type { grid-column: span 4; }
.notice-entry-form[data-active-step="identity"] .notice-field-code { grid-column: span 3; }.notice-entry-form[data-active-step="identity"] .notice-field-title { grid-column: span 5; }.notice-entry-form[data-active-step="identity"] .notice-field-client { grid-column: span 4; }.notice-entry-form[data-active-step="identity"] .notice-field-bac { grid-column: span 4; }.notice-entry-form[data-active-step="identity"] .notice-field-sponsor { grid-column: span 5; }.notice-entry-form[data-active-step="identity"] .notice-field-type { grid-column: span 3; }
.notice-entry-form[data-active-step="technical"] label[data-notice-step="technical"] { grid-column: span 4; }.notice-entry-form[data-active-step="technical"] label.form-wide[data-notice-step="technical"] { grid-column: 1 / -1; }
.notice-entry-form > label:not(.form-wide) { grid-column: span 4; padding: 0; }
.notice-entry-form .notice-field-code { grid-column: span 3; }
.notice-entry-form .notice-field-title { grid-column: span 5; }
.notice-entry-form .notice-field-client { grid-column: span 4; }
.notice-entry-form .notice-field-bac { grid-column: span 4; }
.notice-entry-form .notice-field-sponsor { grid-column: span 5; }
.notice-entry-form .notice-field-type { grid-column: span 3; }
.notice-entry-form label > span { margin-bottom: 7px; color: #536a82; font-size: .7rem; letter-spacing: .025em; }
.notice-entry-form input, .notice-entry-form select, .notice-entry-form textarea { min-height: 44px; border-color: #d8e4ec; border-radius: 10px; color: #15304f; background: #fff; box-shadow: 0 1px 1px rgba(10, 39, 66, .02); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.notice-entry-form input:hover, .notice-entry-form select:hover, .notice-entry-form textarea:hover { border-color: #a9c4d5; }
.notice-entry-form input:focus, .notice-entry-form select:focus, .notice-entry-form textarea:focus { border-color: #0b9fa1; box-shadow: 0 0 0 4px rgba(0, 169, 157, .12); }
.notice-entry-form input[readonly] { color: #0c5670; background: #edfafa; font-weight: 800; }
.notice-form-intro, .notice-section-title { padding: 2px 1px 1px; border: 0; background: transparent; }
.notice-form-intro p, .notice-section-title p { margin: 0; color: #61758b; font-size: .8rem; line-height: 1.45; }
.notice-entry-form .wbs-box { padding: 18px; border-color: #d9e6ed; border-radius: 15px; background: #fff; box-shadow: 0 5px 14px rgba(24, 55, 80, .035); }
.notice-entry-form .wbs-box .evm-heading h3 { color: #173553; font-size: 1rem; text-transform: none; }
.notice-entry-form .form-help { color: #667d91; font-size: .75rem; line-height: 1.45; }
.notice-entry-form .cost-sheet-wrap { border-color: #dce8ef; border-radius: 10px; box-shadow: none; }
.notice-entry-form .cost-sheet th { background: #123c58; }
.notice-entry-form .investment-cost-sheet { min-width: 1120px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.notice-entry-form .investment-cost-sheet th { padding: 11px 8px; font-size: .68rem; letter-spacing: .025em; text-align: center; white-space: nowrap; }
.notice-entry-form .investment-cost-sheet th:nth-child(1), .notice-entry-form .investment-cost-sheet td:nth-child(1) { width: 76px; text-align: center; }
.notice-entry-form .investment-cost-sheet th:nth-child(2), .notice-entry-form .investment-cost-sheet td:nth-child(2) { width: 175px; }
.notice-entry-form .investment-cost-sheet th:nth-child(3), .notice-entry-form .investment-cost-sheet td:nth-child(3) { width: 245px; text-align: left; }
.notice-entry-form .investment-cost-sheet th:nth-child(4), .notice-entry-form .investment-cost-sheet td:nth-child(4) { width: 135px; text-align: center; }
.notice-entry-form .investment-cost-sheet th:nth-child(5), .notice-entry-form .investment-cost-sheet td:nth-child(5) { width: 125px; text-align: center; }
.notice-entry-form .investment-cost-sheet th:nth-child(6), .notice-entry-form .investment-cost-sheet td:nth-child(6), .notice-entry-form .investment-cost-sheet th:nth-child(7), .notice-entry-form .investment-cost-sheet td:nth-child(7) { width: 140px; text-align: center; }
.notice-entry-form .investment-cost-sheet th:last-child, .notice-entry-form .investment-cost-sheet td:last-child { width: 52px; text-align: center; }
.notice-entry-form .investment-cost-sheet td { padding: 8px 6px; }
.notice-entry-form .investment-cost-sheet input, .notice-entry-form .investment-cost-sheet select { min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid #d5e2ea; border-radius: 9px; background: #fff; box-shadow: inset 0 1px 1px rgba(15, 52, 82, .025); }
.notice-entry-form .investment-cost-sheet input:hover, .notice-entry-form .investment-cost-sheet input:focus, .notice-entry-form .investment-cost-sheet select:hover, .notice-entry-form .investment-cost-sheet select:focus { border-color: #16a9b8; background: #fbfeff; box-shadow: 0 0 0 3px rgba(22, 169, 184, .12); }
.notice-entry-form .investment-cost-sheet input[data-cost-field="wbs"] { color: #08606a; background: #eaf8f8; font-weight: 850; text-align: center; }
.notice-entry-form .investment-cost-sheet input[data-cost-field="budget"], .notice-entry-form .investment-cost-sheet input[data-cost-field="capacityKw"], .notice-entry-form .investment-cost-sheet input[data-cost-field="startDate"], .notice-entry-form .investment-cost-sheet input[data-cost-field="endDate"], .notice-entry-form .investment-cost-sheet select { font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
.notice-entry-form .investment-cost-sheet input[data-cost-field="name"] { font-weight: 650; text-align: left; }
.notice-entry-form .investment-cost-sheet tfoot th { padding: 12px 10px; color: #d9f5f7; background: #123c58; font-size: .75rem; }
.notice-entry-form .investment-cost-sheet tfoot #noticeCostSheetTotal { color: #fff; font-size: .92rem; text-align: center; }
.cost-remove-button { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid #f1c9c5; border-radius: 8px; background: #fff7f6; color: #c54435; cursor: pointer; font-size: 14px; line-height: 1; transition: .18s ease; }
.cost-remove-button:hover { border-color: #d77a70; background: #fff0ee; transform: translateY(-1px); }
.investment-cost-list { display: grid; gap: 10px; margin-top: 13px; }
.investment-cost-card { display: grid; gap: 11px; padding: 13px; border: 1px solid #dce8ef; border-radius: 13px; background: linear-gradient(115deg, #fbfdff, #f5fafc); box-shadow: 0 3px 10px rgba(23, 53, 83, .035); }
.investment-cost-primary { display: grid; grid-template-columns: 72px minmax(175px, .9fr) minmax(280px, 2.25fr) 34px; gap: 9px; align-items: end; }
.investment-cost-secondary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.investment-edit-actions { display: grid; gap: 5px; align-self: end; padding-bottom: 1px; }
.investment-field { display: grid; gap: 5px; min-width: 0; }
.investment-field > span { color: #547089; font-size: .64rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.investment-field input, .investment-field select { width: 100%; min-width: 0; height: 42px; padding: 9px 10px; border: 1px solid #d4e2ea; border-radius: 9px; background: #fff; color: #173553; font: inherit; font-size: .79rem; font-weight: 750; outline: 0; transition: .18s ease; }
.investment-field input:hover, .investment-field input:focus, .investment-field select:hover, .investment-field select:focus { border-color: #16a9b8; box-shadow: 0 0 0 3px rgba(22, 169, 184, .12); }
.investment-field-wbs input { color: #08606a; background: #e8f7f7; text-align: center; font-weight: 850; }
.investment-field-category select, .investment-field-budget input, .investment-field-capacity input, .investment-field-start input, .investment-field-end input { text-align: center; font-variant-numeric: tabular-nums; }
.investment-field-name input { text-align: left; }
.investment-cost-card .cost-remove-button { align-self: end; margin-bottom: 6px; }
.investment-cost-card .investment-edit-actions .cost-remove-button { margin: 0; }
.investment-cost-saved { display: grid; grid-template-columns: minmax(300px, 1.45fr) minmax(380px, 1.6fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid #dce8ef; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(23, 53, 83, .025); }
.investment-cost-saved-main { display: flex; min-width: 0; align-items: center; gap: 8px; }
.investment-cost-saved-main strong { min-width: 0; overflow: hidden; color: #173553; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.saved-wbs { flex: 0 0 auto; padding: 5px 7px; border-radius: 6px; color: #08606a; background: #e8f7f7; font-size: .7rem; font-weight: 850; }
.saved-category { flex: 0 1 auto; overflow: hidden; max-width: 145px; color: #28617a; font-size: .7rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.investment-cost-saved-meta { display: grid; grid-template-columns: 1.15fr .85fr 1fr 1fr; gap: 8px; color: #4a647b; font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; text-align: center; }
.investment-cost-saved-meta span { padding: 5px 6px; border-radius: 6px; background: #f5f9fb; white-space: nowrap; }
.investment-cost-saved-meta span:first-child { color: #123c58; background: #eaf4f8; }
.investment-cost-saved-actions { display: flex; gap: 5px; }
.investment-cost-summary { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 11px 14px; border-radius: 10px; color: #d9f5f7; background: #123c58; }
.investment-cost-summary span { font-size: .7rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.investment-cost-summary strong { margin-left: auto; color: #fff; font-size: 1rem; font-variant-numeric: tabular-nums; }
.investment-cost-summary small { color: #a9d8df; font-size: .7rem; }
@media (max-width: 760px) {
  .investment-cost-primary { grid-template-columns: 76px 1fr 34px; gap: 9px; }
  .investment-cost-primary .investment-field-name, .investment-cost-primary .investment-field-category { grid-column: 1 / -1; }
  .investment-cost-primary .investment-field-name { grid-row: 3; }
  .investment-cost-secondary { grid-template-columns: 1fr 1fr; gap: 9px; }
  .investment-cost-card .cost-remove-button { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
  .investment-cost-saved { grid-template-columns: 1fr auto; gap: 9px; }
  .investment-cost-saved-main { flex-wrap: wrap; }
  .investment-cost-saved-main strong { flex-basis: 100%; }
  .investment-cost-saved-meta { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .investment-cost-saved-actions { grid-column: 2; grid-row: 1; }
  .investment-cost-summary { align-items: flex-start; flex-wrap: wrap; }
  .investment-cost-summary strong { margin-left: 0; }
}
.notice-critical-preview { display: grid; gap: 8px; margin-top: 10px; padding: 11px 12px; border: 1px solid #f0d8d5; border-radius: 9px; background: #fffaf9; }
.notice-critical-preview[hidden] { display: none; }
.critical-gantt-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.notice-critical-preview span { color: #c84842; font-size: .66rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.critical-gantt-header small { color: #8a6a69; font-size: .68rem; font-weight: 750; }
.critical-gantt { display: grid; gap: 5px; }
.critical-gantt-row { display: grid; grid-template-columns: minmax(130px, .9fr) minmax(200px, 2.1fr); gap: 9px; align-items: center; }
.critical-gantt-row b { overflow: hidden; color: #663437; font-size: .7rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.critical-gantt-track { position: relative; height: 10px; overflow: hidden; border-radius: 999px; background: #f6dfdd; }
.critical-gantt-track i { position: absolute; top: 1px; bottom: 1px; min-width: 6px; border-radius: 999px; background: linear-gradient(90deg, #e85b51, #c93f38); box-shadow: 0 1px 2px rgba(155, 45, 40, .22); }
.notice-entry-form .form-actions { position: sticky; z-index: 2; bottom: -28px; grid-column: 1 / -1; margin: 0 -26px -28px; padding: 15px 26px; border-top: 1px solid #dce7ee; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.notice-entry-form .form-actions .primary-button { min-width: 210px; background: linear-gradient(135deg, #087fe8, #00a99d); box-shadow: 0 8px 18px rgba(8,127,232,.18); }
.notice-entry-form .form-actions .secondary-button { border-color: #d8e4ec; background: #fff; }
@media (max-width: 760px) { .notice-entry-modal { border-radius: 16px; } .notice-entry-modal .modal-header { padding: 16px 17px; } .notice-entry-form { grid-template-columns: 1fr; gap: 13px; padding: 18px 17px 22px; } .notice-flow-nav { top: 66px; gap: 3px; padding: 5px; }.notice-flow-nav button { gap: 0; min-height: 31px; }.notice-flow-nav button span { display: none; }.notice-flow-nav b { width: 22px; height: 22px; }.notice-entry-form > label:not(.form-wide), .notice-entry-form .notice-field-code, .notice-entry-form .notice-field-title, .notice-entry-form .notice-field-client, .notice-entry-form .notice-field-bac, .notice-entry-form .notice-field-sponsor, .notice-entry-form .notice-field-type { grid-column: auto; } .notice-section-title { display: grid; gap: 4px; } .notice-entry-form .form-actions { bottom: -22px; margin: 0 -17px -22px; padding: 12px 17px; } .notice-entry-form .form-actions .primary-button { min-width: 0; } }

/* Investment Notice hub */
.investment-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 154px; margin: 0 0 18px; padding: 27px 30px; overflow: hidden; border: 1px solid rgba(13, 183, 198, .25); border-radius: 20px; color: #eefaff; background: radial-gradient(circle at 88% 10%, rgba(0, 223, 211, .25), transparent 27%), linear-gradient(118deg, #082b4b, #0b5467); box-shadow: 0 18px 35px rgba(10, 45, 72, .16); }
.investment-hero > div:first-child { max-width: 600px; }
.investment-hero > div:first-child > span { color: #60ece4; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.investment-hero h3 { max-width: 570px; margin: 7px 0; font-size: clamp(1.28rem, 2vw, 1.75rem); line-height: 1.18; letter-spacing: -.035em; }
.investment-hero p { max-width: 565px; margin: 0; color: rgba(238,250,255,.76); line-height: 1.5; }
.investment-hero-steps { display: flex; align-items: center; flex: 0 0 auto; }
.investment-hero-steps b { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); font-size: .9rem; }
.investment-hero-steps small { display: block; margin-top: -3px; color: #aaf4ee; font-size: .53rem; font-weight: 700; letter-spacing: .03em; }
.investment-hero-steps i { width: 22px; height: 1px; background: rgba(121,241,234,.5); }
.investment-register { margin-top: 20px; padding: 22px; border: 1px solid #dce8ef; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(22,54,80,.06); }
.investment-register-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.investment-register-heading h2 { margin: 3px 0 3px; color: #142f4d; font-size: 1.2rem; letter-spacing: -.025em; }
.investment-register-heading > div > span { color: #6e8295; font-size: .79rem; }
.investment-register-count { padding: 7px 10px; border-radius: 999px; color: #176b84; background: #eaf8fb; font-size: .72rem; font-weight: 800; }
.notice-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.notice-hub-card { display: flex; min-width: 0; min-height: 277px; flex-direction: column; padding: 18px; border: 1px solid #dce7ef; border-radius: 15px; background: linear-gradient(160deg, #fff, #fbfdff); box-shadow: 0 4px 12px rgba(24,55,80,.035); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.notice-hub-card:hover { border-color: #8fcad2; box-shadow: 0 14px 28px rgba(23,79,102,.13); transform: translateY(-3px); }
.notice-hub-card:focus-visible { outline: 3px solid rgba(0,169,157,.24); outline-offset: 3px; }
.notice-hub-card.approved { border-top: 3px solid #18ad5c; }
.notice-hub-card.review { border-top: 3px solid #f0aa1c; }
.notice-hub-card.draft { border-top: 3px solid #2682da; }
.notice-hub-card.rejected { border-top: 3px solid #e6524e; }
.notice-hub-top, .notice-hub-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notice-hub-code { color: #537088; font-size: .7rem; font-weight: 850; letter-spacing: .08em; }
.notice-hub-title { min-height: 66px; margin: 16px 0 13px; }
.notice-hub-title h3 { display: -webkit-box; margin: 0; overflow: hidden; color: #132f4d; font-size: 1.03rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notice-hub-title p { margin: 5px 0 0; overflow: hidden; color: #708297; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.notice-hub-money { padding: 13px 14px; border-radius: 12px; background: #f1fbfa; }
.notice-hub-money span, .notice-hub-facts span { display: block; color: #6a8291; font-size: .68rem; font-weight: 800; letter-spacing: .03em; }
.notice-hub-money strong { display: block; margin: 3px 0 1px; color: #084d68; font-size: 1.22rem; letter-spacing: -.03em; }
.notice-hub-money small { color: #5e8090; font-size: .7rem; }
.notice-hub-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 13px 0; }
.notice-hub-facts div { min-width: 0; }
.notice-hub-facts strong { display: block; margin-top: 3px; overflow: hidden; color: #29445d; font-size: .76rem; line-height: 1.28; text-overflow: ellipsis; white-space: nowrap; }
.notice-hub-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid #e8eff3; color: #5f788e; font-size: .73rem; }
.notice-hub-footer > span { max-width: 130px; line-height: 1.3; }
.notice-hub-actions { display: flex; align-items: center; gap: 11px; }
.notice-hub-footer .row-action { padding: 0; border: 0; color: #087fe8; background: transparent; font-size: .75rem; }
.notice-hub-footer .row-action svg { width: 15px; height: 15px; }
.notice-hub-empty { display: grid; justify-items: center; gap: 9px; padding: 50px 20px; border: 1px dashed #b8cfdb; border-radius: 14px; color: #61788d; text-align: center; }
.notice-hub-empty strong { color: #193754; font-size: 1rem; }.notice-hub-empty span { max-width: 400px; font-size: .82rem; }
@media (max-width: 760px) { .investment-hero { align-items: flex-start; min-height: auto; flex-direction: column; padding: 22px 20px; }.investment-hero-steps { align-self: stretch; justify-content: space-between; }.investment-hero-steps i { flex: 1; }.investment-register { padding: 17px; }.notice-hub-grid { grid-template-columns: 1fr; } }
.critical-toggle { white-space: nowrap; }
.critical-toggle input { width: auto; min-width: 0; margin: 0 5px 0 0; accent-color: #e5484d; }
.generated-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -6px; }
.text-button { border: 0; background: transparent; padding: 7px 4px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.danger-text { color: #c54435; }
.danger-text:hover { color: #972f25; text-decoration: underline; }
.wbs-status { width: fit-content; min-height: 0; margin-top: 9px; padding: 5px 8px; border-radius: 7px; color: #b45e00; background: #fff7e8; font-size: 11px; font-weight: 750; }
.wbs-status[hidden] { display: none; }
.wbs-status.is-valid { color: #087c55; }
.wbs-status.is-invalid { color: #c54435; }
.notice-gantt-row.is-critical > span { color: #b3281f; font-weight: 800; }
.notice-schedule-expander { margin-top: 13px; border-top: 1px solid #dce8ef; padding-top: 10px; }
.notice-schedule-expander summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; color: #087f82; font-size: 12px; font-weight: 800; }
.notice-schedule-expander summary span { color: #6c7b8d; font-size: 11px; font-weight: 600; }
.notice-schedule-list { display: grid; gap: 7px; margin-top: 12px; }
.notice-schedule-line { display: grid; grid-template-columns: 8px minmax(120px,1fr) 90px 145px 80px; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 8px; background: #f5fafb; color: #486076; font-size: 11px; }
.notice-schedule-line .legend-dot { background: #008a86; }
.notice-schedule-line.is-critical { background: #fff4f4; color: #a42c2b; }
.notice-schedule-line.is-critical .legend-dot { background: #e5484d; }
.notice-schedule-line em { color: #6f8090; font-style: normal; }.notice-schedule-line b { font-size: 10px; }
.notice-equipment-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid #d7e8f1; border-radius: 12px; background: linear-gradient(135deg, #f7fcff, #f3fbf8); }
.notice-equipment-summary div { min-width: 0; }.notice-equipment-summary span { display: block; margin-bottom: 5px; color: #688096; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }.notice-equipment-summary strong { display: block; color: #15344e; font-size: 13px; line-height: 1.4; }
@media (max-width: 680px) { .notice-equipment-summary { grid-template-columns: 1fr; }.generated-actions, .wbs-actions { align-items: stretch; flex-direction: column; }.notice-schedule-line { grid-template-columns: 8px 1fr; }.notice-schedule-line em, .notice-schedule-line time, .notice-schedule-line b { grid-column: 2; } }
.topbar-primary { min-height: 42px; border: 0; border-radius: 12px; background: var(--gradient-aurora); box-shadow: 0 9px 18px rgba(59,15,47,.16); text-decoration: none; }
.topbar-primary:hover { background: var(--gradient-aurora-warm); }
.notification-button { width: 42px; height: 42px; border: 1px solid var(--soft-border); border-radius: 12px; color: var(--medium-plum); background: #fff; }
.notification-button span { border-color: #fff; background: var(--aurora-coral); }

.executive-hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; max-width: 1440px; margin: 0 auto; padding: 30px 34px 22px; }
.executive-hero h2 { margin: 5px 0 7px; color: var(--deep-plum); font-family: var(--font-site); font-size: clamp(29px, 3vw, 42px); font-weight: 400; line-height: 1; }
.executive-hero h2 span { color: var(--aurora-turquoise-dark); }
.executive-hero > div > p:last-child { max-width: 650px; margin: 0; color: var(--secondary-text); font-size: 14px; line-height: 1.6; }
.executive-hero-meta { display: grid; gap: 6px; min-width: 195px; padding: 13px 15px; border: 1px solid #d7f2ef; border-radius: 14px; background: #f6fffe; }
.executive-hero-meta span { color: var(--aurora-turquoise-dark); font-size: 11px; font-weight: 800; }
.executive-hero-meta span i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--success); }
.executive-hero-meta strong { color: var(--main-text); font-size: 11px; }
.filters { max-width: 1440px; margin: 0 auto; padding: 15px 34px 18px; border: 0; background: transparent; }
.filters label > span { margin-bottom: 7px; color: var(--secondary-text); font-size: 11px; }
.filters select { min-height: 43px; border-color: var(--soft-border); border-radius: 12px; color: var(--main-text); background: #fff; }
.filters .secondary-button { min-height: 43px; border-color: var(--soft-border); border-radius: 12px; color: var(--medium-plum); background: #fff; }
.dashboard-body { max-width: 1440px; gap: 22px; margin: 0 auto; padding: 4px 34px 42px; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; overflow: visible; }
.kpi-card { min-width: 0; min-height: 152px; padding: 20px; border-color: var(--soft-border); border-radius: 18px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.kpi-card:hover, .panel:hover, .intelligence-card:hover { box-shadow: 0 14px 36px rgba(59,15,47,.10); transform: translateY(-2px); }
.kpi-top { gap: 12px; }
.metric-icon { width: 40px; height: 40px; border-radius: 13px; }
.metric-icon.teal { color: var(--aurora-turquoise-dark); background: #e5fbf8; }
.metric-icon.violet { color: var(--medium-plum); background: #f5eaf1; }
.metric-icon.amber { color: #bd7513; background: #fff4dc; }
.metric-icon.red { color: var(--critical); background: #fff0f1; }
.kpi-card h3 { min-height: auto; margin: 3px 0 8px; color: var(--secondary-text); font-size: 11px; letter-spacing: .02em; text-transform: none; }
.kpi-value { color: var(--deep-plum); font-size: clamp(23px, 2vw, 31px); letter-spacing: -1.1px; }
.kpi-note { margin-top: 13px; color: var(--secondary-text); font-size: 11px; }
.sparkline { height: 25px; margin-top: 5px; }
.dashboard-grid { gap: 22px; }
.primary-grid { grid-template-columns: .85fr 1.3fr 1.6fr; }
.secondary-grid { grid-template-columns: 1fr 1fr 1fr; }
.panel { border-color: var(--soft-border); border-radius: 18px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.panel-heading { padding: 20px 22px 0; }
.panel-heading h2, .portfolio-heading h2 { color: var(--deep-plum); font-family: var(--font-site); font-size: 23px; font-weight: 400; letter-spacing: 0; }
.panel-badge { border: 0; border-radius: 999px; color: var(--aurora-turquoise-dark); background: #e8f8f6; }
.status-panel { min-height: 353px; }
.status-content { min-height: 276px; padding: 18px 20px 22px; }
.donut { width: 150px; height: 150px; }
.donut strong { color: var(--deep-plum); font-size: 30px; }
.legend-row { min-height: 45px; border-color: var(--soft-border); border-radius: 12px; color: var(--secondary-text); background: #fff; font-size: 11px; }
.legend-row:hover { border-color: var(--aurora-turquoise-light); background: #f7fffe; }
.trend-charts { min-height: 295px; padding: 15px 22px 18px; }
.performance-metrics { grid-template-columns: 118px 118px 1fr; }
.performance-metric { border-color: var(--soft-border); border-radius: 12px; background: #fff; }
.performance-metric.spi > span { background: var(--aurora-turquoise-dark); }
.performance-metric.cpi > span { background: var(--medium-plum); }
.performance-metrics p { color: var(--secondary-text); }
.performance-line.cpi { background: var(--medium-plum); }
.chart-grid-line { stroke: #eee7eb; }
.chart-axis-label { fill: var(--secondary-text); font-size: 11px; }
.timeline-panel { min-height: 353px; }
.timeline { min-height: 275px; padding: 16px 21px; }
.portfolio-gantt-row { min-height: 37px; }
.portfolio-track { background: repeating-linear-gradient(90deg, #fff 0, #fff calc(14.28% - 1px), #f0e9ed calc(14.28% - 1px), #f0e9ed 14.28%); }
.portfolio-project-bar { min-height: 10px; border-radius: 999px; }
.milestone-diamond { box-shadow: 0 0 0 2px #fff; }
.finance-grid { gap: 11px; padding: 18px 20px 21px; }
.finance-card { min-height: 150px; border-color: var(--soft-border); border-radius: 14px; background: #fff; }
.finance-card h3 { color: var(--secondary-text); font-size: 11px; }
.finance-card strong { color: var(--deep-plum); font-size: 20px; }
.alerts-list { padding: 17px 20px 21px; }
.alert-item { border-color: var(--soft-border); border-radius: 13px; background: #fffaf8; }
.intelligence-card { min-height: 290px; padding: 22px; border-radius: 18px; color: #fff; background: var(--dark-plum); box-shadow: 0 12px 30px rgba(36,7,31,.20); transition: transform .2s ease, box-shadow .2s ease; }
.intelligence-topline { display: flex; justify-content: space-between; align-items: center; }
.intelligence-card .section-kicker { color: var(--aurora-turquoise-light); }
.intelligence-topline span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: var(--dark-plum); background: var(--gradient-aurora-fresh); font-size: 10px; font-weight: 800; }
.intelligence-card h2 { margin: 18px 0 8px; color: #fff; font-family: var(--font-site); font-size: 25px; font-weight: 400; line-height: 1.1; }
.intelligence-copy { margin: 0; color: rgba(255,255,255,.70); font-size: 12px; line-height: 1.5; }
.intelligence-list { display: grid; gap: 9px; margin-top: 17px; }
.intelligence-item { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.intelligence-item > span { width: 8px; height: 8px; border-radius: 50%; background: var(--aurora-turquoise); }
.intelligence-item.warning > span { background: var(--warning); }.intelligence-item.critical > span { background: var(--aurora-coral); }.intelligence-item.success > span { background: var(--aurora-turquoise); }
.intelligence-item small, .intelligence-item strong { display: block; }.intelligence-item small { color: rgba(255,255,255,.55); font-size: 10px; }.intelligence-item strong { margin-top: 1px; color: #fff; font-size: 11px; }
.intelligence-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 0; border: 0; color: var(--aurora-turquoise-light); background: transparent; font-size: 11px; font-weight: 800; }.intelligence-button svg { width: 15px; height: 15px; }
.portfolio-panel { border-radius: 18px; }.portfolio-heading { padding: 22px 24px 16px; }.table-search { border-color: var(--soft-border); border-radius: 12px; }.table-wrap { border-top-color: var(--soft-border); }.portfolio-panel thead { background: #fffafc; }.portfolio-panel th { color: var(--secondary-text); }.portfolio-panel td { color: var(--main-text); }.portfolio-panel tbody tr:hover { background: #fffafc; }.table-footer { padding: 14px 24px; color: var(--secondary-text); }
.pagination button.active { color: #fff; background: var(--medium-plum); }

body.sidebar-collapsed .sidebar { width: 76px; padding-right: 11px; padding-left: 11px; }
body.sidebar-collapsed .main-content { margin-left: 76px; }
.sidebar.collapsed .brand { margin: 0 0 16px; padding: 8px 4px; overflow: hidden; }
.sidebar.collapsed .brand > img:first-child { display: none; }
.sidebar.collapsed .brand .brand-symbol { display: block; width: 42px; margin: 0 auto; }
.sidebar.collapsed .nav-group-label, .sidebar.collapsed .nav-item span, .sidebar.collapsed .nav-item small, .sidebar.collapsed .sidebar-profile > div:not(.avatar), .sidebar.collapsed .sidebar-profile > svg { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 0; }.sidebar.collapsed .nav-item.active::before { left: 1px; }.sidebar.collapsed .sidebar-profile { grid-template-columns: 1fr; justify-items: center; padding: 13px 0 3px; }

@media (max-width: 1450px) { .primary-grid { grid-template-columns: .8fr 1.2fr; }.timeline-panel { grid-column: 1 / -1; }.secondary-grid { grid-template-columns: 1fr 1fr; }.intelligence-card { grid-column: 1 / -1; min-height: auto; }.intelligence-list { grid-template-columns: repeat(3, 1fr); }.intelligence-button { margin-top: 4px; } }
@media (max-width: 1200px) { .global-search { display: none; }.topbar { padding-right: 26px; padding-left: 26px; }.filters, .executive-hero, .dashboard-body { padding-right: 26px; padding-left: 26px; }.kpi-grid { gap: 13px; } }
@media (max-width: 1100px) { .sidebar { width: 264px; }.sidebar-collapse { display: none; }.main-content, body.sidebar-collapsed .main-content { margin-left: 0; }.sidebar.collapsed { width: 264px; }.sidebar.collapsed .brand { margin: 0 4px 16px; padding: 12px 10px; }.sidebar.collapsed .brand > img:first-child { display: block; width: min(100%, 232px); }.sidebar.collapsed .brand .brand-symbol { display: none; }.sidebar.collapsed .nav-group-label, .sidebar.collapsed .nav-item span, .sidebar.collapsed .nav-item small, .sidebar.collapsed .sidebar-profile > div:not(.avatar), .sidebar.collapsed .sidebar-profile > svg { display: initial; }.sidebar.collapsed .nav-item { justify-content: flex-start; padding: 0 13px; }.sidebar.collapsed .sidebar-profile { grid-template-columns: auto 1fr auto; justify-items: stretch; }.topbar { flex-wrap: wrap; }.topbar-actions { width: 100%; justify-content: flex-start; }.kpi-grid { grid-template-columns: repeat(2, 1fr); }.filters { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .topbar { padding: 14px 17px; }.title-group h1 { font-size: 28px; }.topbar-actions { gap: 7px; }.date-range-control { display: none; }.currency-control { margin-left: auto; }.topbar-primary { width: auto; padding: 0 12px; font-size: 11px; }.executive-hero { align-items: flex-start; flex-direction: column; padding: 24px 17px 15px; }.executive-hero-meta { width: 100%; }.filters, .dashboard-body { padding-right: 17px; padding-left: 17px; }.filters { grid-template-columns: 1fr 1fr; }.filters label:nth-child(3), .filters label:nth-child(5) { display: grid; }.kpi-grid, .secondary-grid { grid-template-columns: 1fr; }.primary-grid { grid-template-columns: 1fr; }.timeline-panel { grid-column: auto; }.intelligence-list { grid-template-columns: 1fr; }.panel-heading h2, .portfolio-heading h2 { font-size: 22px; }.status-content { padding-bottom: 20px; }.portfolio-heading { display: grid; gap: 14px; }.table-search { width: 100%; }.sidebar-profile { padding-bottom: 10px; } }
@media (max-width: 470px) { .filters { grid-template-columns: 1fr; }.filters label:nth-child(2) { display: grid; }.topbar-primary { font-size: 0; width: 42px; padding: 0; }.topbar-primary svg { width: 18px; }.notification-button { display: none; }.title-group > div > p:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Ocean Glow: capa aprobada para layout global y Dashboard. */
:root {
  --deep-ocean: #071A2B;
  --ocean-depth: #0B2D4D;
  --electric-cyan: #00E6FF;
  --salmon-coral: #FF7A6E;
  --cool-white: #F1F5FA;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --text-primary: #0B1B30;
  --text-secondary: #667085;
  --border: #E5EAF0;
  --success: #16A36A;
  --warning: #F4A524;
  --critical: #E5484D;
  --finished: #8995A7;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 8px 24px rgba(7, 26, 43, 0.06);
  --shadow-hover: 0 14px 34px rgba(7, 26, 43, 0.10);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border);
  --line-soft: #EEF2F6;
  --page: var(--background);
  --surface: #fff;
  --teal: var(--electric-cyan);
  --teal-dark: #008ED8;
  --teal-soft: #E6FBFF;
  --blue: #087FE8;
  --green: var(--success);
  --amber: var(--warning);
  --red: var(--critical);
  --violet: var(--ocean-depth);
  --font-ui: var(--font-site);
}

body { color: var(--text-primary); background: var(--background); font-family: var(--font-site); cursor: url("assets/brand/projavasa-cursor.png") 4 4, auto; }
button, a, select, input, [role="button"], .clickable { cursor: url("assets/brand/projavasa-cursor.png") 4 4, pointer; }
input { cursor: text; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(0,230,255,.30); outline-offset: 2px; }
.sidebar { isolation: isolate; width: 244px; padding: 24px 15px 18px; color: var(--cool-white); background: radial-gradient(ellipse 145% 195px at -35% 11%, transparent 61%, rgba(0,230,255,.14) 61.5%, transparent 62.3%), radial-gradient(ellipse 130% 210px at 122% 31%, transparent 69%, rgba(0,142,216,.13) 69.5%, transparent 70.2%), radial-gradient(ellipse 145% 240px at -36% 57%, transparent 72%, rgba(0,230,255,.10) 72.5%, transparent 73.1%), radial-gradient(ellipse 145% 245px at 122% 77%, transparent 76%, rgba(255,122,110,.10) 76.4%, transparent 77%), linear-gradient(180deg, #06192B 0%, #0A2945 42%, var(--deep-ocean) 100%); box-shadow: 10px 0 30px rgba(7,26,43,.10); }
.sidebar::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 145% 210px at 48% 19%, transparent 72%, rgba(241,245,250,.055) 72.4%, transparent 73%), radial-gradient(ellipse 155% 255px at 45% 52%, transparent 71%, rgba(0,230,255,.075) 71.4%, transparent 72%), radial-gradient(ellipse 160% 250px at 47% 88%, transparent 75%, rgba(0,142,216,.08) 75.5%, transparent 76%); content: ""; pointer-events: none; }
.sidebar > * { position: relative; z-index: 1; }
.brand { display: grid; height: 70px; margin: 0 -15px 26px; padding: 0 20px; overflow: visible; border-radius: 0; background: transparent; place-items: center; }
.brand::after { position: absolute; z-index: -1; top: -28px; left: 50%; width: 220px; height: 104px; border-radius: 50%; background: radial-gradient(ellipse, rgba(155,232,241,.22), rgba(0,230,255,.06) 45%, transparent 72%); content: ""; transform: translateX(-50%); }
.brand > img:first-child { display: block; width: 205px; height: auto; clip-path: none; }
.brand .brand-symbol { display: none; }
.nav-group-label { margin: 16px 11px 6px; color: rgba(241,245,250,.52); font-size: 10px; letter-spacing: .08em; }
.main-nav { gap: 3px; overflow: visible; }
.nav-item { position: relative; min-height: 42px; border-radius: var(--radius-md); color: rgba(241,245,250,.84); font-size: 13px; font-weight: 500; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { border: 1px solid rgba(0,230,255,.42); color: #fff; background: var(--ocean-depth); box-shadow: 0 0 0 1px rgba(0,230,255,.08), 0 0 14px rgba(0,230,255,.10); }
.nav-item.active::before { display: none; }
.nav-item.active::after { position: absolute; right: 12px; top: 50%; width: 4px; height: 4px; border-radius: 999px; background: var(--electric-cyan); box-shadow: 0 0 8px rgba(0,230,255,.55); content: ""; transform: translateY(-50%); }
.nav-item.active svg { color: var(--electric-cyan); }
.nav-item-disabled { color: rgba(241,245,250,.54); }

.investment-nav-group { display: grid; gap: 4px; }
.nav-disclosure { width: 100%; border: 0; background: transparent; text-align: left; }
.nav-disclosure .nav-chevron { margin-left: auto; width: 15px; height: 15px; transition: transform .18s ease; }
.nav-disclosure[aria-expanded="true"] .nav-chevron { transform: rotate(90deg); }
.investment-subnav { position: relative; display: grid; gap: 3px; margin: -1px 8px 10px 12px; padding: 14px 10px 10px; overflow: hidden; border: 1px solid rgba(0, 216, 239, .26); border-top: 2px solid rgba(0, 216, 239, .92); border-radius: 0 0 14px 14px; background: linear-gradient(145deg, rgba(5, 29, 53, .94), rgba(10, 45, 78, .82)); box-shadow: inset 0 1px 20px rgba(0, 216, 239, .05), 0 9px 20px rgba(0,0,0,.16); }
.investment-subnav::before { display: none; }
.investment-subnav[hidden] { display: none; }
.investment-subnav button { position: relative; display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 10px 0 15px; border: 0; border-radius: 9px; color: rgba(224, 239, 247, .72); background: transparent; font: 600 11px var(--font-ui); text-align: left; cursor: pointer; }
.investment-subnav button::before { position: absolute; left: -20px; width: 7px; height: 7px; border: 2px solid rgba(171, 204, 219, .72); border-radius: 50%; background: var(--ocean-depth); content: ""; }
.investment-subnav button:hover, .investment-subnav button:focus-visible { color: #fff; background: rgba(255,255,255,.08); outline: none; }
.investment-subnav button.active { color: #0c2945; background: #eff5fa; box-shadow: 0 5px 12px rgba(0,0,0,.12); }
.investment-subnav button.active::before { border-color: #0b2d4d; background: #0b2d4d; box-shadow: 0 0 0 3px rgba(239,245,250,.18); }
.investment-subnav button svg { display: none; }

/* Submenú sobrio: jerarquía documental, no tarjetas llamativas. */
.nav-disclosure { min-height: 38px; padding: 0 10px; border-radius: 9px; font-weight: 600; }
.nav-disclosure.active { border: 0; color: rgba(241,245,250,.9); background: transparent; box-shadow: none; }
.nav-disclosure.active::after { display: none; }
.investment-subnav { gap: 2px; margin: 0 0 6px 35px; padding: 2px 0 2px 13px; }
.investment-subnav::before { background: rgba(183, 208, 220, .28); }
.investment-subnav button { min-height: 43px; padding: 0 12px; border-radius: 10px; color: rgba(224,239,247,.78); font-size: 12px; font-weight: 600; }
.investment-subnav button::before { display:none; }
.investment-subnav button svg { display:block; width:18px; height:18px; color:#b5c8d9; }
.investment-subnav button.active { color: #fff !important; background: rgba(27, 76, 123, .7) !important; box-shadow: none !important; font-weight: 700; }
.investment-subnav button.active svg { color: var(--electric-cyan); }
.investment-subnav button.active::after { position:absolute; right:13px; width:9px; height:9px; border-radius:50%; background:var(--electric-cyan); box-shadow:0 0 10px rgba(0,230,255,.55); content:""; }
.sidebar-profile { margin-top: auto; border-top-color: rgba(241,245,250,.12); color: #fff; }
.sidebar-profile small { color: rgba(241,245,250,.56); }.sidebar-profile .avatar { border-color: var(--electric-cyan); background: var(--ocean-depth); }
.main-content { margin-left: 244px; }
.topbar { min-height: 82px; padding: 14px 30px; border-bottom-color: var(--border); background: rgba(255,255,255,.96); }
.sidebar-collapse { width: 42px; height: 42px; border-color: var(--border); border-radius: var(--radius-sm); color: var(--ocean-depth); background: #fff; }
.title-group h1 { color: var(--text-primary); font-family: var(--font-site); font-size: clamp(25px, 2vw, 31px); font-weight: 700; letter-spacing: -.8px; }
.title-group > div > p:last-child { color: var(--text-secondary); font-size: 12px; }.eyebrow, .section-kicker { color: #087FE8; }
.global-search { width: 300px; height: 42px; border-color: var(--border); border-radius: var(--radius-sm); background: #fff; }.global-search input { font-size: 12px; }
.period-control, .date-range-control { min-height: 42px; border-color: var(--border); border-radius: var(--radius-sm); }.date-range-control { min-width: 220px; flex-direction: row; align-items: center; gap: 10px; }.date-range-control > span:first-child { display: none; }.date-range-inputs { gap: 5px; }.date-range-inputs input { width: 102px; }
.currency-control { min-width: 82px; gap: 4px; }.currency-control select { min-width: 58px; }.currency-control > span { display: none; }
.topbar-primary { min-height: 44px; border: 0; border-radius: var(--radius-sm); background: linear-gradient(135deg, #0B2D4D 0%, #008ED8 55%, #00CFE8 100%); box-shadow: 0 0 0 1px rgba(0,230,255,.08), 0 8px 18px rgba(0,142,216,.20); }.topbar-primary:hover { background: linear-gradient(135deg, #0B2D4D 0%, #008ED8 55%, #00CFE8 100%); box-shadow: 0 0 16px rgba(0,230,255,.15), 0 9px 20px rgba(0,142,216,.24); }
.topbar-primary[hidden] { display: none !important; }
.notification-button { border-color: var(--border); border-radius: var(--radius-sm); color: var(--ocean-depth); }.notification-button span { background: var(--critical); }
.header-user { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 2px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--ocean-depth), #177bb8); box-shadow: 0 0 0 1px var(--border); font-size: 11px; font-weight: 700; }

.executive-hero { padding-top: 26px; padding-bottom: 17px; }.executive-hero h2 { color: var(--text-primary); font-family: var(--font-site); font-size: clamp(30px, 3vw, 36px); font-weight: 700; letter-spacing: -1px; }.executive-hero h2 span { color: #087FE8; }.executive-hero > div > p:last-child { color: var(--text-secondary); font-size: 13px; }.executive-hero-meta { border-color: var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }.executive-hero-meta span { color: #087FE8; }.executive-hero-meta span i { background: #087FE8; }
.filters { padding-top: 10px; }.filters label > span { color: var(--text-secondary); }.filters select { min-height: 39px; border-color: var(--border); border-radius: var(--radius-sm); }.filters .secondary-button { min-height: 39px; border-color: var(--border); border-radius: var(--radius-sm); color: var(--text-primary); }.filters .secondary-button:hover { border-color: rgba(0,230,255,.45); background: #F4FEFF; }
.dashboard-body { gap: 16px; }.kpi-grid { gap: 14px; }.kpi-card { min-height: 138px; padding: 18px; border-color: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }.kpi-card:hover, .panel:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }.metric-icon { border-radius: var(--radius-sm); }.metric-icon.teal { color: #087FE8; background: #E6F6FF; }.metric-icon.violet { color: var(--ocean-depth); background: #E9F3FF; }.metric-icon.amber { color: #bf7411; background: #FFF4DD; }.metric-icon.red { color: var(--critical); background: #FFF0F0; }.kpi-card h3 { color: var(--text-secondary); font-size: 11px; }.kpi-value { color: var(--text-primary); font-size: 29px; }.kpi-note { color: var(--text-secondary); font-size: 11px; }.kpi-card:nth-child(1)::after, .kpi-card:nth-child(4)::after { position: absolute; right: -13px; bottom: -21px; width: 95px; height: 95px; border-radius: 70% 20% 0 0; content: ""; opacity: .28; }.kpi-card:nth-child(1)::after { background: linear-gradient(135deg, var(--electric-cyan), #087FE8); }.kpi-card:nth-child(4)::after { background: var(--salmon-coral); }.kpi-card { position: relative; }.kpi-card > * { position: relative; z-index: 1; }.sparkline { height: 23px; }.sparkline polyline { stroke: #087FE8; }
.dashboard-grid { gap: 16px; }.primary-grid { grid-template-columns: .85fr 1.28fr 1.52fr; }.secondary-grid { grid-template-columns: .95fr 1.12fr 1.45fr; }.panel { border-color: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }.panel-heading h2, .portfolio-heading h2 { color: var(--text-primary); font-family: var(--font-site); font-size: 18px; font-weight: 700; }.panel-badge { color: #087FE8; background: #E6F6FF; }.status-panel, .timeline-panel { min-height: 330px; }.status-content { min-height: 254px; }.donut { width: 143px; height: 143px; }.donut strong { color: var(--text-primary); }.legend-row { border-color: var(--border); background: #fff; color: var(--text-secondary); }.legend-row:hover { border-color: rgba(0,230,255,.45); background: #F4FEFF; }.trend-charts { min-height: 275px; }.performance-metric { border-color: var(--border); background: #fff; }.performance-metric.spi > span { background: #087FE8; }.performance-metric.cpi > span { background: var(--ocean-depth); }.performance-metrics p { color: var(--text-secondary); }.performance-line.spi { background: #087FE8; }.performance-line.cpi { background: var(--ocean-depth); }.chart-grid-line { stroke: #E8EDF3; }.chart-axis-label { fill: var(--text-secondary); }.timeline { min-height: 250px; }.portfolio-track { background: repeating-linear-gradient(90deg, #fff 0, #fff calc(14.28% - 1px), #edf2f7 calc(14.28% - 1px), #edf2f7 14.28%); }.portfolio-project-bar { min-height: 9px; }
.finance-grid { padding-top: 15px; }.finance-card { border-color: var(--border); background: #fff; }.finance-card h3 { color: var(--text-secondary); }.finance-card strong { color: var(--text-primary); }.alerts-list { padding-top: 15px; }.alert-item { border-color: var(--border); background: #fff; }
.intelligence-card { position: relative; min-height: 262px; overflow: hidden; border: 1px solid rgba(0,230,255,.18); border-radius: var(--radius-lg); background: var(--deep-ocean); box-shadow: var(--shadow-card); }.intelligence-card::before, .intelligence-card::after { position: absolute; right: -20px; width: 230px; height: 120px; border: 1px solid rgba(0,230,255,.25); border-radius: 50%; content: ""; transform: rotate(-20deg); }.intelligence-card::before { top: 25px; box-shadow: 0 0 22px rgba(0,230,255,.08); }.intelligence-card::after { bottom: -65px; right: 23px; border-color: rgba(255,122,110,.30); }.intelligence-card > * { position: relative; z-index: 1; }.intelligence-card .section-kicker, .intelligence-topline span { color: var(--electric-cyan); }.intelligence-topline span { color: var(--deep-ocean); background: var(--electric-cyan); }.intelligence-card h2 { font-family: var(--font-site); font-size: 19px; font-weight: 700; }.intelligence-copy { color: rgba(241,245,250,.66); }.intelligence-item { border-top-color: rgba(241,245,250,.12); }.intelligence-item > span { background: var(--electric-cyan); }.intelligence-item.warning > span { background: var(--warning); }.intelligence-item.critical > span { background: var(--salmon-coral); }.intelligence-button { color: var(--electric-cyan); }
.portfolio-panel { border-radius: var(--radius-lg); }.portfolio-heading { padding: 20px 22px 13px; }.table-search { border-color: var(--border); border-radius: var(--radius-sm); }.portfolio-panel thead { background: #F8FBFE; }.portfolio-panel th { color: var(--text-secondary); }.portfolio-panel tbody tr:hover { background: #F5FBFF; }
body.sidebar-collapsed .sidebar { width: 72px; background: radial-gradient(ellipse 180% 190px at -30% 12%, transparent 68%, rgba(0,230,255,.14) 69%, transparent 70%), radial-gradient(ellipse 180% 230px at 120% 66%, transparent 72%, rgba(0,142,216,.12) 73%, transparent 74%), linear-gradient(180deg, #06192B 0%, #0A2945 42%, var(--deep-ocean) 100%); }.sidebar.collapsed .brand { height: 48px; margin: 0 0 19px; padding: 4px; background: transparent; }.sidebar.collapsed .brand > img:first-child { display: none; }.sidebar.collapsed .brand .brand-symbol { display: block; width: 39px; margin: 0 auto; }.sidebar.collapsed .nav-item.active::after { display: none; } body.sidebar-collapsed .main-content { margin-left: 72px; }

.session-modal-actions { display:flex; align-items:center; gap:8px; }
.session-modal-actions .secondary-button { min-height:36px; padding:8px 12px; font-size:12px; }
@media (max-width:520px) { .session-modal-actions .secondary-button { padding:8px 10px; font-size:11px; } }
.sidebar.collapsed .nav-item:hover::before,
.sidebar.collapsed .nav-item:focus-visible::before { position: absolute; z-index: 12; top: 50%; left: calc(100% + 12px); display: block; width: max-content; max-width: 175px; padding: 8px 10px; border: 1px solid rgba(0,230,255,.24); border-radius: 9px; color: var(--cool-white); background: var(--ocean-depth); box-shadow: 0 8px 20px rgba(7,26,43,.24); content: attr(data-tooltip); font-size: 11px; font-weight: 700; line-height: 1.2; pointer-events: none; transform: translateY(-50%); }
body.sidebar-collapsed .executive-hero,
body.sidebar-collapsed .filters,
body.sidebar-collapsed .dashboard-body { max-width: 1580px; margin-right: 34px; margin-left: 0; }
@media (max-width: 1450px) { .primary-grid { grid-template-columns: .8fr 1.2fr; }.timeline-panel { grid-column: 1 / -1; }.secondary-grid { grid-template-columns: 1fr 1.1fr; }.intelligence-card { grid-column: 1 / -1; }.intelligence-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1200px) { .global-search { width: 220px; }.topbar-primary { padding: 0 13px; }.date-range-control { min-width: 205px; }.date-range-inputs input { width: 92px; } }
@media (max-width: 1100px) { .sidebar { width: 244px; }.sidebar.collapsed { width: 244px; }.sidebar.collapsed .brand { margin: 0 7px 20px; padding: 0 5px 10px; }.sidebar.collapsed .brand > img:first-child { display: block; width: min(100%, 205px); }.sidebar.collapsed .brand .brand-symbol { display: none; }.topbar { padding: 14px 22px; }.global-search { display: none; }.header-user { display: none; } }
@media (max-width: 760px) { .topbar { min-height: auto; padding: 13px 15px; }.title-group h1 { font-size: 23px; }.topbar-actions { width: 100%; }.date-range-control { display: flex; }.currency-control { margin-left: 0; }.executive-hero { padding: 23px 17px 12px; }.executive-hero h2 { font-size: 30px; }.filters, .dashboard-body { padding-right: 17px; padding-left: 17px; }.kpi-grid { grid-template-columns: repeat(2, 1fr); }.primary-grid, .secondary-grid { grid-template-columns: 1fr; }.intelligence-card { grid-column: auto; }.intelligence-list { grid-template-columns: 1fr; }.header-user { display: grid; }.topbar-primary { width: auto; font-size: 11px; }.topbar-primary svg { width: 16px; } }
@media (max-width: 470px) { .kpi-grid { grid-template-columns: 1fr; }.date-range-control { display: none; }.topbar-primary { width: 42px; padding: 0; font-size: 0; }.topbar-primary svg { width: 18px; }.header-user { display: none; } }

/* Afinación de los módulos de control del Dashboard. */
.secondary-grid { grid-template-columns: 1.08fr 1.28fr 1.42fr; align-items: stretch; }
.finance-panel, .alerts-panel { display: flex; min-width: 0; flex-direction: column; }
.finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; gap: 10px; padding: 15px 18px 18px; }
.finance-card { min-height: 108px; padding: 13px 14px; border-color: var(--border); border-radius: var(--radius-md); background: linear-gradient(145deg, #fff, #F8FBFF); }
.finance-card h3 { max-width: calc(100% - 33px); min-height: 0; margin-bottom: 8px; color: var(--text-secondary); font-size: 10px; line-height: 1.35; text-transform: none; }
.finance-card strong { color: var(--text-primary); font-size: 19px; letter-spacing: -.35px; }
.finance-card p { max-width: calc(100% - 15px); margin-top: 5px; font-size: 10px; line-height: 1.35; }
.finance-card svg { right: 12px; bottom: 12px; width: 23px; height: 23px; }
.alerts-list { display: grid; flex: 1; max-height: none; gap: 9px; align-content: start; padding: 15px 18px 18px; }
.alert-item { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "dot copy priority" "dot action priority"; gap: 2px 9px; min-height: 54px; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.alert-item:hover { border-color: rgba(0,230,255,.35); background: #F8FDFF; }
.alert-item .legend-dot { grid-area: dot; align-self: start; margin-top: 5px; width: 8px; height: 8px; }
.alert-copy { grid-area: copy; min-width: 0; }.alert-copy strong { overflow: hidden; color: var(--text-primary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.alert-copy span { color: var(--text-secondary); font-size: 10px; }
.alert-action { grid-area: action; color: #087FE8; font-size: 10px; font-weight: 600; }
.alert-priority { grid-area: priority; align-self: center; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; }.alert-priority.high { color: #B42318; background: #FFE8E7; }.alert-priority.medium { color: #9A6700; background: #FFF2D6; }
.intelligence-card { min-height: 0; }.intelligence-list { gap: 6px; }.intelligence-item { padding: 7px 0; }
@media (max-width: 1450px) { .secondary-grid { grid-template-columns: 1fr 1.15fr; }.intelligence-card { grid-column: 1 / -1; }.finance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.finance-card { min-height: 106px; } }
@media (max-width: 1100px) { .finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .secondary-grid { grid-template-columns: 1fr; }.intelligence-card { grid-column: auto; }.finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 470px) { .finance-grid { grid-template-columns: 1fr; }.alert-item { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "dot copy" "dot action" "dot priority"; }.alert-priority { justify-self: start; } }

/* Cursor de marca: símbolo oficial con aro de alto contraste para fondos claros y oscuros. */
.brand-cursor { position: fixed; z-index: 9999; top: 0; left: 0; width: 32px; height: 32px; pointer-events: none; opacity: 0; transform: translate3d(-80px, -80px, 0); transition: opacity .14s ease; }
.brand-cursor.visible { opacity: 1; }
.brand-cursor span { display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid rgba(241,245,250,.96); border-radius: 50%; background: var(--deep-ocean); box-shadow: 0 0 0 1px rgba(0,230,255,.72), 0 4px 12px rgba(7,26,43,.28); transform: translate(-5px, -5px); }
.brand-cursor img { display: block; width: 21px; height: auto; }
@media (pointer: fine) { .brand-cursor-ready, .brand-cursor-ready button, .brand-cursor-ready a, .brand-cursor-ready select, .brand-cursor-ready input, .brand-cursor-ready [role="button"], .brand-cursor-ready .clickable { cursor: none; } }
@media (pointer: coarse) { .brand-cursor { display: none; } }

/* El cursor nativo conserva mejor precisión al capturar partidas y calendarios. */
.brand-cursor { display: none !important; }
@media (pointer: fine) {
  body, .brand-cursor-ready, .brand-cursor-ready button, .brand-cursor-ready a, .brand-cursor-ready select, .brand-cursor-ready input, .brand-cursor-ready [role="button"], .brand-cursor-ready .clickable { cursor: auto; }
  .brand-cursor-ready button, .brand-cursor-ready a, .brand-cursor-ready [role="button"], .brand-cursor-ready .clickable { cursor: pointer; }
  .brand-cursor-ready input, .brand-cursor-ready textarea { cursor: text; }
}


@media (max-width: 470px) {
  .filters { grid-template-columns: 1fr; }
  .filters label:nth-child(2) { display: none; }
  .status-content { grid-template-columns: 1fr; }
  .status-legend { grid-template-columns: 1fr 1fr; }
  .finance-grid { grid-template-columns: 1fr; }
  .finance-card { min-height: 96px; }
  .portfolio-heading { display: block; }
  .table-search { width: 100%; margin-top: 10px; }
  .table-footer { align-items: flex-start; gap: 10px; flex-direction: column; }
  .management-header { display: grid; }
  .management-stats { grid-template-columns: 1fr; }
}

/* Sistema tipográfico unificado para toda la plataforma. */
:root {
  --font-ui: var(--font-site);
  --text-xs: 10px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-title: 17px;
  --text-page-title: 28px;
}

body,
button,
select,
input,
textarea,
table {
  font-family: var(--font-site);
}

.title-group h1 {
  font-size: var(--text-page-title);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.8px;
  text-transform: none;
}

.title-group > div > p:last-child,
.management-header p:last-child,
.panel-heading p:last-child,
.portfolio-heading p:last-child {
  font-size: var(--text-sm);
  line-height: 1.45;
}

.eyebrow,
.section-kicker,
.filters label > span,
.form-grid label > span,
.kpi-card h3,
.panel-badge,
.read-only-badge,
.data-mode-badge {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.45px;
}

.panel-heading h2,
.portfolio-heading h2,
.management-header h2,
.module-heading h2,
.modal-header h2,
.detail-card h2 {
  font-family: var(--font-site);
  font-size: var(--text-title);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.35px;
  text-transform: none;
}

.kpi-value,
.performance-metric strong,
.finance-card strong,
.detail-kpi strong {
  font-family: var(--font-site);
  font-weight: 800;
}

.kpi-note,
.legend-row,
.performance-legend,
.timeline-project,
.alert-item,
.detail-meta,
.activity-entry,
.session-user,
.notice-card,
.project-cell,
.finance-card p {
  font-size: var(--text-sm);
}

.filters select,
.date-range-inputs input,
.currency-control select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.table-search input {
  font-size: var(--text-sm);
  font-weight: 600;
}

.compact-table th,
.compact-table td,
.portfolio-table th,
.portfolio-table td {
  font-size: 11px;
}

.compact-table th,
.portfolio-table th {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.3px;
}

.chart-y-label,
.chart-x-label {
  font-family: var(--font-site);
  font-weight: 700;
}

@media (max-width: 760px) {
  .title-group h1 { font-size: 22px; }
  .panel-heading h2,
  .portfolio-heading h2,
  .management-header h2,
  .module-heading h2,
  .modal-header h2,
  .detail-card h2 { font-size: 16px; }
}

/* Vista móvil: el contenido usa todo el ancho y el menú se abre como panel táctil. */
@media (max-width: 1100px) {
  html,
  body { overflow-x: hidden; }

  .sidebar {
    width: min(86vw, 320px);
    transform: translateX(-105%);
  }

  .sidebar.open { transform: translateX(0); }

  .main-content,
  body.sidebar-collapsed .main-content {
    width: 100%;
    min-width: 0;
    margin-left: 0 !important;
  }

  body.sidebar-collapsed .executive-hero,
  body.sidebar-collapsed .filters,
  body.sidebar-collapsed .dashboard-body {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 0;
    display: block;
    min-height: 0;
    padding: 12px 15px;
  }

  .title-group {
    min-width: 400px;
    gap: 10px;
  }

  .title-group h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.12;
    letter-spacing: -0.55px;
  }

  .mobile-menu {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .topbar-actions {
    display: flex;
    width: 100%;
    margin-top: 11px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .date-range-control {
    min-width: 0;
    flex: 1 1 auto;
  }

  .date-range-inputs {
    width: 100%;
    justify-content: space-between;
  }

  .date-range-inputs input {
    width: min(40vw, 126px);
    min-width: 0;
  }

  .currency-control {
    min-width: 72px;
    flex: 0 0 72px;
  }

  .topbar-primary {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 0;
  }

  .topbar-primary svg { width: 18px; }

  .notification-button,
  .header-user {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .executive-hero {
    gap: 14px;
    padding: 21px 17px 13px;
  }

  .executive-hero h2 { font-size: 29px; }

  .executive-hero-meta { width: 100%; }

  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 11px 17px 16px;
  }

  .filters label:nth-child(3),
  .filters label:nth-child(5) { display: grid; }

  .filters .secondary-button { grid-column: 1 / -1; }

  .dashboard-body { padding: 0 17px 28px; }

  .kpi-grid { grid-template-columns: 1fr; }

  .kpi-card { min-width: 0; min-height: 122px; }

  .panel,
  .portfolio-panel { min-width: 0; }

  .timeline,
  .portfolio-gantt,
  .project-gantt-card,
  .table-wrap,
  .weekly-table-wrap { -webkit-overflow-scrolling: touch; }

  .portfolio-heading { padding: 18px 16px 12px; }

  .table-footer { padding: 12px 16px; }
}

@media (max-width: 470px) {
  .topbar-actions { gap: 8px; }
  .date-range-control { display: none; }
  .currency-control { margin-left: 0; }
  .header-user { display: none; }
  .filters { grid-template-columns: 1fr; }
  .filters label:nth-child(2) { display: grid; }
  .finance-grid { grid-template-columns: 1fr; }
}

/* La vista táctil prioriza lectura del portafolio; los filtros quedan disponibles sin ocupar toda la primera pantalla. */
.mobile-filter-toggle { display: none; }

@media (max-width: 760px) {
  .title-group {
    width: 100%;
    min-width: 0 !important;
  }

  .title-group > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .title-group h1 {
    max-width: 100%;
    overflow: visible;
    font-size: 20px;
    text-overflow: clip;
    white-space: normal;
  }

  .executive-hero {
    padding-bottom: 10px;
  }

  .executive-hero h2 {
    font-size: 27px;
  }

  .mobile-filter-toggle {
    display: grid;
    width: calc(100% - 34px);
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    margin: 0 17px 14px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 142, 216, .18);
    border-radius: 14px;
    color: var(--ocean-depth);
    background: linear-gradient(135deg, #F6FCFF, #FFF);
    box-shadow: 0 7px 18px rgba(7, 26, 43, .06);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
  }

  .mobile-filter-toggle > svg:first-child {
    width: 18px;
    height: 18px;
    color: #087FE8;
  }

  .mobile-filter-toggle small {
    padding: 4px 7px;
    border-radius: 999px;
    color: #087FE8;
    background: #E6F6FF;
    font-size: 9px;
    font-weight: 800;
  }

  .mobile-filter-toggle .mobile-filter-arrow {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
    transform: rotate(90deg);
  }

  .mobile-filter-toggle[aria-expanded="true"] .mobile-filter-arrow {
    transform: rotate(-90deg);
  }

  .filters {
    display: none;
    margin: 0 17px 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #FFF;
    box-shadow: var(--shadow-card);
  }

  .filters.mobile-open {
    display: grid;
  }

  .filters .secondary-button {
    min-height: 42px;
    color: #087FE8;
    background: #F4FBFF;
  }

  .dashboard-body {
    padding-top: 2px;
  }

  .kpi-card {
    min-height: 112px;
    padding: 16px;
  }

  .kpi-value {
    font-size: 27px;
  }

  .panel-heading,
  .portfolio-heading {
    padding-right: 2px;
    padding-left: 2px;
  }

  .trend-charts {
    min-height: 0;
    padding: 16px 14px 18px;
  }

  .performance-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 13px;
  }

  .performance-metric {
    min-height: 69px;
    padding: 10px;
  }

  .performance-metric > span {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 10px;
  }

  .performance-metric strong {
    font-size: 20px;
    letter-spacing: -.35px;
  }

  .performance-metric small {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.25;
  }

  .performance-metrics p {
    grid-column: 1 / -1;
    padding: 2px 2px 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.55;
  }

  .performance-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 2px 2px 9px;
    font-size: 11px;
    line-height: 1.35;
  }

  .performance-legend span {
    align-items: flex-start;
    gap: 7px;
  }

  .performance-line {
    width: 22px;
    min-width: 22px;
    margin-top: 6px;
  }

  .performance-canvas,
  .chart-canvas {
    min-height: 245px;
  }

  .chart-canvas svg {
    height: 245px;
  }

  .chart-y-label {
    font-size: 14px;
    font-weight: 800;
  }

  .chart-x-label {
    font-size: 13px;
    font-weight: 800;
  }
}

/* Densidad de escritorio: contenido unido al sidebar y lectura ejecutiva sin espacios muertos. */
@media (min-width: 1101px) {
  .sidebar {
    width: 244px;
  }

  .main-content {
    width: calc(100% - 244px);
    margin-left: 244px !important;
  }

  .topbar {
    min-height: 74px;
    gap: 16px;
    padding: 11px 28px;
  }

  .title-group {
    min-width: 0;
    flex: 1 1 auto;
  }

  .title-group > div {
    min-width: 0;
  }

  .title-group h1 {
    overflow: hidden;
    margin: 0;
    font-size: clamp(23px, 1.75vw, 28px);
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .title-group > div > p:last-child {
    margin-top: 2px;
    font-size: 11px;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .executive-hero {
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 7px;
  }

  .executive-hero h2 {
    margin: 1px 0 3px;
    font-size: 30px;
    line-height: 1.12;
  }

  .executive-hero > div > p:last-child {
    margin: 0;
  }

  .executive-hero-meta {
    min-width: 170px;
    padding: 11px 13px;
  }

  .filters {
    gap: 10px;
    padding-top: 6px;
    padding-bottom: 12px;
  }

  .filters label > span {
    margin-bottom: 5px;
  }

  .dashboard-body {
    padding-top: 0;
  }
}

@media (min-width: 1101px) and (max-width: 1600px) {
  .global-search {
    display: none;
  }

  .topbar {
    padding-right: 22px;
    padding-left: 22px;
  }

  .topbar-primary {
    padding-right: 13px;
    padding-left: 13px;
  }
}

/* Firma institucional integrada al cierre de cada vista. */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 34px 26px;
  color: #6a7b91;
  font-size: 11px;
  letter-spacing: .01em;
  text-align: center;
}

.app-footer strong {
  color: #1677d2;
  font-size: 10px;
  letter-spacing: .09em;
}

.app-footer-mark {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #b9d9f4;
  border-radius: 50%;
  color: #087fe8;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .app-footer {
    gap: 6px;
    padding: 2px 20px 22px;
    font-size: 10px;
    line-height: 1.55;
  }
}

/* El perfil siempre conserva su área; la navegación se desplaza cuando la altura es limitada. */
.sidebar {
  overflow: hidden;
}

.sidebar .main-nav {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 230, 255, .36) transparent;
}

.sidebar .main-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar .main-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 230, 255, .34);
}

.sidebar-profile {
  z-index: 2;
  flex: 0 0 auto;
  min-height: 70px;
  margin-top: 10px;
  padding: 10px 9px;
  border: 1px solid rgba(241, 245, 250, .13);
  background: rgba(4, 24, 43, .54);
  backdrop-filter: blur(10px);
}

.sidebar-profile > div:not(.avatar) {
  min-width: 0;
}

.sidebar-profile strong,
.sidebar-profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile strong {
  font-size: 11px;
}

.sidebar-profile small {
  letter-spacing: .42px;
}

.platform-credit {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 3px 0 0;
  color: #6a7b91;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}

.platform-credit span {
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border: 1px solid #b9d9f4;
  border-radius: 50%;
  color: #087fe8;
  font-size: 8px;
  line-height: 1;
}

@media (max-width: 760px) {
  .platform-credit {
    display: none;
  }
}

/* Crédito de autor integrado al bloque de marca, no como un elemento independiente. */
.brand {
  height: 88px;
  gap: 5px;
}

.brand-credit {
  display: block;
  color: rgba(241, 245, 250, .46);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.sidebar.collapsed .brand-credit {
  display: none;
}

@media (max-width: 1100px) {
  .sidebar.collapsed .brand-credit {
    display: block;
  }
}

/* Encabezado compacto: un único título, sin repetir contexto del dashboard. */
.topbar-context {
  display: none !important;
}

.title-group {
  gap: 0;
}

.topbar {
  min-height: 64px;
}

.title-group h1 {
  margin: 0;
  font-size: clamp(24px, 1.8vw, 28px);
  line-height: 1.1;
}

@media (max-width: 760px) {
  .topbar {
    min-height: 58px;
  }
}

/* Mobile-first finishing pass: controls stay reachable and dense data only scrolls inside its own panel. */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  .main-content { width: 100%; min-width: 0; }

  .sidebar { width: min(86vw, 330px); padding: 18px 14px 14px; }
  .sidebar .brand { height: 78px; padding-bottom: 10px; }
  .sidebar .main-nav { padding-bottom: 12px; }
  .sidebar-profile { min-height: 64px; }

  .topbar { display: flex; flex-wrap: nowrap; gap: 10px; padding: 10px 15px; }
  .title-group { width: auto; min-width: 0 !important; flex: 1 1 0; gap: 9px; }
  .title-group h1 { overflow: hidden; font-size: 21px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-menu { width: 38px; height: 38px; flex: 0 0 38px; }
  .topbar-actions { width: auto; flex: 0 0 auto; flex-wrap: nowrap; margin-left: auto; }
  .currency-control { min-height: 38px; margin-left: 0; padding: 4px 7px; }
  .currency-control > span { display: none; }
  .currency-control select { min-width: 53px; font-size: 11px; }
  .data-mode-badge { display: grid; width: 30px; min-width: 30px; height: 30px; place-items: center; padding: 0; border-radius: 50%; font-size: 0; }
  .data-mode-badge::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; }
  .notification-button { width: 38px; height: 38px; }

  .executive-hero { gap: 10px; padding-top: 20px; }
  .executive-hero h2 { font-size: 28px; line-height: 1.08; }
  .executive-hero > div > p:last-child { font-size: 13px; line-height: 1.45; }
  .executive-hero-meta { padding: 10px 12px; }
  .dashboard-body { gap: 14px; padding-bottom: 28px; }
  .kpi-grid { gap: 11px; }
  .kpi-card { min-height: 108px; padding: 15px; overflow: hidden; }
  .kpi-card::after { max-width: 38%; }
  .kpi-value { max-width: 100%; overflow: hidden; font-size: 26px; text-overflow: ellipsis; }
  .kpi-note { font-size: 10px; }

  .panel, .portfolio-panel, .management-panel { border-radius: 15px; }
  .panel-heading { min-height: 0; padding: 16px 15px 0; }
  .panel-heading h2, .portfolio-heading h2 { font-size: 19px; line-height: 1.15; }
  .status-content, .trend-charts, .alerts-list { padding-right: 14px; padding-left: 14px; }
  .timeline { min-height: 230px; padding: 14px; overflow-x: auto; overscroll-behavior-x: contain; }
  .portfolio-gantt { min-width: 690px; }
  .table-wrap, .weekly-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
  .table-wrap table, .weekly-table-wrap table { min-width: 720px; }
  .chart-canvas, .performance-canvas { min-height: 230px; overflow: hidden; }
  .chart-canvas svg { min-width: 0; height: 230px; }
  .finance-grid { grid-template-columns: 1fr; padding: 13px; }
  .finance-card { min-height: 0; padding: 14px; }
  .intelligence-card { min-height: 0; padding: 17px; }
  .intelligence-card h2 { font-size: 22px; }

  .management-view { padding-right: 15px; padding-left: 15px; }
  .management-toolbar, .view-toolbar, .portfolio-toolbar { align-items: stretch; flex-direction: column; }
  .management-toolbar > *, .view-toolbar > *, .portfolio-toolbar > * { width: 100%; }
  .form-grid, .project-form-grid, .settings-grid { grid-template-columns: 1fr !important; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .primary-button, .form-actions .secondary-button { width: 100%; min-height: 44px; }

  .modal-backdrop { align-items: flex-end; padding: 0; }
  .app-modal, .compact-modal, .session-modal, .project-detail-modal { width: 100%; max-height: min(92dvh, calc(100vh - 10px)); border-radius: 20px 20px 0 0; }
  .modal-header { position: sticky; z-index: 3; top: 0; padding: 15px 17px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
  .modal-header h2 { font-size: 17px; line-height: 1.2; }
  .modal-header .section-kicker { font-size: 9px; }
  .modal-close { width: 38px; height: 38px; flex: 0 0 38px; }
  .app-modal input, .app-modal select, .app-modal textarea { font-size: 16px; }
  .project-detail-modal .project-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
  .topbar { padding-right: 12px; padding-left: 12px; }
  .data-mode-badge { width: 27px; min-width: 27px; height: 27px; }
  .notification-button { display: none; }
  .currency-control { padding-right: 4px; padding-left: 4px; }
  .currency-control select { min-width: 48px; }
  .executive-hero, .filters, .dashboard-body, .management-view { padding-right: 13px; padding-left: 13px; }
  .mobile-filter-toggle { width: calc(100% - 26px); margin-right: 13px; margin-left: 13px; }
  .filters { margin-right: 13px; margin-left: 13px; }
  .performance-metrics { grid-template-columns: 1fr 1fr; }
  .performance-metrics p { font-size: 11px; }
  .status-content { padding-right: 12px; padding-left: 12px; }
  .legend-row { min-height: 42px; padding: 8px; font-size: 10px; }
}

/* Dashboard executive renewal: clear hierarchy, generous charts, and a useful portfolio timeline. */
.dashboard-body { gap: 24px; }
.primary-grid { grid-template-columns: minmax(290px, .82fr) minmax(540px, 1.58fr); }
.timeline-panel { grid-column: 1 / -1; min-height: 0; }
.status-panel, .trends-panel { min-height: 390px; }
.timeline-panel .panel-heading { align-items: flex-end; padding: 24px 26px 13px; }
.timeline-panel .panel-heading h2::after { display: block; margin-top: 5px; color: var(--text-secondary); content: "Periodo, estatus e hitos confirmados por proyecto"; font-family: var(--font-site); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.status-panel .panel-heading, .trends-panel .panel-heading { padding: 24px 24px 8px; border-bottom: 0; }
.status-content { min-height: 305px; padding: 18px 24px 25px; }
.trend-charts { min-height: 320px; padding: 13px 24px 23px; }
.performance-metrics { grid-template-columns: minmax(135px, .72fr) minmax(135px, .72fr) minmax(220px, 1.45fr); gap: 12px; }
.performance-metric { min-height: 94px; padding: 14px; box-shadow: 0 6px 16px rgba(20, 39, 60, .04); }
.performance-metric strong { font-size: 26px; }
.performance-insight { align-self: stretch; display: grid; align-content: center; gap: 3px; margin: 0; padding: 13px 15px; border: 1px solid #dcebf5; border-left: 4px solid #008ED8; border-radius: 12px; background: linear-gradient(135deg, #f7fcff, #fff); }
.performance-insight > span { color: #65768d; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.performance-insight strong { color: var(--text-primary); font-size: 14px; line-height: 1.2; }
.performance-insight small { color: var(--text-secondary); font-size: 11px; line-height: 1.38; }
.performance-insight.healthy { border-left-color: #00CFE8; background: linear-gradient(135deg, #f2feff, #fff); }
.performance-insight.attention { border-left-color: var(--salmon-coral); background: linear-gradient(135deg, #fff8f7, #fff); }
.performance-insight.schedule { border-left-color: #008ED8; }
.performance-insight.cost { border-left-color: var(--salmon-coral); }
.performance-legend { gap: 18px; margin: 16px 0 4px; padding: 10px 12px; border-radius: 12px; background: #f7fafc; }
.performance-canvas { min-height: 225px; padding-top: 2px; }
.performance-canvas svg { width: 100%; height: 230px; }
.timeline { min-height: 0; padding: 0 26px 22px; overflow-x: auto; }
.timeline-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 880px; padding: 12px 0 14px; }
.timeline-intro strong, .timeline-intro span { display: block; }
.timeline-intro strong { color: var(--text-primary); font-size: 12px; }
.timeline-intro > div:first-child > span { margin-top: 3px; color: var(--text-secondary); font-size: 11px; }
.timeline-key { display: flex; align-items: center; gap: 15px; color: var(--text-secondary); font-size: 10px; font-weight: 700; }
.timeline-key > span { display: flex; align-items: center; gap: 6px; }
.timeline-key i { display: inline-block; }
.timeline-key-bar { width: 22px; height: 7px; border-radius: 999px; background: linear-gradient(90deg, #0B2D4D, #008ED8 55%, #00CFE8); }
.timeline-key-milestone { width: 9px; height: 9px; background: var(--salmon-coral); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(255,122,110,.25); transform: rotate(45deg); }
.timeline-status-key { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; min-width: 880px; margin: -1px 0 13px; padding: 10px 12px; border: 1px solid #e5edf4; border-radius: 12px; background: #fafcff; color: var(--text-secondary); font-size: 10px; font-weight: 700; }
.timeline-status-key > span { display: inline-flex; align-items: center; gap: 6px; }
.timeline-status-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(11,45,77,.08); }
.portfolio-gantt { min-width: 880px; overflow: hidden; border: 1px solid #e6edf3; border-radius: 16px; background: #fff; }
.portfolio-gantt-header, .portfolio-gantt-row { grid-template-columns: 205px minmax(650px, 1fr); }
.portfolio-gantt-header { min-height: 38px; align-items: center; padding: 0 13px; background: #f7fafc; color: #60718a; font-size: 10px; }
.portfolio-gantt-header > span { padding: 0 6px; }
.portfolio-timescale { height: 38px; background-size: 14.28% 100%; }
.portfolio-timescale span { top: 10px; padding-left: 9px; color: #62738a; font-size: 10px; font-weight: 800; }
.portfolio-gantt-row { min-height: 54px; }
.portfolio-gantt-row .timeline-project { width: 100%; min-height: 54px; padding: 7px 10px 7px 6px; border: 0; border-bottom: 1px solid #eef2f6; color: var(--text-primary); background: #fff; cursor: pointer; text-align: left; transition: background .18s ease; }
.portfolio-gantt-row .timeline-project:hover, .portfolio-gantt-row .timeline-project:focus-visible { background: #f2fbff; outline: none; }
.timeline-project > span:last-child { min-width: 0; }
.timeline-project strong, .timeline-project small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-project strong { font-size: 12px; }
.timeline-project small { margin-top: 3px; color: #7b8aa0; font-size: 10px; font-weight: 700; }
.portfolio-track { min-height: 54px; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(14.28% - 1px), #edf2f6 calc(14.28% - 1px), #edf2f6 14.28%); }
.portfolio-project-bar { position: absolute; z-index: 1; top: 21px; height: 13px; min-width: 12px; padding: 0; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--project-color), color-mix(in srgb, var(--project-color) 60%, #fff)); box-shadow: 0 4px 10px color-mix(in srgb, var(--project-color) 24%, transparent); cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.portfolio-project-bar:hover, .portfolio-project-bar:focus-visible { z-index: 4; filter: saturate(1.2); outline: 3px solid color-mix(in srgb, var(--project-color) 24%, transparent); outline-offset: 3px; transform: scaleY(1.25); }
.portfolio-project-bar::after { top: 3px; right: 4px; width: 5px; height: 5px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.9); }
.milestone-diamond { top: 18px; width: 15px; height: 15px; border: 2px solid #fff; background: var(--milestone-color); box-shadow: 0 2px 8px rgba(17, 40, 66, .2); transform: translateX(-50%) rotate(45deg); }
.milestone-diamond:hover, .milestone-diamond:focus-visible { background: var(--milestone-color); outline-color: color-mix(in srgb, var(--milestone-color) 40%, transparent); transform: translateX(-50%) rotate(45deg) scale(1.16); }
.timeline-interaction { display: flex; align-items: center; gap: 9px; min-width: 880px; margin-top: 12px; padding: 11px 13px; border: 1px solid #e7eef4; border-radius: 12px; background: #fbfdff; color: var(--text-secondary); }
.timeline-interaction-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #008ED8; box-shadow: 0 0 0 4px rgba(0,142,216,.1); }
.timeline-interaction p { margin: 0; font-size: 11px; line-height: 1.4; }

/* Los tooltips flotantes retardaban la lectura y llegaban a permanecer tras un clic. */
.info-bubble { display: none !important; }
.info-bubble.investment-context { display: block !important; }

/* Cursor nativo: el símbolo de marca ya no se usa como puntero de interacción. */
html, body { cursor: auto !important; }
button, a, select, [role="button"], .clickable { cursor: pointer !important; }
input, textarea { cursor: text !important; }

/* La serie SPI/CPI comparte la tipografía sobria de las curvas financiera y física. */
.trends-panel .performance-legend { gap: 20px; margin: 14px 0 5px; padding: 0; border-radius: 0; background: transparent; }
.trends-panel .performance-legend span { color: #64748b; font-size: 11px; font-weight: 600; line-height: 1.25; }
.trends-panel .performance-line { width: 26px; height: 3px; border-radius: 999px; }
.trends-panel .performance-canvas { min-height: 226px; padding: 2px 2px 0 0; }
.trends-panel .performance-series-chart { width: 100%; height: 226px; overflow: visible; }
.trends-panel .performance-series-chart .chart-axis-label { fill: #718197 !important; stroke: none !important; stroke-width: 0 !important; font-family: var(--font-site)!important; font-size: 10px !important; font-weight: 400 !important; letter-spacing: 0 !important; }
.trends-panel .performance-series-chart .chart-y-label { font-size: 10px !important; }
.trends-panel .performance-series-chart .chart-x-label { font-size: 10px !important; }
.trends-panel .performance-series-chart .chart-grid-line { stroke: #e6edf4; stroke-dasharray: 4 5; }
.trends-panel .performance-series-chart polyline { stroke-width: 2.5; }
.trends-panel .performance-series-chart .chart-hotspot { transition: r .14s ease; }
.trends-panel .performance-series-chart .chart-hotspot:hover { r: 5.2px; }
.trends-panel .performance-insight { min-height: 90px; padding: 12px 14px; }
.trends-panel .performance-insight > span { font-size: 9px; }
.trends-panel .performance-insight strong { font-size: 13px; }
.trends-panel .performance-insight small { font-size: 10px; line-height: 1.35; }

@media (max-width: 760px) {
  .trends-panel .performance-legend { gap: 8px 14px; margin-top: 12px; }
  .trends-panel .performance-legend span { font-size: 10px; }
  .trends-panel .performance-canvas, .trends-panel .performance-series-chart { min-height: 215px; height: 215px; }
  .trends-panel .performance-series-chart .chart-axis-label, .trends-panel .performance-series-chart .chart-y-label, .trends-panel .performance-series-chart .chart-x-label { font-size: 9px !important; font-weight: 400 !important; }
}
.secondary-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.intelligence-card { grid-column: 1 / -1; min-height: auto; }
.intelligence-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1120px) {
  .primary-grid { grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.35fr); }
  .performance-metrics { grid-template-columns: 1fr 1fr; }
  .performance-metrics p { grid-column: 1 / -1; }
  .secondary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .dashboard-body { gap: 15px; }
  .primary-grid { grid-template-columns: 1fr; }
  .status-panel, .trends-panel { min-height: 0; }
  .status-panel .panel-heading, .trends-panel .panel-heading, .timeline-panel .panel-heading { padding: 18px 16px 9px; }
  .timeline-panel .panel-heading { align-items: flex-start; }
  .timeline-panel .panel-heading h2::after { font-size: 10px; line-height: 1.35; }
  .status-content { min-height: 0; padding: 13px 15px 18px; }
  .trend-charts { min-height: 0; padding: 10px 15px 18px; }
  .performance-metrics { gap: 9px; }
  .performance-metric { min-height: 82px; padding: 11px; }
  .performance-metric strong { font-size: 22px; }
  .performance-metrics p { padding: 9px 10px; font-size: 11px; }
  .performance-insight { padding: 11px 12px; }
  .performance-legend { flex-wrap: wrap; gap: 8px 15px; margin-top: 12px; padding: 9px 10px; font-size: 10px; }
  .performance-canvas, .performance-canvas svg { min-height: 215px; height: 215px; }
  .timeline { padding: 0 15px 16px; }
  .timeline-intro { min-width: 760px; padding-top: 10px; }
  .timeline-status-key { min-width: 760px; }
  .portfolio-gantt { min-width: 760px; }
  .portfolio-gantt-header, .portfolio-gantt-row { grid-template-columns: 175px minmax(585px, 1fr); }
  .timeline-interaction { min-width: 760px; }
}

@media (max-width: 470px) {
  .performance-metrics { grid-template-columns: 1fr 1fr; }
  .timeline-panel .panel-badge { font-size: 9px; }
  .timeline-intro strong { font-size: 11px; }
}

/* Mobile without lateral navigation: timelines become cards and tables become readable records. */
@media (max-width: 760px) {
  .timeline { min-height: 0; padding: 0 14px 16px; overflow: visible; }
  .timeline-intro, .timeline-status-key, .timeline-interaction { min-width: 0; }
  .timeline-intro { display: grid; gap: 9px; padding: 11px 0; }
  .timeline-key, .timeline-status-key { gap: 7px 12px; font-size: 9px; }
  .timeline-status-key { margin: 0 0 10px; padding: 9px 10px; }
  .portfolio-gantt { min-width: 0; overflow: hidden; border: 1px solid #dfe9f0; border-radius: 14px; background: #fff; box-shadow: 0 5px 15px rgba(11,45,77,.04); }
  .portfolio-gantt-header, .portfolio-gantt-row { display:grid; grid-template-columns:82px minmax(0,1fr); }
  .portfolio-gantt-header { min-height:38px; padding:0; background:#f7fafc; border-bottom:1px solid #e2ebf1; }
  .portfolio-gantt-header > span { display:flex; align-items:center; padding:0 9px; color:#64758b; font-size:9px; font-weight:800; text-transform:uppercase; }
  .portfolio-timescale { display:block; height:38px; background-size:25% 100%; }
  .portfolio-timescale .timeline-month { top:12px; padding-left:5px; color:#64758b; font-size:8px; letter-spacing:.02em; }
  .portfolio-timescale .timeline-month:nth-child(even) { display:none; }
  .portfolio-gantt-row { min-height:46px; margin:0; overflow:hidden; border:0; border-bottom:1px solid #edf2f6; border-radius:0; background:#fff; box-shadow:none; }
  .portfolio-gantt-row:last-child { border-bottom:0; }
  .portfolio-gantt-row .timeline-project { min-height:46px; padding:7px 8px; border:0; border-right:1px solid #edf2f6; }
  .portfolio-gantt-row .timeline-project .legend-dot { width:7px; height:7px; flex:0 0 7px; }
  .timeline-project strong { font-size:10px; }
  .timeline-project small { display:none; }
  .portfolio-track { min-height:46px; margin:0; border:0; border-radius:0; background:repeating-linear-gradient(90deg, #fff 0, #fff calc(25% - 1px), #edf2f6 calc(25% - 1px), #edf2f6 25%); }
  .portfolio-project-bar { top:17px; height:11px; box-shadow:0 3px 8px color-mix(in srgb, var(--project-color) 20%, transparent); }
  .milestone-diamond { top:15px; width:12px; height:12px; }
  .timeline-interaction { margin-top: 9px; padding: 9px 10px; }

  .table-wrap, .weekly-table-wrap, .cost-sheet-wrap { overflow: visible !important; }
  .table-wrap table, .weekly-table-wrap table, .cost-sheet-wrap table { display: block; width: 100%; min-width: 0 !important; border-collapse: separate; border-spacing: 0; }
  .table-wrap table thead, .weekly-table-wrap table thead, .cost-sheet-wrap table thead, .cost-sheet-wrap table tfoot { display: none; }
  .table-wrap table tbody, .weekly-table-wrap table tbody, .cost-sheet-wrap table tbody { display: grid; gap: 10px; }
  .table-wrap table tr, .weekly-table-wrap table tr, .cost-sheet-wrap table tr { display: block; overflow: hidden; border: 1px solid #e1eaf1; border-radius: 13px; background: #fff; box-shadow: 0 4px 12px rgba(11,45,77,.035); }
  .table-wrap table td, .weekly-table-wrap table td, .cost-sheet-wrap table td { display: grid; grid-template-columns: minmax(88px, .75fr) minmax(0, 1.25fr); gap: 10px; align-items: center; min-height: 39px; padding: 9px 11px; border-bottom: 1px solid #eef3f6; color: var(--text-primary); font-size: 11px; text-align: right; white-space: normal; }
  .table-wrap table td:last-child, .weekly-table-wrap table td:last-child, .cost-sheet-wrap table td:last-child { border-bottom: 0; }
  .table-wrap table td::before, .weekly-table-wrap table td::before, .cost-sheet-wrap table td::before { color: #77869a; content: attr(data-label); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
  .table-wrap table td[colspan], .weekly-table-wrap table td[colspan], .cost-sheet-wrap table td[colspan] { display: block; min-height: 0; text-align: center; }
  .table-wrap table td[colspan]::before, .weekly-table-wrap table td[colspan]::before, .cost-sheet-wrap table td[colspan]::before { display: none; }
  .cost-sheet-wrap .cost-remove-button { justify-self: end; }
  .table-wrap .project-cell { justify-content: flex-end; text-align: right; }
  .table-wrap .status-pill, .table-wrap .row-action { justify-self: end; }

  /* Directorio ejecutivo: abre la ficha del proyecto, no una tabla interminable. */
  .portfolio-panel .table-wrap table tbody, .management-panel .table-wrap table tbody { padding:0 12px 12px; }
  .portfolio-panel .table-wrap table tr, .management-panel .table-wrap table tr { cursor:pointer; transition:border-color .18s ease, box-shadow .18s ease; }
  .portfolio-panel .table-wrap table tr:active, .management-panel .table-wrap table tr:active { border-color:#008ed8; box-shadow:0 0 0 3px rgba(0,142,216,.1); }
  .portfolio-panel .table-wrap table td:nth-child(1), .management-panel .table-wrap table td:nth-child(1) { display:flex; align-items:center; justify-content:flex-start; min-height:51px; padding:10px 12px; background:#fbfdff; }
  .portfolio-panel .table-wrap table td:nth-child(1)::before, .management-panel .table-wrap table td:nth-child(1)::before { display:none; }
  .portfolio-panel .table-wrap .project-cell, .management-panel .table-wrap .project-cell { justify-content:flex-start; text-align:left; font-size:13px; font-weight:800; }
  .portfolio-panel .table-wrap table td:nth-child(3), .portfolio-panel .table-wrap table td:nth-child(5), .portfolio-panel .table-wrap table td:nth-child(6), .portfolio-panel .table-wrap table td:nth-child(7), .portfolio-panel .table-wrap table td:nth-child(8), .portfolio-panel .table-wrap table td:nth-child(11) { display:none; }
  .management-panel .table-wrap table td:nth-child(3), .management-panel .table-wrap table td:nth-child(4), .management-panel .table-wrap table td:nth-child(6), .management-panel .table-wrap table td:nth-child(8), .management-panel .table-wrap table td:nth-child(9), .management-panel .table-wrap table td:nth-child(11), .management-panel .table-wrap table td:nth-child(12) { display:none; }
}
