#resumo-carteira .card,
.dashboard-link-card .card {
  min-height: 138px;
}

.dashboard-link-card .text-xs {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

#dashboardEvolutionChart {
  min-height: 210px;
}

#resumo-valor-atual {
  color: #146e45;
}

#resumo-resultado.text-success,
#resumo-rentabilidade.text-success {
  color: #1b8f5a !important;
}

#resumo-resultado.text-danger,
#resumo-rentabilidade.text-danger {
  color: #ca4444 !important;
}

.card .card-body p {
  margin-bottom: 10px;
}

.vda-executive-dashboard {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.vda-exec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 12px;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  border: 1px solid var(--vda-border-light);
  border-radius: 10px;
  background: var(--vda-surface-0);
}

.vda-exec-kpi-grid > div {
  min-width: 0;
  max-width: 100%;
  padding: 0;
}

.vda-exec-kpi-grid > div:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--vda-border-light);
}

.vda-exec-kpi-card {
  display: block;
  height: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease;
}

.vda-exec-kpi-card:hover {
  background: rgba(15, 142, 90, 0.035);
  text-decoration: none;
}

.vda-exec-kpi-card:focus-visible {
  outline: 2px solid var(--noix-navy-lt);
  outline-offset: 2px;
}

.vda-exec-kpi-head {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 0;
}

.vda-exec-kpi-icon {
  display: none;
}

.vda-exec-kpi-title {
  color: var(--vda-text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
}

.vda-exec-kpi-value {
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--noix-navy);
}

.vda-exec-kpi-sub {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--vda-text-muted);
}

.vda-exec-kpi-success .vda-exec-kpi-value { color: var(--noix-green); }
.vda-exec-kpi-danger .vda-exec-kpi-value { color: var(--noix-red); }
.vda-exec-kpi-warning .vda-exec-kpi-value { color: #996a00; }

.vda-dashboard-page-header {
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 0 10px;
}

.vda-dashboard-page-header .h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.vda-exec-toolbar-row {
  gap: 10px;
  margin-bottom: 12px !important;
}

.vda-exec-toolbar-row h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.vda-exec-toolbar-row p {
  font-size: 0.88rem;
}

.vda-exec-toolbar {
  gap: 8px;
}

.vda-exec-chart-card {
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--vda-border-light);
  border-radius: 8px;
  background: var(--vda-surface-0);
  box-shadow: none;
}

.vda-exec-chart-card .card-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--vda-border-light);
  background: transparent;
  color: var(--vda-text);
}

.vda-exec-chart-card .card-body {
  padding: 8px 14px 12px;
}

.vda-exec-chart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--noix-green);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.vda-exec-chart-link:hover {
  color: var(--noix-navy);
  text-decoration: underline;
}

.vda-exec-alert-stack {
  display: flex;
  flex-direction: column;
}

.vda-exec-alert-panel {
  height: 100%;
  margin-bottom: 0;
  border: 1px solid var(--vda-border-light);
  border-radius: 8px;
  background: var(--vda-surface-0);
  box-shadow: none;
}

.vda-exec-alert-panel .card-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--vda-border-light);
  background: transparent;
  color: var(--vda-text);
  font-size: 0.94rem;
}

.vda-exec-alert-panel .card-body {
  padding: 0 14px 4px;
}

.vda-exec-alert {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--vda-border-light);
  border-radius: 0;
  background: transparent;
  min-height: 84px;
  padding: 9px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}

.vda-exec-alert:last-child {
  border-bottom: 0;
}

.vda-exec-alert-main {
  display: flex;
  align-items: center;
  gap: 9px;
}

.vda-exec-alert strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.vda-exec-alert-main > div {
  min-width: 0;
}

.vda-exec-alert p {
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--vda-text-muted);
}

