/* Tipo de letra único de todo el sitio (el de la ficha "Salud del proyecto"): Segoe UI en Windows. */
:root { --pmo-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
:root {
  color-scheme: light; /* diseño claro: los campos nativos (textarea, select, fecha) no toman el tema oscuro del sistema */
  --sidebar-bg: #1b2436;
  --sidebar-border: rgba(255, 255, 255, 0.12);
  --sidebar-text: #e8ecf3;
  --sidebar-text-muted: #b9c2d0;
  --sidebar-accent: #4f9bea;
  --sidebar-width: clamp(200px, 22vw, 260px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--pmo-font); /* tipo de letra único de PMO360 */
  background: #f4f6f9;
  color: #1b2436;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.sidebar-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.app-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 1.75rem;
}

/* Usuario en sesión: al final del menú, en una línea (avatar · nombre corto · puerta). */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--sidebar-border);
}

/* Menú fijo: logo, título y usuario no se mueven; solo la lista de opciones
   hace scroll, y únicamente cuando no cabe (overflow-y: auto). La barra de
   scroll se pega al borde derecho del menú y es discreta. */
.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -1.25rem 1rem 0;
  padding-right: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

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

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2e4a7d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

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

.sidebar-user-name {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--sidebar-text-muted);
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
}

.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  opacity: 1;
  color: var(--sidebar-text);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Auth gate */

.auth-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #f4f6f9;
  text-align: center;
  padding: 1.5rem;
}

.auth-splash-logo {
  width: 48px;
  height: 48px;
}

.auth-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #e1e0d9;
  border-top-color: #3ecf6e;
  border-right-color: #3b8ee0;
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-splash-text {
  color: #52514e;
  font-size: 0.9rem;
}

.auth-splash-error button {
  margin-top: 0.5rem;
  background: #2a78d6;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font: inherit;
  cursor: pointer;
}

body.auth-loading .auth-splash,
body.auth-error .auth-splash {
  display: flex;
}

body.auth-error .auth-splash-text {
  display: none;
}

body.auth-loading .layout,
body.auth-loading .mobile-topbar,
body.auth-error .layout,
body.auth-error .mobile-topbar {
  display: none;
}

.nav-section-title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sidebar-border);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sidebar-text);
  cursor: pointer;
}

.nav-chevron {
  flex-shrink: 0;
  color: var(--sidebar-text-muted);
  transition: transform 0.15s ease;
}

.nav-toggle[aria-expanded="false"] .nav-chevron {
  transform: rotate(-90deg);
}

.nav-section.is-collapsed .nav-list,
.nav-section.is-collapsed .nav-filter {
  display: none;
}

.nav-filter {
  margin: 0 0 0.6rem;
}

.year-select {
  width: auto;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sidebar-border);
  color: var(--sidebar-text-muted);
  font: inherit;
  font-size: 0.72rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
}

.year-select:hover {
  border-color: var(--sidebar-text-muted);
}

.year-select:focus-visible {
  outline: 1px solid var(--sidebar-accent);
  outline-offset: 1px;
}

.year-select option {
  color: #1b2436;
}

.nav-toggle-sub {
  padding: 0.4rem 0.25rem;
  border-radius: 6px;
}

.nav-toggle-sub:hover,
.nav-toggle-sub:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle-sub .nav-label {
  flex: 1;
  text-align: left;
  color: var(--sidebar-accent);
  font-weight: 400;
  font-size: 0.95rem;
}

.nav-sublist {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
}

.collapsible.is-collapsed .nav-sublist {
  display: none;
}

.nav-link.nav-link-sub {
  padding-left: 2.15rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #cdd3dc;
}

.nav-link.nav-link-sub:hover,
.nav-link.nav-link-sub:focus-visible {
  color: #e8ecf3;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item + .nav-item {
  margin-top: 0.4rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.25rem;
  color: var(--sidebar-accent);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Main content */

.app-main {
  flex: 1;
  padding: 1.5rem;
  overflow-x: auto;
}

/* Escritorio: el menú y la página activa tienen scroll independiente.
   La ventana no hace scroll; cada columna desplaza su propio contenido. */
@media (min-width: 769px) {
  /* Evita una segunda barra de scroll de la ventana: si algo (tooltip, elemento
     posicionado, etc.) sobresale del alto de la pantalla, solo desplaza .app-main. */
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .layout {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .sidebar {
    overflow: hidden; /* el scroll lo hace solo .sidebar-nav */
  }

  .app-main {
    overflow-y: auto;
    min-width: 0;
    overscroll-behavior: contain;
  }

  /* El encabezado fijo cubre también el relleno superior de la página (1.5rem),
     para que el contenido no se vea pasar por encima de él. */
  .app-main .resumen-encabezado-fijo {
    top: -1.5rem;
    margin-top: -1.5rem;
    padding-top: 1.5rem;
  }
}

/* Celular: la página hace scroll con la ventana; en Proyectos Liberados el
   contenedor no debe ser caja de scroll para que el encabezado "sticky" funcione. */
@media (max-width: 768px) {
  .app-main:has(.resumen-dashboard) {
    overflow-x: visible;
    min-width: 0;
  }

  .app-main .resumen-encabezado-fijo {
    top: 52px; /* debajo de la barra superior fija del celular */
  }
}

/* Encabezado de Proyectos Liberados (título, periodo, línea verde y pestañas)
   siempre visible al hacer scroll. */
.resumen-encabezado-fijo {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: -0.75rem;
  padding-top: 0.75rem;
  background: #f4f6f9;
}

.app-main h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #dde2e9;
  white-space: nowrap;
}

.data-table th {
  color: #4a5568;
  font-weight: 600;
  border-bottom: 2px solid #c7ced9;
}

.data-table tbody tr:hover {
  background: #eef1f6;
}

/* Resumen de Proyectos Liberados (dashboard) */

.resumen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #0ca30c;
  margin-bottom: 1.25rem;
}

.resumen-header h2 {
  margin: 0;
  color: #2a78d6;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.resumen-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Campana: proyectos liberados en la semana actual */
.campana {
  position: relative;
  margin-right: 0.35rem;
}

.campana-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.campana-btn:hover,
.campana-btn[aria-expanded="true"] {
  background: rgba(245, 166, 35, 0.15);
}

.campana-btn:focus-visible {
  outline: 2px solid #2a78d6;
  outline-offset: 1px;
}

.campana-badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #e5484d;
  border: 2px solid #f4f6f9;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}

.campana-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: 340px;
  max-width: 80vw;
  max-height: 340px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.campana-panel-titulo {
  position: sticky;
  top: 0;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid #eceef1;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1b2436;
}

.campana-lista {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}

.campana-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.campana-item:hover,
.campana-item:focus-visible {
  background: #f2f6fc;
  outline: none;
}

.campana-item .status-dot {
  flex: none;
  margin-top: 0.3rem;
}

.campana-item-texto {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.campana-item-texto strong {
  font-size: 0.76rem;
  font-weight: 600;
  color: #1b2436;
}

.campana-item-texto small {
  font-size: 0.68rem;
  color: #898781;
}

.resumen-select {
  color: #1b2436;
  background: #fff;
  border: 1px solid #c7ced9;
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
}

.multi-select {
  position: relative;
}

.multi-select-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font: inherit;
}

.ms-caret {
  color: #898781;
  font-size: 0.7rem;
}

.multi-select-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid #c7ced9;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(11, 11, 11, 0.12);
  padding: 0.4rem 0;
  min-width: 160px;
  max-height: 260px;
  overflow-y: auto;
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  color: #1b2436;
  cursor: pointer;
  white-space: nowrap;
}

.multi-select-option:hover {
  background: #eef0f3;
}

.multi-select-option-todos {
  font-weight: 600;
}

/* Combo de meses (Proyectos Liberados): interlineado compacto y lista completa
   (Todos + 12 meses) visible sin scroll. */
#resumen-mes-panel {
  max-height: none;
  overflow-y: visible;
  padding: 0.25rem 0;
}

#resumen-mes-panel .multi-select-option {
  padding: 0.12rem 0.75rem;
  line-height: 1.25;
  font-size: 0.8rem;
}

#resumen-mes-panel .multi-select-option input[type="checkbox"] {
  margin: 0;
  width: 13px;
  height: 13px;
}

#resumen-mes-panel .multi-select-divider {
  margin: 0.2rem 0;
}

.multi-select-divider {
  height: 1px;
  background: #e1e0d9;
  margin: 0.3rem 0;
}

.resumen-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e1e0d9;
}

.resumen-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #52514e;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.resumen-tab:hover {
  color: #1b2436;
}

.resumen-tab.active {
  color: #2a78d6;
  border-bottom-color: #2a78d6;
}

.resumen-meses-detalle {
  color: #898781;
  font-size: 0.75rem;
  margin: -0.75rem 0 1rem;
  min-height: 1em;
}

.resumen-filtro-cliente {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin: -0.5rem 0 1rem;
  padding: 0.3rem 0.4rem 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(42, 120, 214, 0.12);
  color: #1b2436;
  font-size: 0.8rem;
}

/* Filtros activos: en la fila de pestañas (debajo de la línea verde), a la derecha.
   No ocupan fila propia, así las pestañas no se desplazan al aplicar un filtro. */
.resumen-filtros-activos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin: 0 0 0 auto;
  padding: 0 0 0.15rem;
}

/* Bloque temporal de mantenimiento (Update > Validación SOCO) */
.mantenimiento-temporal {
  margin-top: 1.5rem;
  padding: 0.25rem 1rem 1rem;
  border: 2px dashed #fab219;
  border-radius: 8px;
  background: #fffbf0;
}

.mantenimiento-tipos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.resumen-filtros-titulo {
  font-size: 0.72rem;
  color: #898781;
}

.resumen-filtros-activos .resumen-filtro-cliente {
  margin: 0;
}

/* Opción del menú izquierdo con filtro aplicado */
.nav-link.nav-filtro-activo,
.nav-toggle-sub.nav-filtro-activo .nav-label {
  font-weight: 700;
  color: #3ecf6e;
}

.nav-link.nav-filtro-activo {
  background: rgba(62, 207, 110, 0.12);
}

.resumen-filtro-cliente span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resumen-filtro-cliente-quitar {
  flex: none;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #2a78d6;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.resumen-filtro-cliente-quitar:hover {
  background: #1f5fae;
}

.tab-empty-state {
  background: #fff;
  border: 1px solid #e1e0d9;
  border-radius: 8px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #898781;
  font-size: 0.9rem;
}

/* Administración de Accesos */

.admin-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e1e0d9;
  margin-bottom: 1.5rem;
}

.admin-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: #1b2436;
  margin: 0;
}

.admin-subtitle {
  color: #898781;
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-tab {
  background: #fff;
  border: 1px solid #e1e0d9;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: #52514e;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.06);
}

.admin-tab:hover {
  background: #f4f6f9;
}

.admin-tab.active {
  color: #2a78d6;
  border-color: #2a78d6;
}

.admin-help {
  color: #52514e;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.admin-help strong {
  color: #1b2436;
}

.perfil-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.perfil-card {
  background: #fff;
  border: 1px solid #e1e0d9;
  border-left: 4px solid;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.perfil-purple {
  border-left-color: #7c3aed;
}

.perfil-blue {
  border-left-color: #2a78d6;
}

.perfil-gray {
  border-left-color: #898781;
}

.perfil-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.perfil-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.perfil-badge-purple {
  background: #f1e9fe;
  color: #7c3aed;
}

.perfil-badge-blue {
  background: #e5f0fc;
  color: #2a78d6;
}

.perfil-badge-gray {
  background: #eef0f3;
  color: #52514e;
}

.perfil-desc {
  color: #52514e;
  font-size: 0.85rem;
  font-style: italic;
}

.perfil-permisos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}

.perfil-permisos ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.perfil-permisos li {
  font-size: 0.82rem;
  color: #1b2436;
}

@media (max-width: 700px) {
  .perfil-permisos {
    grid-template-columns: 1fr;
  }
}

.usuario-search-wrap {
  position: relative;
  margin-bottom: 0.75rem;
  max-width: 420px;
}

.usuario-search-input {
  width: 100%;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #c7ced9;
  border-radius: 4px;
  color: #1b2436;
  background: #fff;
}

.usuario-search-results {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #c7ced9;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(11, 11, 11, 0.12);
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 220px;
  overflow-y: auto;
}

.usuario-search-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.82rem;
}

.usuario-search-item:hover {
  background: #eef0f3;
}

.usuario-search-item-nombre {
  color: #1b2436;
  font-weight: 600;
}

.usuario-search-item-email {
  color: #52514e;
  font-size: 0.75rem;
}

.usuario-search-empty {
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  color: #898781;
  font-style: italic;
}

.usuario-search-hint {
  color: #898781;
  font-size: 0.75rem;
  margin: 0.3rem 0 0;
}

.usuario-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.usuario-form input,
.usuario-form select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #c7ced9;
  border-radius: 4px;
  color: #1b2436;
  background: #fff;
}

.usuario-form input[type="email"] {
  flex: 1 1 220px;
}

.usuario-form input[type="text"] {
  flex: 1 1 160px;
}

.usuario-form button {
  background: #2a78d6;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.usuario-form button:hover {
  background: #1c5cab;
}

.usuarios-table select {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #c7ced9;
  border-radius: 4px;
}

.config-tabla-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.config-mask {
  font-family: var(--pmo-font);
  letter-spacing: 1px;
  color: #6b7280;
}

.config-candado {
  font-size: 0.8rem;
}

.config-vencimiento-label {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  color: #6b7280;
}

/* Vencimiento de credenciales: avisos a 60, 30 y 7 días */
.venc-badge {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.venc-60 {
  background: #fff6d6;
  color: #8a6500;
}

.venc-30 {
  background: #ffe6cc;
  color: #9a4a00;
}

.venc-7,
.venc-vencida {
  background: #fde2e2;
  color: #b42318;
}

.aviso-vencimientos {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #f0c36d;
  border-left: 4px solid #d97706;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #1f2937;
}

.aviso-vencimientos ul {
  margin: 0.5rem 0;
  padding-left: 1rem;
}

.aviso-vencimientos li {
  margin: 0.3rem 0;
}

.aviso-vencimientos-encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.aviso-vencimientos-cerrar {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #6b7280;
}

.config-url {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-acciones {
  white-space: nowrap;
}

.update-tiempo {
  color: #6b7280;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.horas-resumen-linea {
  font-size: 0.85rem;
  color: #52514e;
  margin: 0.75rem 0 0.5rem;
}

.horas-resumen-linea strong {
  color: #1b2436;
}

.update-visualizar-btn {
  background: #2a78d6;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.update-visualizar-btn:hover {
  background: #1c5cab;
}

.update-vista-busqueda {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.update-exportar-btn {
  background: #fff;
  color: #2a78d6;
  border: 1px solid #2a78d6;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.update-exportar-btn:hover {
  background: #eaf2fc;
}

.update-vista-busqueda .th-search-input {
  flex: 1 1 320px;
  max-width: 420px;
  padding: 0.4rem 0.6rem;
}

.update-vista-tabla-wrap {
  overflow: auto;
  max-height: 480px;
  border: 1px solid #e1e0d9;
  border-radius: 4px;
}

.update-vista-tabla {
  font-size: 0.8rem;
}

.update-vista-tabla th {
  position: sticky;
  top: 0;
  background: #f4f3ee;
  z-index: 1;
}

.th-ordenable {
  cursor: pointer;
  user-select: none;
}

.th-ordenable:hover {
  background: rgba(0, 0, 0, 0.04);
}

.th-ordenable.sorted-asc::after {
  content: " \25B2";
  font-size: 0.7em;
}

.th-ordenable.sorted-desc::after {
  content: " \25BC";
  font-size: 0.7em;
}

.th-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: col-resize;
  user-select: none;
}

.th-resize-handle:hover {
  background: rgba(42, 120, 214, 0.35);
}

.config-copiar-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 0.2rem;
  vertical-align: middle;
  line-height: 1;
}

.usuario-delete-btn {
  background: none;
  border: 1px solid #d03b3b;
  color: #d03b3b;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.usuario-delete-btn:hover {
  background: #fbeaea;
}

.resumen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid #e1e0d9;
  border-radius: 8px;
  padding: 1rem 1.1rem 1.25rem;
}

.panel-title {
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  background: #eef0f3;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1b2436;
}

.subpanel-title {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #52514e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.subpanel-title-flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.excedentes-toggle-btn {
  background: none;
  border: 1px solid #f1c3c3;
  color: #f1a8a8;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  line-height: 1;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.excedentes-toggle-btn:hover {
  color: #d03b3b;
  border-color: #d03b3b;
}

.ampliar-grafica-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0.15rem;
  border: none;
  border-radius: 3px;
  background: none;
  color: #b4b2ab;
  cursor: pointer;
}

.ampliar-grafica-btn:hover {
  color: #2a78d6;
  background: rgba(42, 120, 214, 0.1);
}

.ampliar-grafica-btn:focus-visible {
  outline: 2px solid #2a78d6;
  outline-offset: 1px;
}

.excedentes-toggle-btn.activo {
  background: #d03b3b;
  border-color: #d03b3b;
  color: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.empty-note {
  color: #898781;
  font-size: 0.82rem;
  font-style: italic;
}

/* KPI + gauge */

.kpi-total {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0b0b0b;
  line-height: 1;
  text-align: center;
}

.kpi-total-label {
  text-align: center;
  color: #52514e;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.gauge-wrap {
  position: relative;
  width: 200px;
  height: 118px;
  margin: 0 auto;
  overflow: hidden;
}

.gauge-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
}

.gauge-hole {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: #fff;
}

.gauge-value {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0b0b0b;
}

.gauge-min,
.gauge-max {
  position: absolute;
  bottom: 0;
  width: 22px;
  text-align: center;
  color: #898781;
  font-size: 0.75rem;
}

.gauge-min {
  left: 0;
}

.gauge-max {
  right: 0;
}

.gauge-caption {
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.gauge-sub {
  text-align: center;
  color: #52514e;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

/* Generic horizontal bar chart */

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 30%) 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.bar-chart-horas .bar-row {
  grid-template-columns: minmax(120px, 45%) 1fr auto;
}

.bar-row-clickable {
  cursor: pointer;
  border-radius: 4px;
  padding: 0.15rem 0.3rem;
  margin: -0.15rem -0.3rem;
}

.bar-row-clickable:hover {
  background: rgba(42, 120, 214, 0.08);
}

.bar-row-cliente:focus-visible {
  outline: 2px solid #2a78d6;
  outline-offset: 1px;
}

.bar-chart-filtrado .bar-row-cliente:not(.seleccionado) {
  opacity: 0.45;
}

.bar-row-cliente.seleccionado {
  background: rgba(42, 120, 214, 0.12);
}

.bar-row-cliente.seleccionado .bar-label {
  font-weight: 700;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 25, 35, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.modal-box-ancho {
  max-width: 640px;
}

.modal-box-tabla {
  max-width: 960px;
}

/* Popup "Detalle del proyecto": métricas compactas (horas, costo, margen) */
.dp-metricas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e3e7ee;
  border-radius: 6px;
  background: #fafbfc;
}

.dp-encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.dp-titulo {
  font-size: 0.72rem;
  font-weight: 700;
  color: #52514e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dp-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #eef0f3;
  color: #52514e;
}

.dp-fila {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.dp-etiqueta {
  font-size: 0.7rem;
  color: #898781;
}

.dp-track {
  height: 6px;
  border-radius: 3px;
  background: #eceef1;
  overflow: hidden;
}

.dp-fill {
  height: 100%;
  border-radius: 3px;
}

.dp-valor {
  font-size: 0.72rem;
  color: #1b2436;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 70px;
}

.dp-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

@media (max-width: 480px) {
  .dp-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dp-tag {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.3rem 0.4rem;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #e3e7ee;
  font-size: 0.74rem;
  color: #1b2436;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dp-tag small {
  font-size: 0.65rem;
  color: #898781;
}

.dp-nota {
  margin: 0;
  font-size: 0.72rem;
  color: #898781;
  font-style: italic;
}

.dp-chip.good,
.dp-tag .good {
  color: #0a7f0a;
}

.dp-chip.warning,
.dp-tag .warning {
  color: #9a6c00;
}

.dp-chip.critical,
.dp-tag .critical {
  color: #c02f2f;
}

.dp-chip.good {
  background: #e3f4e3;
}

.dp-chip.warning {
  background: #fdf1d6;
}

.dp-chip.critical {
  background: #fbe3e3;
}

.modal-box-grafica {
  max-width: 1100px;
}

/* Popup ampliado: el nombre del proyecto se muestra completo (con salto de línea). */
.bar-chart-horas-completo {
  max-height: 65vh;
  overflow-y: auto;
  padding: 0.15rem 0.4rem 0.15rem 0.3rem;
}

.bar-chart-horas-completo .bar-row {
  grid-template-columns: minmax(200px, 55%) 1fr auto;
}

.bar-chart-horas-completo .bar-label {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .bar-chart-horas-completo .bar-row {
    grid-template-columns: minmax(120px, 50%) 1fr auto;
  }
}

.detalle-tabla-wrap {
  overflow-x: auto;
  max-height: 60vh;
  overflow-y: auto;
  margin: 0.5rem 0 1rem;
}

.detalle-proyectos-tabla {
  font-size: 0.78rem;
  table-layout: fixed;
  width: 100%;
}

.detalle-proyectos-tabla th {
  position: sticky;
  top: 0;
  background: #f4f3ee;
  z-index: 1;
  white-space: nowrap;
}

.detalle-proyectos-tabla th:nth-child(1) {
  width: 70px;
}

.detalle-proyectos-tabla th.th-compacta {
  width: 90px;
}

.detalle-proyectos-tabla th:nth-child(3) {
  width: 320px;
}

.detalle-proyectos-tabla th:nth-child(4),
.detalle-proyectos-tabla th:nth-child(5),
.detalle-proyectos-tabla th:nth-child(6) {
  width: 85px;
}

.detalle-proyectos-tabla th:nth-child(7) {
  width: 170px;
}

.detalle-fila-principal td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
  padding-top: 0.5rem;
  padding-bottom: 0.2rem;
  border-bottom: none;
}

.detalle-fila-principal.sin-nota td {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dde2e9;
}

.detalle-fila-nota td {
  white-space: normal;
  color: #9aa0a8;
  font-style: italic;
  font-size: 0.74rem;
  padding-top: 0;
  padding-bottom: 0.6rem;
}

.detalle-proyectos-tabla td.good {
  color: #0ca30c;
  font-weight: 600;
}

.detalle-proyectos-tabla td.critical {
  color: #d03b3b;
  font-weight: 600;
}

.detalle-exportar-btn {
  background: none;
  border: 1px solid #c7ced9;
  color: #1b2436;
  border-radius: 4px;
  width: 34px;
  font-size: 1rem;
  cursor: pointer;
}

.detalle-exportar-btn:hover {
  background: #f4f3ee;
}

.modal-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  color: #1b2436;
}

.modal-subtitle {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.modal-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1b2436;
  margin-bottom: 0.75rem;
}

.modal-label input,
.modal-label textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.45rem 0.6rem;
  border: 1px solid #c7ced9;
  border-radius: 4px;
  color: #1b2436;
  background: #fff;
  box-sizing: border-box;
  resize: vertical;
}

.modal-label input:disabled {
  background: #f4f3ee;
  color: #6b7280;
}

.modal-botones {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal-botones button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.modal-botones button[type="submit"] {
  background: #2a78d6;
  color: #fff;
  border: none;
}

.modal-botones button[type="submit"]:hover {
  background: #1c5cab;
}

.modal-botones button[type="button"] {
  background: #fff;
  color: #1b2436;
  border: 1px solid #c7ced9;
}

.bar-label {
  font-size: 0.78rem;
  color: #1b2436;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  background: #eef0f3;
  border-radius: 4px;
  height: 14px;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  min-width: 4px;
}

.bar-value {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: #1b2436;
  text-align: right;
  min-width: 2.5rem;
}

/* Donut + legend */

.donut-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donut-clickable {
  cursor: pointer;
}

.donut-legend-item {
  cursor: pointer;
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  margin: -0.1rem -0.3rem;
}

.donut-legend-item:hover {
  background: rgba(42, 120, 214, 0.08);
}

.donut-legend-item:focus-visible {
  outline: 2px solid #2a78d6;
  outline-offset: 1px;
}

.donut-legend-item.seleccionado {
  font-weight: 700;
  background: rgba(42, 120, 214, 0.1);
}

.donut-legend-item.atenuado {
  opacity: 0.45;
}

.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: #1b2436;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.5rem;
}

