/*
 * ClimaValid 1.7.367
 * Acceso contextual a indicadores ejecutivos desde el saludo de Inicio.
 * No modifica permisos, fuentes de datos ni flujos GxP.
 */

body.is-authenticated.workspace-home {
  --cv-home-stack-gap: 24px;
}

body.is-authenticated.workspace-home .app-shell {
  row-gap: var(--cv-home-stack-gap);
}

body.is-authenticated.workspace-home .topbar {
  margin-bottom: 0;
}

body.is-authenticated.workspace-home .home-workspace {
  gap: var(--cv-home-stack-gap) !important;
  padding-top: 0;
}

body.is-authenticated.workspace-home .home-welcome-card {
  justify-content: space-between;
  gap: 24px;
}

body.is-authenticated.workspace-home .home-welcome-brand {
  flex: 1 1 auto;
  min-width: 0;
}

body.is-authenticated.workspace-home .home-indicators-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 10px;
  border: 1px solid #b8cbd4;
  border-radius: 10px;
  background: #ffffff;
  color: #173a55;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  transition:
    color 150ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 150ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 150ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}

body.is-authenticated.workspace-home .home-indicators-toggle-icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #087f79;
}

body.is-authenticated.workspace-home .home-indicators-toggle-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-authenticated.workspace-home .home-indicators-attention-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff0ef;
  color: #b83c35;
  font-size: 0.7rem;
  font-weight: 900;
}

body.is-authenticated.workspace-home .home-indicators-toggle-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #536b7c;
  font-size: 1rem;
  font-weight: 700;
}

body.is-authenticated.workspace-home .home-indicators-toggle.is-expanded {
  border-color: #80c8c1;
  background: #f5fbfa;
  color: #0b2236;
}

@media (hover: hover) and (pointer: fine) {
  body.is-authenticated.workspace-home
    .home-indicators-toggle:hover:not(:disabled) {
    border-color: #80c8c1;
    background: #f5fbfa;
    color: #0b2236;
  }
}

body.is-authenticated.workspace-home
  .home-indicators-toggle:focus-visible {
  outline: 3px solid rgba(11, 155, 147, 0.24);
  outline-offset: 2px;
}

body.is-authenticated.workspace-home
  .home-indicators-toggle:active:not(:disabled) {
  transform: scale(0.98);
}

body.is-authenticated.workspace-home
  #executiveDashboardSection.executive-dashboard-summary-panel {
  width: min(100%, var(--cv-home-greeting-max, 1540px));
  max-width: var(--cv-home-greeting-max, 1540px);
  min-width: 0;
  margin: -16px auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c9d8df;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

body.is-authenticated.workspace-home
  #executiveDashboardSection.executive-dashboard-summary-panel.is-collapsed {
  display: none;
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  .executive-dashboard-summary-body {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  background: #ffffff;
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  .executive-dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dfe9ed;
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  .executive-dashboard-panel-head h3 {
  margin: 0;
  color: #173a55;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.016em;
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  .executive-dashboard-panel-head p {
  margin: 4px 0 0;
  color: #536b7c;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  .executive-dashboard-summary-actions {
  position: static;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  .executive-dashboard-summary-actions
  .home-action-pill {
  min-width: 0;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 150ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 150ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 150ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  #executiveDashboardRefresh {
  min-width: 100px;
  border-color: #b8cbd4;
  background: #ffffff;
  color: #173a55;
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  #executiveDashboardOpenPlan {
  min-width: 120px;
  border-color: #0757a8;
  background: #0757a8;
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  body.is-authenticated.workspace-home
    #executiveDashboardSection
    #executiveDashboardRefresh:hover:not(:disabled) {
    border-color: #7890a0;
    background: #f5f8fa;
    color: #0b2236;
  }

  body.is-authenticated.workspace-home
    #executiveDashboardSection
    #executiveDashboardOpenPlan:hover:not(:disabled) {
    border-color: #064a8e;
    background: #064a8e;
    color: #ffffff;
  }
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  .executive-dashboard-summary-actions
  .home-action-pill:focus-visible {
  outline: 3px solid rgba(11, 155, 147, 0.24);
  outline-offset: 2px;
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  .executive-dashboard-summary-actions
  .home-action-pill:active:not(:disabled) {
  transform: scale(0.98);
}

body.is-authenticated.workspace-home
  #executiveDashboardSection
  #executiveDashboardBody[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  body.is-authenticated.workspace-home .home-welcome-card {
    align-items: stretch;
  }

  body.is-authenticated.workspace-home .home-indicators-toggle {
    width: 100%;
  }

  body.is-authenticated.workspace-home
    #executiveDashboardSection.executive-dashboard-summary-panel {
    margin-top: -14px;
    border-radius: 12px;
  }

  body.is-authenticated.workspace-home
    #executiveDashboardSection
    .executive-dashboard-summary-body {
    padding: 14px;
  }

  body.is-authenticated.workspace-home
    #executiveDashboardSection
    .executive-dashboard-panel-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  body.is-authenticated.workspace-home
    #executiveDashboardSection
    .executive-dashboard-summary-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-authenticated.workspace-home
    #executiveDashboardSection
    .executive-dashboard-summary-actions
    .home-action-pill {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-authenticated.workspace-home .home-indicators-toggle,
  body.is-authenticated.workspace-home
    #executiveDashboardSection
    .executive-dashboard-summary-actions
    .home-action-pill {
    transition-duration: 0.01ms;
  }
}
