/* ===== DASHBOARD NOVO (versão refinada) ===== */

.dashboard-hero {
  background: linear-gradient(135deg, #0056a6, #0f9cf5);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
  color: #ffffff;
  /* sombra mais suave e elegante */
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

/* título + subtítulo */

.dashboard-hero-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.dashboard-hero-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.25rem;
}

.hero-date {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* card do usuário */

.hero-user-box {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  padding: 0.7rem 0.9rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
}

.hero-user-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.hero-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.hero-user-box .btn {
  font-size: 0.78rem;
  padding-inline: 0.9rem;
}

/* KPIs dentro do hero */

.dashboard-kpis {
  margin-top: 0.9rem;
}

/* garante que todos os KPIs tenham a mesma altura */
.dashboard-kpis > [class^="col-"],
.dashboard-kpis > [class*=" col-"] {
  display: flex;
}

.kpi-card-modern {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.95;
}

.kpi-card-header i {
  font-size: 1.1rem;
}

.kpi-card-value {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 0.25rem;
  line-height: 1.1;
}

.kpi-card-foot {
  font-size: 0.75rem;
  opacity: 0.9;
}

.kpi-card-modern.kpi-success {
  border-color: rgba(16, 185, 129, 0.6);
}

.kpi-card-modern.kpi-warning {
  border-color: rgba(245, 158, 11, 0.7);
}

.kpi-card-modern.kpi-info {
  border-color: rgba(59, 130, 246, 0.7);
}

/* ATALHOS EM BLOCOS */

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.quick-tile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  text-decoration: none;
  border: 1px solid #d3d9e4;
  background-color: #f9fafb;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

/* hover mais suave e clean */
.quick-tile:hover {
  background-color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.quick-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e5ebf3;
  font-size: 1.1rem;
  opacity: 0.95;
}

.quick-tile-content {
  display: flex;
  flex-direction: column;
}

.quick-tile-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.quick-tile-sub {
  font-size: 0.78rem;
  color: #6b7280;
}

/* variações dos tiles */

.quick-tile.primary .quick-tile-icon {
  background-color: #0d6efd1a;
  color: #0d6efd;
}

.quick-tile.info .quick-tile-icon {
  background-color: #0dcaf01a;
  color: #0dcaf0;
}

.quick-tile.success .quick-tile-icon {
  background-color: #1987541a;
  color: #198754;
}

.quick-tile.dark .quick-tile-icon {
  background-color: #1118271a;
  color: #111827;
}

/* CARD pequeno de folha */

.small-metric-card {
  border-radius: 0.9rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.small-metric-label {
  font-size: 0.8rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.small-metric-value {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.small-metric-sub {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Empty state */

.empty-state {
  text-align: center;
  padding: 2.2rem 0;
  color: #6b7280;
}

.empty-state-icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  color: #9ca3af;
}

.empty-state-icon.success {
  color: #16a34a;
}

/* ===== POLIMENTO DOS CARDS GERAIS (erp-card) ===== */

/* dá um relevo sutil em todos os cards do dashboard */
.erp-card {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  border-radius: 0.8rem;
}

/* aproxima título e conteúdo */
.erp-card .card-header {
  padding-top: 0.75rem;
}

.erp-card .card-body {
  padding-top: 0.7rem;
}

/* botão verde principal (se usar a classe extra no index.ejs) */
.btn-generate-payroll {
  font-weight: 600;
  border-radius: 999px;
  padding-block: 0.55rem;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.35);
}

.btn-generate-payroll:hover {
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.45);
  transform: translateY(-1px);
}

/* Responsivo */

@media (min-width: 768px) {
  .quick-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}


.kpi-card-modern {
  border: none !important;
  box-shadow:
    inset 0 0 6px rgba(0, 0, 0, 0.14),
    inset 0 0 4px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(5px);
}

/* ============================================================
   ESTILO GLOBAL PARA TODAS AS PÁGINAS — RH MULTI
   ============================================================ */

/* ----------- CONTAINER PADRÃO DA PÁGINA ----------- */

.erp-page {
  background: transparent;
  padding: 1rem 0 2rem;
}

.page-title {
  font-size: 1.45rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.page-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* Ícone ao lado do título */
.page-title i {
  font-size: 1.35rem;
  color: #0056a6;
}

/* ----------- CARDS UNIVERSAIS ----------- */

.erp-card {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #d5dce8;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  margin-bottom: 1rem;
}

.erp-card-header {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 0.3rem;
}

/* ----------- TABELAS ----------- */

.erp-table thead th {
  background: #f3f4f6;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #4b5563;
}

.erp-table tbody td {
  background: #ffffff;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Linhas com hover */

.erp-table tbody tr:hover td {
  background: #f9fafb;
}

/* ----------- BOTÕES ----------- */

.erp-btn {
  border-radius: 0.6rem !important;
  padding: 0.45rem 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.erp-btn i {
  font-size: 1rem;
}

/* versões */
.erp-btn-primary {
  background: #0056a6;
  color: #fff;
  border: none;
}

.erp-btn-primary:hover {
  background: #00498e;
}

.erp-btn-outline {
  background: transparent;
  border: 1px solid #bfc7d5;
  color: #374151;
}

.erp-btn-outline:hover {
  background: #f3f4f6;
}

/* ----------- FORMULÁRIOS ----------- */

.erp-form-group {
  margin-bottom: 1rem;
}

.erp-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
  display: block;
}

.erp-input {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  background: #ffffff;
}

.erp-input:focus {
  border-color: #0f9cf5;
  box-shadow: 0 0 0 3px rgba(15, 156, 245, 0.25);
}

/* ----------- ABAS (opcional para páginas grandes) ----------- */

.erp-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.erp-tab {
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  background: #f3f4f6;
  font-weight: 500;
  cursor: pointer;
  color: #374151;
}

.erp-tab.active {
  background: #0056a6;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 86, 166, 0.25);
}

body {
  padding-top: 70px;
}