.status-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.status-table td,
.status-table th {
  white-space: normal;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.status-table thead th {
  white-space: nowrap;
}

.status-table td.td-liberacion {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #52514e;
}

/* Anchos: Liberación y Estatus se ajustan a su contenido (pegadas a la izquierda);
   Proyecto toma el espacio restante para usar menos renglones. */
.status-table th.th-col-proyecto {
  width: 60%;
}

.status-table th.th-col-liberacion,
.status-table th.th-col-estatus {
  width: 1%;
  white-space: nowrap;
  text-align: left;
}

.status-table th.th-col-liberacion,
.status-table td.td-liberacion,
.status-table th.th-col-estatus,
.status-table td:last-child {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Columna Estatus sin texto en el encabezado (solo orden ▲▼/⇅ y filtro ▾): más angosta */
.status-table th.th-col-estatus,
.status-table td:last-child {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.th-sort-hint {
  color: #b4b2ab;
  font-size: 0.8em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Botón de descarga al inicio del encabezado "Cliente" */
.status-table th.th-col-cliente .th-export {
  margin: 0 0.3rem 0 0;
}

.sortable-th {
  cursor: pointer;
  user-select: none;
}

.sortable-th:hover {
  color: #1b2436;
  background: #eef0f3;
}

.sortable-th.sorted {
  color: #2a78d6;
}

.sortable-th.filtered {
  color: #2a78d6;
}

.th-sort-label {
  display: inline-block;
}

.th-filter {
  margin-left: 0.25rem;
}

.th-filter-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  color: inherit;
  padding: 0 0.2rem;
}

.th-filter-toggle:hover {
  color: #1b2436;
}

.th-export {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.2rem;
  padding: 0.1rem;
  border: none;
  border-radius: 3px;
  background: none;
  color: #898781;
  cursor: pointer;
}

.th-export:hover {
  color: #2a78d6;
  background: rgba(42, 120, 214, 0.1);
}

.th-export:focus-visible {
  outline: 2px solid #2a78d6;
  outline-offset: 1px;
}

.th-filter .multi-select-panel {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.th-search {
  display: block;
  margin-top: 0.3rem;
}

.horas-buscador {
  position: relative;
  margin: 0.5rem 0 0.9rem;
}

.horas-buscador .th-search-input {
  width: 100%;
  padding: 0.4rem 1.9rem 0.4rem 0.6rem;
}

.horas-buscador-limpiar {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9aa0a8;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.horas-buscador-limpiar:hover {
  color: #1b2436;
}

.th-search-input {
  width: 100%;
  min-width: 110px;
  font: inherit;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #1b2436;
  background: #fff;
  border: 1px solid #c7ced9;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  cursor: text;
}

.multi-select-option-todos .swatch,
.multi-select-option .swatch {
  margin-right: 0;
}

/* Callout cards */

.callout-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.callout {
  border-radius: 6px;
  padding: 0.75rem;
  border: 1px solid transparent;
}

.callout-good {
  background: #eaf7ea;
  border-color: #0ca30c;
}

.callout-critical {
  background: #fbeaea;
  border-color: #d03b3b;
}

.callout-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.callout-critical .callout-title {
  color: #d03b3b;
}

.callout-lider {
  font-weight: 600;
  font-size: 0.85rem;
}

.callout-proyecto {
  font-size: 0.75rem;
  color: #52514e;
  margin: 0.15rem 0 0.4rem;
}

.callout-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.callout-value.good {
  color: #006300;
}

.callout-value.critical {
  color: #d03b3b;
}

/* Desviación total de horas: vista ejecutiva (3 barras a la misma escala) */

.resumen-horas-exec {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rhe-fila {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.rhe-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1b2436;
}

.rhe-track {
  background: #eef0f3;
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
}

.rhe-fill {
  height: 100%;
  border-radius: 4px;
}

.rhe-fill-plan {
  background: #2a78d6;
}

.rhe-fill.good {
  background: #0ca30c;
}

.rhe-fill.critical {
  background: #d03b3b;
}

.rhe-valor {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1b2436;
  min-width: 80px;
  text-align: right;
}

.rhe-indicador {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: #52514e;
  line-height: 1.6;
}

.rhe-indicador strong {
  color: #1b2436;
}

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

@media (max-width: 480px) {
  .callout-cards {
    grid-template-columns: 1fr;
  }

  .donut-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile topbar + off-canvas sidebar (hidden on desktop) */

.mobile-topbar {
  display: none;
}

.sidebar-overlay {
  display: none;
}

/* Responsive */

@media (max-width: 768px) {
  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    padding: 0 1rem;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--sidebar-border);
    z-index: 30;
  }

  .mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--sidebar-text);
    padding: 0.3rem;
    cursor: pointer;
    display: flex;
  }

  .mobile-topbar-logo {
    width: 24px;
    height: 24px;
  }

  .mobile-topbar-title {
    color: var(--sidebar-text);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
  }

  .layout {
    min-height: auto;
    padding-top: 52px;
  }

  .sidebar {
    position: fixed;
    top: 52px;
    left: 0;
    bottom: 0;
    width: min(80vw, 300px);
    max-width: 300px;
    z-index: 25;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    overflow: hidden;
  }

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

  body.sidebar-open .sidebar-overlay {
    display: block;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 20;
  }

  .app-main {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: min(85vw, 280px);
    padding: 1.25rem 1rem;
  }

  .sidebar-nav {
    margin-right: -1rem;
    padding-right: 1rem;
  }

  .sidebar-logo {
    max-width: 170px;
  }

  .app-title {
    font-size: 1rem;
  }

  .nav-link,
  .nav-toggle-sub .nav-label {
    font-size: 0.88rem;
  }

  .app-main {
    padding: 1rem 0.75rem;
  }

  .app-main h2 {
    font-size: 1.05rem;
  }

  .data-table {
    font-size: 0.78rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.4rem 0.5rem;
  }
}

/* Update / Cargar Datos */

.update-columnas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
}

.update-col-chip {
  background: #eef0f3;
  color: #52514e;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.update-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.update-file-input {
  font: inherit;
  font-size: 0.82rem;
}

.update-cargar-btn {
  background: #2a78d6;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.update-cargar-btn:disabled {
  background: #c7ced9;
  cursor: not-allowed;
}

.update-cargar-btn:not(:disabled):hover {
  background: #1c5cab;
}

.update-resultado p {
  font-size: 0.85rem;
  margin: 0.3rem 0;
}

.update-ok {
  color: #0ca30c;
}

.update-fail {
  color: #d03b3b;
}

.update-warning {
  color: #b8860b;
}

/* Rentabilidad */

.rentabilidad-panel {
  padding: 0.5rem 0 1rem;
}

.rentabilidad-subtitulo {
  font-size: 0.85rem;
  color: #52514e;
  margin: 0 0 1rem;
}

.rentabilidad-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rentabilidad-kpi {
  background: #f9f8f4;
  border: 1px solid #e1e0d9;
  border-radius: 6px;
  padding: 0.9rem 1rem;
  text-align: center;
}

.rentabilidad-kpi-valor {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1b2436;
}

.rentabilidad-kpi-valor.good {
  color: #0ca30c;
}

.rentabilidad-kpi-valor.critical {
  color: #d03b3b;
}

/* Totales por rubro: Clientes externos y Digipro, cada uno con su franja de título */
.rentabilidad-kpi-grupos {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rentabilidad-kpi-grupo .rentabilidad-kpis {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0;
  padding: 0.6rem;
  border: 1px solid #e1e0d9;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.rentabilidad-kpi-grupo .rentabilidad-kpi {
  padding: 0.7rem 0.5rem;
}

.rentabilidad-kpi-grupo .rentabilidad-kpi-valor {
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .rentabilidad-kpi-grupos {
    grid-template-columns: 1fr;
  }
}

.rentabilidad-kpi-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.rentabilidad-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Gráfica "Venta vs. costo por cliente" (Rentabilidad) */
.rcc {
  margin: 1.25rem 0 0.5rem;
  padding: 0.25rem 1rem 0.75rem;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
}

.rcc-subtitulo {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #898781;
}

.rcc-key-linea {
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  vertical-align: middle;
  margin-right: 0.35rem;
}

/* Botón "Histórico" (ficha Venta vs. costo por cliente) y su popup */
.rcc-historico-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  border: 1px solid #c7ced9;
  border-radius: 4px;
  background: #fff;
  color: #2a78d6;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}

.rcc-historico-btn:hover {
  background: rgba(42, 120, 214, 0.08);
  border-color: #2a78d6;
}

.rcc-historico-btn:focus-visible {
  outline: 2px solid #2a78d6;
  outline-offset: 1px;
}

/* Tamaño fijo: no cambia al filtrar (menos o más clientes); el contenido hace scroll dentro. */
.rcc-hist-box {
  width: min(1400px, 96vw);
  max-width: min(1400px, 96vw);
  height: 90vh;
  max-height: 90vh;
}

/* Nombre del cliente clicable (abre la comparativa por año) */
.rcc-svg .rcc-x-link {
  fill: #2a78d6;
  cursor: pointer;
  text-decoration: underline dotted;
}

.rcc-svg .rcc-x-link:hover,
.rcc-svg .rcc-x-link:focus {
  text-decoration: underline;
  outline: none;
}

.rcc-svg .rcc-x-link.activo {
  font-weight: 800;
  text-decoration: underline;
}

.rcc-ayuda {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #898781;
}

.rcc-ayuda + .rcc-historico-btn {
  margin-left: 0;
}

.rcc-detalle > .rcc {
  margin: 0.75rem 0 0.5rem;
  background: #f7f9fc;
  border-color: #c9d6ea;
}

.rcc-detalle-cerrar {
  margin-left: auto;
  padding: 0.1rem 0.45rem;
  border: 1px solid #c7ced9;
  border-radius: 4px;
  background: #fff;
  color: #52514e;
  font: inherit;
  cursor: pointer;
}

.rcc-detalle-cerrar:hover {
  color: #d03b3b;
  border-color: #d03b3b;
}

.rcc-hist-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.rcc-hist-cab .modal-title {
  margin: 0;
}

.rcc-hist-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 0.25rem;
}

.rcc-hist-ms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rcc-hist-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #52514e;
}

.rcc-hist-ms .multi-select-panel {
  left: auto;
  right: 0;
  min-width: 220px;
  max-height: 320px;
}

.rcc-hist-ms .multi-select-toggle {
  min-width: 160px;
  justify-content: space-between;
}

.rcc-hist-cuerpo .rcc {
  margin-top: 0.5rem;
}

.rcc-wrap {
  position: relative;
  overflow-x: auto;
  margin-top: 0.4rem;
}

.rcc-svg {
  display: block;
  font-family: var(--pmo-font);
}

.rcc-eje,
.rcc-x-sub {
  font-size: 10px;
  fill: #898781;
  font-variant-numeric: tabular-nums;
}

.rcc-x {
  font-size: 11px;
  fill: #1b2436;
}

.rcc-seccion {
  font-size: 10.5px;
  font-weight: 700;
  fill: #52514e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rcc-sin-venta {
  font-size: 10px;
  font-style: italic;
  fill: #898781;
}

.rcc-etiqueta {
  font-size: 10.5px;
  font-weight: 700;
  fill: #1b2436;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.rcc-hit {
  cursor: default;
  outline: none;
}

.rcc-hit.activo {
  fill: rgba(42, 120, 214, 0.06);
}

.rcc-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 200px;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: #1b2436;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.5;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.rcc-tooltip .swatch {
  outline: 1px solid rgba(255, 255, 255, 0.6);
}

.rcc-datos {
  margin-top: 0.4rem;
  font-size: 0.75rem;
}

.rcc-datos td.rcc-monto {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid #fff; /* separa visualmente las celdas de color contiguas */
}

.rcc-datos summary {
  cursor: pointer;
  color: #2a78d6;
}

.rcc-datos table {
  margin-top: 0.4rem;
}

/* Títulos de las tablas de Rentabilidad: franja gris oscuro pegada a la tabla */
.rentabilidad-titulo-tabla {
  margin-bottom: 0;
  padding: 0.55rem 0.75rem;
  background: #3f4652;
  color: #fff;
  border-radius: 6px 6px 0 0;
}

.rentabilidad-titulo-tabla + .detalle-tabla-wrap {
  margin-top: 0;
}

/* Encabezado fijo al hacer scroll dentro de la tabla */
.rentabilidad-tabla thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  vertical-align: top;
}

.rentabilidad-tabla thead th.th-ordenable:hover {
  background: #f1f3f6;
}

/* Filtro por columna (debajo del nombre de cada encabezado) */
.th-col-filtro {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.3rem;
  padding: 0.2rem 0.35rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: none;
  color: #1b2436;
  border: 1px solid #d6dbe3;
  border-radius: 4px;
  background: #fff;
}

.th-col-filtro:focus {
  outline: none;
  border-color: #2a78d6;
  box-shadow: 0 0 0 2px rgba(42, 120, 214, 0.15);
}

.th-col-filtro:not(:placeholder-shown) {
  border-color: #2a78d6;
  background: #f2f7fd;
}

/* Con filtro, la flecha de orden va junto al nombre, no después del campo */
.th-con-filtro.sorted-asc::after,
.th-con-filtro.sorted-desc::after {
  content: none;
}

.th-con-filtro.sorted-asc .th-label::after {
  content: " \25B2";
  font-size: 0.7em;
}

.th-con-filtro.sorted-desc .th-label::after {
  content: " \25BC";
  font-size: 0.7em;
}

.rentabilidad-tabla {
  font-size: 0.76rem;
  table-layout: fixed;
  width: 100%;
}

.rentabilidad-tabla td,
.rentabilidad-tabla th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}

.rentabilidad-tabla th.th-compacta {
  width: 80px;
  max-width: none; /* sin esto, el max-width:0 general la encogía a ~24px */
}

.rentabilidad-tabla td.good,
.rentabilidad-tabla td.warning,
.rentabilidad-tabla td.critical,
.rcc-datos td.good,
.rcc-datos td.warning,
.rcc-datos td.critical {
  font-weight: 700;
}

.rentabilidad-tabla td.good,
.rcc-datos td.good {
  color: #0ca30c;
}

.rentabilidad-tabla td.warning,
.rcc-datos td.warning {
  color: #b8860b;
}

.rentabilidad-tabla td.critical,
.rcc-datos td.critical {
  color: #d03b3b;
}

.rentabilidad-tabla-total td {
  font-weight: 700;
  background: #f4f3ee;
  border-top: 2px solid #c7ced9;
}

.rentabilidad-alerta {
  background: #eaf2fc;
  border: 1px solid #c6dcf5;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  color: #1b2436;
  line-height: 1.5;
  margin: 0.75rem 0 1.25rem;
}

.rentabilidad-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #52514e;
  margin-bottom: 0.5rem;
}

