/* ===== DASHBOARD (cards + tabela) ===== */
.card-resumo {
  border-radius: 0.9rem;
  border: 1px solid #e1f1e7;
  background: linear-gradient(135deg, #f7fffb, #e6f9f0);
}

.card-resumo .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-resumo .label-fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;     
  padding: 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-resumo .value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.table-dashboard thead {
  background-color: #f3faf6;
}

.table-dashboard thead th {
  border-bottom: 1px solid #dbeee2;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #40785b;
}

.table-dashboard tbody td {
  font-size: 0.86rem;
}

.badge-status {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
}

/* Cores por status */
.badge-status-pendente {
  background-color: #fff4cc;
  color: #9f6b00;
}

.badge-status-aprovado {
  background-color: #d9fbe5;
  color: #0c7f47;
}

.badge-status-concluido {
  background-color: #d1e7ff;
  color: #0b5ed7;
}

.badge-status-outro {
  background-color: #f5f5f5;
  color: #6c757d;
}

/* Cards clicáveis do resumo */
.card-resumo-click {
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.card-resumo-click:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.06);
}

.card-resumo-click.active {
  box-shadow: 0 0 0 2px rgba(0, 128, 0, 0.25);
  border-color: #198754;
}


#cards-resumo .card-resumo {
  height: 100%;
}

#cards-resumo .col-6.col-lg {
  display: flex;
}

#cards-resumo .col-6.col-lg > .card {
  width: 100%;
}

/* Ajustes dashboard para telas pequenas (smartphone) */
@media (max-width: 576px) {
  /* Cards: 2 por linha já com col-6, só afinar um pouco a fonte */
  #cards-resumo .label-fixed {
    font-size: 0.65rem;
    min-height: 2.2rem;
  }

  #cards-resumo .value {
    font-size: 1.4rem;
  }

  /* Tabela mais compacta no celular */
  .table-dashboard th,
  .table-dashboard td {
    font-size: 0.7rem;
    white-space: nowrap;
  }
}
