/* =========================================================
   dashboard_v2.css
   Dashboard layout (refactored, responsive, no hard widths)
   - Keeps your existing class names
   - Row 1 (Total Requests) is SAME width as one tile in Row 2
   ========================================================= */

/* ---------------------------------------------------------
   Page wrapper
--------------------------------------------------------- */

.dashboard-page {
  width: 100%;
}

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

.dashboard-parent {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #3f4766;
}

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

.hi-dashboard {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 300;
}

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

/* ---------------------------------------------------------
   Stats area
   Row 1: Total Requests (1 tile width)
   Row 2: Status cards grid
--------------------------------------------------------- */

.frame-container.dashboard-stats {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Both rows use the SAME 4-col grid so widths match */
.dashboard-stats > .stats-row:first-child,
.dashboard-stats > .stats-row:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Total Requests occupies exactly one column (same as a tile below) */
.dashboard-stats > .stats-row:first-child .total-requests-parent {
  grid-column: span 1;
}

/* ---------------------------------------------------------
   Cards
--------------------------------------------------------- */

.total-requests-parent {
  background-color: #ffffff;
  border-radius: 0 24px 0 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: #030d37;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}

.total-requests-parent:hover {
  background-color: var(--dl-lav);
}

/* Keep heights feeling similar to the Figma blocks */
.dashboard-stats > .stats-row:first-child .total-requests-parent {
  min-height: 180px;
}

.dashboard-stats > .stats-row:nth-child(2) .total-requests-parent {
  min-height: 180px;
}

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

.total-requests,
.approved {
  font-size: 18px;
  font-weight: 600;
}

.div-total {
  font-size: clamp(56px, 6vw, 72px);
  font-weight: 600;
}

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

.div-req-count {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
}

.div-req-percent {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 16px;
  opacity: 0.7;
}

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

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

  /* Total tile still only one tile wide */
  .dashboard-stats > .stats-row:first-child .total-requests-parent {
    grid-column: span 1;
  }
}

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

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

  .frame-group {
    padding: 24px;
  }

  .dashboard-stats > .stats-row:first-child,
  .dashboard-stats > .stats-row:nth-child(2) {
    grid-template-columns: 1fr;
  }

  .dashboard-stats > .stats-row:first-child .total-requests-parent {
    grid-column: span 1;
  }
}