.rentabilidad-vc-chart {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.rentabilidad-vc-label {
  font-size: 0.76rem;
  color: #1b2436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.rentabilidad-vc-barras {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rentabilidad-vc-track {
  position: relative;
  background: #eef0f3;
  border-radius: 4px;
  height: 14px;
  display: flex;
  align-items: center;
}

.rentabilidad-vc-fill {
  height: 100%;
  border-radius: 4px;
  min-width: 2px;
}

.rentabilidad-vc-valor {
  margin-left: 0.4rem;
  font-size: 0.72rem;
  color: #52514e;
  white-space: nowrap;
}

/* Encabezado: leyenda a la izquierda y título discreto sobre la columna de pts */
.rentabilidad-dumbbell-encabezado {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.rentabilidad-dumbbell-encabezado .rentabilidad-legend {
  margin-bottom: 0;
}

.rentabilidad-dumbbell-encabezado-pts {
  width: 4.5rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.625rem;
  line-height: 1.15;
  color: #6b7280;
}

/* Encabezado ordenable (clic: mayor a menor, menor a mayor, original) */
button.rentabilidad-dumbbell-encabezado-pts {
  padding: 0.15rem 0;
  font-family: var(--pmo-font);
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

button.rentabilidad-dumbbell-encabezado-pts:hover,
button.rentabilidad-dumbbell-encabezado-pts.activa {
  color: #1b2436;
  background: #eef0f3;
}

button.rentabilidad-dumbbell-encabezado-pts:focus-visible {
  outline: 2px solid #2a78d6;
  outline-offset: 1px;
}

.rentabilidad-orden-flecha {
  font-size: 0.6rem;
}

.rentabilidad-dumbbell {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 0.6rem;
}

.rentabilidad-dumbbell-fila {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr 4.5rem;
  align-items: center;
  gap: 0.6rem;
  min-height: 24px;
}

.rentabilidad-dumbbell-label {
  font-size: 0.75rem;
  color: #1b2436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rentabilidad-dumbbell-track {
  position: relative;
  height: 6px;
  background: #eef0f3;
  border-radius: 3px;
}

.rentabilidad-dumbbell-track.sin-venta {
  background: transparent;
}

.rentabilidad-dumbbell-sin-venta {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 0.625rem;
  font-style: italic;
  color: #6b7280;
  white-space: nowrap;
}

.rentabilidad-dumbbell-linea {
  position: absolute;
  top: 0;
  height: 100%;
  background: #c7ced9;
  border-radius: 3px;
}

/* Referencia del 50%: línea vertical punteada que se une entre filas */
.rentabilidad-dumbbell-ref {
  position: absolute;
  left: 50%;
  /* medio gap + (alto de fila - alto del track) / 2, para que se una entre filas */
  top: calc(-0.45rem - 9px);
  bottom: calc(-0.45rem - 9px);
  border-left: 1px dashed #a3abb8;
  pointer-events: none;
}

.rentabilidad-dumbbell-fila:first-child .rentabilidad-dumbbell-ref {
  top: -4px;
}

.rentabilidad-dumbbell-fila:last-child .rentabilidad-dumbbell-ref {
  bottom: -6px;
}

/* La etiqueta del 50% va al pie para no encimarse con los valores de los puntos */
.rentabilidad-dumbbell-ref-etiqueta {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: #6b7280;
  line-height: 1;
  padding-top: 2px;
}

.rentabilidad-dumbbell-punto {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.rentabilidad-dumbbell-punto.esperado {
  background: #2a78d6;
  z-index: 1;
}

.rentabilidad-dumbbell-punto.ejecutado {
  background: #0ca30c;
  z-index: 2;
}

/* Porcentaje sobre cada punto */
.rentabilidad-dumbbell-punto-valor {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 2px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  color: #52514e;
  white-space: nowrap;
  pointer-events: none;
}

.rentabilidad-dumbbell-punto-valor.abajo {
  bottom: auto;
  top: 100%;
  padding-bottom: 0;
  padding-top: 2px;
}

.rentabilidad-dumbbell-variacion {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.rentabilidad-dumbbell-variacion.good {
  color: #0ca30c;
}

.rentabilidad-dumbbell-variacion.critical {
  color: #d03b3b;
}

/* Pestaña Facturación */
.fact-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.fact-kpi,
.fact-card {
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.fact-kpi-titulo {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3f4652;
}

.fact-kpi .fact-kpi-titulo {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #eceef1;
  margin-bottom: 0.75rem;
}

.fact-kpi-valor {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.fact-kpi-sub {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: #52514e;
}

.fact-fila {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.fact-card-encabezado {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #eceef1;
}

.fact-totales {
  display: flex;
  gap: 1.1rem;
  text-align: right;
}

.fact-totales small,
.fact-anillo-stats small {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #898781;
}

.fact-totales strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.fact-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0.25rem;
}

.fact-chips-titulo {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #898781;
  margin-right: 0.2rem;
}

.fact-chip {
  font: inherit;
  font-size: 0.7rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid #d6dbe3;
  border-radius: 999px;
  background: #fff;
  color: #1b2436;
  cursor: pointer;
}

.fact-chip:hover {
  border-color: #3a45b0;
}

.fact-chip.activo {
  background: #3a45b0;
  border-color: #3a45b0;
  color: #fff;
}

.fact-chip-limpiar {
  color: #52514e;
  border-style: dashed;
}

.fact-leyenda {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.6rem 0 0.25rem;
  font-size: 0.74rem;
  color: #1b2436;
}

.fact-punto {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: -1px;
}

/* La gráfica se ajusta al ancho de la tarjeta (se reduce proporcionalmente si no cabe) */
.fact-svg {
  max-width: 100%;
  height: auto;
}

.fact-x {
  font-size: 11px;
  font-weight: 700;
  fill: #3a45b0;
}

.fact-nota {
  margin: 0.4rem 0 0;
  font-size: 0.7rem;
  color: #898781;
  font-style: italic;
}

.fact-card-anillo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fact-centro {
  text-align: center;
  margin-bottom: 0.5rem;
}

.fact-anillo-pct {
  font-size: 26px;
  font-weight: 800;
  fill: #1e955a;
}

.fact-anillo-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: #898781;
}

.fact-anillo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eceef1;
  text-align: center;
}

.fact-anillo-stats strong {
  font-size: 0.95rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .fact-kpis,
  .fact-fila {
    grid-template-columns: 1fr;
  }
}

/* Update > JobControl (exploración) */
.jc-fecha {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #52514e;
}

.jc-checks {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.7;
}

.jc-ddl {
  margin: 0.4rem 0 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #12283f;
  color: #e6edf5;
  font-size: 0.74rem;
  overflow-x: auto;
  white-space: pre;
}

/* Pestaña Participación (JobControl RAW_Worktime) */
.part-periodo { margin: 0 0 0.75rem; font-size: 0.78rem; color: #52514e; }
.part-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 1rem; align-items: start; }
.part-der { display: flex; flex-direction: column; gap: 1rem; }
.part-kpis { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.part-kpi { background: #fff; border: 1px solid #c7ced9; border-radius: 6px; padding: 0.45rem 1.1rem; text-align: center; min-width: 140px; }
.part-kpi-valor { font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.part-kpi-label { font-size: 0.7rem; color: #1b2436; }
.part-filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }
.part-filtro { background: #fff; border: 1px solid #9ec5f4; border-radius: 4px; padding: 0.4rem 0.5rem; min-width: 0; }
.part-filtro-titulo { font-weight: 700; font-size: 0.85rem; color: #1b2436; border-bottom: 2px solid #2a78d6; padding-bottom: 0.15rem; margin-bottom: 0.3rem; }
.part-filtro-n { font-weight: 400; color: #2a78d6; font-size: 0.75rem; }
.part-filtro-buscar { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.7rem; padding: 0.15rem 0.35rem; border: 1px solid #d6dbe3; border-radius: 3px; margin-bottom: 0.25rem; background: #fff; color: #1b2436; }
.part-opcion input[type="checkbox"] { accent-color: #2a78d6; }
.part-filtro-lista { max-height: 120px; overflow-y: auto; }
.part-opcion { display: flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; color: #1b2436; padding: 0.08rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.part-opcion input { margin: 0; flex: none; }
.part-opcion-todos { font-weight: 600; }
.part-opcion-mas { font-size: 0.68rem; color: #898781; font-style: italic; }
.part-tabla-acciones { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; }
.part-btn-distribucion { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border: 1px solid #3a45b0; border-radius: 999px; background: #fff; color: #3a45b0; font: inherit; font-size: 0.72rem; font-weight: 600; cursor: pointer; }
.part-btn-distribucion:hover { background: #3a45b0; color: #fff; }
.part-btn-distribucion:focus-visible { outline: 2px solid #2a78d6; outline-offset: 2px; }
.part-dist-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin: 0.25rem 0 0.75rem; }
.part-dist-form .modal-label { flex: 1 1 160px; margin: 0; }
.part-dist-resumen { font-size: 0.8rem; color: #52514e; margin: 0 0 0.5rem; }
.part-dist-tabla-wrap { max-height: 55vh; }
.part-tabla-wrap { background: #fff; border: 1px solid #3f4652; border-radius: 4px; max-height: 520px; overflow: auto; }
.part-tabla { font-size: 0.8rem; }
.part-tabla thead th { position: sticky; top: 0; z-index: 2; background: #fff; text-align: center; white-space: nowrap; }
.part-tabla th.part-th { cursor: pointer; user-select: none; }
.part-tabla th.part-th.activa { color: #2a78d6; }
.part-tabla td.num, .part-tabla th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.part-tabla tbody tr:nth-child(even) { background: #f1f2f4; }
.part-tabla td:first-child { white-space: nowrap; max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.part-nivel-0 td { font-weight: 700; }
.part-tabla th.part-th-nombre { text-align: left; min-width: 260px; }
.part-th-titulo { display: block; text-align: center; }
.part-busqueda { position: relative; display: block; margin-top: 0.3rem; }
.part-busqueda .th-col-filtro { padding-right: 1.4rem; font-weight: 400; }
.part-busqueda-limpiar { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); border: none; background: none; color: #898781; cursor: pointer; font-size: 0.75rem; padding: 0; }
.part-busqueda-limpiar:hover { color: #1b2436; }
.part-tabla mark { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 2px; }
.part-toggle { width: 16px; height: 16px; padding: 0; margin-right: 0.35rem; border: 1px solid #1baf7a; border-radius: 2px; background: #fff; color: #1baf7a; font-size: 0.75rem; line-height: 13px; cursor: pointer; vertical-align: middle; }
.part-toggle-vacio { display: inline-block; width: 16px; margin-right: 0.35rem; }
.part-total td { font-weight: 800; border-top: 2px solid #3f4652; background: #fff; position: sticky; bottom: 0; }
.part-pastel { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.part-pastel-svg { width: 100%; max-width: 400px; height: auto; }
.part-pastel-etq { font-size: 10px; fill: #1b2436; }
.part-leyenda { list-style: none; margin: 0; padding: 0; font-size: 0.72rem; color: #1b2436; display: flex; flex-direction: column; gap: 0.3rem; }
.part-barras-svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.part-barra-etq { font-size: 10px; font-weight: 700; fill: #1b2436; }
.part-barra-x { font-size: 10px; fill: #1b2436; }
@media (max-width: 1100px) { .part-grid { grid-template-columns: 1fr; } }

/* Participación (GPE): Proyectos por líder, total + por cliente, por mes y tabla */
.partl-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 1rem; align-items: start; }
.partl-leyenda { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.9rem; font-size: 0.7rem; color: #1b2436; margin-bottom: 0.7rem; }
.partl-leyenda > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.partl-punto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.partl-lideres { display: flex; flex-direction: column; gap: 0.2rem; }
.partl-lider-fila { display: grid; grid-template-columns: minmax(110px, 24%) 1fr 5.2rem 5.8rem 5.8rem; align-items: center; gap: 0 0.5rem; padding: 0.1rem 0.3rem; border-radius: 4px; }
.partl-clic { cursor: pointer; }
.partl-lider-fila.partl-clic:hover { background: rgba(42, 120, 214, 0.08); }
.partl-lider-fila.seleccionado { background: rgba(42, 120, 214, 0.12); }
.partl-lider-fila:focus-visible { outline: 2px solid #2a78d6; outline-offset: 1px; }
.partl-lideres.partl-filtrado .partl-lider-fila.partl-clic:not(.seleccionado) { opacity: 0.45; }
.partl-mes-hit { fill: transparent; }
.partl-mes-g:hover .partl-mes-hit { fill: rgba(42, 120, 214, 0.06); }
.partl-mes-g.seleccionado .partl-mes-hit { fill: rgba(42, 120, 214, 0.12); }
.partl-mes-g:focus { outline: none; }
.partl-mes-g:focus-visible .partl-mes-hit { stroke: #2a78d6; stroke-width: 2; }
.partl-meses-svg.partl-filtrado .partl-mes-g:not(.seleccionado) { opacity: 0.45; }
.partl-eje-titulo { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #52514e; }
.partl-centro { text-align: center; }
.partl-lider-nombre { font-size: 0.72rem; color: #1b2436; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partl-lider-track { height: 16px; }
.partl-lider-barra { display: flex; height: 100%; min-width: 18px; }
.partl-seg { min-width: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.64rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.partl-lider-total { font-size: 0.72rem; color: #1b2436; font-variant-numeric: tabular-nums; }
.partl-lider-margen { font-size: 0.72rem; text-align: right; font-variant-numeric: tabular-nums; color: #52514e; }
span.partl-lider-margen.good { color: #0ca30c; font-weight: 700; }
span.partl-lider-margen.warning { color: #b8860b; font-weight: 700; }
span.partl-lider-margen.critical { color: #d03b3b; font-weight: 700; }
.partl-meses-panel { margin-top: 1rem; }
.partl-rango { font-weight: 400; color: #52514e; font-size: 0.75rem; }
.partl-meses { overflow-x: auto; text-align: center; }
.partl-meses-svg { width: 100%; height: auto; max-height: 340px; }
.partl-eje-svg { font-size: 10px; font-weight: 700; fill: #52514e; letter-spacing: 0.04em; }
.partl-tabla-panel { margin-top: 1.25rem; background: #fff; border: 1px solid #e1e0d9; border-radius: 8px; overflow: hidden; }
.partl-tabla-titulo { display: flex; align-items: center; gap: 0.75rem; background: #3d434d; color: #fff; padding: 0.6rem 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.partl-tabla-titulo .part-btn-distribucion { text-transform: none; letter-spacing: 0; }
.partl-tabla-wrap { overflow-x: auto; max-height: 70vh; }
.partl-tabla { min-width: 1760px; }
/* Anchos para que importes, porcentajes, horas y fechas se vean completos. */
.partl-tabla th.partl-th-monto { width: 135px; max-width: none; }
.partl-tabla th.partl-th-pct { width: 115px; max-width: none; }
.partl-tabla th.partl-th-ahorro { width: 95px; max-width: none; }
.partl-tabla th.partl-th-hrs { width: 120px; max-width: none; }
.partl-tabla th.partl-th-fecha { width: 110px; max-width: none; }
.partl-tabla th.partl-th-cliente { width: 110px; max-width: none; }
.partl-tabla th.partl-th-proyecto { width: 300px; max-width: none; }
.partl-tabla th.partl-th-lider { width: 170px; max-width: none; }
.partl-tabla th.partl-th-estatus { width: 210px; max-width: none; }
.partl-tabla .status-dot { width: 10px; height: 10px; vertical-align: -1px; }
@media (max-width: 1100px) { .partl-grid { grid-template-columns: 1fr; } }

.resumen-conclusion {
  margin-top: 1.25rem;
}

.rentabilidad-conclusion {
  display: flex;
  gap: 0.75rem;
  background: #12283f;
  color: #fff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.rentabilidad-conclusion-icono {
  color: #2a9df4;
  font-size: 1.2rem;
  line-height: 1;
}

.rentabilidad-conclusion-titulo {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.rentabilidad-conclusion ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .rentabilidad-grid {
    grid-template-columns: 1fr;
  }
}

/* Participación: proyecto clicable y popup "Participación en el proyecto" (JobControl) */
.partl-proyecto-link { all: unset; cursor: pointer; color: #1f5fae; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.partl-proyecto-link:hover { text-decoration: underline; }
.partl-proyecto-link:focus-visible { outline: 2px solid #2a78d6; outline-offset: 1px; border-radius: 2px; }
.part-proy-tabla td { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.part-proy-tabla tr.part-proy-tarea td { background: #ddebf7; font-weight: 700; }
.modal-box-tabla.part-proy { max-width: min(1150px, 95vw); }

/* Participación: encabezados ordenables de "Proyectos por Líder" */
.partl-orden { background: none; border: 0; padding: 0.1rem 0.25rem; margin: 0 -0.25rem; border-radius: 4px; cursor: pointer; font-family: var(--pmo-font); white-space: nowrap; }
.partl-orden:hover { background: #eef1f6; color: #1b2436; }
.partl-orden.activa { color: #1f5fae; }
.partl-orden:focus-visible { outline: 2px solid #2a78d6; outline-offset: 1px; }
.partl-orden-flecha { font-size: 0.6rem; opacity: 0.7; }
.partl-orden.activa .partl-orden-flecha { opacity: 1; }

/* Popup "Participación en el proyecto": datos del proyecto (GPE) */
.part-proy-datos-wrap { margin-bottom: 0.9rem; max-height: none; }
.part-proy-datos td { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.part-proy-datos td.good { color: #0ca30c; font-weight: 700; }
.part-proy-datos td.warning { color: #b8860b; font-weight: 700; }
.part-proy-datos td.critical { color: #d03b3b; font-weight: 700; }
.part-proy-datos .status-dot { width: 10px; height: 10px; vertical-align: -1px; }
.part-proy-titulo { margin-bottom: 0.15rem; }
.part-proy-lider { margin: 0 0 0.75rem; font-size: 0.85rem; color: #52514e; }

/* Popup "Participación en el proyecto": botón Distribución abajo a la derecha */
.part-proy .modal-botones { justify-content: flex-end; align-items: center; }
.part-proy { position: relative; }
.part-proy .part-proy-titulo { padding-right: 2.5rem; }
.part-proy-x { position: absolute; top: 0.75rem; right: 0.75rem; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #52514e; font-size: 1rem; line-height: 1; cursor: pointer; }
.part-proy-x:hover { background: #eef1f6; color: #1b2436; }
.part-proy-x:focus-visible { outline: 2px solid #2a78d6; outline-offset: 1px; }
/* "Exportar a Excel" a la izquierda y "Distribución" a la derecha, en la misma línea */
.part-proy-acciones { margin: 0.75rem 0 0; }
.part-proy-acciones .part-btn-distribucion { margin-left: auto; }

/* Proyectos por Líder: # Proy. por estatus (viñeta + número) y encabezados en dos líneas */
.partl-lider-proy { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.1rem 0.45rem; font-size: 0.72rem; color: #1b2436; font-variant-numeric: tabular-nums; }
.partl-proy-estatus { display: inline-flex; align-items: center; gap: 0.2rem; }
.partl-proy-estatus .partl-punto { width: 8px; height: 8px; }
.partl-orden-2l { white-space: normal; text-align: right; line-height: 1.15; }
.partl-seg { overflow: hidden; white-space: nowrap; min-width: 26px; font-size: 0.6rem; }

/* Proyectos por Líder como tabla (columnas alineadas) */
.partl-lt-wrap { overflow-x: auto; }
.partl-lider-tabla { width: 100%; border-collapse: collapse; font-size: 0.72rem; color: #1b2436; }
.partl-lider-tabla th { padding: 0.25rem 0.4rem; border-bottom: 2px solid #c7ced9; vertical-align: bottom; text-align: left; font-weight: 600; }
.partl-lider-tabla td { padding: 0.3rem 0.4rem; border-bottom: 1px solid #eceef1; vertical-align: middle; }
.partl-lider-tabla .partl-lt-centro { text-align: center; }
.partl-lider-tabla .partl-lt-num { text-align: right; width: 6.5rem; font-variant-numeric: tabular-nums; }
.partl-lider-tabla th.partl-lt-num .partl-orden { text-align: right; }
.partl-lider-tabla td.partl-lt-num.good { color: #0ca30c; font-weight: 700; }
.partl-lider-tabla td.partl-lt-num.warning { color: #e8710a; font-weight: 700; }
.partl-lider-tabla td.partl-lt-num.critical { color: #d03b3b; font-weight: 700; }
.partl-lt-lider { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partl-lider-tabla th.partl-lt-general { width: 30%; min-width: 150px; }
.partl-lt-proy { white-space: nowrap; }
.partl-lt-semaforo { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 0.4rem; font-size: 0.62rem; color: #6b7280; margin-top: 0.1rem; }
.partl-lt-semaforo .partl-punto { width: 7px; height: 7px; }
.partl-orden-sub { display: block; margin: 0.1rem auto 0; font-size: 0.6rem; font-weight: 600; }
.partl-lt-barra-wrap { display: flex; align-items: center; gap: 0.4rem; }
.partl-lt-track { flex: 1; display: flex; align-items: center; height: 16px; background: #eef0f3; border-radius: 3px; overflow: hidden; }
.partl-lt-barra { height: 100%; min-width: 3px; border-radius: 3px; display: flex; align-items: center; justify-content: flex-end; flex: none; }
.partl-lt-valor-dentro { color: #fff; font-size: 0.66rem; font-weight: 700; padding-right: 0.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.partl-lt-valor-fuera { font-size: 0.66rem; font-weight: 700; padding-left: 0.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.partl-lt-valor-fuera.good { color: #0ca30c; }
.partl-lt-valor-fuera.warning { color: #e8710a; }
.partl-lt-valor-fuera.critical { color: #d03b3b; }
.partl-lt-barra.good { background: #0ca30c; }
.partl-lt-barra.warning { background: #f28c28; }
.partl-lt-barra.critical { background: #d03b3b; }
.partl-lt-valor { width: 2.6rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.partl-lt-valor.good { color: #0ca30c; }
.partl-lt-valor.warning { color: #e8710a; }
.partl-lt-valor.critical { color: #d03b3b; }
.partl-lt-sin { color: #898781; }
.partl-lider-tabla tbody tr.partl-clic:hover { background: rgba(42, 120, 214, 0.08); }
.partl-lider-tabla tbody tr.seleccionado { background: rgba(42, 120, 214, 0.12); }
.partl-lider-tabla tbody tr:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
.partl-lider-tabla.partl-filtrado tbody tr:not(.seleccionado) { opacity: 0.45; }
/* Ctes.Externos Margen / Digipro Ahorro: encabezado y valores centrados en la misma columna */
.partl-lider-tabla th.partl-lt-num, .partl-lider-tabla td.partl-lt-num { text-align: center; }
.partl-lider-tabla th.partl-lt-num .partl-orden { text-align: center; margin: 0 auto; display: inline-block; }

/* ===== Pestaña Cierre: cumplimiento documental ===== */
.cierre-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.cierre-kpi { display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 1px solid #e1e0d9; border-radius: 8px; padding: 0.7rem 1rem; }
.cierre-kpi-icono { flex: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.cierre-kpi-label { font-size: 0.72rem; color: #52514e; font-weight: 600; }
.cierre-kpi-valor { font-size: 1.6rem; font-weight: 700; color: #1b2436; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cierre-kpi-pct { font-size: 0.85rem; font-weight: 600; color: #52514e; margin-left: 0.3rem; }
.cierre-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 1300px) { .cierre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cierre-grid { grid-template-columns: 1fr; } }
.cierre-donut-block { flex-wrap: wrap; justify-content: center; }
.cierre-donut { position: relative; width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; }
.cierre-donut-centro { position: absolute; inset: 28px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #1b2436; }
.cierre-donut-centro strong { font-size: 1.6rem; line-height: 1; }
.cierre-donut-centro span { font-size: 0.72rem; color: #52514e; }
.cierre-barras { display: flex; flex-direction: column; gap: 0.45rem; }
.cierre-barra-fila { display: grid; grid-template-columns: minmax(70px, 32%) 1fr 2rem; align-items: center; gap: 0.5rem; }
.cierre-barra-nombre { font-size: 0.72rem; color: #1b2436; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cierre-barra-track { height: 18px; }
.cierre-barra { display: flex; height: 100%; min-width: 18px; border-radius: 3px; overflow: hidden; }
.cierre-seg { min-width: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.64rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cierre-barra-total { font-size: 0.72rem; font-weight: 700; color: #1b2436; font-variant-numeric: tabular-nums; }
.cierre-docs { display: flex; flex-direction: column; gap: 0.5rem; }
.cierre-doc-fila { display: grid; grid-template-columns: minmax(90px, 44%) 1fr 2.4rem; align-items: center; gap: 0.5rem; }
.cierre-doc-nombre { font-size: 0.7rem; color: #1b2436; text-align: right; line-height: 1.15; }
.cierre-doc-track { display: flex; height: 14px; background: #eef0f3; border-radius: 3px; overflow: hidden; }
.cierre-doc-pct { font-size: 0.72rem; font-weight: 700; color: #1b2436; text-align: right; font-variant-numeric: tabular-nums; }
.cierre-nota { margin: 0.6rem 0 0; font-size: 0.66rem; color: #6b7280; }
.cierre-tabla-leyenda { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.68rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.cierre-tabla-leyenda > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.cierre-icono { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; font-size: 0.7rem; font-weight: 800; line-height: 1; }
.cierre-tabla { min-width: 1250px; }
.cierre-tabla th.cierre-th-num { width: 42px; max-width: none; }
.cierre-tabla th.cierre-th-lider { width: 170px; max-width: none; }
.cierre-tabla th.cierre-th-cliente { width: 110px; max-width: none; }
.cierre-tabla th.cierre-th-proyecto { width: 260px; max-width: none; }
.cierre-tabla th.cierre-th-doc { width: 105px; max-width: none; white-space: normal; text-align: center; line-height: 1.2; }
.cierre-tabla th.cierre-th-estatus { width: 130px; max-width: none; text-align: center; }
.cierre-tabla td.cierre-centro { text-align: center; }
.cierre-pill { display: inline-block; min-width: 90px; padding: 0.15rem 0.6rem; border-radius: 4px; font-weight: 700; font-size: 0.72rem; }
.cierre-pill-cerrado { background: rgba(12, 163, 12, 0.14); color: #087a08; }
.cierre-pill-pendiente { background: rgba(208, 59, 59, 0.14); color: #b32626; }
.cierre-pill-noAplica { background: #eceae4; color: #52514e; }
.cierre-pill-sinRegistro { background: #eef1f6; color: #52514e; }
.cierre-titulo { margin: 0.25rem 0 0.75rem; font-size: 1.15rem; font-weight: 700; color: #1b2436; }

/* Cierre: filtros por clic en las gráficas */
.cierre-clic { cursor: pointer; }
.cierre-barra-fila.cierre-clic { padding: 0.1rem 0.3rem; margin: -0.1rem -0.3rem; border-radius: 4px; }
.cierre-barra-fila.cierre-clic:hover { background: rgba(42, 120, 214, 0.08); }
.cierre-barra-fila.seleccionado { background: rgba(42, 120, 214, 0.12); }
.cierre-barras.cierre-filtrado .cierre-barra-fila:not(.seleccionado) { opacity: 0.45; }
.cierre-clic:focus-visible { outline: 2px solid #2a78d6; outline-offset: 1px; }
.cierre-doc-seg { height: 100%; }
.cierre-doc-seg:hover { filter: brightness(1.12); }
.cierre-docs.cierre-filtrado .cierre-doc-seg:not(.seleccionado) { opacity: 0.35; }
.cierre-doc-seg.seleccionado { box-shadow: inset 0 0 0 2px #1b2436; }

/* Cierre: popup de edición del estatus documental */
.cierre-modal { max-width: 520px; }
.cierre-modal-form { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.5rem; }
.cierre-modal-campo { display: grid; grid-template-columns: 1fr 170px; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: #1b2436; }
.cierre-combo { font: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.5rem; border: 1px solid #c7ced9; border-radius: 4px; background: #fff; color: #1b2436; border-left-width: 5px; }
.cierre-combo-completo { border-left-color: #0ca30c; }
.cierre-combo-incompleto { border-left-color: #fab219; }
.cierre-combo-pendiente { border-left-color: #d03b3b; }
.cierre-combo-noAplica { border-left-color: #a3a29b; }
.cierre-modal .modal-botones { justify-content: flex-end; margin-top: 0.75rem; }
/* Cierre: cajas de filtro de la tabla alineadas abajo; segmentos de barra clicables */
.cierre-tabla thead th { vertical-align: bottom; }
.cierre-tabla th.cierre-th-num { width: 56px; }
.cierre-seg { cursor: pointer; }
.cierre-seg:hover { filter: brightness(1.12); }
.cierre-seg.seleccionado { box-shadow: inset 0 0 0 2px #1b2436; }
.cierre-donut.donut-clickable { cursor: pointer; }
/* Cierre: observaciones (tooltip en el estatus y campo del popup) */
.cierre-pill.con-obs { position: relative; cursor: help; }
.cierre-pill.con-obs::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #2a78d6; border: 1.5px solid #fff; }
.cierre-modal-obs { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: #1b2436; margin-top: 0.4rem; }
.cierre-modal-obs textarea { font: inherit; font-size: 0.82rem; padding: 0.45rem 0.55rem; border: 1px solid #c7ced9; border-radius: 4px; resize: vertical; min-height: 80px; }
.cierre-modal-obs textarea:focus { outline: 2px solid #2a78d6; outline-offset: 0; border-color: #2a78d6; }

/* Facturación: tabla "Facturas por Cliente" (agrupada, con filtro por columna) */
.fact-tabla-acciones { margin-left: auto; display: flex; gap: 0.4rem; }
.fact-tabla-btn { font: inherit; font-size: 0.7rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 4px; padding: 0.2rem 0.6rem; cursor: pointer; }
.fact-tabla-btn:hover { background: rgba(255, 255, 255, 0.25); }
.fact-tabla { min-width: 1250px; table-layout: fixed; }
.fact-tabla thead th { vertical-align: bottom; max-width: none; }
.fact-tabla td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact-tabla .fact-num { text-align: right; font-variant-numeric: tabular-nums; }
.fact-tabla tr.fact-grupo td { background: #eef1f6; border-top: 1px solid #d6dbe3; cursor: pointer; }
.fact-tabla tr.fact-grupo:hover td { background: #e3e8f0; }
.fact-tabla tr.fact-grupo:focus { outline: 2px solid #2a78d6; outline-offset: -2px; }
.fact-grupo-flecha { display: inline-block; width: 1em; color: #5b6576; }
.fact-grupo-n { margin-left: 0.5rem; font-size: 0.7rem; color: #5b6576; font-weight: 400; }
.fact-tabla tfoot tr.fact-total td { background: #3d434d; color: #fff; font-weight: 700; border-top: 2px solid #3d434d; position: sticky; bottom: 0; }

/* Data Mart PMO: modelo estrella (Update > Data Mart PMO) */
.dm-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.8rem;
  color: #5d6676;
  margin: 0.5rem 0;
}
.dm-leyenda span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dm-chip {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 2px solid;
}
.dm-chip-hub { border-color: #1f4e8c; background: #e3ecf8; }
.dm-chip-idp { border-color: #b26a00; background: #fbf0dd; }
.dm-chip-ado { border-color: #0b6aa8; background: #def0fb; }
.dm-chip-jc { border-color: #2d7d4f; background: #e2f3e8; }
.dm-trazo { width: 26px; border-top: 2px solid #5d6676; }
.dm-trazo-derivada { border-top: 2px dashed #a8452b; }
.dm-trazo-sec { border-top: 1.5px dotted #5d6676; }

.dm-lienzo {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d5dae2;
  border-radius: 6px;
  padding: 0.5rem;
  margin: 0.5rem 0;
}
.dm-lienzo > svg,
.dm-modelo > svg {
  display: block;
  width: 100%;
  min-width: 900px;
  height: auto;
  color: #1c2330;
}
.dm-ent-box { fill: #fff; stroke: #d5dae2; stroke-width: 1.5; }
.dm-ent-head { fill: #d5dae2; }
.dm-idp .dm-ent-box { stroke: #b26a00; }
.dm-idp .dm-ent-head { fill: #fbf0dd; }
.dm-ado .dm-ent-box { stroke: #0b6aa8; }
.dm-ado .dm-ent-head { fill: #def0fb; }
.dm-jc .dm-ent-box { stroke: #2d7d4f; }
.dm-jc .dm-ent-head { fill: #e2f3e8; }
.dm-hub .dm-ent-box { stroke: #1f4e8c; stroke-width: 3; }
.dm-hub .dm-ent-head { fill: #e3ecf8; }
.dm-ent-name { font-family: var(--pmo-font); font-size: 14px; font-weight: 600; fill: currentColor; }
.dm-hub .dm-ent-name { fill: #1f4e8c; }
.dm-ent-src { font-size: 11px; fill: #5d6676; }
.dm-col { font-family: var(--pmo-font); font-size: 12px; fill: currentColor; }
.dm-col-key { font-weight: 600; }
.dm-col-mas { fill: #5d6676; font-style: italic; }
.dm-typ { font-family: var(--pmo-font); font-size: 10.5px; fill: #5d6676; }
.dm-key { font-family: var(--pmo-font); font-size: 10px; font-weight: 600; fill: #5d6676; }
.dm-k-pk, .dm-k-pkfk { fill: #1f4e8c; }
.dm-k-fk { fill: #2d7d4f; }
.dm-k-uk { fill: #b26a00; }
.dm-k-x { fill: #a8452b; }
.dm-rel { stroke: #5d6676; stroke-width: 2; }
.dm-rel.dm-derivada { stroke: #a8452b; stroke-dasharray: 7 5; }
.dm-rel.dm-sec { stroke-width: 1.5; stroke-dasharray: 2 4; }
.dm-flecha { fill: #5d6676; }
.dm-lab-bg { fill: #fff; stroke: #d5dae2; }
.dm-lab { font-family: var(--pmo-font); font-size: 11px; font-weight: 600; fill: currentColor; }
.dm-lab-sec { font-weight: 400; fill: #5d6676; }

.dm-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.dm-tag.dm-idp { background: #fbf0dd; color: #b26a00; }
.dm-tag.dm-ado { background: #def0fb; color: #0b6aa8; }
.dm-tag.dm-jc { background: #e2f3e8; color: #2d7d4f; }
.dm-mono { font-family: var(--pmo-font); font-size: 0.8rem; }
.dm-notas {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  display: grid;
  gap: 0.3rem;
  max-width: 90ch;
}
.dm-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.devops-ver-soco {
  background: none;
  border: none;
  padding: 0;
  color: #2a78d6;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.devops-ver-soco:disabled {
  color: #6b7280;
  cursor: wait;
}

/* ===================== Portafolio Proyectos Activos ===================== */
.act-actualizado { color: #6b7280; font-size: 0.85rem; margin-top: 0.2rem; }
.act-icono { flex-shrink: 0; color: #2e4a7d; }
.act-verde { color: #0ca30c; }
.act-ambar { color: #e07b00; }
.act-rojo { color: #d03b3b; }

.act-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.act-kpi,
.act-panel {
  background: #fff;
  border: 1px solid #e1e0d9;
  border-radius: 10px;
  padding: 0.9rem 1rem 1rem;
  box-shadow: 0 1px 3px rgba(27, 36, 54, 0.05);
  min-width: 0;
}
.act-kpi-titulo,
.act-panel-titulo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1b2436;
}
.act-panel-titulo-alerta {
  background: #fdeeee;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
}
.act-panel-titulo-alerta .act-icono { color: #d03b3b; }
/* Si la ficha es angosta (pantalla chica o ventana reducida), la dona baja debajo del texto. */
.act-kpi-cuerpo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.act-kpi-cuerpo-fact { justify-content: center; }
.act-kpi-grande { font-size: 2.6rem; font-weight: 800; color: #1b2436; line-height: 1; }
.act-kpi-pct { font-size: 2.2rem; font-weight: 800; color: #1b2436; line-height: 1.1; margin-bottom: 0.5rem; }
.act-kpi-nota { color: #52514e; font-size: 0.8rem; margin-top: 0.4rem; }
.act-leyenda { list-style: none; margin: 0; padding: 0; font-size: 0.8rem; color: #374151; display: grid; gap: 0.3rem; }
.act-leyenda li { display: flex; align-items: center; gap: 0.4rem; }
.act-leyenda-sep { border-left: 1px solid #e1e0d9; padding-left: 0.9rem; }
.act-punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.act-donut { width: 92px; height: 92px; flex-shrink: 0; }
.act-donut-valor { font-size: 20px; font-weight: 800; }
.act-donut-sub { font-size: 9px; fill: #52514e; }
.act-barra { display: block; height: 8px; background: #e6e9ee; border-radius: 4px; overflow: hidden; }
/* display:block: cuando la barra se arma con <span> (p. ej. grupos de Sprints) el ancho no se aplicaba. */
.act-barra-fill { display: block; height: 100%; border-radius: 4px; }
.act-fact { display: grid; grid-template-columns: auto auto; gap: 0.35rem 0.8rem; margin: 0; font-size: 0.8rem; flex: 1 1 175px; }
.act-fact dt { color: #374151; white-space: nowrap; }
.act-fact dd { margin: 0; font-weight: 800; text-align: right; }

.act-alertas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.act-tabla { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.act-tabla th {
  text-align: left;
  background: #eef0f3;
  color: #1b2436;
  font-weight: 700;
  padding: 0.45rem 0.6rem;
}
.act-tabla td { padding: 0.4rem 0.6rem; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.act-tabla .num { text-align: right; white-space: nowrap; }
.act-fila-clic { cursor: pointer; }
.act-fila-clic:hover td { background: #f6f8fb; }
.act-soco { color: #6b7280; font-size: 0.75rem; }
.act-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.act-badge-critico { background: #d03b3b; }
.act-badge-atencion { background: #f08c00; }
.act-badge-control { background: #0ca30c; }
.act-badge-arranque { background: #8a93a3; }

.act-seccion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #1b2436;
}
.act-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}
.act-tarjeta {
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e1e0d9;
  border-top: 3px solid #0ca30c;
  border-radius: 10px;
  padding: 0.75rem 0.85rem 0.85rem;
  box-shadow: 0 1px 3px rgba(27, 36, 54, 0.05);
  min-width: 0;
}
.act-tarjeta:hover { box-shadow: 0 3px 10px rgba(27, 36, 54, 0.12); }
.act-tarjeta:focus-visible { outline: 2px solid #2a78d6; outline-offset: 2px; }
.act-tarjeta.is-sel { box-shadow: 0 0 0 2px #2a78d6; }
.act-tarjeta-critico { border-top-color: #d03b3b; }
.act-tarjeta-atencion { border-top-color: #f08c00; }
.act-tarjeta-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.act-tarjeta-nombre { font-weight: 800; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-tarjeta-sub { color: #52514e; font-size: 0.78rem; margin: 0.2rem 0 0.6rem; }
.act-semaforos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #eef0f3;
  padding-top: 0.55rem;
  margin-bottom: 0.7rem;
  text-align: center;
}
.act-semaforos div { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.act-semaforos small { font-size: 0.68rem; color: #374151; }
.act-tarjeta-avance { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 0.35rem; }

.act-detalle { margin-bottom: 1.5rem; }
.act-detalle-cab { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.act-quitar {
  font: inherit;
  font-size: 0.78rem;
  background: #eef4fc;
  color: #2a78d6;
  border: 1px solid #c9dcf3;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
}
.act-tabla-wrap { overflow-x: auto; }
/* Ficha "SOCOs en ejecución" (detalle de proyectos) */
.act-det-titulo { margin: 0; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.04em; color: #52514e; }
.act-detalle-cab { padding-bottom: 0.7rem; margin-bottom: 0.6rem; border-bottom: 1px solid #eef0f3; }
.act-det-filtros { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.act-det-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #52514e; }
.act-det-fchip {
  font: inherit; font-size: 0.76rem; font-weight: 600; color: #374151; background: #fff;
  border: 1px solid #d6dae1; border-radius: 999px; padding: 0.18rem 0.7rem; cursor: pointer;
}
.act-det-fchip span { color: #8a919c; font-weight: 500; }
.act-det-fchip:hover { border-color: #2a5bd7; }
.act-det-fchip.is-act { background: #2a5bd7; border-color: #2a5bd7; color: #fff; }
.act-det-fchip.is-act span { color: #dbe5fb; }
.act-det-sem { display: inline-flex; align-items: center; gap: 0.25rem; border: 1px solid #d6dae1; border-radius: 999px; padding: 0.1rem 0.5rem; background: #fff; font-size: 0.76rem; }
.act-det-sem select { font: inherit; font-weight: 600; color: #374151; border: 0; background: transparent; cursor: pointer; }
.act-det-tabla { font-size: 0.8rem; }
.act-det-tabla th { background: #f7f8fa; color: #52514e; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; padding: 0.6rem; }
.act-det-tabla td { padding: 0.55rem 0.6rem; white-space: nowrap; }
.act-det-tabla .centro { text-align: center; }
.act-det-soco { display: inline-flex; align-items: center; gap: 0.4rem; }
.act-det-soco strong { color: #1b2436; }
.act-det-proy { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.act-det-lider { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.act-det-tipo { color: #6b7280; font-size: 0.75rem; }
.act-det-chip { margin-top: 0; font-size: 0.7rem; white-space: nowrap; }
.act-det-chip-punto { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--chip); margin-right: 0.35rem; vertical-align: middle; }
.act-det-avance { display: flex; flex-direction: column; gap: 0.2rem; min-width: 90px; }
.act-det-avance strong { font-size: 0.78rem; }
.act-det-avance .act-barra { height: 5px; }
.act-det-fact { color: #0ca30c; }
.act-det-pend { color: #e8822d; }
.act-det-nd { color: #9aa1ac; }
.act-det-vacio { text-align: center; color: #6b7280; padding: 1rem; }

@media (max-width: 480px) {
  .act-alertas { grid-template-columns: 1fr; }
  .act-kpi-cuerpo { flex-wrap: wrap; }
}
.act-pendiente { color: #8a919c; font-weight: 600 !important; font-style: italic; }

/* Menú fijo: el encabezado (logo y título) no se encoge cuando la lista crece. */
.sidebar-brand,
.app-title {
  flex-shrink: 0;
}

/* Opción del menú izquierdo con la vista abierta (p. ej. Resumen por default). */
.nav-link.nav-vista-activa {
  background: rgba(79, 155, 234, 0.18);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
}

/* --- Ficha "Avance de horas" (Portafolio Proyectos Activos) --- */
.act-hrs { margin-bottom: 1.25rem; --hrs-alto: 230px; }
.act-hrs-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; }
.act-hrs-titulo {
  margin: 0 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e1e0d9;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #52514e;
}
.act-hrs-totales { font-size: 0.78rem; color: #52514e; }
.act-hrs-totales strong { color: #1b2436; }
.act-hrs-sepv { margin: 0 0.35rem; color: #b5bcc8; }
.act-hrs-check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: #52514e; cursor: pointer; }
.act-hrs-leyendas { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 0.75rem; margin: 0.9rem 0 0.6rem; }
.act-hrs-ley { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; color: #52514e; }
.act-hrs-ley + .act-hrs-ley { margin-left: 0.9rem; }
.act-hrs-sw { display: inline-block; width: 34px; height: 11px; border-radius: 2px; }
.act-hrs-ley-grupo { text-align: right; }
.act-hrs-ley-titulo { font-size: 0.78rem; color: #52514e; text-align: center; border-bottom: 1px solid #52514e; padding-bottom: 0.2rem; margin-bottom: 0.4rem; }

.act-hrs-scroll { overflow-x: auto; }
.act-hrs-grafica {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-width: calc(44px + var(--cols) * 56px);
}
.act-hrs-eje { position: relative; height: var(--hrs-alto); }
.act-hrs-eje span {
  position: absolute;
  right: 6px;
  transform: translateY(50%);
  font-size: 0.66rem;
  color: #52514e;
}
.act-hrs-area { position: relative; min-width: 0; }
.act-hrs-guias { position: absolute; left: 0; right: 0; top: 0; height: var(--hrs-alto); pointer-events: none; }
.act-hrs-guias span { position: absolute; left: 0; right: 0; border-top: 1px solid #eef0f3; }
.act-hrs-guias span:first-child { border-top-color: #c9ced6; }
.act-hrs-cols,
.act-hrs-bandas { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.act-hrs-col { position: relative; min-width: 0; border-left: 1px solid #f3f4f6; }
.act-hrs-col:first-child { border-left: none; }
.act-hrs-col.act-hrs-sep::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  height: var(--hrs-alto);
  border-left: 1px dashed #b5bcc8;
}
.act-hrs-barras {
  height: var(--hrs-alto);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18%;
  padding: 0 10%;
}
.act-hrs-barra { flex: 0 1 28px; min-height: 1px; border-radius: 2px 2px 0 0; }
.act-hrs-etq { font-size: 0.64rem; color: #374151; text-align: center; padding-top: 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-hrs-bandas { gap: 2px; margin-top: 0.35rem; }
.act-hrs-banda {
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
  padding: 0.25rem 0.3rem;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Ficha "Timeline base vs Nueva Fecha Compromiso (NFC)" --- */
.act-gantt-barra-sup { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0 0.7rem; }
.act-gantt-sw { display: inline-block; width: 22px; height: 7px; border-radius: 4px; }
.act-gantt-base { background: #5b6be0; }
.act-gantt-nfc { background: #93c0f3; }
.act-gantt-filtros { display: inline-flex; gap: 0.35rem; flex-wrap: wrap; }
.act-gantt-filtro {
  font: inherit;
  font-size: 0.74rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #d6dae1;
  background: #fff;
  color: #52514e;
  cursor: pointer;
}
.act-gantt-filtro:hover { border-color: #2a78d6; color: #2a78d6; }
.act-gantt-filtro.active { background: #2a5bd7; border-color: #2a5bd7; color: #fff; font-weight: 700; }

.act-gantt-scroll {
  max-height: 540px;
  overflow: auto;
  border: 1px solid #e1e0d9;
  border-radius: 6px;
}
.act-gantt { --nombre: 240px; min-width: calc(var(--nombre) + var(--meses) * 44px); font-size: 0.74rem; }
.act-gantt-fila { display: grid; grid-template-columns: var(--nombre) 1fr; min-height: 27px; border-bottom: 1px solid #eef0f3; }
.act-gantt-nombre {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  padding: 0.35rem 0.6rem 0.35rem 0.75rem;
  border-right: 1px solid #e1e0d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1b2436;
}
.act-gantt-pista { position: relative; min-width: 0; }

.act-gantt-head { position: sticky; top: 0; z-index: 5; background: #1b2436; min-height: 28px; border-bottom: none; }
.act-gantt-head .act-gantt-nombre { background: #1b2436; color: #e8ecf3; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; z-index: 6; border-right-color: rgba(255, 255, 255, 0.15); }
.act-gantt-mes {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8ecf3;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  overflow: hidden;
}
.act-gantt-mes.is-actual { color: #f5a25d; }

.act-gantt-grupo .act-gantt-nombre,
.act-gantt-grupo .act-gantt-pista { background: #eaf0f6; }
.act-gantt-grupo .act-gantt-nombre { font-weight: 800; }

.act-gantt-cuerpo { position: relative; }
.act-gantt-capa { position: absolute; top: 0; bottom: 0; left: var(--nombre); right: 0; pointer-events: none; z-index: 2; }
.act-gantt-linea { position: absolute; top: 0; bottom: 0; border-left: 1px solid #f0f1f4; }
.act-gantt-hoy { position: absolute; top: 0; bottom: 0; border-left: 1.5px dashed #f08c00; }

.act-gantt-seg { position: absolute; top: 50%; height: 10px; transform: translateY(-50%); border-radius: 5px; z-index: 1; }
.act-gantt-seg.act-gantt-base + .act-gantt-seg.act-gantt-nfc { border-radius: 0 5px 5px 0; }
.act-gantt-dias { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 5px; font-weight: 800; color: #2a5bd7; font-size: 0.72rem; white-space: nowrap; z-index: 1; }
.act-gantt-sin { position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%); color: #8a919c; font-style: italic; }

@media (max-width: 640px) {
  .act-gantt { --nombre: 150px; }
}

/* Timeline: asa para redimensionar la columna Proyecto */
.act-gantt-head .act-gantt-nombre { overflow: visible; }
.act-gantt-resize {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  z-index: 7;
}
.act-gantt-resize::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 3px;
  width: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.25);
}
.act-gantt-resize:hover::after,
.act-redimensionando .act-gantt-resize::after { background: #4f9bea; }
body.act-redimensionando { cursor: col-resize; user-select: none; }

/* Avisos al final de la línea de pestañas (Proyectos Activos) */
.act-avisos { margin-left: auto; display: inline-flex; align-items: center; gap: 0.15rem; align-self: center; }
.act-aviso.campana { margin-right: 0; }
.act-aviso-vacio .campana-btn svg { opacity: 0.4; }
.act-aviso-vacio-txt { margin: 0; padding: 0.75rem 0.9rem; font-size: 0.8rem; color: #8a919c; font-style: italic; }

/* Popup "Proyectos Pendientes de Inicio" */
.modal-box.act-pend { max-width: min(1100px, 96vw); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.act-pend-cab { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 1rem; padding: 1rem 1.25rem 0.9rem; border-bottom: 1px solid #e3e7ee; }
.act-pend-cab .modal-title { display: flex; align-items: center; gap: 0.4rem; font-size: 1.1rem; font-weight: 800; }
.act-pend-cab .modal-subtitle { margin: 0.15rem 0 0; font-size: 0.75rem; }
.act-pend-icono svg { width: 20px; height: 20px; display: block; }
.act-pend-kpi { text-align: center; padding-right: 2rem; }
.act-pend-kpi small { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; }
.act-pend-kpi strong { font-size: 1.1rem; color: #0ca30c; }
.act-pend-cerrar { background: none; border: none; color: #6b7280; cursor: pointer; padding: 0.2rem; border-radius: 6px; }
.act-pend-cerrar:hover, .act-pend-cerrar:focus-visible { color: #1b2436; background: #eef0f3; }
.act-pend-seccion { padding: 0.9rem 1.25rem 0.5rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #52514e; }
.act-pend-scroll { overflow: auto; max-height: 60vh; }
.act-pend-tabla { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.act-pend-tabla th { background: #f4f6f9; padding: 0; text-align: left; vertical-align: bottom; position: sticky; top: 0; z-index: 1; }
.act-pend-tabla th button {
  font: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  background: none;
  border: none;
  padding: 0.6rem 0.6rem;
  width: 100%;
  text-align: inherit;
  cursor: pointer;
}
.act-pend-tabla th button span { opacity: 0.5; font-size: 0.7em; }
.act-pend-tabla th.activa button { color: #1f5fae; }
.act-pend-tabla th.activa button span { opacity: 1; }
.act-pend-tabla th.num, .act-pend-tabla td.num { text-align: right; }
.act-pend-tabla th.centro, .act-pend-tabla td.centro { text-align: center; }
.act-pend-tabla td { padding: 0.65rem 0.6rem; border-bottom: 1px solid #eef0f3; color: #1b2436; }
.act-pend-tabla td:first-child, .act-pend-tabla th:first-child button { padding-left: 1.25rem; }
.act-pend-tabla td:last-child, .act-pend-tabla th:last-child button { padding-right: 1.25rem; }
.act-pend-estatus { max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-pend-tabla tfoot td { background: #1b2436; color: #fff; font-weight: 800; border: none; position: sticky; bottom: 0; }
.act-pend-total-lbl { text-align: right; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #b9c2d0 !important; }
.act-pend-total-venta { color: #3ecf6e !important; }
@media (max-width: 640px) {
  .act-pend-cab { grid-template-columns: 1fr auto; }
  .act-pend-kpi { grid-column: 1 / -1; grid-row: 2; text-align: left; padding: 0; }
}
.act-pend-vacio { text-align: center; color: #8a919c; font-style: italic; padding: 1.25rem !important; }

/* Popups de avisos: proyectos que ingresaron esta semana (FechaDeCreacion) en amarillo tenue */
.act-pend-seccion { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.act-pend-ley { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.74rem; color: #52514e; }
.act-pend-ley-sw { width: 14px; height: 14px; border-radius: 3px; background: #fff7d1; border: 1px solid #f0d870; }
.act-pend-tabla tr.act-pend-nuevo td { background: #fff7d1; }
.act-pend-tabla tr.act-pend-nuevo:hover td { background: #fff1b3; }

/* --- Pestaña Digipro: fichas de resumen --- */
.act-dgp-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.act-dgp-titulo { margin: 0 0 0.75rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #1b2436; }
.act-dgp-total { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.act-dgp-total span { font-size: 2.2rem; font-weight: 800; color: #1b2436; line-height: 1; }
.act-dgp-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.act-dgp-lista li { display: flex; align-items: center; gap: 0.6rem; }
.act-dgp-lista strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.act-dgp-lista small { display: inline-block; font-size: 0.68rem; color: #1b2436; padding-bottom: 0.15rem; border-bottom: 1px dashed currentColor; }
.act-dgp-circ { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.act-dgp-circ svg { width: 14px; height: 14px; }
.act-dgp-verde { color: #0ca30c; }
.act-dgp-verde small { border-bottom-color: #8fd18f; }
.act-dgp-naranja { color: #e07b00; }
.act-dgp-naranja small { border-bottom-color: #f2c38a; }
.act-dgp-pct { font-size: 1.6rem; font-weight: 800; color: #1b2436; line-height: 1.1; }
.act-dgp-pct-sub { font-size: 0.75rem; font-weight: 700; color: #0ca30c; margin-bottom: 0.45rem; }
.act-dgp-estados { font-size: 0.72rem; }
.act-dgp-barra { margin: 0.5rem 0 0.1rem; }

/* Menú Proyectos Activos: clientes / grupos Digipro con el color de su estado
   (barra a la izquierda + punto), mismo tamaño que los submenús de Proyectos Terminados. */
.nav-link.act-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.6rem;
  border-radius: 0 6px 6px 0;
  box-shadow: inset 3px 0 0 var(--act-sem, #b5bcc8);
  margin-left: 0.55rem;
}
.nav-link.act-menu-item:hover { background: rgba(255, 255, 255, 0.06); }
.act-menu-punto { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--act-sem, #b5bcc8); }
.act-menu-texto { min-width: 0; }
.act-menu-vacio { padding: 0.3rem 0 0.3rem 2.15rem; font-size: 0.75rem; color: var(--sidebar-text-muted); font-style: italic; }
.nav-item.collapsible + .nav-item.collapsible,
.nav-sublist .act-menu-item { margin-top: 0.1rem; }

/* Chip "Filtro: <cliente>" en la línea de pestañas de Proyectos Activos */
.act-filtro-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: center;
  margin-left: 0.75rem;
  padding: 0.15rem 0.35rem 0.15rem 0.7rem;
  border-radius: 999px;
  background: #eaf7ee;
  border: 1px solid #bfe6c9;
  font-size: 0.75rem;
  color: #1b2436;
  max-width: 100%;
}
.act-filtro-chip button {
  border: none;
  background: none;
  color: #52514e;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.1rem 0.3rem;
  border-radius: 50%;
}
.act-filtro-chip button:hover { background: rgba(0, 0, 0, 0.08); }

/* ===================== Página del cliente (Proyectos Activos) ===================== */
/* Encabezado compacto: título, pestañas de SOCO y conteo/avisos en una sola fila (se acomoda en varias si no cabe). */
.act-cli-cab { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; padding-bottom: 0.5rem; margin-bottom: 0.75rem; border-bottom: 1px solid #e1e0d9; }
.act-cli-cab h2 { margin: 0; font-size: 1.3rem; font-weight: 800; color: #1b2436; letter-spacing: 0.01em; }
.act-cli-cab h2 span { font-size: 0.95rem; font-weight: 400; color: #6b7280; }
.act-cli-cab-der { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.act-cli-conteo { display: flex; gap: 0.75rem; font-size: 0.75rem; color: #52514e; }
.act-cli-conteo > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.act-cli-cab-der .act-avisos { margin-left: 0; }
.act-cli-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.act-cli-tab {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #d6dae1;
  border-top: 5px solid var(--tab, #b5bcc8);
  background: #fff;
  color: #1b2436;
  cursor: pointer;
}
.act-cli-tab small { font-weight: 400; color: #6b7280; }
.act-cli-tab:hover { border-color: #2a78d6; border-top-color: var(--tab, #b5bcc8); }
.act-cli-tab.active { background: #1b2436; color: #fff; border-color: #1b2436; border-top-color: var(--tab, #b5bcc8); }
.act-cli-tab.active small { color: #b9c2d0; }

.act-cli-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0.9rem; margin-bottom: 0.9rem; }
.act-cli-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0.9rem; margin-bottom: 1.5rem; }
@media (max-width: 1100px) { .act-cli-grid { grid-template-columns: 1fr; } }

.act-cli small { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; }
.act-cli-proyecto {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  background: #eef4fc; border: 1px solid #d6e4f5; border-radius: 8px; padding: 0.75rem 0.9rem; margin-bottom: 0.8rem;
}
.act-cli-ico { width: 34px; height: 34px; border-radius: 50%; background: #dbe8f8; color: #2a5bd7; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.act-cli-ico .act-icono, .act-cli-ico-sm .act-icono { color: inherit; width: 18px; height: 18px; }
.act-cli-proyecto-txt { flex: 1; min-width: 200px; }
.act-cli-proyecto-txt strong { font-size: 0.92rem; color: #1b2436; }
.act-cli-estatus { text-align: right; }
.act-cli-chip, .act-cli-tag {
  display: inline-block; margin-top: 0.25rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  color: var(--chip); background: color-mix(in srgb, var(--chip) 12%, #fff); border: 1px solid color-mix(in srgb, var(--chip) 35%, #fff);
}
.act-cli-tag { margin-top: 0; font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; }

.act-cli-fila { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.8rem; }
.act-cli-fila > :first-child { flex: 1; min-width: 0; }
.act-cli-sem { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.act-cli-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 0.6rem; padding-bottom: 0.7rem; border-bottom: 1px solid #eef0f3; }
.act-cli-datos > div { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.act-cli-datos strong { font-size: 0.82rem; color: #1b2436; overflow-wrap: anywhere; }
.act-cli-datos strong.act-pendiente { color: #8a919c; }
.act-cli-ico-sm { width: 28px; height: 28px; border-radius: 50%; background: #eef4fc; color: #2a5bd7; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.act-cli-caja { border: 1px solid #e3e7ee; border-radius: 8px; padding: 0.7rem 0.9rem 0.8rem; background: #fafbfc; }
.act-cli-caja-cab { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; font-size: 0.75rem; font-weight: 700; color: #1b2436; margin-bottom: 1.4rem; }
.act-cli-caja-cab > span:first-child { display: inline-flex; align-items: center; gap: 0.35rem; }
.act-cli-caja-cab .act-icono { width: 16px; height: 16px; }
.act-cli-tiempo-estado { font-weight: 700; }
.act-cli-linea { position: relative; height: 9px; background: #e3e7ee; border-radius: 5px; }
.act-cli-linea-fill { height: 100%; border-radius: 5px; }
.act-cli-linea-nfc { position: absolute; top: -3px; bottom: -3px; border-left: 2px dotted #2a5bd7; }
.act-cli-hoy { position: absolute; top: -6px; bottom: -6px; border-left: 1.5px solid #1b2436; }
.act-cli-hoy span { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 0.6rem; font-weight: 700; color: #1b2436; }
.act-cli-linea-fechas { display: flex; justify-content: space-between; margin-top: 0.45rem; font-size: 0.75rem; color: #1b2436; }
.act-cli-linea-fechas .der { text-align: right; }
.act-cli-linea-fechas small { text-transform: none; letter-spacing: 0; font-weight: 400; }

.act-cli-sub { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; color: #1b2436; margin: 0.2rem 0 0.5rem; }
.act-cli-sub .act-icono { width: 16px; height: 16px; }
.act-cli-hrs { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 0.6rem; }
@media (max-width: 640px) { .act-cli-hrs { grid-template-columns: 1fr; } }
.act-cli-hrs-box { border: 1px solid #e3e7ee; border-radius: 8px; padding: 0.6rem 0.75rem; background: #fff; }
.act-cli-hrs-box strong { font-size: 0.9rem; color: #1b2436; }
.act-cli-hrs-box.azul { background: #eef4fc; border-color: #d6e4f5; }
.act-cli-hrs-box.verde { background: color-mix(in srgb, var(--hrs) 8%, #fff); border-color: color-mix(in srgb, var(--hrs) 30%, #fff); }
.act-cli-hrs-avance { display: flex; align-items: center; gap: 0.6rem; }
.act-cli-hrs-avance strong { color: var(--hrs); font-size: 1rem; }
.act-cli-hrs-avance .act-barra { flex: 1; }

.act-cli-seguimiento { border: 1px solid #f0d870; background: #fffbea; border-radius: 8px; padding: 0.6rem 0.8rem 0.8rem; }
.act-cli-seguimiento-tit { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8a5a00; margin-bottom: 0.45rem; }
.act-cli-seguimiento-txt { background: #fff; border: 1px solid #f0e3a8; border-radius: 6px; padding: 0.55rem 0.7rem; font-size: 0.8rem; color: #1b2436; white-space: pre-wrap; }

.act-cli-salud { display: flex; flex-direction: column; }
.act-radar { display: block; width: 100%; max-height: 360px; margin: 0.25rem auto 0.75rem; }
/* Detalle de cada eje del radar, en lista debajo del gráfico. */
.act-radar-lista { list-style: none; margin: 0; padding: 0.75rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; border-top: 1px solid #eef0f3; }
.act-radar-lista li { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.act-radar-lista-tit { display: flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; font-weight: 800; color: #1b2436; letter-spacing: 0.03em; }
.act-radar-lista-tit strong { margin-left: auto; font-size: 0.8rem; }
.act-radar-lista-punto { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.act-radar-lista small { font-size: 0.7rem; color: #6b7280; padding-left: 1rem; overflow-wrap: anywhere; }
@media (max-width: 480px) { .act-radar-lista { grid-template-columns: 1fr; } }
.act-radar-grid { fill: none; stroke: #e3e7ee; stroke-width: 1; }
.act-radar-area { fill: rgba(16, 185, 160, 0.15); stroke: #10b9a0; stroke-width: 2; }
.act-radar-punto { fill: #10b9a0; }
.act-radar-nombre { font-size: 12px; font-weight: 700; fill: #1b2436; }
.act-radar-pct { font-weight: 800; }
.act-radar-sub { font-size: 9.5px; fill: #8a919c; }

.act-cli-card-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.act-cli-alcance { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 0.5rem 0 0.9rem; }
.act-cli-alcance .act-donut { width: 130px; height: 130px; }
.act-cli-alcance-pct { text-align: center; border-left: 1px solid #e3e7ee; padding-left: 1.2rem; }
.act-cli-alcance-pct strong { display: block; font-size: 1.6rem; font-weight: 800; color: #0ca30c; }
.act-cli-alcance-pct small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.act-cli-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.act-cli-mini > div { border: 1px solid #e3e7ee; border-radius: 8px; padding: 0.55rem 0.7rem; }
.act-cli-mini h4 { margin: 0 0 0.4rem; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #1b2436; }
.act-cli-mini-fila { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.act-cli-mini-fila strong { display: block; font-size: 0.85rem; }
.act-cli-mini-fila small:last-child:not(:first-child) { text-transform: none; letter-spacing: 0; }

.act-gauge { display: block; width: 100%; max-width: 230px; margin: 0.4rem auto 0.6rem; }
.act-gauge-valor { font-size: 20px; font-weight: 800; }
.act-gauge-sub { font-size: 9px; fill: #6b7280; }
.act-cli-dos { display: flex; justify-content: center; gap: 2.5rem; padding-top: 0.7rem; border-top: 1px solid #eef0f3; margin-bottom: 0.7rem; }
.act-cli-dos strong { font-size: 0.9rem; color: #1b2436; }
.act-cli-margen-esp { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: #52514e; padding: 0.4rem 0; border-top: 1px solid #eef0f3; }
.act-cli-margen {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 0.4rem; padding: 0.7rem 0.8rem; border-radius: 8px; background: color-mix(in srgb, var(--m) 12%, #fff);
}
.act-cli-margen strong { font-size: 0.9rem; color: #1b2436; }
.act-cli-margen small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 0.2rem; }
.act-cli-margen-val { font-size: 1.15rem; font-weight: 800; color: var(--m); white-space: nowrap; }
.act-cli-margen-val span { font-size: 0.8rem; }

/* Página del cliente: lupa junto al nombre y popup de resumen de proyectos */
.act-cli-cab h2 { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.act-cli-lupa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; border: none; border-radius: 50%;
  background: none; color: #2a78d6; cursor: pointer;
}
.act-cli-lupa:hover, .act-cli-lupa:focus-visible { background: #eef4fc; }

.modal-box.act-res { max-width: min(1280px, 97vw); }
.act-res-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 0.7rem; padding: 1rem 1.25rem; }
.act-res-kpi { border: 1px solid #e3e7ee; border-radius: 8px; padding: 0.7rem 0.85rem; background: #fff; }
.act-res-kpi small { display: block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; margin-bottom: 0.35rem; }
.act-res-kpi strong { display: block; font-size: 1.3rem; font-weight: 800; color: #1b2436; }
.act-res-kpi strong .act-pendiente { font-size: 1rem; }
.act-res-kpi span { display: block; font-size: 0.72rem; color: #6b7280; margin-top: 0.15rem; }
.act-res-tabla th { background: #1b2436; }
.act-res-tabla th button { color: #e8ecf3; }
.act-res-tabla th.activa button { color: #9cc8f5; }
.act-res-tabla td { font-size: 0.78rem; white-space: nowrap; }
.act-res-tabla td:first-child { white-space: normal; min-width: 240px; }
.act-res-tipo { color: #6b7280; }
.act-res-chip { margin-top: 0; font-size: 0.7rem; }
.act-res-nfc { display: inline-flex; align-items: center; gap: 0.35rem; }
.act-res-avance { display: inline-flex; flex-direction: column; align-items: stretch; gap: 0.2rem; min-width: 80px; }
.act-res-avance strong { color: var(--hrs); font-size: 0.78rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; }
.act-res-avance .act-punto { display: none; }
.act-res-avance .act-barra { height: 5px; }
.act-res-azul { color: #2a5bd7; font-weight: 700; }
.act-res-pend { color: #8a919c; font-style: italic; }
.act-res-tabla tfoot .act-res-pend { color: #b9c2d0 !important; }

/* Página del cliente: título "Tiempo del proyecto" con lápiz */
.act-cli-tiempo-tit { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.act-cli-tiempo-tit > span { display: inline-flex; align-items: center; gap: 0.35rem; }
.act-cli-lapiz {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; margin-left: 0.15rem; border: none; border-radius: 5px;
  background: none; color: #6b7280; cursor: pointer;
}
.act-cli-lapiz:hover, .act-cli-lapiz:focus-visible { color: #2a5bd7; background: #eef4fc; }

/* Barra de tiempo con tramos de autorización (página del cliente y popup) */
.act-tl { position: relative; padding-top: 0.9rem; }
.act-tl-barra { position: relative; height: 10px; background: #e3e7ee; border-radius: 5px; }
.act-tl-tramo { position: absolute; top: 0; bottom: 0; border-radius: 5px; border-right: 2px solid #fff; }
.act-tl-hoy { position: absolute; top: -5px; bottom: -5px; border-left: 1.5px solid #1b2436; z-index: 1; }
.act-tl-hoy span { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 0.6rem; font-weight: 700; color: #1b2436; white-space: nowrap; }
.act-tl-etiquetas { position: relative; height: 2.4rem; margin-top: 0.15rem; }
.act-tl-etiquetas.con-filas { height: 6.2rem; }
.act-tl-etq { position: absolute; transform: translateX(-50%); text-align: center; font-size: 0.7rem; color: #52514e; white-space: nowrap; }
.act-tl-etq::before { content: ""; position: absolute; left: 50%; bottom: 100%; border-left: 1px dashed #9aa3b0; }
.act-tl-etq.fila0 { top: 0.2rem; }
.act-tl-etq.fila0::before { height: 0.35rem; }
.act-tl-etq.fila1 { top: 2.1rem; }
.act-tl-etq.fila1::before { height: 2.2rem; }
.act-tl-etq.fila2 { top: 3.9rem; }
.act-tl-etq.fila2::before { height: 4rem; }
.act-tl-etq strong { display: block; color: #1b2436; font-size: 0.74rem; }
.act-tl-etq small, .act-cli .act-tl-etq small { display: block; font-size: 0.6rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #6b7280; }
.act-tl-etiquetas > .act-tl-etq:first-child { transform: none; text-align: left; }
.act-tl-etiquetas > .act-tl-etq:first-child::before { left: 0; }

/* Popup: Autorización cambio de Fecha Fin */
.modal-box.act-aut { max-width: min(1120px, 97vw); }
.act-aut-cuerpo { padding: 1rem 1.25rem 1.25rem; overflow-y: auto; }
.act-aut-lbl { display: block; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; margin: 0 0 0.3rem; }
.act-aut-ro { display: flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.75rem; border: 1px solid #e3e7ee; border-radius: 8px; background: #f4f6f9; font-size: 0.82rem; color: #1b2436; margin-bottom: 0.8rem; }
.act-aut-candado { font-size: 0.75rem; }
.act-aut-barra { border: 1px solid #e3e7ee; border-radius: 10px; background: #fafbfc; padding: 0.6rem 1rem 0.4rem; margin-bottom: 1rem; }
.act-aut-sec { border: none; border-left: 3px solid #4f5bd5; margin: 0 0 1rem; padding: 0.2rem 0 0.2rem 0.9rem; }
.act-aut-sec-aut { border-left-color: #14a3b8; }
.act-aut-sec legend { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #4f5bd5; padding: 0; margin-bottom: 0.6rem; }
.act-aut-sec-aut legend { color: #0e8a9c; }
.act-aut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0.4rem 1rem; }
.act-aut-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.85rem; padding: 0.55rem 0.75rem; border: 1px solid #d6dae1; border-radius: 8px; background: #fff; color: #1b2436; resize: vertical; }
.act-aut-input:focus { outline: 2px solid #c9dcf3; border-color: #2a78d6; }
.act-aut-ayuda { font-size: 0.68rem; color: #6b7280; margin: 0.25rem 0 0.6rem; }
.act-aut-buscar { position: relative; }
.act-aut-resultados { position: absolute; z-index: 5; left: 0; right: 0; top: 4.2rem; margin: 0; padding: 0.25rem 0; list-style: none; background: #fff; border: 1px solid #d6dae1; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); max-height: 220px; overflow-y: auto; }
.act-aut-resultados button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 0.4rem 0.75rem; cursor: pointer; font: inherit; }
.act-aut-resultados button:hover, .act-aut-resultados button:focus-visible { background: #eef4fc; }
.act-aut-resultados strong { display: block; font-size: 0.8rem; color: #1b2436; }
.act-aut-resultados small { font-size: 0.7rem; color: #6b7280; }
.act-aut-resultados .vacio { padding: 0.4rem 0.75rem; font-size: 0.75rem; color: #6b7280; }
.act-aut-sino { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.act-aut-sino button { font: inherit; font-size: 0.82rem; font-weight: 700; padding: 0.5rem; border: 1px solid #d6dae1; border-radius: 8px; background: #fff; color: #1b2436; cursor: pointer; }
.act-aut-sino button[data-autoriza="si"].activo { background: #dcfce7; border-color: #34d399; color: #047857; }
.act-aut-sino button[data-autoriza="no"].activo { background: #fee2e2; border-color: #e53935; color: #b91c1c; }
.act-aut-msg { min-height: 1.1em; margin: 0 0 0.5rem; font-size: 0.78rem; color: #52514e; }
.act-aut-msg.error { color: #b91c1c; }
.act-aut-msg.ok { color: #047857; }
.act-aut-botones { display: flex; justify-content: flex-end; gap: 0.6rem; padding-bottom: 1rem; border-bottom: 1px solid #e3e7ee; margin-bottom: 1rem; }
.act-aut-cancelar, .act-aut-guardar { font: inherit; font-size: 0.85rem; font-weight: 700; padding: 0.55rem 1.2rem; border-radius: 8px; cursor: pointer; }
.act-aut-cancelar { background: #fff; border: 1px solid #d6dae1; color: #1b2436; }
.act-aut-guardar { background: #4f5bd5; border: 1px solid #4f5bd5; color: #fff; }
.act-aut-guardar:disabled { opacity: 0.6; cursor: wait; }
.act-aut-hist-tit { margin: 0 0 0.5rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #1b2436; }
.act-aut-hist { border: 1px solid #e3e7ee; border-radius: 8px; overflow-x: auto; }
.act-aut-tabla { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.act-aut-tabla th { background: #f4f6f9; text-align: left; padding: 0; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; white-space: nowrap; }
.act-aut-tabla th:not(:has(button)) { padding: 0.55rem 0.6rem; }
.act-aut-tabla th button { font: inherit; color: inherit; background: none; border: none; padding: 0.55rem 0.6rem; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.act-aut-tabla th button span { opacity: 0.5; font-size: 0.8em; }
.act-aut-tabla th.activa button { color: #2a5bd7; }
.act-aut-tabla th.activa button span { opacity: 1; }
.act-aut-tabla td { padding: 0.5rem 0.6rem; border-top: 1px solid #eef0f3; color: #1b2436; vertical-align: top; }
.act-aut-tabla tr.editando td { background: #fffbea; }
.act-aut-texto { min-width: 180px; max-width: 320px; white-space: pre-wrap; }
.act-aut-acciones { white-space: nowrap; }
.act-aut-acciones button { border: none; background: none; padding: 0.15rem; color: #52514e; cursor: pointer; border-radius: 4px; }
.act-aut-acciones button:hover { background: #eef0f3; color: #2a5bd7; }
.act-aut-acciones button.eliminar { color: #e53935; }
.act-aut-acciones button.eliminar:hover { background: #fee2e2; color: #b91c1c; }
.act-aut-chip { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.act-aut-chip.si { background: #dcfce7; color: #047857; }
.act-aut-chip.no { background: #fee2e2; color: #b91c1c; }
.act-aut-chip.pend { background: #eef0f3; color: #52514e; }

/* Perfiles nuevos: Líder de Proyecto (turquesa) y Autorizador (verde) */
.perfil-teal { border-left-color: #0e9fb3; }
.perfil-green { border-left-color: #0ca30c; }
.perfil-badge-teal { background: #e0f6f9; color: #0b7f90; }
.perfil-badge-green { background: #e3f7e6; color: #0a8a0a; }

/* Popup de autorizaciones: campos sin permiso para el perfil */
.act-aut-input:disabled { background: #f4f6f9; color: #6b7280; cursor: not-allowed; }
.act-aut-sino button:disabled { cursor: not-allowed; opacity: 0.55; }
.act-aut-sino button:disabled.activo { opacity: 0.85; }

/* Popup de autorizaciones: fecha con botón de calendario (también se puede escribir) */
.act-aut-fecha-wrap { position: relative; }
.act-aut-fecha-wrap .act-aut-input { padding-right: 2.6rem; }
.act-aut-fecha-wrap .act-aut-input::-webkit-calendar-picker-indicator { display: none; }
.act-aut-cal {
  position: absolute; top: 50%; right: 0.35rem; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: none; border-radius: 6px;
  background: none; color: #52514e; cursor: pointer;
}
.act-aut-cal:hover, .act-aut-cal:focus-visible { background: #eef4fc; color: #2a5bd7; }
.act-aut-cal:disabled { cursor: not-allowed; opacity: 0.5; background: none; }

/* Popup de autorizaciones: sección de registro oculta por default + "Agregar registro" */
.act-aut-agregar-wrap { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #e3e7ee; }
.act-aut-agregar-wrap[hidden] { display: none; }
.act-aut-agregar-wrap .act-aut-msg { margin: 0; }
.act-aut-agregar-wrap .act-aut-ayuda { margin: 0; font-size: 0.78rem; }
.act-aut-agregar {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: inherit; font-size: 0.85rem; font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer;
  background: #fff; color: #4f5bd5; border: 1px dashed #4f5bd5;
}
.act-aut-agregar:hover, .act-aut-agregar:focus-visible { background: #eef0fd; border-style: solid; }
#act-aut-form[hidden] { display: none; }

/* Data Mart: diagrama con cajas HTML (todas las columnas con scroll + exportar esquema) */
.dm-modelo { position: relative; min-width: 1375px; }
.dm-modelo > svg { display: block; width: 100%; height: auto; min-width: 0; }
.dm-chip-pmo { border-color: #6d3fc0; background: #efe7fb; }
.dm-tag.dm-pmo { background: #efe7fb; color: #6d3fc0; }
.dm-caja {
  position: absolute; box-sizing: border-box; display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid #d5dae2; border-radius: 6px; overflow: hidden;
  font-family: var(--pmo-font); color: #1c2330;
  box-shadow: 0 1px 3px rgba(27, 36, 54, 0.06);
}
.dm-caja.dm-idp { border-color: #b26a00; }
.dm-caja.dm-ado { border-color: #0b6aa8; }
.dm-caja.dm-jc { border-color: #2d7d4f; }
.dm-caja.dm-pmo { border-color: #6d3fc0; }
.dm-caja.dm-hub { border-color: #1f4e8c; border-width: 3px; }
.dm-caja-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.3rem; padding: 0.3rem 0.45rem 0.3rem 0.6rem; background: #d5dae2; flex-shrink: 0; }
.dm-idp .dm-caja-cab { background: #fbf0dd; }
.dm-ado .dm-caja-cab { background: #def0fb; }
.dm-jc .dm-caja-cab { background: #e2f3e8; }
.dm-pmo .dm-caja-cab { background: #efe7fb; }
.dm-hub .dm-caja-cab { background: #e3ecf8; }
.dm-caja-tit { min-width: 0; }
.dm-caja-nombre { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-hub .dm-caja-nombre { color: #1f4e8c; }
.dm-caja-src { font-family: var(--pmo-font); font-size: 10px; color: #5d6676; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-caja-exp {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 5px;
  background: rgba(255, 255, 255, 0.85); color: #3c4555; cursor: pointer;
}
.dm-caja-exp:hover:not(:disabled), .dm-caja-exp:focus-visible { background: #fff; color: #2a5bd7; border-color: #2a5bd7; }
.dm-caja-exp:disabled { opacity: 0.35; cursor: default; }
.dm-caja-cols { flex: 1; min-height: 0; overflow-y: auto; padding: 0.15rem 0; scrollbar-width: thin; }
.dm-caja-cols:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
.dm-fila { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: 0.35rem; align-items: baseline; padding: 0.12rem 0.55rem; font-size: 11px; line-height: 1.35; }
.dm-fila:hover { background: #f4f6f9; }
.dm-fila-llave .dm-c { font-weight: 700; }
.dm-fila-mas .dm-c { color: #5d6676; font-style: italic; }
.dm-k { font-size: 9.5px; font-weight: 700; color: #5d6676; }
.dm-k.dm-k-pk, .dm-k.dm-k-pkfk { color: #1f4e8c; }
.dm-k.dm-k-fk { color: #2d7d4f; }
.dm-k.dm-k-uk { color: #b26a00; }
.dm-k.dm-k-x { color: #a8452b; }
.dm-c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-t { font-size: 10px; color: #5d6676; white-space: nowrap; }
.dm-caja-pie { flex-shrink: 0; padding: 0.15rem 0.6rem; font-family: var(--pmo-font); font-size: 9.5px; color: #6b7280; border-top: 1px solid #eef0f3; background: #fafbfc; }

/* El ícono del botón exportar no hereda el tamaño del diagrama */
.dm-caja-exp svg { display: block; width: 13px; height: 13px; min-width: 0; flex-shrink: 0; }

/* Participación: total filtrado "(de N)" */
.partl-de-total { font-weight: 400; color: #898781; }

/* Campos de texto con fondo blanco neutro en toda la app */
textarea, input[type="text"], input[type="email"], input[type="date"], input[type="search"], select { background-color: #fff; color: #1b2436; }
textarea::placeholder, input::placeholder { color: #8a919c; }

/* Cierre: campo "Ruta SharePoint" (liga) en el popup de detalle documental */
.cierre-modal-ruta { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: #1b2436; margin-top: 0.4rem; }
.cierre-modal-ruta-fila { display: flex; align-items: center; gap: 0.5rem; }
.cierre-modal-ruta input { flex: 1; min-width: 0; font: inherit; font-size: 0.82rem; padding: 0.45rem 0.55rem; border: 1px solid #c7ced9; border-radius: 4px; background: #fff; color: #1b2436; }
.cierre-modal-ruta input:focus { outline: 2px solid #2a78d6; outline-offset: 0; border-color: #2a78d6; }
.cierre-modal-ruta-abrir { flex-shrink: 0; font-size: 0.8rem; font-weight: 600; color: #2a78d6; text-decoration: none; padding: 0.35rem 0.6rem; border: 1px solid #c9dcf3; border-radius: 4px; background: #eef4fc; white-space: nowrap; }
.cierre-modal-ruta-abrir:hover, .cierre-modal-ruta-abrir:focus-visible { background: #dbe8f8; text-decoration: underline; }
.cierre-modal-ruta-abrir[hidden] { display: none; }

/* Cierre: ícono de liga a SharePoint junto al proyecto */
.cierre-ruta-link { display: inline-flex; align-items: center; justify-content: center; margin-left: 0.35rem; width: 20px; height: 20px; border-radius: 4px; color: #2a78d6; vertical-align: middle; }
.cierre-ruta-link:hover, .cierre-ruta-link:focus-visible { background: #eef4fc; color: #1f5fae; }

/* ===================== Sprints de DevOps (página del cliente) ===================== */
.act-spr { margin-bottom: 1.5rem; }
.act-spr-sprint { margin-top: 0.6rem; border-radius: 8px; overflow: hidden; }
.act-spr-sprint.abierto { border: 1px solid #c9cdf4; }
.act-spr-cab {
  width: 100%; display: grid; grid-template-columns: minmax(80px, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: 0.6rem 1rem; border: none; border-radius: 8px; background: #4351e0; color: #fff; font: inherit; cursor: pointer; text-align: left;
}
.act-spr-sprint.abierto .act-spr-cab { border-radius: 0; }
.act-spr-cab:hover, .act-spr-cab:focus-visible { background: #3442cf; }
.act-spr-cab-nombre { font-weight: 800; font-size: 0.85rem; }
.act-spr-cab-fechas { font-size: 0.72rem; font-weight: 700; text-align: center; }
.act-spr-cab-hrs { font-size: 0.68rem; text-align: right; opacity: 0.92; }
.act-spr-cab-avance { font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
@media (max-width: 760px) {
  .act-spr-cab { grid-template-columns: 1fr auto; }
  .act-spr-cab-fechas, .act-spr-cab-hrs { grid-column: 1 / -1; text-align: left; }
}

.act-spr-detalle { padding: 0.8rem 1rem 1rem; background: #fff; }
.act-spr-kpis { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 0.75rem; text-align: center; margin-bottom: 0.4rem; }
.act-spr-kpis strong { display: block; font-size: 1.05rem; font-weight: 800; color: #1b2436; }
.act-spr-kpis small { display: block; font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7280; }
.act-spr-kpis .alerta strong { color: #e07b00; }
.act-spr-kpis .alerta small { color: #e5484d; }
.act-spr-restante { align-self: start; text-align: right; }
.act-spr-restante small { display: inline; margin-right: 0.3rem; }
.act-spr-restante strong { display: inline; color: #e5484d; font-size: 1.15rem; }
.act-spr-leyenda { display: flex; justify-content: flex-end; gap: 0.75rem; font-size: 0.66rem; color: #6b7280; }
.act-spr-leyenda span { display: inline-flex; align-items: center; gap: 0.25rem; }
.act-spr-leyenda i { width: 10px; height: 10px; display: inline-block; border-radius: 2px; }
.act-spr-leyenda i.nuevas { background: #cdd3de; }
.act-spr-leyenda i.activas { background: #f7a23a; }
.act-spr-leyenda i.ideal { border: 1.5px dashed #9aa3b0; }
.act-spr-leyenda i.restante { border: 2px solid #e5484d; }
.act-spr-burn { display: block; width: 100%; height: auto; margin: 0.2rem 0 0.8rem; }
.act-spr-grid { stroke: #eef0f3; stroke-width: 1; }
.act-spr-eje { font-size: 10px; fill: #8a919c; }
.act-spr-nuevas { fill: #cdd3de; }
.act-spr-activas { fill: #f7a23a; }
.act-spr-ideal { stroke: #9aa3b0; stroke-width: 1.5; stroke-dasharray: 6 4; }
.act-spr-linea { fill: none; stroke: #e5484d; stroke-width: 2; }
.act-spr-punto { fill: #e5484d; }

.act-spr-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 0.6rem; }
.act-spr-tabs button { font: inherit; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.55rem; border: 1px solid #e3e7ee; border-radius: 6px; background: #fff; color: #1b2436; cursor: pointer; }
.act-spr-tabs button.active { border-color: #4351e0; background: #eef0fd; color: #3442cf; }
.act-spr-badge { display: inline-block; margin-left: 0.3rem; padding: 0 0.4rem; border-radius: 999px; background: #eef0f3; font-size: 0.66rem; letter-spacing: 0; }
.act-spr-tabla-cab, .act-spr-total, .act-spr-grupo-cab, .act-spr-tarea {
  display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(0, 2fr) 80px 80px 90px; align-items: center; gap: 0.75rem;
}
.act-spr-tabla-cab { padding: 0.6rem 0.8rem; border: 1px solid #e3e7ee; border-radius: 6px; background: #f4f6f9; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #52514e; }
.act-spr-num { text-align: right; font-size: 0.78rem; }
.act-spr-pct { font-weight: 800; }
.act-spr-filtros { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; margin: 0.6rem 0; font-size: 0.72rem; color: #52514e; }
.act-spr-filtros label { display: inline-flex; align-items: center; gap: 0.3rem; margin-right: 1rem; cursor: pointer; }
.act-spr-filtros-lbl { font-weight: 700; text-transform: uppercase; font-size: 0.64rem; letter-spacing: 0.05em; }
.act-spr-filtros button { font: inherit; font-size: 0.7rem; padding: 0.15rem 0.7rem; border: 1px solid #d6dae1; border-radius: 999px; background: #fff; color: #52514e; cursor: pointer; }
.act-spr-filtros button.activo { background: #1b2436; border-color: #1b2436; color: #fff; font-weight: 700; }
.act-spr-total { padding: 0.55rem 0.8rem; border-radius: 6px; background: #eaf0f8; font-size: 0.78rem; margin-bottom: 0.5rem; }
.act-spr-total .act-spr-num { font-weight: 800; }
.act-spr-grupo { border: 1px solid #e3e7ee; border-radius: 6px; margin-bottom: 0.4rem; background: #fff; }
.act-spr-grupo-cab { width: 100%; padding: 0.55rem 0.8rem; border: none; background: none; font: inherit; color: #1b2436; text-align: left; cursor: pointer; }
.act-spr-grupo-cab:hover, .act-spr-grupo-cab:focus-visible { background: #f6f8fb; }
.act-spr-grupo-nombre { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.act-spr-flecha { color: #8a919c; font-size: 0.7rem; }
.act-spr-grupo-barra { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.act-spr-grupo-barra small { font-size: 0.6rem; color: #8a919c; }
.act-spr-tareas { border-top: 1px solid #eef0f3; }
.act-spr-tarea { padding: 0.35rem 0.8rem 0.35rem 1.4rem; border-bottom: 1px solid #f3f4f6; font-size: 0.72rem; }
.act-spr-tarea:last-child { border-bottom: none; }
.act-spr-tarea-tit { grid-column: 1 / 3; display: flex; align-items: flex-start; gap: 0.4rem; min-width: 0; }
.act-spr-tarea-tit strong { display: block; font-weight: 500; color: #1b2436; overflow-wrap: anywhere; }
.act-spr-tarea-tit small { display: block; font-size: 0.64rem; color: #8a919c; }
.act-spr-tipo { width: 9px; height: 9px; border-radius: 2px; margin-top: 0.25rem; flex-shrink: 0; background: #f2b33d; }
.act-spr-tipo.bug { background: #e5484d; }
.act-spr-estatus { justify-self: end; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.64rem; font-weight: 700; background: #eef0f3; color: #52514e; }
.act-spr-estatus.est-active { background: #e0f2fe; color: #0369a1; }
.act-spr-estatus.est-new { background: #f1f5f9; color: #475569; }
.act-spr-estatus.est-resolved { background: #ede9fe; color: #6d28d9; }
.act-spr-estatus.est-closed, .act-spr-estatus.est-done { background: #dcfce7; color: #047857; }
.act-spr-estatus.est-removed { background: #fee2e2; color: #b91c1c; }
@media (max-width: 760px) {
  .act-spr-tabla-cab, .act-spr-total, .act-spr-grupo-cab, .act-spr-tarea { grid-template-columns: minmax(0, 1fr) 60px 60px 60px; }
  .act-spr-tabla-cab > :nth-child(2), .act-spr-total > :nth-child(2), .act-spr-grupo-barra { display: none; }
  .act-spr-tarea-tit { grid-column: 1 / 2; }
  .act-spr-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== Facturación de la SOCO (página del cliente) ===================== */
.act-fact-extra { margin-top: 0.5rem; }
.act-facturas { margin-bottom: 1.5rem; }
.act-facturas .act-dgp-titulo { display: inline-flex; align-items: center; gap: 0.4rem; }
.act-facturas-nota { font-size: 0.68rem; color: #8a919c; }
.act-facturas-datos { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0 0.75rem; font-size: 0.76rem; color: #52514e; }
.act-facturas-datos strong { color: #1b2436; }
.act-facturas-tabla td.num, .act-facturas-tabla th.num { text-align: right; white-space: nowrap; }
.act-facturas-tabla tfoot td { font-weight: 800; border-top: 1px solid #e3e7ee; }
.act-facturas-obs { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-fact-estatus { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; background: #fff4e0; color: #b45309; }
.act-fact-estatus.pagada { background: #dcfce7; color: #047857; }
.act-fact-nofact { display: flex; align-items: center; justify-content: center; min-height: 200px; font-size: 1.15rem; font-weight: 800; color: #6b7280; letter-spacing: 0.02em; }

/* Popup "Proyectos liberados esta semana" (reloj de arena de Proyectos Terminados) */
.modal-box.act-pend.lib-semana { max-width: min(1400px, 96vw); }
.lib-semana-fila { cursor: pointer; }
.lib-semana-fila:hover td, .lib-semana-fila:focus td { background: #eef4fc; }
.lib-semana-fila:focus { outline: 2px solid #2a78d6; outline-offset: -2px; }
.lib-semana-fila .status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: 0; }
.lib-semana-margen.good { color: #0ca30c; font-weight: 700; }
.lib-semana-margen.warning { color: #b8860b; font-weight: 700; }
.lib-semana-margen.critical { color: #d03b3b; font-weight: 700; }

/* Etiqueta fija del proyecto (página del cliente, Proyectos Activos): aparece al hacer scroll
   cuando el nombre del proyecto queda oculto; flota bajo el encabezado sin desplazar el contenido. */
.act-cli .resumen-encabezado-fijo { position: sticky; }
.act-cli-sticky {
  position: absolute;
  top: calc(100% - 0.35rem);
  left: 0;
  max-width: 100%;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  padding: 0.3rem 0.85rem;
  background: #e8eefb;
  border: 1px solid #c9d6ea;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(27, 36, 54, 0.12);
  font-size: 0.75rem;
  color: #1b2436;
}
.act-cli-sticky[hidden] { display: none; }
.act-cli-sticky-item { display: inline-flex; align-items: baseline; gap: 0.3rem; white-space: nowrap; }
.act-cli-sticky-item small { color: #6b7280; font-size: 0.72rem; }
.act-cli-sticky-item strong { font-weight: 700; }
.act-cli-sticky-proy { min-width: 0; max-width: 520px; overflow: hidden; text-overflow: ellipsis; }
.act-cli-sticky-proy strong { overflow: hidden; text-overflow: ellipsis; }

/* Descripción de "Tiempo del proyecto": cuenta regresiva a la Fecha Compromiso + % transcurrido */
.act-cli-tiempo-desc { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
.act-cli-tiempo-desc > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.act-cli-tiempo-desc small { font-size: 0.75rem; font-weight: 400; color: #8a919c; }

/* Tiempo del proyecto sin fecha inicio/final (spec 3.3.3) y excedente de horas (spec 3.3.4) */
.act-cli-fechas-txt { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0.4rem 0; }
.act-cli-fechas-txt small { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; color: #6b7280; }
.act-cli-fechas-txt strong { font-size: 0.9rem; color: #1b2436; }
.act-cli-hrs-exc { font-size: 0.75rem; font-weight: 700; white-space: nowrap; }

/* Fila 1 de la página del proyecto (spec 3.5): leyenda de Alcance, indicador de Costo y compromisos de facturación */
.act-alc-leyenda { display: grid; grid-template-columns: repeat(2, auto); gap: 0.15rem 0.7rem; margin-top: 0.4rem; font-size: 0.68rem; color: #52514e; }
.act-alc-leyenda > span { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.act-alc-sw { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.act-costo-ind { display: block; margin-top: 0.15rem; font-size: 0.72rem; color: #52514e; }
.act-fact-sincomp { margin: 0.6rem 0 0; font-size: 0.75rem; color: #b45309; }
.act-fact-comp { margin-top: 0.6rem; border-top: 1px solid #eef0f3; padding-top: 0.45rem; }
.act-fact-comp-tit { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; margin-bottom: 0.3rem; }
.act-fact-comp-fila { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; font-size: 0.75rem; padding: 0.15rem 0; }
.act-fact-comp-fila small { color: #6b7280; }

/* ===== Acuerdos / Compromisos del proyecto (página del proyecto activo) ===== */
.acu { margin-top: 1rem; }
.acu-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.acu-titulo { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #374151; padding-bottom: 0.45rem; border-bottom: 1px solid #e3e7ee; }
.acu-nuevo, .acu-agregar { font: inherit; font-size: 0.8rem; font-weight: 700; color: #fff; background: #2a5bd7; border: 1px solid #2a5bd7; border-radius: 8px; padding: 0.45rem 0.9rem; cursor: pointer; }
.acu-nuevo:hover, .acu-agregar:hover { background: #1f49b5; }
.acu-scroll { overflow-x: auto; }
.acu-tabla { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.acu-tabla th { background: #f7f9fc; border-bottom: 1px solid #e3e7ee; padding: 0; text-align: left; white-space: nowrap; }
.acu-tabla th.centro { text-align: center; }
.acu-tabla th button { font: inherit; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; background: none; border: none; padding: 0.6rem 0.7rem; cursor: pointer; width: 100%; text-align: inherit; }
.acu-tabla th button span { color: #b5bcc8; }
.acu-tabla th.activa { box-shadow: inset 0 -2px 0 #2a5bd7; }
.acu-tabla th.activa button, .acu-tabla th.activa button span { color: #2a5bd7; }
.acu-tabla td { padding: 0.6rem 0.7rem; border-bottom: 1px solid #eef0f3; vertical-align: middle; color: #1b2436; }
.acu-tabla td.centro { text-align: center; }
.acu-desc { min-width: 260px; }
.acu-gris { color: #6b7280 !important; }
.acu-resp { display: inline-flex; align-items: center; gap: 0.45rem; }
.acu-avatar { width: 24px; height: 24px; border-radius: 50%; background: #1b2436; color: #fff; font-size: 0.62rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acu-cerrado td { color: #8a919c; }
.acu-cerrado .acu-desc { text-decoration: line-through; }
.acu-acc { width: 36px; text-align: center; }
.acu-editar { border: none; background: none; color: #8a919c; cursor: pointer; padding: 0.2rem; border-radius: 4px; }
.acu-editar:hover { color: #2a5bd7; background: #eef4fc; }

.modal-box.acu-modal { max-width: 460px; padding: 0; overflow: visible; }
.acu-modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid #e3e7ee; background: #f7f9fc; border-radius: 8px 8px 0 0; }
.acu-modal-cab .modal-title { margin: 0; font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 0.4rem; }
.acu-modal-cuerpo { padding: 0.9rem 1.1rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.acu-modal-cuerpo .act-aut-lbl { margin-top: 0.55rem; }
.acu-tipo { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.65rem; border: 1px solid #0ca30c; border-radius: 8px; background: #effaef; color: #0a7d0a; font-size: 0.8rem; font-weight: 700; }
.acu-tipo small { font-weight: 400; color: #52514e; font-size: 0.68rem; }
.acu-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.acu-botones { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.acu-esp { flex: 1; }
.acu-cancelar { font: inherit; font-size: 0.8rem; font-weight: 600; color: #374151; background: #fff; border: 1px solid #d6dae1; border-radius: 8px; padding: 0.45rem 0.9rem; cursor: pointer; }
.acu-eliminar { font: inherit; font-size: 0.78rem; font-weight: 600; color: #b91c1c; background: #fff; border: 1px solid #f3c4c4; border-radius: 8px; padding: 0.45rem 0.8rem; cursor: pointer; }
.acu-eliminar:hover { background: #fdecec; }
@media (max-width: 520px) { .acu-dos { grid-template-columns: 1fr; } }
.acu-avatar.con-foto { background: none; overflow: hidden; }
.acu-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.acu-fila-edit { cursor: pointer; }
.acu-fila-edit:hover td { background: #f5f8fd; }
.acu-fila-edit:focus { outline: 2px solid #c9dcf3; outline-offset: -2px; }

/* Botón "+ Agregar acuerdo" en el título del cuadro Seguimiento (alineado a la derecha) */
.act-cli-seguimiento-tit { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.acu-seg-agregar { font: inherit; font-size: 0.7rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #fff; background: #2a5bd7; border: 1px solid #2a5bd7; border-radius: 6px; padding: 0.25rem 0.65rem; cursor: pointer; white-space: nowrap; }
.acu-seg-agregar:hover { background: #1f49b5; }

/* Popup "Acuerdos / Compromisos" (lista desde el cuadro Seguimiento) */
.modal-box.acu-lista { max-width: 620px; display: flex; flex-direction: column; max-height: 85vh; }
.acu-lista-acc { display: flex; align-items: center; gap: 0.5rem; }
.acu-lista-sub { margin: 0; padding: 0.5rem 1.1rem 0; font-size: 0.75rem; color: #6b7280; }
.acu-lista-cuerpo { padding: 0.6rem 1.1rem 1rem; overflow-y: auto; }
.acu-lista-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.acu-item { border: 1px solid #e3e7ee; border-radius: 8px; padding: 0.55rem 0.75rem; background: #fff; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; }
.acu-item-cab { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.acu-item-cab .act-cli-chip { margin-top: 0; }
.acu-item-cab small { font-size: 0.7rem; color: #6b7280; }
.acu-item.acu-cerrado .acu-desc { text-decoration: line-through; color: #8a919c; }
.acu-item.acu-fila-edit:hover { background: #f5f8fd; border-color: #c9d6ea; }
.acu-orden { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-bottom: 0.6rem; font-size: 0.72rem; color: #6b7280; }
.acu-orden button { font: inherit; font-size: 0.72rem; font-weight: 600; color: #374151; background: #fff; border: 1px solid #d6dae1; border-radius: 999px; padding: 0.2rem 0.65rem; cursor: pointer; }
.acu-orden button:hover { border-color: #2a5bd7; color: #2a5bd7; }
.acu-orden button.activo { background: #2a5bd7; border-color: #2a5bd7; color: #fff; }

/* Lápiz de "Tiempo del proyecto" (autorizaciones de fecha fin): alineado a la izquierda, en amarillo */
.act-cli-tiempo-tit { align-items: flex-start !important; text-align: left; }
.act-cli-lapiz { align-self: flex-start; margin-left: 0; color: #e0a800; }
.act-cli-lapiz:hover, .act-cli-lapiz:focus-visible { color: #b58500; background: #fff6d6; }
/* Horas restantes junto a Hrs consumidas (gris oscuro) */
.act-cli-hrs-rest { font-size: 0.72rem; font-weight: 400; color: #5b6472; white-space: nowrap; }

/* ===== Página del proyecto: fichas compactas (menos espacio en blanco) ===== */
/* 1) Arriba del título */
.act-cli .resumen-encabezado-fijo { margin-top: -1.5rem; padding-top: 0.55rem; }
@media (max-width: 768px) { .act-cli .resumen-encabezado-fijo { margin-top: -1.25rem; } }
@media (max-width: 480px) { .act-cli .resumen-encabezado-fijo { margin-top: -1rem; } }
/* 2) Entre el encabezado y las fichas */
.act-cli .act-cli-cab { padding-bottom: 0.35rem; margin-bottom: 0.45rem; }
.act-cli .act-panel { padding: 0.65rem 0.85rem 0.75rem; }
.act-cli .act-cli-proyecto { padding: 0.5rem 0.8rem; margin-bottom: 0.5rem; }
/* 3) Fila Líder / Sponsor / Tipo / Facturación: título y valor en una línea cada uno */
.act-cli .act-cli-fila { margin-bottom: 0.5rem; }
.act-cli .act-cli-datos { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 0.5rem; padding-bottom: 0.45rem; }
.act-cli .act-cli-datos > div > div { min-width: 0; }
.act-cli .act-cli-datos small,
.act-cli .act-cli-datos strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
@media (max-width: 1100px) { .act-cli .act-cli-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 4) Tiempo del proyecto: menos aire entre el título y la barra y al final de la caja */
.act-cli .act-cli-caja { padding: 0.55rem 0.8rem 0.35rem; }
.act-cli .act-cli-caja-cab { margin-bottom: 0.55rem; }
.act-cli .act-tl { padding-top: 0.85rem; }
/* 5) Consumo de horas y separación entre bloques */
.act-cli .act-cli-sub { margin: 0.1rem 0 0.35rem; }
.act-cli .act-cli-grid { gap: 0.65rem; margin-bottom: 0.65rem; }
.act-cli .act-cli-grid3 { gap: 0.65rem; margin-bottom: 0.9rem; }
.act-cli .act-cli-seguimiento { padding: 0.5rem 0.75rem 0.6rem; }

/* ===== Página del proyecto: fila Alcance / Costo / Facturación más compacta ===== */
.act-cli .act-cli-grid { margin-bottom: 0.5rem; }
.act-cli .act-cli-grid3 { gap: 0.5rem; margin-bottom: 0.5rem; }
.act-cli .act-dgp-titulo { margin-bottom: 0.4rem; }
.act-cli .act-cli-card-cab .act-dgp-titulo { margin-bottom: 0.1rem; }
.act-cli .act-costo-ind { margin-top: 0; }
.act-cli .act-cli-alcance { margin: 0.15rem 0 0.5rem; }
.act-cli .act-gauge { max-width: 210px; margin: 0.1rem auto 0; }
.act-cli .act-cli-dos { padding-top: 0.4rem; margin-bottom: 0.35rem; }
.act-cli .act-cli-margen-esp { padding: 0.25rem 0; }
.act-cli .act-cli-margen { margin-top: 0.1rem; padding: 0.45rem 0.75rem; }
.act-cli .act-cli-margen small { margin-top: 0.1rem; }
.act-cli .act-facturas,
.act-cli .act-spr,
.act-cli .acu { margin-top: 0; margin-bottom: 0.5rem; }

/* Alcance del proyecto: tabla de sprints + % total con barra vertical */
.act-alc { display: flex; gap: 0.9rem; align-items: stretch; margin: 0.1rem 0 0.6rem; }
.act-alc-sprints { flex: 1; min-width: 0; overflow-x: auto; }
.act-alc-sp-tabla { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.act-alc-sp-tabla th { text-align: left; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; background: #f7f9fc; padding: 0.4rem 0.45rem; white-space: nowrap; }
.act-alc-sp-tabla td { padding: 0.4rem 0.45rem; border-bottom: 1px solid #eef0f3; color: #1b2436; white-space: nowrap; }
.act-alc-sp-tabla tr.act-alc-sp-actual td { background: #eef4fc; }
.act-alc-sp-tabla tr.act-alc-sp-actual td:first-child { box-shadow: inset 3px 0 0 #2a78d6; }
.act-alc-sp-punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.4rem; vertical-align: 0; }
.act-alc-sp-per { color: #52514e !important; }
.act-alc-sp-obj { white-space: normal !important; min-width: 120px; }
.act-alc-sp-av { display: flex; align-items: center; gap: 0.45rem; min-width: 120px; }
.act-alc-sp-barra { flex: 1; height: 6px; border-radius: 3px; background: #e6e9ee; overflow: hidden; display: block; min-width: 60px; }
.act-alc-sp-barra > span { display: block; height: 100%; border-radius: 3px; }
.act-alc-sp-pct { width: 2.6rem; text-align: right; color: #52514e; }
.act-alc-total { flex: 0 0 auto; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.act-alc-total strong { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.act-alc-total small { font-size: 0.64rem; color: #6b7280; text-align: center; }
.act-alc-vbarra { flex: 1; min-height: 90px; width: 100%; border: 1px solid #6b7280; background: #fff; display: flex; align-items: flex-end; }
.act-alc-vbarra > span { display: block; width: 100%; }
@media (max-width: 640px) { .act-alc { flex-direction: column; } .act-alc-total { width: 100%; } .act-alc-vbarra { min-height: 40px; } }
/* La ficha Alcance es más ancha que Costo y Facturación para que el nombre del sprint quepa en una línea */
@media (min-width: 1200px) { .act-cli .act-cli-grid3 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); } }

/* Alcance del proyecto v2: título + barra horizontal + % en una fila; tabla de sprints a todo lo ancho sin scroll */
.act-alc-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.act-alc-cab .act-dgp-titulo { margin: 0; }
.act-alc-cab .act-alc-total { flex-direction: row; width: auto; align-items: center; gap: 0.6rem; flex: 0 1 auto; }
.act-alc-hbarra-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.act-alc-hbarra { width: 130px; height: 12px; border: 1px solid #6b7280; background: #fff; display: block; }
.act-alc-hbarra > span { display: block; height: 100%; }
.act-alc-hbarra-wrap small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7280; }
.act-alc-cab .act-alc-total strong { font-size: 1.6rem; }
.act-alc-sprints { overflow-x: auto; margin-bottom: 0.6rem; }
.act-alc-sp-tabla { table-layout: auto; }
.act-alc-sp-tabla th, .act-alc-sp-tabla td { padding: 0.35rem 0.4rem; }
.act-alc-sp-obj { min-width: 0; }
.act-alc-sp-av { min-width: 0; }
.act-alc-sp-barra { min-width: 40px; }
.act-alc-sp-pct { width: 2.2rem; }
/* Alcance: el nombre del sprint puede bajar de línea; Avance ocupa el resto */
.act-alc-sp-tabla td.act-alc-sp-nom { white-space: normal; }
.act-alc-sp-tabla td.act-alc-sp-nom strong { font-weight: 700; }
.act-alc-sp-tabla th:last-child, .act-alc-sp-tabla td.act-alc-sp-av { width: 38%; }
/* Alcance: el nombre del sprint puede bajar de línea; Avance ocupa el resto */
.act-alc-sp-tabla td.act-alc-sp-nom { white-space: normal; }
.act-alc-sp-tabla th:last-child, .act-alc-sp-tabla td.act-alc-sp-av { width: 38%; }
/* Margen actual en una línea: título (con la fórmula como tooltip) + % y monto */
.act-cli-margen.act-cli-margen-linea { justify-content: space-between; gap: 0.6rem; padding: 0.45rem 0.75rem; }
.act-cli-margen-linea > strong { cursor: help; text-decoration: underline dotted #9aa3b0; text-underline-offset: 3px; }
/* Alcance: columna Tareas (completadas / total) por sprint */
.act-alc-sp-tabla .act-alc-sp-tar { text-align: center; }
.act-alc-sp-tabla th.act-alc-sp-tar small { display: block; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.03em; }
.act-alc-sp-tabla td.act-alc-sp-tar { color: #52514e; }
.act-alc-sp-tabla th:last-child, .act-alc-sp-tabla td.act-alc-sp-av { width: 32%; }
/* Alcance: la celda Avance vuelve a ser celda de tabla (el flex va en un contenedor interno);
   el nombre del sprint en una sola línea. */
.act-alc-sp-tabla td.act-alc-sp-av { display: table-cell; width: 26%; min-width: 110px; }
.act-alc-sp-tabla th:last-child { width: 26%; }
.act-alc-sp-avw { display: flex; align-items: center; gap: 0.4rem; }
.act-alc-sp-tabla td.act-alc-sp-nom { white-space: nowrap; }
/* Costo y Facturación más compactas: separaciones internas menores */
.act-cli .act-cli-grid3 .act-cli-dos { gap: 1.2rem; }

/* Alcance: horas DevOps / JC en un solo recuadro con barras de consumo */
.act-alc-hrs { border: 1px solid #e3e7ee; border-radius: 8px; padding: 0.5rem 0.75rem; display: flex; flex-direction: column; gap: 0.45rem; }
.act-alc-hrs-fila { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.act-alc-hrs-lbl small { display: block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #1b2436; }
.act-alc-hrs-lbl strong { font-size: 0.9rem; color: #1b2436; }
.act-alc-hrs-der { min-width: 0; max-width: 340px; }
.act-alc-hrs-linea { display: flex; align-items: center; gap: 0.45rem; }
.act-alc-hrs-barra { flex: 1; height: 10px; border-radius: 5px; background: #e3e7ee; overflow: hidden; display: block; }
.act-alc-hrs-barra > span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #0a7d0a, #22c55e); }
.act-alc-hrs-pct { width: 2.4rem; font-size: 0.66rem; color: #52514e; }
.act-alc-hrs-cons { text-align: right; padding-right: 2.85rem; font-size: 0.85rem; }
.act-alc-hrs-cons small { font-size: 0.66rem; color: #6b7280; }

/* Salud del proyecto: versión expandida (detalle junto a cada punta) vs. angosta/móvil (detalle en lista) */
.act-radar-det { font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; fill: #6b7280; }
.act-radar.act-radar-ancho { display: block; width: 100%; height: auto; }
.act-radar-angosto { display: none; }
@media (max-width: 1100px) {
  .act-radar.act-radar-ancho { display: none; }
  .act-radar-angosto { display: block; }
}

/* Alcance: sin scroll. Anchos fijos; el nombre del sprint se recorta con "…" (completo en el tooltip). */
.act-alc-sprints { overflow-x: hidden; }
.act-alc-sp-tabla { table-layout: fixed; width: 100%; }
.act-alc-sp-tabla th:nth-child(1) { width: auto; }
.act-alc-sp-tabla th:nth-child(2) { width: 108px; }
.act-alc-sp-tabla th:nth-child(3) { width: 92px; }
.act-alc-sp-tabla th:nth-child(4) { width: 24%; }
.act-alc-sp-tabla td.act-alc-sp-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-alc-sp-tabla td.act-alc-sp-av { width: auto; min-width: 0; }
.act-alc-sp-tabla td.act-alc-sp-per { overflow: hidden; text-overflow: ellipsis; }
.act-alc-sp-tabla th { overflow: hidden; text-overflow: ellipsis; }

/* Salud del proyecto: valores base (el diseño final lo define el bloque "definitivo" más abajo).
   Ficha ancha (≥ 560 px): detalle junto a cada punta. Ficha angosta: radar grande + lista abajo.
   En ambos casos el radar usa todo el ancho de la ficha. */
.act-cli-salud { container-type: inline-size; container-name: salud; }
.act-radar.act-radar-ancho { display: none; max-height: none; margin: 0.25rem auto 0.5rem; }
.act-radar-angosto { display: block; }
.act-radar-angosto .act-radar { max-height: none; width: 100%; margin: 0.1rem auto 0.6rem; }
@media (max-width: 1100px) {
  .act-radar.act-radar-ancho { display: none; }
  .act-radar-angosto { display: block; }
}
.act-radar-ancho .act-radar-nombre { font-size: 14px; }
.act-radar-ancho .act-radar-det { font-size: 12px; }
.act-radar-angosto .act-radar-nombre { font-size: 13px; }
.act-radar-angosto .act-radar-lista-tit { font-size: 0.8rem; }
.act-radar-angosto .act-radar-lista small { font-size: 0.74rem; }
/* Sprint en curso: flecha azul en lugar de la viñeta */
.act-alc-sp-flecha { display: inline-block; width: 9px; margin-right: 0.4rem; color: #2a78d6; font-size: 0.7rem; line-height: 1; vertical-align: 0.05em; }

/* Ficha Facturación: badge y monto Facturado abren/cierran la sección "Facturas de la SOCO" */
.act-fact-toggle { cursor: pointer; font: inherit; }
button.act-cli-tag.act-fact-toggle { font-size: 0.64rem; font-weight: 700; }
button.act-cli-tag.act-fact-toggle:hover { filter: brightness(0.95); box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip) 25%, transparent); }
.act-fact-monto { display: block; border: none; background: none; padding: 0; font-size: 0.9rem; font-weight: 700; text-decoration: underline dotted; text-underline-offset: 3px; }
.act-fact-monto:hover { text-decoration-style: solid; }
.act-facturas[hidden] { display: none; }

/* Menú Capacity: enlace directo (sin encabezado de sección), arriba de Update */
.nav-section.nav-section-solo { padding-top: 0.25rem; }
.nav-section.nav-section-solo .nav-list { display: block; }

/* ===================== Capacity: organigrama de células ===================== */
.cap-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 0.9rem; }
@media (max-width: 900px) { .cap-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cap-kpi { background: #fff; border: 1px solid #e3e7ee; border-top: 3px solid var(--kpi); border-radius: 10px; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.1rem; box-shadow: 0 1px 3px rgba(27, 36, 54, 0.05); }
.cap-kpi small { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #52514e; }
.cap-kpi strong { font-size: 1.45rem; font-weight: 800; color: #1b2436; line-height: 1.15; }
.cap-kpi span { font-size: 0.72rem; color: #6b7280; }

.cap-org { padding: 1rem 1.1rem 1.2rem; }
.cap-org-tit { margin: 0 0 1rem; padding: 0 0 0.6rem 1rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #52514e; border-bottom: 1px solid #e3e7ee; }

.cap-dir { display: flex; justify-content: center; position: relative; padding-bottom: 1.2rem; }
.cap-dir::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 1.2rem; border-left: 2px solid #c7ced9; }
.cap-dir-box { position: relative; background: #1e40af; color: #fff; border-radius: 8px; padding: 0.7rem 2.2rem; text-align: center; box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25); }
.cap-dir-box strong { display: block; font-size: 0.95rem; }
.cap-dir-box span { display: block; font-size: 0.66rem; color: #bcd2ff; margin-top: 0.15rem; }
.cap-dir-box em { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 0.62rem; font-weight: 800; background: #fff; color: #1e40af; border-radius: 999px; padding: 0.05rem 0.4rem; }

/* Fila de células con línea conectora superior */
.cap-celulas { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(150px, 1fr)); gap: 0.6rem; position: relative; padding-top: 1rem; overflow-x: auto; }
.cap-celulas::before { content: ""; position: absolute; top: 0; left: calc(100% / var(--n, 6) / 2); right: calc(100% / var(--n, 6) / 2); border-top: 2px solid #c7ced9; }
@media (max-width: 1100px) {
  .cap-celulas { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .cap-celulas::before { display: none; }
}
.cap-col { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.cap-col::before { content: ""; position: absolute; top: -1rem; left: 50%; height: 1rem; border-left: 2px solid #c7ced9; }
.cap-card { background: #111827; color: #fff; border-radius: 8px; padding: 0.6rem 0.55rem 0.65rem; text-align: center; }
.cap-card-nom { font-size: 0.74rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-card-resp { font-size: 0.6rem; color: #93b4ff; margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-card-num { display: inline-block; margin-top: 0.35rem; font-size: 0.58rem; color: #cbd5e1; background: #1f2937; border-radius: 999px; padding: 0.1rem 0.5rem; }
.cap-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem; margin-top: 0.4rem; }
.cap-chip { font-size: 0.55rem; font-weight: 800; color: #fff; border-radius: 4px; padding: 0.12rem 0.32rem; letter-spacing: 0.02em; }

.cap-lista { list-style: none; margin: 0; padding: 0.35rem; background: #f8fafc; border: 1px solid #e3e7ee; border-radius: 8px; display: flex; flex-direction: column; gap: 0.15rem; }
.cap-persona { display: flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.3rem; border-radius: 6px; min-width: 0; }
.cap-persona:hover { background: #eef4fc; }
.cap-ico { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: #e0e9f8; display: inline-flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 800; color: #2a5bd7; }
.cap-ico-dev { font-family: var(--pmo-font); font-size: 0.55rem; }
.cap-persona-txt { min-width: 0; display: flex; flex-direction: column; }
.cap-persona-txt strong { font-size: 0.68rem; color: #1b2436; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-persona-txt small { font-size: 0.58rem; color: #8a919c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-persona.destacado .cap-persona-txt strong { font-weight: 800; }

/* ShareServices (transversal) */
.cap-sep { position: relative; text-align: center; margin: 1.1rem 0 0.8rem; }
.cap-sep::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed #9aa3b0; }
.cap-sep span { position: relative; background: #fff; padding: 0 0.6rem; font-size: 0.66rem; font-style: italic; color: #6b7280; }
.cap-trans { border: 1.5px dashed #0e9fb3; background: #f0fbfc; border-radius: 10px; padding: 0.9rem 1rem 1rem; }
.cap-trans-cab { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; margin: 0 auto 0.9rem; width: max-content; background: #0e7490; color: #fff; border-radius: 8px; padding: 0.45rem 1.1rem; }
.cap-trans-cab strong { font-size: 0.78rem; }
.cap-trans-cab span { font-size: 0.58rem; background: #0b5f75; border-radius: 999px; padding: 0.05rem 0.5rem; }
.cap-trans-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.9rem; }
.cap-area-tit { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #0e7490; padding-bottom: 0.3rem; border-bottom: 1px solid #b5e3ea; margin-bottom: 0.35rem; }
.cap-lista-plana { background: none; border: none; padding: 0; }
.cap-lista-plana .cap-ico { background: #d6f1f5; color: #0e7490; }

/* Capacity: gráfica Hrs estimadas vs completadas */
.cap .cap-org { margin-top: 0.9rem; }
.cap-graf { display: block; width: 100%; height: auto; }
.cap-graf-grid { stroke: #eceef1; stroke-width: 1; }
.cap-graf-div { stroke: #f3f4f6; }
.cap-graf-eje { font-size: 10px; fill: #6b7280; }
.cap-graf-x { font-size: 10.5px; fill: #52514e; }
.cap-graf-ley text { font-size: 11px; fill: #52514e; }

/* Capacity: detalle por colaborador */
.cap-det-cab { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.cap-det-cab .cap-org-tit { border-bottom: none; margin-bottom: 0.4rem; }
.cap-buscar input { font: inherit; font-size: 0.8rem; width: 250px; max-width: 100%; padding: 0.4rem 0.7rem; border: 1px solid #d6dae1; border-radius: 8px; }
.cap-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0.4rem 0; }
.cap-filtros > span { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #52514e; margin-right: 0.2rem; }
.cap-filtro { font: inherit; font-size: 0.78rem; padding: 0.4rem 0.9rem; border: 1px solid #d6dae1; border-radius: 8px; background: #fff; color: #1b2436; cursor: pointer; }
.cap-filtro.activo { background: #2a5bd7; border-color: #2a5bd7; color: #fff; font-weight: 700; }
.cap-chipf { font: inherit; font-size: 0.7rem; padding: 0.22rem 0.65rem; border: 1px solid #d6dae1; border-radius: 6px; background: #fff; color: #374151; cursor: pointer; }
.cap-chipf:hover { border-color: #2a5bd7; }
.cap-chipf.activo { background: #2a5bd7; border-color: #2a5bd7; color: #fff; }
.cap-chipf.activo.oscuro { background: #1b2436; border-color: #1b2436; border-radius: 999px; }
.cap-filtros-est .cap-chipf { border-radius: 999px; }
.cap-det-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0.3rem 0 0.5rem; }
.cap-det-tabla { border: 1px solid #e3e7ee; border-radius: 8px; overflow-x: auto; }
.cap-det-fila { display: grid; grid-template-columns: minmax(220px, 2.2fr) minmax(130px, 1.2fr) minmax(120px, 1.6fr) 70px 70px 64px; align-items: center; gap: 0.6rem; padding: 0.45rem 0.75rem; border-bottom: 1px solid #eef0f3; font-size: 0.74rem; min-width: 720px; }
.cap-det-head { background: #f7f9fc; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #52514e; }
.cap-det-n1 { background: #f3f5f9; cursor: pointer; }
.cap-det-n1:hover, .cap-det-n2:hover { background: #eef4fc; }
.cap-det-n2 { cursor: pointer; padding-left: 2rem; background: #fff; }
.cap-det-n3 { padding-left: 3.4rem; background: #fcfdfe; font-size: 0.7rem; color: #374151; }
.cap-det-nom { display: flex; align-items: center; gap: 0.4rem; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cap-det-nom strong { font-size: 0.78rem; color: #1b2436; overflow: hidden; text-overflow: ellipsis; }
.cap-det-nom small { font-size: 0.64rem; color: #8a919c; white-space: nowrap; }
.cap-det-fl { width: 0.8rem; color: #6b7280; font-size: 0.7rem; flex-shrink: 0; }
.cap-det-sub { font-size: 0.64rem; color: #8a919c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-det-num { text-align: right; font-weight: 700; color: #1b2436; white-space: nowrap; }
.cap-det-num.cap-azul { color: #2a5bd7; }
.cap-det-num.cap-av { color: #0ca30c; }
.cap-ec { display: block; height: 7px; border-radius: 4px; background: #e3e7ee; overflow: hidden; }
.cap-ec > span { display: block; height: 100%; background: #2aa876; border-radius: 4px; }
.cap-det-est { flex-shrink: 0; font-size: 0.58rem; font-weight: 700; padding: 0.05rem 0.4rem; border-radius: 999px; background: #e5e7eb; color: #374151; }
.cap-est-active { background: #dbeafe; color: #1d4ed8; }
.cap-est-new { background: #f3f4f6; color: #6b7280; }
.cap-est-resolved { background: #dcfce7; color: #15803d; }
.cap-est-closed, .cap-est-done { background: #d1fae5; color: #047857; }

/* Capacity: actualizar colaboradores desde el directorio */
.cap .resumen-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.modal-box.acu-modal.cap-dir-modal { max-width: min(1000px, 96vw); }
.cap-dir-cuerpo { padding: 0.8rem 1.1rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.cap-dir-msg { margin: 0; font-size: 0.8rem; color: #374151; }
.cap-dir-tabla-wrap { max-height: 58vh; overflow: auto; border: 1px solid #e3e7ee; border-radius: 8px; }
.cap-dir-tabla { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
.cap-dir-tabla th { position: sticky; top: 0; background: #f7f9fc; text-align: left; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #52514e; padding: 0.45rem 0.55rem; }
.cap-dir-tabla td { padding: 0.4rem 0.55rem; border-top: 1px solid #eef0f3; vertical-align: middle; }
.cap-dir-tabla td small { display: block; color: #8a919c; font-size: 0.64rem; }
.cap-dir-tabla select { font: inherit; font-size: 0.72rem; max-width: 100%; }
.cap-dir-est { font-size: 0.66rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 999px; background: #e5e7eb; color: #374151; white-space: nowrap; }
.cap-dir-ok .cap-dir-est { background: #dcfce7; color: #15803d; }
.cap-dir-varios .cap-dir-est { background: #fef3c7; color: #92400e; }
.cap-dir-nofound .cap-dir-est, .cap-dir-error .cap-dir-est { background: #fee2e2; color: #b91c1c; }

/* Update › Células (mantenimiento de dbo.Celulas) */
.cel-upd-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.cel-upd-cab .cap-org-tit { border-bottom: none; padding: 0; margin: 0 0 0.2rem; }
.cel-upd-sub { margin: 0; font-size: 0.75rem; color: #6b7280; }
.cel-upd-sub strong { color: #b45309; }
.cel-upd-acc { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.cel-upd-buscar { font: inherit; font-size: 0.8rem; width: 260px; max-width: 100%; padding: 0.42rem 0.7rem; border: 1px solid #d6dae1; border-radius: 8px; }
.cel-upd-tabla-wrap { overflow-x: auto; max-height: 70vh; overflow-y: auto; border: 1px solid #e3e7ee; border-radius: 8px; }
.cel-upd-tabla { width: 100%; font-size: 0.76rem; }
.cel-upd-tabla thead th { position: sticky; top: 0; z-index: 1; }
.cel-upd-tabla tbody tr { cursor: pointer; }
.cel-upd-tabla tbody tr:hover td { background: #eef4fc; }
.cel-upd-tabla tbody tr:focus { outline: 2px solid #c9dcf3; outline-offset: -2px; }
.cel-upd-cli { max-width: 280px; white-space: normal; color: #52514e; }
.modal-box.acu-modal.cel-modal { max-width: 560px; }
/* Update › Células: búsqueda del colaborador en Entra ID dentro del popup */
.cel-ayuda { font-size: 0.6rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #8a919c; }
.cel-buscar .act-aut-resultados { top: 3.9rem; }
/* Update › Células: avatar del colaborador en la tabla y en el popup */
.cel-upd-tabla .acu-resp strong { font-weight: 700; }
.cel-modal-tit { display: flex; align-items: center; gap: 0.6rem; }
.acu-avatar.cel-avatar.grande { width: 38px; height: 38px; font-size: 0.82rem; }

/* ===================== Compromisos: seguimiento del portafolio ===================== */
.cmp-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(110deg, #0b2a6f, #1e40af 60%, #2a5bd7); color: #fff; border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.8rem; }
.cmp-banner-tit { display: flex; align-items: center; gap: 0.8rem; }
.cmp-banner-ico { display: inline-flex; padding: 0.3rem; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 8px; }
.cmp-banner h2 { margin: 0; color: #fff; font-size: 1.45rem; }
.cmp-banner p { margin: 0.1rem 0 0; font-size: 0.85rem; color: #dbe6ff; }
.cmp-filtros { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cmp-filtros label { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 8px; padding: 0.3rem 0.55rem; font-size: 0.78rem; }
.cmp-filtros select, .cmp-filtros input { font: inherit; font-size: 0.78rem; background: #1e3a8a; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; padding: 0.2rem 0.4rem; min-width: 130px; color-scheme: dark; }
.cmp-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; margin-bottom: 0.8rem; }
@media (max-width: 1100px) { .cmp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmp-kpi { display: flex; align-items: center; gap: 0.8rem; background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; padding: 0.8rem 1rem; box-shadow: 0 1px 3px rgba(27, 36, 54, 0.05); }
.cmp-kpi-total { border-left: 5px solid #2a5bd7; }
.cmp-kpi-ico { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cmp-kpi strong { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1; }
.cmp-kpi span { display: block; font-size: 0.85rem; color: #1b2436; }
.cmp-kpi small { display: block; font-size: 0.75rem; color: #6b7280; }
.cmp-fila3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 0.65rem; margin-bottom: 0.8rem; }
.cmp-fila-baja { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .cmp-fila3, .cmp-fila-baja { grid-template-columns: 1fr; } }
.cmp-tit { margin: 0 0 0.6rem; font-size: 0.95rem; font-weight: 800; color: #1b2436; }
.cmp-tit-fila { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.cmp-tit-fila .cmp-tit { margin: 0; }
.cmp-ley { display: flex; flex-wrap: wrap; gap: 0.7rem; font-size: 0.7rem; color: #374151; }
.cmp-ley i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.3rem; vertical-align: 0; }
.cmp-sec { margin-bottom: 0.8rem; }
.cmp-cumpl { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.cmp-cumpl .act-gauge { max-width: 190px; margin: 0; }
.cmp-cumpl ul { list-style: none; margin: 0; padding: 0; font-size: 0.8rem; display: flex; flex-direction: column; gap: 0.3rem; }
.cmp-cumpl-tot { border-top: 1px solid #e3e7ee; padding-top: 0.3rem; font-weight: 800; }
.cmp-hbs { display: flex; flex-direction: column; gap: 0.4rem; }
.cmp-hb { display: grid; grid-template-columns: 90px minmax(0, 1fr) 28px; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.cmp-hb-lbl { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #374151; }
.cmp-hb-track { height: 12px; display: block; }
.cmp-hb-track > span { display: block; height: 100%; background: #2a78d6; border-radius: 2px; min-width: 4px; }
.cmp-hb-val { font-weight: 700; }
.cmp-resp-svg { width: 100%; height: auto; display: block; }
.cmp-eje-x { font-size: 10px; fill: #374151; }
/* Calendario */
.cmp-cal { border: 1px solid #e3e7ee; border-radius: 8px; overflow-x: auto; }
.cmp-cal-fila { display: grid; grid-template-columns: 220px minmax(calc(var(--sem) * 70px), 1fr); align-items: center; border-bottom: 1px solid #eef0f3; min-height: 30px; }
.cmp-cal-head { background: #f1f5fb; font-size: 0.66rem; font-weight: 800; color: #1b2436; }
.cmp-cal-head > span:first-child { padding: 0 0.6rem; }
.cmp-cal-nom { padding: 0 0.6rem; font-size: 0.74rem; color: #1b2436; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-cal-sems { display: grid; grid-template-columns: repeat(var(--sem), minmax(0, 1fr)); height: 100%; position: relative; }
.cmp-cal-sems > span { border-left: 1px solid #eef0f3; display: flex; align-items: center; justify-content: center; font-size: 0.62rem; text-align: center; padding: 0.3rem 0.1rem; }
.cmp-cal-linea { min-height: 30px; }
.cmp-cal-sems > span.cmp-cal-barra { position: absolute; top: 50%; height: 9px; transform: translateY(-50%); border-radius: 999px; padding: 0; border: none; }
.cmp-cal-barra i { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-style: normal; font-size: 0.6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
/* Detalle */
.cmp-det-wrap { overflow-x: auto; max-height: 360px; overflow-y: auto; }
.cmp-det { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
.cmp-det th { text-align: left; font-size: 0.66rem; font-weight: 800; color: #1b2436; background: #f1f5fb; padding: 0.4rem 0.45rem; position: sticky; top: 0; }
.cmp-det td { padding: 0.4rem 0.45rem; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
.cmp-det td.cmp-det-desc { white-space: normal; min-width: 160px; }
.cmp-det-edit { cursor: pointer; }
.cmp-det-edit:hover td { background: #eef4fc; }
.cmp-est { font-size: 0.66rem; font-weight: 700; padding: 0.12rem 0.5rem; border-radius: 6px; }
.cmp-est-cumplido { background: #dcfce7; color: #15803d; }
.cmp-est-proceso { background: #dbeafe; color: #1d4ed8; }
.cmp-est-vencido { background: #fee2e2; color: #b91c1c; }
.cmp-est-proximo { background: #fef9c3; color: #854d0e; }
.cmp-av { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 110px; }
.cmp-av-barra { flex: 1; height: 7px; background: #e5e7eb; border-radius: 4px; overflow: hidden; display: block; }
.cmp-av-barra > span { display: block; height: 100%; border-radius: 4px; }
/* Causas y acciones */
.cmp-causas { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.cmp-dona { width: 130px; height: 130px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cmp-dona > div { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cmp-dona strong { font-size: 1.5rem; line-height: 1; }
.cmp-dona span { font-size: 0.7rem; color: #374151; }
.cmp-causas ul { list-style: none; margin: 0; padding: 0; font-size: 0.74rem; display: flex; flex-direction: column; gap: 0.35rem; }
.cmp-punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.4rem; }
.cmp-acciones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.78rem; color: #1b2436; }
.cmp-acciones li { position: relative; padding-left: 1.5rem; }
.cmp-acciones li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 1.05rem; height: 1.05rem; border-radius: 4px; background: #2a5bd7; color: #fff; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; }

/* Compromisos: encabezado sobrio (mismo estilo que Capacity) con subtítulo y filtros a la derecha */
.cmp-header { margin-bottom: 0.9rem; }
.cmp-header-tit h2 { margin: 0; }
.cmp-header-tit p { margin: 0.15rem 0 0; font-size: 0.8rem; color: #6b7280; }
.cmp-header .cmp-filtros { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.cmp-header .cmp-filtros label { display: inline-flex; align-items: center; gap: 0.4rem; background: none; border: none; padding: 0; font-size: 0.78rem; font-weight: 600; color: #52514e; }
.cmp-header .cmp-filtros select,
.cmp-header .cmp-filtros input { background: #fff; color: #1b2436; border-color: #c7ced9; min-width: 140px; color-scheme: light; }

/* Página del proyecto: pestañas de SOCO en su propia fila, debajo del título */
.act-cli .act-cli-tabs { order: 3; flex: 1 1 100%; margin-top: 0.15rem; }

/* Compromisos: elementos que filtran al dar clic y chips de filtro aplicado */
.cmp-clic { cursor: pointer; }
.cmp-kpi.cmp-clic:hover { border-color: #93b4ff; box-shadow: 0 2px 8px rgba(42, 91, 215, 0.12); }
.cmp-kpi.activo { border-color: #2a5bd7; box-shadow: 0 0 0 2px rgba(42, 91, 215, 0.35); }
.cmp-cumpl li.cmp-clic { border-radius: 6px; padding: 0.1rem 0.35rem; }
.cmp-cumpl li.cmp-clic:hover, .cmp-cumpl li.activo { background: #eef4fc; }
.cmp-cumpl li.activo { font-weight: 700; outline: 1px solid #93b4ff; }
.cmp-hb.cmp-clic { border-radius: 6px; padding: 0.1rem 0.2rem; }
.cmp-hb.cmp-clic:hover { background: #eef4fc; }
.cmp-hb.activo { background: #dbeafe; font-weight: 700; }
.cmp-resp-svg g.cmp-clic:hover rect { opacity: 0.85; }
.cmp-resp-svg g.activo text { font-weight: 800; fill: #1d4ed8; }
.cmp-ley .cmp-clic { border-radius: 999px; padding: 0.05rem 0.4rem; }
.cmp-ley .cmp-clic:hover, .cmp-ley .activo { background: #eef4fc; }
.cmp-ley .activo { outline: 1px solid #93b4ff; font-weight: 700; }
.cmp-cal-fila.cmp-clic:hover { background: #f5f8fd; }
.cmp-cal-fila.activo { background: #eef4fc; box-shadow: inset 3px 0 0 #2a5bd7; }
.cmp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: -0.3rem 0 0.7rem; font-size: 0.75rem; color: #52514e; }
.cmp-chip { display: inline-flex; align-items: center; gap: 0.35rem; background: #eef4fc; border: 1px solid #c9d6ea; border-radius: 999px; padding: 0.15rem 0.3rem 0.15rem 0.65rem; color: #1b2436; font-weight: 600; }
.cmp-chip button { border: none; background: none; cursor: pointer; color: #6b7280; font-size: 0.75rem; padding: 0 0.2rem; }
.cmp-chip button:hover { color: #dc2626; }
.cmp-chip-todo { font: inherit; font-size: 0.72rem; border: 1px solid #d6dae1; background: #fff; border-radius: 999px; padding: 0.15rem 0.6rem; cursor: pointer; }

/* Salud del proyecto: nota cuando la escala del radar supera 100% */
.act-radar-escala { margin: 0.2rem 0 0; font-size: 0.66rem; color: #8a919c; text-align: center; }

/* Salud del proyecto: segmento de Acuerdos / Compromisos (compacto, sin scroll horizontal ni avatars) */
.acu-salud { margin-top: 0.6rem; padding-top: 0.55rem; border-top: 1px solid #eef0f3; }
.acu-salud-cab { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.acu-salud-cab h4 { margin: 0; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acu-salud-btn { font: inherit; font-size: 0.68rem; font-weight: 700; color: #fff; background: #2a5bd7; border: 1px solid #2a5bd7; border-radius: 6px; padding: 0.25rem 0.6rem; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.acu-salud-btn:hover { background: #1f49b5; }
.acu-salud-tabla { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.7rem; }
.acu-salud-c-resp { width: 32%; }
.acu-salud-c-vence { width: 64px; }
.acu-salud-c-est { width: 76px; }
.acu-salud-c-acc { width: 24px; }
.acu-salud-tabla th { text-align: left; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7280; background: #f7f9fc; padding: 0.35rem 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acu-salud-tabla td { padding: 0.3rem 0.35rem; border-bottom: 1px solid #eef0f3; color: #1b2436; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acu-salud-tabla td strong { font-size: 0.68rem; }
.acu-salud-tabla .act-cli-chip { margin-top: 0; font-size: 0.62rem; padding: 0.05rem 0.45rem; }
.acu-salud-tabla .acu-editar { padding: 0.1rem; }
.acu-salud-tabla tr.acu-cerrado td { color: #8a919c; }
.acu-salud-tabla tr.acu-cerrado td.acu-salud-txt:first-child { text-decoration: line-through; }
.acu-salud-cab { justify-content: flex-end; }

/* Ficha del proyecto: valores de Líder técnico, Sponsor, Tipo y Facturación sin negritas */
.act-cli .act-cli-datos strong { font-weight: 500; }

/* Popup Nuevo / Editar acuerdo: más ancho, alineado a la derecha con margen */
.modal-overlay.acu-overlay-der { justify-content: center; align-items: center; padding: 1rem; } /* popup de acuerdo: siempre al centro de la pantalla */
.acu-overlay-der .modal-box.acu-modal { max-width: 640px; width: 100%; max-height: 92vh; overflow-y: auto; }
/* Estatus: 3 botones mutuamente excluyentes */
.acu-est-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.acu-est-btn { font: inherit; font-size: 0.8rem; font-weight: 700; padding: 0.45rem 0.6rem; border: 1px solid #d6dae1; border-radius: 8px; background: #fff; color: #374151; cursor: pointer; }
.acu-est-btn:hover { border-color: #93b4ff; }
.acu-est-btn.activo.acu-est-abierto { background: #2a78d6; border-color: #2a78d6; color: #fff; }
.acu-est-btn.activo.acu-est-cumplido { background: #16a34a; border-color: #16a34a; color: #fff; }
.acu-est-btn.activo.acu-est-cancelado { background: #6b7280; border-color: #6b7280; color: #fff; }
/* Avance: barra deslizable 0/25/50/75/100 */
.acu-slider { width: 100%; accent-color: #2a5bd7; margin: 0.35rem 0 0; }
.acu-slider-marcas { display: flex; justify-content: space-between; font-size: 0.62rem; color: #8a919c; padding: 0 0.15rem; }
#acu-avance-val { color: #2a5bd7; margin-left: 0.3rem; }

/* Popup acuerdo: avatar del responsable junto al campo */
.acu-resp-campo { display: flex; align-items: center; gap: 0.45rem; }
.acu-resp-campo .act-aut-input { flex: 1; min-width: 0; }
.acu-resp-campo .acu-avatar { width: 30px; height: 30px; font-size: 0.7rem; }

/* Botón Acuerdos/Compromisos (ficha Salud): tono claro, discreto */
.acu-salud-btn { background: #e8eefb; border-color: #c9d6ea; color: #2a5bd7; }
.acu-salud-btn:hover { background: #dbe5f8; border-color: #93b4ff; }

/* Ícono tenue junto al título Salud del proyecto */
.act-salud-tit { display: flex; align-items: center; gap: 0.45rem; }
.act-salud-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: #f1f4f9; border: 1px solid #e3e7ee; opacity: 0.9; }

/* Casilla 'Mostrar todos' junto a Estatus (sin texto; tooltip) */
.acu-salud-todos { width: 12px; height: 12px; margin: 0 0 0 0.25rem; vertical-align: -2px; cursor: pointer; accent-color: #2a5bd7; }
.acu-salud-c-est { width: 92px; }

/* Alcance: horas consumidas al inicio de la barra (DevOps / JC) */
.act-alc-hrs-cons-ini { flex: 0 0 auto; min-width: 52px; font-size: 0.85rem; white-space: nowrap; }
.act-alc-hrs-extra { padding-left: calc(52px + 0.45rem); font-size: 0.66rem; color: #6b7280; }
.act-alc-hrs-extra small { font-size: 0.66rem; }

/* Salud del proyecto (definitivo): con las dos fichas en el mismo renglón (pantalla > 1100 px) el detalle
   va integrado junto a cada punta del radar; con la ficha sola en su renglón (<= 1100 px), detalle en lista abajo. */
@media (min-width: 1101px) {
  .act-radar.act-radar-ancho { display: block; }
  .act-radar-angosto { display: none; }
  .act-radar-ancho .act-radar-nombre { font-size: 15px; }
  .act-radar-ancho .act-radar-pct { font-size: 15px; }
  .act-radar-ancho .act-radar-det { font-size: 12.5px; }
}
@media (max-width: 1100px) {
  .act-radar.act-radar-ancho { display: none; }
  .act-radar-angosto { display: block; }
}

/* Alcance: horas DevOps / JC (v3): etiqueta · total · barra con % encima · consumidas (diferencia debajo) */
.act-alc-hrs-fila.act-alc-hrs-v3 { display: grid; grid-template-columns: 70px auto minmax(0, 1fr) 84px; align-items: center; gap: 0.6rem; }
.act-alc-hrs-et { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #1b2436; }
.act-alc-hrs-tot { font-size: 0.9rem; color: #1b2436; white-space: nowrap; text-align: right; }
.act-alc-hrs-bar-wrap { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.act-alc-hrs-pct-top { text-align: center; font-size: 0.64rem; color: #52514e; line-height: 1; }
.act-alc-hrs-fin { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; padding-top: 0.75rem; }
.act-alc-hrs-fin strong { font-size: 0.9rem; white-space: nowrap; }
.act-alc-hrs-fin small { font-size: 0.64rem; color: #6b7280; margin-top: 0.15rem; white-space: nowrap; }
.act-alc-hrs-fila.act-alc-hrs-v3 { align-items: start; }
.act-alc-hrs-v3 .act-alc-hrs-et { padding-top: 0.35rem; }
.act-alc-hrs-v3 .act-alc-hrs-tot { padding-top: 0.62rem; }
.act-alc-hrs-v3 .act-alc-hrs-fin { padding-top: 0.62rem; }
.act-alc-hrs-v3 .act-alc-hrs-barra { height: 12px; border-radius: 6px; }
/* Corrección: en el contenedor vertical la barra no debe usar flex:1 (quedaba con altura 0) */
.act-alc-hrs-v3 .act-alc-hrs-bar-wrap .act-alc-hrs-barra { flex: none; display: block; width: 100%; height: 12px; min-height: 12px; }
.act-alc-hrs-v3 .act-alc-hrs-barra > span { display: block; height: 100%; }

/* Portafolio de Proyectos – Ejecución: espacios verticales compactos (arriba del título,
   título→pestañas, pestañas→KPIs, KPIs→alertas, alertas→Estatus por cliente). */
@media (min-width: 769px) {
  .app-main .act-dashboard:not(.act-cli) .resumen-encabezado-fijo { padding-top: 0.5rem; }
}
.act-dashboard:not(.act-cli) .resumen-header { padding-bottom: 0.45rem; margin-bottom: 0.4rem; }
.act-dashboard:not(.act-cli) .resumen-header h2 { line-height: 1.2; }
.act-dashboard:not(.act-cli) .act-actualizado { margin-top: 0.05rem; font-size: 0.8rem; }
.act-dashboard:not(.act-cli) .resumen-tabs { margin-bottom: 0.6rem; }
.act-dashboard:not(.act-cli) .resumen-tab { padding: 0.35rem 0.9rem; }
.act-dashboard:not(.act-cli) .act-kpis { margin-bottom: 0.6rem; gap: 0.7rem; }
.act-dashboard:not(.act-cli) .act-kpi { padding: 0.7rem 0.9rem 0.75rem; }
.act-dashboard:not(.act-cli) .act-kpi-titulo { margin-bottom: 0.55rem; }
.act-dashboard:not(.act-cli) .act-alertas { margin-bottom: 0.6rem; gap: 0.7rem; }
.act-dashboard:not(.act-cli) .act-alertas .act-panel { padding: 0.7rem 0.9rem 0.75rem; }
.act-dashboard:not(.act-cli) .act-panel-titulo-alerta { padding: 0.4rem 0.7rem; margin-bottom: 0.55rem; }
.act-dashboard:not(.act-cli) .act-seccion { margin-bottom: 0.5rem; }

/* Alcance › filas DevOps / JC: barras en gris y horas consumidas en negro (la diferencia entre paréntesis queda tenue). */
.act-alc-hrs-v3 .act-alc-hrs-barra > span { background: #8b929c; }
.act-alc-hrs-v3 .act-alc-hrs-fin strong { color: #1b2436 !important; }

/* ===== Consumo de horas: link en la ficha Alcance y popup (misma escala DevOps / JC) ===== */
.act-alc-hrs-link {
  align-self: flex-start; background: none; border: none; padding: 0; margin: 0 0 0.1rem;
  font: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #2a78d6; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.act-alc-hrs-link:hover { color: #1c5fb0; }
.ch-modal { width: min(980px, calc(100vw - 2rem)); max-width: none; padding: 1.1rem 1.4rem 1.2rem; }
.ch-cab { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid #e3e7ee; padding-bottom: 0.6rem; margin-bottom: 0.9rem; }
.ch-cab .modal-title { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 1.2rem; color: #1b2436; }
.ch-ico { color: #2e4a7d; display: inline-flex; }
.ch-proy { flex: 1; min-width: 0; text-align: center; color: #5b6b82; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-cab .act-pend-cerrar { margin-left: auto; }
.ch-graf { border: 1px solid #e3e7ee; border-radius: 10px; padding: 0.3rem 0.9rem 0; }
.ch-fila { display: grid; grid-template-columns: 150px 82px minmax(0, 1fr) 82px; align-items: center; gap: 0.8rem; border-bottom: 1px solid #eef0f3; }
.ch-fila:last-child { border-bottom: none; }
.ch-nom { font-size: 0.92rem; color: #1b2436; line-height: 1.25; padding: 0.85rem 0; }
.ch-nom small { display: block; font-size: 0.85rem; color: #1b2436; }
.ch-izq, .ch-der { font-size: 1rem; color: #1b2436; white-space: nowrap; }
.ch-izq { text-align: right; }
.ch-barra { position: relative; align-self: stretch; display: flex; align-items: center; }
.ch-track { position: relative; width: 100%; height: 22px; }
.ch-seg { position: absolute; top: 0; left: 0; height: 100%; border-radius: 11px; }
.ch-dv-plan { background: #d5dae2; }
.ch-dv-ejec { background: #8b97a8; }
.ch-jc-plan { background: #e6e9ef; }
.ch-jc-ejec { background: #243f6e; }
.ch-jc-exc { background: #e53935; border-radius: 0 11px 11px 0; }
.ch-pct { position: absolute; top: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 0.82rem; font-weight: 700; white-space: nowrap; pointer-events: none; }
.ch-pct-fuera { transform: translate(6px, -50%); color: #1b2436; }
.ch-linea { position: absolute; top: 0; bottom: 0; border-left: 2px dashed #1b2436; transform: translateX(-1px); pointer-events: none; }
.ch-eje .ch-barra { align-self: start; }
.ch-eje-linea { position: relative; width: 100%; height: 3.1rem; border-top: 1px solid #c7ced9; }
.ch-marca { position: absolute; top: 0; transform: translateX(-50%); padding-top: 0.45rem; font-size: 0.82rem; color: #5b6b82; white-space: nowrap; text-align: center; }
.ch-marca::before { content: ""; position: absolute; top: 0; left: 50%; height: 0.3rem; border-left: 1px solid #9aa4b2; }
.ch-marca small { display: block; font-size: 0.78rem; color: #5b6b82; }
.ch-marca-fuerte { color: #1b2436; font-weight: 700; }
.ch-marca-fuerte small { font-weight: 400; }
.ch-marca.ch-ini { transform: none; }
.ch-marca.ch-ini::before { left: 0; }
.ch-marca.ch-fin { transform: translateX(-100%); }
.ch-marca.ch-fin::before { left: auto; right: 0; }
.ch-leyenda { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 0.9rem; font-size: 0.82rem; color: #1b2436; }
.ch-ley { display: inline-flex; align-items: center; gap: 0.45rem; }
.ch-ley i { display: inline-block; width: 34px; height: 12px; border-radius: 6px; }
.ch-l-jcplan { background: #e6e9ef; border: 1px solid #d5dae2; }
.ch-l-dvplan { background: #d5dae2; }
.ch-l-dvejec { background: #8b97a8; }
.ch-l-jcejec { background: #243f6e; }
.ch-l-exc { background: #e53935; }
.ch-l-disp { background: #fff; border: 1px dashed #9aa4b2; }
@media (max-width: 640px) {
  .ch-fila { grid-template-columns: 92px 58px minmax(0, 1fr) 58px; gap: 0.45rem; }
  .ch-nom, .ch-nom small { font-size: 0.78rem; }
  .ch-izq, .ch-der { font-size: 0.8rem; }
}
.ch-jc-ejec.ch-con-exc { border-radius: 11px 0 0 11px; }
/* Alcance: solo el link "Consumo de horas" (las filas DevOps / JC se retiraron; el detalle va en el popup). */
.act-alc-consumo { margin-top: 0.6rem; }
/* Popup Consumo de horas: "PROYECTO  <SOCO> - <DESCRIPCIÓN>" en el título */
.ch-proy { color: #1b2436; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; }
.ch-proy small { color: #8a919c; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; margin-right: 0.35rem; }
/* Popup Consumo de horas: etiqueta "Consumidas" / "Ejecutadas" a la derecha de las horas */
.ch-fila { grid-template-columns: 150px 82px minmax(0, 1fr) 70px 96px; }
.ch-der { text-align: right; }
.ch-etq { color: #8a919c; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 640px) {
  .ch-fila { grid-template-columns: 92px 58px minmax(0, 1fr) 54px 70px; }
  .ch-etq { font-size: 0.75rem; }
}

/* Update › Células: encabezado fijo con fondo sólido; las filas (y los avatars) pasan por debajo al hacer scroll. */
.cel-upd-tabla { border-collapse: separate; border-spacing: 0; }
.cel-upd-tabla thead th {
  position: sticky; top: 0; z-index: 5;
  background: #2e4a7d; color: #fff; font-weight: 700;
  border-bottom: 2px solid #1f3560; box-shadow: 0 2px 4px rgba(27, 36, 54, 0.12);
}
.cel-upd-tabla thead th * { color: inherit; }
.cel-upd-tabla thead th:first-child { border-top-left-radius: 7px; }
.cel-upd-tabla thead th:last-child { border-top-right-radius: 7px; }
.cel-upd-tabla tbody td { position: relative; z-index: 0; }

/* Consumo de horas: cuando el % queda fuera de la barra y se enciman, se recorre el monto/leyenda */
.ch-graf.ch-holgura .ch-fila { grid-template-columns: 150px 82px minmax(0, 1fr) 118px 96px; }
@media (max-width: 640px) {
  .ch-graf.ch-holgura .ch-fila { grid-template-columns: 92px 58px minmax(0, 1fr) 92px 70px; }
}

/* Histórico › Venta vs. costo: botón "Drilldown por año" (un cliente y más de un año) */
.rcc-hist-drill-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; align-self: center;
  padding: 0.45rem 0.85rem; border: 1px solid #2f6fd6; border-radius: 6px;
  background: #fff; color: #2f6fd6; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.rcc-hist-drill-btn:hover { background: #eef4fd; }
.rcc-hist-drill-btn.activo { background: #2f6fd6; color: #fff; }

/* Mis Compromisos: sin la gráfica por responsable, la fila superior queda en dos columnas */
.cmp-fila3.cmp-fila2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cmp-fila3.cmp-fila2 { grid-template-columns: 1fr; } }

/* Acuerdos / Compromisos del proyecto: Avance, Causa (solo vencidos) e ícono de Seguimiento */
.acu-av { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; font-weight: 700; color: #1b2436; }
.acu-av-barra { display: inline-block; width: 54px; height: 6px; border-radius: 3px; background: #e5e8ee; overflow: hidden; }
.acu-av-barra > span { display: block; height: 100%; border-radius: 3px; }
.acu-causa { max-width: 170px; }
.acu-causa-txt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b91c1c; font-weight: 600; }
.acu-seg-ico { display: inline-block; cursor: help; font-size: 0.85rem; margin-left: 0.25rem; }
.acu-cerrado .acu-seg-ico { opacity: 0.6; }

/* Mis Compromisos: avatar + nombre completo del usuario bajo el título */
.cmp-mio-usr { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
.cmp-mio-usr strong { color: #1b2436; font-size: 0.95rem; }

/* Menú: "Mis Compromisos" debajo del título PMO360, con globo de compromisos abiertos */
.nav-link[data-view="mis-compromisos"] { position: relative; }
.nav-globo {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: #e53935; color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px rgba(229,57,53,0.25);
}
.nav-globo[hidden] { display: none; }

/* Compromisos: botón y popup "Enviar por correo" (Microsoft Graph) */
.cmp-correo-btn { align-self: end; padding: 0.45rem 0.85rem; border: 1px solid #2f6fd6; border-radius: 6px; background: #2f6fd6; color: #fff; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.cmp-correo-btn:hover { background: #2559b3; }
.cmp-correo { width: min(560px, 100vw - 2rem); }
.cmp-correo-et { display: flex; flex-direction: column; gap: 0.25rem; margin: 0.6rem 0; font-size: 0.78rem; font-weight: 700; color: #52514e; }
.cmp-correo-et small { font-weight: 400; color: #8a919c; }
.cmp-correo-et input, .cmp-correo-et textarea { font: inherit; font-weight: 400; font-size: 0.9rem; padding: 0.5rem 0.65rem; border: 1px solid #d5dae2; border-radius: 6px; color: #1b2436; }
.cmp-correo-et input:focus, .cmp-correo-et textarea:focus { outline: 2px solid #9db8ee; border-color: #2f6fd6; }

/* ===== Mis Compromisos (rediseño) ===== */
.mc-fila1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr); gap: 0.65rem; margin-bottom: 0.8rem; }
.mc-fila3 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0.65rem; margin-bottom: 0.8rem; align-items: start; }
@media (max-width: 1100px) { .mc-fila1, .mc-fila3 { grid-template-columns: 1fr; } }
.mc-proximos { background: #fff; border: 1px solid #c9d8f0; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(31,53,96,0.08); }
.mc-prox-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; background: #0f3d8f; color: #fff; padding: 0.6rem 0.9rem; }
.mc-prox-cab h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.mc-prox-cab h3 small { font-weight: 400; opacity: 0.85; }
.mc-ver-todos { background: none; border: none; color: #fff; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.mc-ver-todos:hover { text-decoration: underline; }
.mc-prox { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 112px auto; align-items: center; gap: 0.6rem; margin: 0.5rem; padding: 0.55rem 0.65rem; background: #f4f7fc; border-radius: 8px; }
.mc-prox-vacio { margin: 1rem; color: #52606f; text-align: center; }
.mc-prox-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dbe8fb; color: #1d4ed8; }
.mc-prox-txt { min-width: 0; }
.mc-prox-txt strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; color: #1b2436; }
.mc-prox-txt small { color: #52606f; font-size: 0.78rem; }
.mc-dias { padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.mc-dias-rojo { background: #fde2e2; color: #b91c1c; }
.mc-dias-ambar { background: #fdf0c4; color: #92600a; }
.mc-dias-gris { background: #e8ecf3; color: #52606f; }
.mc-av { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.mc-av b { font-size: 0.82rem; color: #1b2436; }
.mc-av-barra { display: inline-block; width: 70px; height: 8px; border-radius: 4px; background: #e1e5ec; overflow: hidden; }
.mc-av-barra > span { display: block; height: 100%; border-radius: 4px; }
.mc-atender { background: #0f3d8f; color: #fff; border: none; border-radius: 6px; padding: 0.45rem 0.85rem; font-weight: 600; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.mc-atender:hover { background: #0a2f70; }
@media (max-width: 1400px) { .mc-prox { grid-template-columns: 34px minmax(0, 1fr) auto auto; } .mc-prox .mc-av { display: none; } }
.mc-vistas { display: inline-flex; gap: 0.4rem; }
.mc-vistas button { border: 1px solid #c9d8f0; background: #fff; color: #1b2436; border-radius: 8px; padding: 0.4rem 0.8rem; font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.mc-vistas button.activo { background: #0f3d8f; color: #fff; border-color: #0f3d8f; }
/* Gantt por días */
.mc-gantt { overflow-x: auto; }
.mc-g-fila { display: grid; grid-template-columns: 210px minmax(560px, 1fr); border-top: 1px solid #eef0f3; align-items: stretch; }
.mc-g-head { background: #eef3fb; border-top: none; font-weight: 700; font-size: 0.78rem; color: #1b2436; }
.mc-g-head > span { padding: 0.5rem 0.6rem; }
.mc-g-dias { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); min-height: 38px; background-image: linear-gradient(to right, #eef0f3 1px, transparent 1px); background-size: calc(100% / var(--n)) 100%; }
.mc-g-head .mc-g-dias { background-image: none; }
.mc-g-head .mc-g-dias span { text-align: center; padding: 0.5rem 0; font-size: 0.7rem; white-space: nowrap; border-left: 1px solid #dfe6f2; }
.mc-g-head .mc-g-dias span.hoy { background: #cfe3fa; color: #0f3d8f; }
.mc-g-nom { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-g-nom i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #dbe8fb; color: #1d4ed8; }
.mc-g-hoy { position: absolute; top: 0; bottom: 0; background: rgba(150,195,245,0.28); pointer-events: none; }
.mc-g-barra { position: absolute; top: 50%; height: 9px; transform: translateY(-50%); border-radius: 5px; }
.mc-g-barra em { position: absolute; right: -6px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); border-radius: 50%; background: #fff; border: 3px solid currentColor; box-sizing: border-box; }
/* Vista calendario (mes) */
.mc-cal-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 0.5rem; text-transform: capitalize; }
.mc-cal-nav button { border: 1px solid #c9d8f0; background: #fff; border-radius: 6px; width: 30px; height: 28px; font-size: 1.1rem; cursor: pointer; }
.mc-c-sem, .mc-c-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mc-c-sem span { text-align: center; font-size: 0.75rem; font-weight: 700; color: #52606f; padding: 0.3rem 0; background: #eef3fb; }
.mc-c-dia { min-height: 82px; border: 1px solid #eef0f3; padding: 0.25rem; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.mc-c-dia > b { font-size: 0.75rem; color: #1b2436; }
.mc-c-dia.fuera { background: #fafbfc; }
.mc-c-dia.fuera > b { color: #b5bcc8; }
.mc-c-dia.hoy { background: #e5f0fd; outline: 2px solid #2a78d6; outline-offset: -2px; }
.mc-c-chip { color: #fff; border-radius: 4px; padding: 1px 5px; font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-c-dia small { color: #52606f; font-size: 0.68rem; }
/* Detalle y acciones */
.mc-est { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.6rem; border-radius: 6px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.mc-est-cumplido { background: #dcfce7; color: #166534; }
.mc-est-proceso { background: #dbeafe; color: #1d4ed8; }
.mc-est-vencido { background: #fee2e2; color: #b91c1c; }
.mc-est-proximo { background: #fdf0c4; color: #92600a; }
.mc-det th:last-child, .mc-acc { text-align: center; white-space: nowrap; }
.mc-ico-btn { width: 32px; height: 32px; border: 1px solid #c9d8f0; background: #fff; color: #2a5bd7; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; font-size: 1.1rem; font-weight: 700; }
.mc-ico-btn:hover { background: #eef4fd; }
.mc-mas { border-color: transparent; color: #1b2436; }
.mc-menu-wrap { position: relative; display: inline-block; }
.mc-menu { position: absolute; right: 0; top: 100%; z-index: 10; background: #fff; border: 1px solid #d5dae2; border-radius: 8px; box-shadow: 0 6px 18px rgba(27,36,54,0.16); min-width: 190px; padding: 0.25rem; text-align: left; }
.mc-menu[hidden] { display: none; }
.mc-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 0.5rem 0.7rem; border-radius: 6px; font-size: 0.85rem; cursor: pointer; color: #1b2436; }
.mc-menu button:hover { background: #eef4fd; }
.mc-resalta td { animation: mc-resalta 2.2s ease-out; }
@keyframes mc-resalta { from { background: #fff3b0; } to { background: transparent; } }
.mc-acciones { background: linear-gradient(180deg, #f2f7ff, #e9f1fd); }
.mc-acciones ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.mc-acc-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem; background: #fff; border-radius: 8px; cursor: pointer; font-size: 0.92rem; }
.mc-acc-item input { width: 18px; height: 18px; accent-color: #2a5bd7; }
.mc-acc-item.hecho span { text-decoration: line-through; color: #8a919c; }

/* Menú: Mis Compromisos, Compromisos y Capacity con el mismo tamaño de letra que los títulos de sección (Administración) */
#nav-section-mis .nav-link,
#nav-section-capacity .nav-link { font-size: 0.78rem; font-weight: 600; }

/* Controles de formulario (botones, combos, campos, textos): mismo tipo de letra que la página; el tamaño no cambia. */
button, input, select, textarea, optgroup { font-family: var(--pmo-font); }
svg text { font-family: var(--pmo-font); }

/* Mis Compromisos: "Próximos compromisos" y botones con estilo sobrio (como las demás fichas y el botón Acuerdos/Compromisos) */
.mc-proximos { border: 1px solid #e1e0d9; box-shadow: none; }
.mc-prox-cab { background: #fff; color: #1b2436; padding: 0.75rem 0.9rem 0.25rem; }
.mc-prox-cab h3 { font-size: 0.95rem; font-weight: 800; color: #1b2436; }
.mc-prox-cab h3 small { color: #6b7280; font-weight: 400; opacity: 1; }
.mc-prox-cab h3 > span { color: #2a5bd7; }
.mc-ver-todos { color: #2a5bd7; font-size: 0.8rem; }
.mc-prox { background: #f8f9fb; border: 1px solid #eef0f3; }
.mc-atender { background: #e8eefb; border: 1px solid #c9d6ea; color: #2a5bd7; font-size: 0.8rem; padding: 0.35rem 0.75rem; }
.mc-atender:hover { background: #dbe5f8; border-color: #93b4ff; }
.mc-vistas button { border-color: #d5dae2; color: #52606f; font-size: 0.78rem; padding: 0.3rem 0.7rem; }
.mc-vistas button:hover { background: #f4f6f9; }
.mc-vistas button.activo { background: #e8eefb; border-color: #c9d6ea; color: #2a5bd7; }

/* Estatus "Listo (para revisión)": morado. Botones de estatus deshabilitados según el rol. */
.acu-est-btns { flex-wrap: wrap; }
.acu-est-btn small { font-weight: 400; font-size: 0.72em; }
.acu-est-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.acu-est-listo.activo { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.acu-est-ayuda { margin: 0.35rem 0 0.2rem; font-size: 0.75rem; color: #6b7280; }
.acu-est-ayuda b { color: #7c3aed; }
.cmp-est-listo, .mc-est-listo { background: #ede9fe; color: #6d28d9; }
.cmp-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1300px) { .cmp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.act-aut-input:disabled { background: #f4f6f9; color: #52606f; cursor: not-allowed; }

/* Popup de acuerdo: los 4 estatus en un solo renglón y más compactos */
.acu-est-btns { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; }
.acu-est-btn { font-size: 0.72rem; padding: 0.3rem 0.35rem; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acu-est-btn small { font-size: 0.85em; }

/* Menú: botón + a la derecha de Compromisos (alta rápida en popup) */
#nav-section-capacity .nav-item { position: relative; }
#nav-section-capacity .nav-item:has(.nav-mas) .nav-link { padding-right: 2.2rem; }
.nav-mas {
  position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); color: var(--sidebar-accent); font-size: 1rem; font-weight: 700; line-height: 1;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.nav-mas:hover, .nav-mas:focus-visible { background: rgba(79,155,234,0.22); border-color: var(--sidebar-accent); color: #fff; }
.nav-mas[hidden] { display: none; }

/* Popup de acuerdo: Tipo Compromiso / Acuerdo (botones) */
.acu-tipo-btns { display: inline-flex; gap: 0.3rem; }
.acu-tipo-btn { font: inherit; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.9rem; border: 1px solid #d6dae1; border-radius: 6px; background: #fff; color: #374151; cursor: pointer; }
.acu-tipo-btn:hover { border-color: #93b4ff; }
.acu-tipo-btn.activo { background: #effaef; border-color: #0ca30c; color: #0a7d0a; }
.acu-tipo-btn:disabled { cursor: not-allowed; opacity: 0.7; }
#acu-solo-cmp[hidden] { display: none; }

/* Lista de colaboradores (Responsable): renglón resaltado con el teclado */
.act-aut-resultados button.activo { background: #e8eefb; outline: 2px solid #93b4ff; outline-offset: -2px; }

/* Popup de acuerdo: combo Proyecto con búsqueda */
.acu-proy-buscar { position: relative; }
.acu-proy-txt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='16' height='16'%3E%3Cpath d='M5 7l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.7rem center; padding-right: 2.2rem; }
.acu-proy-res { max-height: 260px; overflow-y: auto; }
.acu-proy-res button { display: block; width: 100%; text-align: left; }
.acu-proy-res button.sel { font-weight: 700; }
.acu-proy-res { top: calc(100% + 2px); }

/* Seguimiento de Compromisos: cumplimiento general como ficha al final de los indicadores; panel de Acuerdos */
.cmp-kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1500px) { .cmp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cmp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmp-kpi-cumpl { gap: 0.4rem; padding: 0.5rem 0.8rem; }
.cmp-kpi-cumpl .act-gauge { width: 96px; flex-shrink: 0; margin: 0; }
.cmp-acu-n { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 0.3rem; border-radius: 11px; background: #e0f2f1; color: #0e7490; font-size: 0.78rem; text-align: center; vertical-align: middle; }
.cmp-acu-wrap { max-height: 230px; overflow-y: auto; }
.cmp-acu-tabla { width: 100%; border-collapse: collapse; font-size: 0.78rem; table-layout: fixed; }
.cmp-acu-tabla th { position: sticky; top: 0; background: #f7f9fc; text-align: left; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; padding: 0.4rem 0.5rem; border-bottom: 1px solid #e3e7ee; }
.cmp-acu-tabla th:nth-child(2), .cmp-acu-tabla th:nth-child(3) { width: 22%; }
.cmp-acu-tabla th:nth-child(4) { width: 92px; }
.cmp-acu-tabla td { padding: 0.4rem 0.5rem; border-bottom: 1px solid #eef0f3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-acu-tabla tr.cmp-det-edit { cursor: pointer; }
.cmp-acu-tabla tr.cmp-det-edit:hover td { background: #f4f8fe; }
/* Panel Acuerdos: encabezados completos (sin cortar "Responsable") */
.cmp-acu-tabla th { letter-spacing: 0.02em; padding: 0.4rem 0.4rem; white-space: nowrap; overflow: visible; }
.cmp-acu-tabla th:nth-child(2) { width: 19%; }
.cmp-acu-tabla th:nth-child(3) { width: 30%; }
.cmp-acu-tabla th:nth-child(4) { width: 88px; }
.cmp-acu-tabla td { padding: 0.4rem 0.4rem; }
/* Ficha Cumplimiento: título debajo del velocímetro */
.cmp-kpi-cumpl { flex-direction: column; justify-content: center; gap: 0.1rem; }
.cmp-kpi-cumpl .act-gauge { width: 110px; }
.cmp-kpi-cumpl .cmp-kpi-cumpl-tit { font-size: 0.85rem; color: #1b2436; text-align: center; }

/* Mis Compromisos: columna derecha con Acciones Recomendadas y Mis Acuerdos */
.mc-col-der { display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; }
.mc-acu-tabla th:nth-child(2) { width: 26%; }
.mc-acu-tabla th:nth-child(3) { width: 96px; }

/* ===== Mis Compromisos: distribución por prioridad (indicadores · por atender · detalle con pestañas · calendario) ===== */
.mc-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.65rem; margin-bottom: 0.8rem; }
@media (max-width: 1300px) { .mc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .mc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mc-kpi-ico { width: 44px; height: 44px; font-size: 1.25rem; font-weight: 700; }
.mc-kpis .cmp-kpi { cursor: pointer; }
.mc-fila2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0.65rem; margin-bottom: 0.8rem; align-items: start; }
@media (max-width: 1100px) { .mc-fila2 { grid-template-columns: 1fr; } }
#mc-detalle { margin-bottom: 0.8rem; }
.mc-tabs { display: inline-flex; gap: 0.3rem; }
.mc-tabs button { font: inherit; font-size: 0.85rem; font-weight: 700; padding: 0.4rem 0.85rem; border: 1px solid #d5dae2; border-radius: 8px; background: #fff; color: #52606f; cursor: pointer; }
.mc-tabs button:hover { background: #f4f6f9; }
.mc-tabs button.activo { background: #e8eefb; border-color: #c9d6ea; color: #2a5bd7; }
.mc-tab-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 0.25rem; border-radius: 10px; background: #eef0f3; color: #52606f; font-size: 0.72rem; text-align: center; }
.mc-tabs button.activo .mc-tab-n { background: #fff; color: #2a5bd7; }
.mc-acu-wrap { max-height: 420px; }
.mc-acu-tabla th:nth-child(2) { width: 16%; }
.mc-acu-tabla th:nth-child(3) { width: 34%; }
.mc-acu-tabla th:nth-child(4) { width: 110px; }

/* Estatus documental en solo lectura (perfiles distintos de Administrador / Contribuidor) */
.cierre-modal .cierre-combo:disabled { opacity: 1; cursor: default; }
.cierre-modal input[readonly], .cierre-modal textarea[readonly] { background: #f4f6f9; color: #52606f; cursor: default; }
.cierre-ro-nota { margin: 0.4rem 0 0; }

/* Cierre: viñeta del estatus de término junto al proyecto */
.cierre-dot { flex-shrink: 0; margin-right: 0.4rem; vertical-align: middle; }
.cierre-dot { width: 10px; height: 10px; }
/* Cierre: con la viñeta (y la liga a SharePoint) el nombre del proyecto se recorta con "…" en el mismo renglón */
.cierre-tabla td .cierre-dot + .partl-proyecto-link { max-width: calc(100% - 1.1rem); }
.cierre-tabla td:has(.cierre-ruta-link) .cierre-dot + .partl-proyecto-link { max-width: calc(100% - 2.7rem); }
.cierre-tabla td .cierre-dot { margin-right: 0.35rem; }

/* Mis Compromisos: fondo más oscuro en "Mi cumplimiento" y "Total de compromisos por atender" */
.mc-kpis .cmp-kpi-cumpl,
.mc-kpis .cmp-kpi[data-mc-filtro="atender"] { background: #eef2f7; border-color: #d5dce6; }
.mc-kpis .cmp-kpi-cumpl:hover,
.mc-kpis .cmp-kpi[data-mc-filtro="atender"]:hover { background: #e6ebf2; }

/* Nuevo Acuerdo / Compromiso: estatus, avance y causa en solo lectura */
.acu-est-btn.activo:disabled { opacity: 1; cursor: default; }
.acu-slider:disabled { opacity: 0.55; cursor: not-allowed; }
.acu-modal select.act-aut-input:disabled { background: #f4f6f9; color: #52606f; cursor: not-allowed; opacity: 1; }

/* Mis Compromisos: botones Compromisos / Acuerdos debajo del encabezado (cambian la vista) */
.mc-tabs-pagina { display: flex; margin: 0 0 0.8rem; }

/* Compromisos: vista Acuerdos a todo lo ancho */
.cmp-acu-full { margin-bottom: 0.8rem; }
.cmp-acu-full .cmp-acu-wrap { max-height: 560px; }

/* Mis Compromisos: 5 indicadores (sin la ficha Acuerdos) */
.mc-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1300px) { .mc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .mc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mis Compromisos: dona (total al centro, fragmentos por estatus) que une Mi cumplimiento y Por atender */
.mc-kpis { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 1300px) { .mc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mc-dona-card { grid-column: 1 / -1; } }
@media (max-width: 700px) { .mc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mc-dona-card { display: flex; align-items: center; gap: 1rem; background: #eef2f7; border-color: #d5dce6; cursor: default; }
.mc-dona { width: 120px; height: 120px; flex: 0 0 auto; }
.mc-dona-seg { cursor: pointer; transition: stroke-width 0.15s; }
.mc-dona-seg:hover, .mc-dona-seg.activo { stroke-width: 20; }
.mc-dona-n { font-size: 22px; font-weight: 800; fill: #1b2436; }
.mc-dona-lbl { font-size: 8px; fill: #52606f; }
.mc-dona-ley { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; font-size: 0.8rem; }
.mc-dona-cumpl { font-size: 0.82rem; color: #52606f; margin-bottom: 0.2rem; }
.mc-dona-cumpl b { color: #16a34a; font-size: 0.95rem; }
.mc-dona-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.1rem 0.35rem; border-radius: 6px; cursor: pointer; color: #1b2436; }
.mc-dona-item:hover, .mc-dona-item.activo { background: #dfe6f0; }
.mc-dona-item i { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.mc-dona-item b { margin-left: auto; }

/* ===== Mis Compromisos: rediseño (pestañas subrayadas, resumen con dona, tarjetas de color, detalle con herramientas, calendario semanal / mensual) ===== */
.mc-tabs2 { display: flex; gap: 0.6rem; align-items: flex-end; border-bottom: 2px solid #dfe6f2; margin: 0 0 0.9rem; }
.mc-tabs2 button { font: inherit; font-size: 0.88rem; font-weight: 700; padding: 0.5rem 1.4rem; margin-bottom: -2px; border: 1px solid #d5dae2; border-bottom: none; border-radius: 10px 10px 0 0; background: #fff; color: #1b2436; cursor: pointer; }
.mc-tabs2 button:hover { background: #f4f6f9; }
.mc-tabs2 button.activo { background: #e8eefb; color: #2a5bd7; border-color: #c9d6ea; border-bottom: 3px solid #2a5bd7; }

.mc-kpis2 { display: grid; grid-template-columns: minmax(0, 2.6fr) repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 0.9rem; }
@media (max-width: 1300px) { .mc-kpis2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mc-res { grid-column: 1 / -1; } }
@media (max-width: 700px) { .mc-kpis2 { grid-template-columns: 1fr; } }

.mc-res { display: flex; align-items: center; gap: 1.4rem; padding: 0.9rem 1.2rem; background: #fff; border: 1px solid #dfe6f2; border-radius: 12px; box-shadow: 0 1px 3px rgba(27,36,54,0.06); min-width: 0; }
.mc-res .mc-dona { width: 130px; height: 130px; flex: none; }
.mc-dona-seg { cursor: pointer; transition: stroke-width 0.15s; }
.mc-dona-seg:hover, .mc-dona-seg.activo { stroke-width: 19; }
.mc-dona-n { font-size: 24px; font-weight: 800; fill: #1b2436; }
.mc-dona-lbl { font-size: 7.5px; font-weight: 600; fill: #1b2436; }
.mc-res-cumpl { display: flex; flex-direction: column; gap: 0.15rem; min-width: 150px; flex: 1; }
.mc-res-tit { font-size: 1rem; font-weight: 800; color: #1b2436; }
.mc-res-cumpl strong { font-size: 2.4rem; line-height: 1.05; font-weight: 800; color: #16a34a; }
.mc-res-cumpl small { font-size: 0.82rem; color: #1b2436; }
.mc-res-barra { display: block; height: 9px; border-radius: 5px; background: #e5e9f0; margin-top: 0.45rem; overflow: hidden; max-width: 230px; }
.mc-res-barra span { display: block; height: 100%; background: #16a34a; border-radius: 5px; }
.mc-res-ley { display: flex; flex-direction: column; gap: 0.1rem; padding-left: 1.2rem; border-left: 1px solid #dfe6f2; min-width: 190px; }
.mc-res-item { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 0.7rem; padding: 0.3rem 0.45rem; border-bottom: 1px solid #eef0f3; border-radius: 6px; font-size: 0.85rem; color: #1b2436; cursor: pointer; }
.mc-res-item:last-child { border-bottom: none; }
.mc-res-item:hover, .mc-res-item.activo { background: #eef3fb; }
.mc-res-item i { width: 11px; height: 11px; border-radius: 50%; }
.mc-res-item b { font-size: 0.95rem; }

.mc-kc { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; padding: 0.9rem 2rem 0.9rem 1.1rem; border-radius: 12px; border: 1px solid; cursor: pointer; min-width: 0; transition: box-shadow 0.15s, transform 0.15s; }
.mc-kc:hover { box-shadow: 0 4px 12px rgba(27,36,54,0.12); transform: translateY(-1px); }
.mc-kc.activo { box-shadow: 0 0 0 2px currentColor inset; }
.mc-kc strong { font-size: 2.2rem; line-height: 1; font-weight: 800; }
.mc-kc-lbl { font-size: 0.92rem; color: #1b2436; display: flex; flex-direction: column; }
.mc-kc-lbl small { font-size: 0.82rem; color: #1b2436; }
.mc-kc-ico { display: inline-flex; }
.mc-kc-flecha { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: #52606f; }
.mc-kc-vencido { background: #fdecec; border-color: #f5b5b5; color: #dc2626; }
.mc-kc-proximo { background: #fef6dc; border-color: #f3d98a; color: #d97706; }
.mc-kc-proximo strong { color: #eab308; }
.mc-kc-listo { background: #f1ecfd; border-color: #d6c8f7; color: #7c3aed; }

.mc-panel { margin-bottom: 0.9rem; }
.mc-panel-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.mc-panel-tit { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 1.1rem; font-weight: 800; color: #1b2436; }
.mc-panel-ico { display: inline-flex; color: #2a5bd7; }
.mc-herr { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mc-buscar { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid #d5dae2; border-radius: 8px; padding: 0 0.6rem; background: #fff; color: #52606f; }
.mc-buscar input { border: none; outline: none; padding: 0.45rem 0; width: 200px; font-size: 0.85rem; background: transparent; }
.mc-buscar:focus-within { border-color: #2a5bd7; box-shadow: 0 0 0 2px rgba(42,91,215,0.15); }
.mc-pop-wrap { position: relative; display: inline-block; }
.mc-herr-btn { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid #d5dae2; background: #fff; color: #1b2436; border-radius: 8px; padding: 0.45rem 0.85rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.mc-herr-btn svg { color: #2a5bd7; }
.mc-herr-btn:hover { background: #f4f6f9; }
.mc-pop { min-width: 230px; }
.mc-pop button.activo { color: #2a5bd7; font-weight: 700; }
.mc-nuevo-btn { display: inline-flex; align-items: center; gap: 0.45rem; border: none; background: #1d4ed8; color: #fff; border-radius: 8px; padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.mc-nuevo-btn span { font-size: 1.15rem; line-height: 1; }
.mc-nuevo-btn:hover { background: #1e40af; }

.mc-det th { background: #eef3fb; }
.mc-det tr.mc-row-vencido td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.mc-det-desc { display: flex; align-items: center; gap: 0.55rem; }
.mc-det-doc { display: inline-flex; color: #1d4ed8; flex: none; }
.mc-resp { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.mc-av-mini { width: 24px; height: 24px; font-size: 0.62rem; flex: none; }
.mc-d { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 6px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.mc-d-rojo { background: #fee2e2; color: #b91c1c; }
.mc-d-azul { background: #dbeafe; color: #1d4ed8; }
.mc-d-ambar { background: #fef3c7; color: #92400e; }
.mc-d-gris { background: #eef0f3; color: #52606f; }
.mc-d-nada { color: #8a94a6; font-weight: 600; }

.mc-cal-cab { align-items: flex-start; }
.mc-cal-ley { display: flex; gap: 0.9rem; margin-top: 0.35rem; }
.mc-cal-der { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.mc-escala { display: inline-flex; border: 1px solid #d5dae2; border-radius: 8px; overflow: hidden; }
.mc-escala button { border: none; background: #fff; color: #52606f; padding: 0.4rem 0.9rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.mc-escala button.activo { background: #0f3d8f; color: #fff; }
.mc-nav { display: inline-flex; align-items: center; gap: 0.6rem; border: 1px solid #d5dae2; border-radius: 8px; padding: 0.15rem 0.3rem; background: #fff; }
.mc-nav strong { font-size: 0.85rem; min-width: 80px; text-align: center; }
.mc-nav button { border: none; background: none; font-size: 1.15rem; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; color: #1b2436; }
.mc-nav button:hover { background: #eef3fb; }
.mc-gantt-mes .mc-g-fila { grid-template-columns: 250px minmax(1250px, 1fr); }
.mc-gantt-sem .mc-g-fila { grid-template-columns: 250px minmax(560px, 1fr); }
.mc-gantt .mc-g-nom, .mc-gantt .mc-g-head > span { position: sticky; left: 0; z-index: 2; background: #fff; }
.mc-gantt .mc-g-head > span { background: #eef3fb; }
.mc-g-barra.mc-g-sigue { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Seguimiento de Compromisos (diseño de Mis Compromisos): paneles de análisis */
.mc-extras { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem; margin-bottom: 0.9rem; }
.mc-extras .mc-panel { margin-bottom: 0; }
@media (max-width: 1100px) { .mc-extras { grid-template-columns: 1fr; } }

/* Pestañas Compromisos / Acuerdos: texto gris en la pestaña no seleccionada */
.mc-tabs2 button:not(.activo) { color: #8a94a6; font-weight: 600; }
.mc-tabs2 button:not(.activo):hover { color: #52606f; }

/* Consumo de horas: diferencia Consumidas vs Ejecutadas debajo de cada cifra */
.ch-der .ch-dif { display: block; font-size: 0.75rem; font-weight: 500; color: #8a94a6; text-align: right; margin-top: 0.1rem; }

/* Consumo de horas: diferencia (Consumidas − Ejecutadas) en el renglón del eje, bajo la línea */
.ch-eje .ch-dif-celda, .ch-eje .ch-dif-etq { align-self: start; padding-top: 0.55rem; }
.ch-dif-celda .ch-dif { font-size: 0.82rem; font-weight: 500; color: #8a94a6; }
.ch-dif-etq { font-size: 0.82rem; font-weight: 500; }
.ch-eje .ch-dif-etq { color: #b8bfca; }

/* Data Mart: tabla dbo.Finanzas (Excel de Finanzas) */
.dm-chip-fin { border-color: #0e7490; background: #e0f2f1; }
.dm-tag.dm-fin { background: #e0f2f1; color: #0e7490; }
.dm-caja.dm-fin { border-color: #0e7490; }
.dm-fin .dm-caja-cab { background: #e0f2f1; }
.dm-rel.dm-fin-rel { stroke: #0e7490; }

/* Facturas de la SOCO: datos homólogos de dbo.Finanzas */
.act-fin-sec { margin-top: 18px; }
.act-fin-titulo { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #0e7490; text-transform: uppercase; letter-spacing: .03em; }
.act-fin-titulo span { font-weight: 400; text-transform: none; letter-spacing: 0; color: #8a94a6; font-size: 12px; }
.act-fin-tabla th, .act-fin-tabla td { white-space: nowrap; }
.act-fin-tabla td.act-facturas-obs { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* Facturas de la SOCO: tabla "Datos de Venta GPE" y título del detalle de facturación */
.act-venta-gpe { margin-top: 10px; }
.act-fin-titulo.act-venta-titulo { color: #1b2436; }
.act-venta-gpe .act-tabla-wrap { margin-bottom: 16px; }

/* Administración › Usuarios: varios perfiles por usuario (casillas) */
.usuario-perfiles { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.usuario-perfil-chk { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid #d5dbe5; border-radius: 999px; font-size: 12px; color: #4a5568; background: #fff; cursor: pointer; user-select: none; }
.usuario-perfil-chk input { margin: 0; accent-color: #3a45b0; }
.usuario-perfil-chk:has(input:checked) { border-color: #3a45b0; background: #eef0fb; color: #1b2436; font-weight: 600; }
.usuario-perfil-chk:has(input:disabled) { opacity: .6; cursor: progress; }
.usuario-form .usuario-perfiles-nuevo { align-self: center; }

/* Participación en los proyectos: botón Exportar a Excel en el encabezado */
.partl-tabla-acciones { margin-left: auto; }
.partl-exportar-btn { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: #fff; background: #1e955a; border: 0; border-radius: 6px; padding: 5px 12px; cursor: pointer; }
.partl-exportar-btn:hover { background: #187a4a; }
.partl-exportar-btn:disabled { opacity: .5; cursor: default; }

/* Aviso "Tu sesión venció" (auth.js) */
.auth-sesion-vencida {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  background: #fff7e6;
  color: #7a4b00;
  border: 1px solid #f0b54a;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
}
.auth-sesion-vencida button {
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  background: #0b5cad;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.auth-sesion-vencida button:disabled { opacity: 0.6; cursor: default; }

/* ===== Seguimiento de Compromisos › Recordatorios (solo Administrador) ===== */
.rec { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: 0.75rem; }
.rec.rec-una { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1150px) { .rec { grid-template-columns: minmax(0, 1fr); } }
.rec-izq, .rec-der { padding: 1rem 1.2rem; min-width: 0; }
.rec-tit { margin: 0; font-size: 1.15rem; color: #1b2436; }
.rec-desc { margin: 0.2rem 0 0.8rem; color: #6b7280; font-size: 0.86rem; }
.rec-subtabs { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.35rem; background: #f4f6f9; border: 1px solid #e3e7ee; border-radius: 10px; margin-bottom: 0.9rem; }
.rec-subtab { font: inherit; font-size: 0.86rem; font-weight: 600; padding: 0.5rem 0.95rem; border: 0; border-radius: 8px; background: transparent; color: #52606f; cursor: pointer; }
.rec-subtab:hover { background: #e9edf3; }
.rec-subtab.activo { background: #2a5bd7; color: #fff; box-shadow: 0 1px 3px rgba(42, 91, 215, 0.35); }
.rec-sec { margin: 1rem 0 0.5rem; font-size: 0.95rem; color: #1b2436; }
.rec-sub { margin: 0 0 0.5rem; font-size: 0.88rem; color: #1b2436; }
.rec-alcances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (max-width: 600px) { .rec-alcances { grid-template-columns: 1fr; } }
.rec-alcance { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.75rem 0.85rem; border: 1px solid #d5dae2; border-radius: 10px; background: #fff; cursor: pointer; }
.rec-alcance:hover { border-color: #9db8ee; }
.rec-alcance.activo { border: 2px solid #2a5bd7; background: #f2f6fd; padding: calc(0.75rem - 1px) calc(0.85rem - 1px); }
.rec-alcance input { margin-top: 0.2rem; accent-color: #2a5bd7; }
.rec-alcance-ico { font-size: 1.2rem; line-height: 1.2; }
.rec-alcance strong { display: block; font-size: 0.92rem; color: #1b2436; }
.rec-alcance small { display: block; color: #6b7280; font-size: 0.8rem; margin-top: 0.15rem; }
.rec-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.6rem; border: 1px solid #e3e7ee; border-radius: 10px; background: #fafbfd; }
.rec-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.rec-chip input { accent-color: #2a5bd7; margin: 0; }
.rec-chip-vencido { background: #fdecec; color: #b91c1c; border-color: #f5c2c2; }
.rec-chip-proximo { background: #fff7e0; color: #8a6400; border-color: #f3dc9a; }
.rec-chip-proceso { background: #e8f1fd; color: #1d5fb8; border-color: #bcd5f5; }
.rec-chip-listo { background: #f1ebfd; color: #6d28d9; border-color: #d6c6f7; }
.rec-chip-cumplido { background: #e8f7ee; color: #15803d; border-color: #bfe5cc; }
.rec-multis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.6rem; }
@media (max-width: 600px) { .rec-multis { grid-template-columns: 1fr; } }
.rec-multi { position: relative; border: 1px solid #d5dae2; border-radius: 8px; background: #fff; }
.rec-multi summary { list-style: none; display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.7rem; cursor: pointer; font-size: 0.85rem; }
.rec-multi summary::-webkit-details-marker { display: none; }
.rec-multi summary::after { content: "\25BE"; color: #8a919c; }
.rec-multi-tit { font-weight: 700; color: #52514e; }
.rec-multi-val { margin-left: auto; color: #1b2436; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-multi-lista { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow: auto; background: #fff; border: 1px solid #d5dae2; border-radius: 8px; box-shadow: 0 6px 18px rgba(27, 36, 54, 0.14); padding: 0.35rem; }
.rec-multi-op { display: flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.45rem; border-radius: 6px; font-size: 0.84rem; cursor: pointer; }
.rec-multi-op:hover { background: #f4f6f9; }
.rec-multi-op input { accent-color: #2a5bd7; }
.rec-multi-todos { font-weight: 700; border-bottom: 1px solid #eef0f3; margin-bottom: 0.2rem; }
.rec-config { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 700px) { .rec-config { grid-template-columns: 1fr; } }
.rec-config-der { border-left: 1px solid #eef0f3; padding-left: 1rem; }
@media (max-width: 700px) { .rec-config-der { border-left: 0; padding-left: 0; } }
.rec-et { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.65rem; font-size: 0.8rem; font-weight: 700; color: #52514e; }
.rec-et small { font-weight: 400; color: #8a919c; }
.rec-et input, .rec-et textarea, .rec-et select, .rec-prog-fila input { font: inherit; font-weight: 400; font-size: 0.88rem; padding: 0.45rem 0.6rem; border: 1px solid #d5dae2; border-radius: 6px; color: #1b2436; background: #fff; min-width: 0; }
.rec-et textarea { resize: vertical; }
.rec-et input:focus, .rec-et textarea:focus, .rec-et select:focus, .rec-prog-fila input:focus { outline: 2px solid #9db8ee; border-color: #2a5bd7; }
.rec-switch { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.35rem 0; font-size: 0.86rem; color: #1b2436; cursor: pointer; }
.rec-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rec-switch i { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #cfd5df; transition: background 0.15s; }
.rec-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: left 0.15s; }
.rec-switch input:checked + i { background: #2a5bd7; }
.rec-switch input:checked + i::after { left: 19px; }
.rec-switch input:focus-visible + i { outline: 2px solid #9db8ee; outline-offset: 2px; }
.rec-prog { margin: 0.3rem 0 0.6rem; }
.rec-prog.oculto { display: none; }
.rec-prog-fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 0.5rem; margin-bottom: 0.5rem; }
.rec-nota { margin: 0.3rem 0 0; padding: 0.45rem 0.6rem; border-radius: 6px; background: #fff7e6; color: #7a4b00; font-size: 0.78rem; }
.rec-nota-liga { margin: 0 0 0.4rem; font-size: 0.78rem; color: #6b7280; }
.rec-resumen { margin: 0.9rem 0 0.3rem; padding: 0.55rem 0.7rem; border-radius: 8px; background: #f2f6fd; color: #1b2436; font-size: 0.86rem; }
.rec-aviso { color: #b45309; }
.rec-msg:empty { display: none; }
.rec-acciones { display: flex; justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap; padding-top: 0.8rem; margin-top: 0.6rem; border-top: 1px solid #eef0f3; }
.rec-btn { font: inherit; font-weight: 700; font-size: 0.9rem; padding: 0.55rem 1.1rem; border: 1px solid #2a5bd7; border-radius: 8px; background: #2a5bd7; color: #fff; cursor: pointer; }
.rec-btn:hover { background: #2249b0; }
.rec-btn:disabled { opacity: 0.6; cursor: default; }
.rec-btn-sec { font: inherit; font-weight: 600; font-size: 0.9rem; padding: 0.55rem 1.1rem; border: 1px solid #d5dae2; border-radius: 8px; background: #fff; color: #1b2436; cursor: pointer; }
.rec-btn-sec:hover { background: #f4f6f9; }
.rec-der.cargando { opacity: 0.6; }
.rec-der-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.rec-der-cab h4 { margin: 0; font-size: 1rem; color: #1b2436; }
.rec-pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.rec-pill-modo { background: #e8eefb; color: #2a5bd7; }
.rec-pill-ok { background: #e8f7ee; color: #15803d; }
.rec-pill-pend { background: #fff7e0; color: #8a6400; }
.rec-pill-err { background: #fdecec; color: #b91c1c; }
.rec-ver { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.82rem; font-weight: 700; color: #52514e; }
.rec-ver select { font: inherit; font-weight: 400; font-size: 0.85rem; padding: 0.3rem 0.5rem; border: 1px solid #d5dae2; border-radius: 6px; min-width: 0; flex: 1; }
.rec-meta { font-size: 0.8rem; color: #1b2436; background: #fafbfd; border: 1px solid #eef0f3; border-radius: 8px; padding: 0.45rem 0.65rem; margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.rec-meta span { display: inline-block; min-width: 3.6rem; color: #8a919c; }
.rec-correo { border: 1px solid #e3e7ee; border-radius: 8px; overflow: auto; max-height: 72vh; }
.rec-prog-card { border: 1px solid #e3e7ee; border-radius: 10px; padding: 0.9rem 1rem; background: #fff; }
.rec-prog-cab { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.rec-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0.8rem 0 0; font-size: 0.86rem; }
.rec-dl dt { color: #8a919c; }
.rec-dl dd { margin: 0; color: #1b2436; overflow-wrap: anywhere; }
.rec-hist-wrap { overflow-x: auto; }
.rec-hist { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.rec-hist th { text-align: left; background: #f4f6f9; color: #52606f; padding: 0.5rem; border-bottom: 1px solid #e3e7ee; white-space: nowrap; }
.rec-hist td { padding: 0.5rem; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.rec-hist .num { text-align: right; }
.rec-hist-det summary { cursor: pointer; color: #2a5bd7; }
.rec-hist-det div { margin-top: 0.35rem; font-size: 0.8rem; color: #52606f; overflow-wrap: anywhere; }
.rec-multi-buscar { position: sticky; top: -0.35rem; z-index: 1; display: block; width: 100%; box-sizing: border-box; margin: -0.35rem 0 0.3rem; padding: 0.45rem 0.6rem; border: 0; border-bottom: 1px solid #e3e7ee; border-radius: 8px 8px 0 0; background: #fff; font: inherit; font-size: 0.85rem; color: #1b2436; }
.rec-multi-buscar:focus { outline: 2px solid #9db8ee; outline-offset: -2px; }
.rec-multi-op[hidden], .rec-multi-vacio[hidden] { display: none; }
.rec-multi-vacio { margin: 0.4rem 0.45rem; font-size: 0.82rem; color: #8a919c; }
.rec-multi[hidden] { display: none; }
.rec-multi-fijo { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.7rem; font-size: 0.85rem; background: #f4f6f9; color: #6b7280; cursor: default; }
.rec-error { display: block; margin-top: 0.35rem; color: #b91c1c; font-weight: 700; }
.rec-resumen.rec-resumen-error { background: #fdecec; border: 1px solid #f5c2c2; }
.rec-et input.rec-invalido { border-color: #dc2626; background: #fff5f5; }
.rec-msg .update-fail { padding: 0.55rem 0.7rem; border-radius: 8px; background: #fdecec; border: 1px solid #f5c2c2; font-weight: 600; }

/* Update › Vista de datos: botones Top 10 / Traer todos */
.update-vista-acciones { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.update-vista-acciones .update-visualizar-btn { margin: 0; }

/* Popup Consumo de horas: detalle por persona (colapsado) */
.ch-det { margin-top: 0.9rem; border-top: 1px solid #eef0f3; padding-top: 0.6rem; }
.ch-det-link { font: inherit; font-size: 0.85rem; font-weight: 700; color: #2a5bd7; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.ch-det-sub { margin-left: 0.6rem; font-size: 0.78rem; color: #6b7280; }
.ch-det-cuerpo { margin-top: 0.6rem; }
.ch-det-wrap { max-height: 340px; overflow: auto; border: 1px solid #e3e7ee; border-radius: 8px; }
.ch-det-tabla { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.ch-det-tabla th { position: sticky; top: 0; background: #f7f8fa; text-align: left; padding: 0.5rem 0.6rem; font-weight: 700; color: #1b2436; border-bottom: 1px solid #e3e7ee; white-space: nowrap; }
.ch-det-tabla td { padding: 0.55rem 0.6rem; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.ch-det-tabla .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-det-tabla td strong { display: block; color: #1b2436; }
.ch-det-tabla td small { display: block; color: #6b7280; font-size: 0.76rem; }
.ch-det-tabla tfoot td { font-weight: 700; background: #f7f8fa; position: sticky; bottom: 0; }
.ch-sin-cruce { color: #b45309 !important; font-style: italic; }
.ch-dif-neg { color: #b91c1c; font-weight: 700; }
.ch-dif-pos { color: #1d4ed8; font-weight: 700; }
.ch-dif-ok { color: #6b7280; }
.ch-pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; color: #fff; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.ch-accion { min-width: 220px; color: #1b2436; }
.ch-nd { color: #9aa1ac; }

/* Update › Finanzas: inconsistencias del archivo y verificación de la carga */
.fin-incons { border: 1px solid #f3d38a; background: #fffbeb; border-radius: 8px; padding: 0.6rem 0.9rem; margin: 0.5rem 0; font-size: 0.85rem; }
.fin-incons.fin-incons-grave { border-color: #f1b0b0; background: #fff5f5; }
.fin-incons ul { margin: 0.3rem 0 0.4rem 1.1rem; padding: 0; }
.fin-incons li { margin: 0.15rem 0; }
.fin-incons small { color: #6b7280; }
.fin-grave { color: #b91c1c; }
.fin-incons details summary { cursor: pointer; color: #2a5bd7; font-weight: 600; margin-top: 0.3rem; }
.fin-incons-tabla { font-size: 0.8rem; }
.fin-verif { margin: 0.2rem 0 0.4rem 1.1rem; padding: 0; font-size: 0.85rem; }

/* Cuenta sin acceso: pantalla "Solicitar acceso" */
body.auth-sin-acceso .layout,
body.auth-sin-acceso .mobile-topbar,
body.auth-sin-acceso .auth-splash { display: none; }
.auth-sin-acceso { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #f4f6fa; padding: 16px; z-index: 1000; overflow: auto; }
.auth-sa-caja { width: min(520px, 100%); background: #fff; border: 1px solid #e1e5ec; border-radius: 12px; padding: 1.6rem 1.6rem 1.3rem; box-shadow: 0 6px 24px rgba(27, 36, 54, 0.08); color: #1b2436; text-align: center; }
.auth-sa-caja h1 { margin: 0.4rem 0 0.8rem; font-size: 1.4rem; color: #1f3560; }
.auth-sa-caja p { margin: 0.35rem 0; font-size: 0.92rem; }
.auth-sa-sub { color: #52514e; }
.auth-sa-estado { margin: 0.7rem 0; text-align: left; }
.auth-sa-estado p { padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.86rem; }
.auth-sa-pend { background: #fff8e6; color: #8a5a00; }
.auth-sa-ok { background: #ecfdf3; color: #146c2e; }
.auth-sa-rech { background: #fff1f1; color: #b91c1c; }
.auth-sa-lbl { display: block; text-align: left; font-size: 0.8rem; font-weight: 700; color: #374151; margin-top: 0.6rem; }
.auth-sin-acceso textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.88rem; border: 1px solid #d6dae1; border-radius: 8px; padding: 0.5rem 0.6rem; margin-top: 0.25rem; resize: vertical; }
.auth-sa-botones { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.9rem; flex-wrap: wrap; }
.auth-sa-btn { font: inherit; font-weight: 700; font-size: 0.88rem; background: #2a5bd7; color: #fff; border: 0; border-radius: 8px; padding: 0.55rem 1.1rem; cursor: pointer; }
.auth-sa-btn:disabled { opacity: 0.6; cursor: default; }
.auth-sa-sec { background: #eef1f6; color: #1b2436; }

/* Administración › Solicitudes */
.admin-tab-badge { display: inline-block; min-width: 1.2em; padding: 0 0.35em; margin-left: 0.25rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1.4; }
.sol-tabla td { vertical-align: middle; }
.sol-tabla small { color: #6b7280; }
.sol-motivo { max-width: 260px; white-space: normal; }
.sol-comentario { width: 100%; min-width: 140px; font: inherit; font-size: 0.82rem; border: 1px solid #d6dae1; border-radius: 6px; padding: 0.3rem 0.45rem; }
.sol-acciones { white-space: nowrap; }
.sol-btn { font: inherit; font-size: 0.8rem; font-weight: 700; border: 0; border-radius: 6px; padding: 0.35rem 0.75rem; cursor: pointer; margin-right: 0.3rem; color: #fff; }
.sol-aprobar { background: #16a34a; }
.sol-rechazar { background: #dc2626; }
.sol-estatus { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #fff; }
.sol-ok { background: #16a34a; }
.sol-rech { background: #dc2626; }