.vda-exec-alert-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--vda-border);
  border-radius: 50%;
  background: var(--vda-primary-light);
  color: var(--vda-primary-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.vda-exec-alert-danger .vda-exec-alert-icon {
  border-color: var(--vda-danger-soft);
  background: var(--vda-danger-soft);
  color: var(--noix-red);
}

.vda-exec-alert-success .vda-exec-alert-icon {
  border-color: var(--vda-success-soft);
  background: var(--vda-success-soft);
  color: var(--noix-green);
}

.vda-exec-alert-warning .vda-exec-alert-icon {
  border-color: var(--vda-warning-soft);
  background: var(--vda-warning-soft);
  color: var(--vda-warning-text);
}

.vda-exec-alert .btn {
  width: auto;
  align-self: flex-start;
  margin-left: 42px;
  padding: 4px 0;
  margin-top: 0;
  border: 0;
  background: transparent;
  color: var(--noix-green);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  white-space: normal;
}

.vda-exec-alert .btn:hover {
  color: var(--noix-navy);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .vda-dashboard-page-header {
    display: block;
    margin-bottom: 10px;
    padding: 4px 0 9px;
  }

  .vda-dashboard-page-header .h2 {
    margin-bottom: 8px;
    font-size: 1.45rem;
  }

  .vda-dashboard-header-actions {
    gap: 8px;
  }

  .vda-dashboard-header-actions .btn {
    width: auto;
    flex: 1 1 0;
    margin-right: 0 !important;
    padding: 8px 6px;
    font-size: 0.78rem;
  }

  .vda-exec-toolbar-row {
    align-items: flex-start !important;
    gap: 8px;
  }

  .vda-exec-toolbar-row h3 {
    font-size: 1rem;
  }

  .vda-exec-toolbar-row p {
    font-size: 0.8rem;
  }

  .vda-exec-toolbar {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .vda-exec-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vda-exec-kpi-grid > div:not(:nth-child(4n + 1)) {
    border-left: 0;
  }

  .vda-exec-kpi-grid > div:nth-child(even) {
    border-left: 1px solid var(--vda-border-light);
  }

  .vda-exec-kpi-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--vda-border-light);
  }

  .vda-exec-toolbar > .btn,
  .vda-exec-toolbar .btn-group .btn {
    width: auto;
    padding: 6px 8px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .vda-exec-toolbar > .btn {
    margin-right: 0 !important;
  }

  .vda-exec-kpi-card {
    min-height: 94px;
    padding: 10px 11px;
  }

  .vda-exec-kpi-value {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
  }

  .vda-exec-kpi-title {
    font-size: 0.74rem;
  }

  .vda-exec-kpi-sub {
    font-size: 0.72rem;
  }

  .vda-exec-chart-card .card-header {
    align-items: flex-start !important;
    gap: 8px;
    padding: 12px;
    font-size: 0.88rem;
  }

  .vda-exec-chart-link {
    flex: 0 0 auto;
    font-size: 0.74rem;
  }

  .vda-exec-chart-card .card-body {
    padding: 8px 10px 12px;
  }

  #dashboardEvolutionChart {
    min-height: 190px;
  }

  .vda-exec-alert-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }

  .vda-exec-alert {
    border: 0;
    min-height: 150px;
    padding: 10px 8px;
    align-items: center;
    text-align: center;
  }

  .vda-exec-alert-main {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .vda-exec-alert-icon {
    margin-bottom: 6px;
  }

  .vda-exec-alert strong {
    font-size: 0.82rem;
  }

  .vda-exec-alert p {
    font-size: 0.75rem;
  }

  .vda-exec-alert .btn {
    align-self: center;
    margin-left: 0;
    margin-top: auto;
    font-size: 0.74rem;
  }
}

@media (max-width: 991.98px) {
  .vda-exec-chart-column {
    order: 2;
  }

  .vda-exec-alert-column {
    order: 1;
  }

  .vda-exec-alert-panel .card-header {
    padding: 0 0 8px;
    border: 0;
  }

  .vda-exec-alert-panel .card-body {
    padding: 0;
  }

  .vda-exec-alert-panel {
    border: 0;
    background: transparent;
  }
}
