/* =========================================================
   dashboard_v2.css
   ========================================================= */

.dashboard-page {
  width: 100%;
}

/* ---------------------------------------------------------
   Header (greeting + CTAs)
--------------------------------------------------------- */

.dashboard-page .cta-buttons {
  min-width: 0;
  width: auto;
  padding-top: 0.75rem;
}

.dashboard-page .cta-buttons .tab {
  padding: 0 1.25rem;
}

.dashboard-parent {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 24px;
}

.dashboard-content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hi-dashboard {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
}

.dashboard-teams-l-container {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   Stats grid — 3-column, 2-row, 6 cards
--------------------------------------------------------- */

.frame-container.dashboard-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-row.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---------------------------------------------------------
   Status cards
--------------------------------------------------------- */

.total-requests-parent {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: #030d37;
  transition: background 0.15s ease;
  border: 1px solid #e5e7eb;
  min-height: 160px;
}

.total-requests-parent:hover {
  background-color: #f0f2ff;
}

/* ---------------------------------------------------------
   Card typography
--------------------------------------------------------- */

.total-requests,
.approved {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.65;
}

.div-total {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  line-height: 1;
  color: #1e3d8f;
}

.parent {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.div-req-count {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
}

.div-req-percent {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 0.8125rem;
  opacity: 0.6;
}

/* ---------------------------------------------------------
   Status cards — coloured gradient (colour set inline from DB)
--------------------------------------------------------- */

.stat-card {
  color: #ffffff;
}

.stat-card .approved {
  color: rgba(255, 255, 255, 0.75);
  opacity: 1;
}

.stat-card .div-req-count {
  color: #ffffff;
}

.stat-card .div-req-percent {
  color: rgba(255, 255, 255, 0.65);
}

.stat-card:hover {
  filter: brightness(1.1);
  background-color: unset;
}

/* ---------------------------------------------------------
   Total card — dark hero + logo watermark
--------------------------------------------------------- */

.total-card .total-requests {
  opacity: 0.55;
  text-transform: none;
  letter-spacing: 0;
}


/* ---------------------------------------------------------
   Responsive tweaks
--------------------------------------------------------- */

@media (max-width: 1200px) {
  .stats-row.stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-parent {
    flex-direction: column;
  }

  .cta-buttons {
    width: 100%;
    min-width: 0;
  }

  .frame-group {
    padding: 24px;
  }

  .stats-row.stats-grid {
    grid-template-columns: 1fr;
  }
}
