/* Dashboard KPI card grid (Negocios, Colaboradores, Productos, Ventas,
   Cuentas por Cobrar, Reportes) — shared by backend and frontend, rendered
   by common\widgets\DashboardCardsWidget. */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #ffffff;
  border: var(--bs-card-border-width, 1px) solid var(--bs-card-border-color, rgba(0, 0, 0, 0.08));
  border-radius: var(--bs-card-border-radius, 0.7rem);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
  text-decoration: none;
}

.dashboard-card-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  font-size: 1.5rem;
  color: #ffffff;
}

.dashboard-card-body {
  min-width: 0;
}

.dashboard-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bs-heading-color, #25396f);
  margin: 0;
  line-height: 1.2;
}

.dashboard-card-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bs-heading-color, #25396f);
  margin: 0.15rem 0 0;
}

.dashboard-card-value + .dashboard-card-label {
  font-weight: 600;
  color: var(--bs-secondary-color, rgba(96, 112, 128, 0.85));
}

.dashboard-card-desc {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, rgba(96, 112, 128, 0.75));
  margin: 0.15rem 0 0;
}

.dashboard-card-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
}

.dashboard-card--teal .dashboard-card-icon,
.dashboard-card--teal .dashboard-card-bar {
  background: #0a7e78;
}

.dashboard-card--blue .dashboard-card-icon,
.dashboard-card--blue .dashboard-card-bar {
  background: #2f80ed;
}

.dashboard-card--purple .dashboard-card-icon,
.dashboard-card--purple .dashboard-card-bar {
  background: #7c6fef;
}

.dashboard-card--green .dashboard-card-icon,
.dashboard-card--green .dashboard-card-bar {
  background: #12b76a;
}

.dashboard-card--amber .dashboard-card-icon,
.dashboard-card--amber .dashboard-card-bar {
  background: #f59e0b;
}

.dashboard-card--slate .dashboard-card-icon,
.dashboard-card--slate .dashboard-card-bar {
  background: #667085;
}
