.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-topbar-item {
  border: 1px solid var(--theme-gray-200);
  background: var(--theme-white);
  color: var(--theme-gray-600);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.dashboard-topbar-item--active {
  background: var(--theme-black);
  border-color: var(--theme-black);
  color: var(--theme-gray-50);
}

.dashboard-topbar-user {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--theme-gray-500);
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--theme-gray-500);
}

.dashboard-eyebrow-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: var(--theme-white);
  font-size: 11px;
}

.dashboard-primary-button {
  padding-inline: 18px;
}

.dashboard-user {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--theme-white);
  border: 1px solid var(--theme-gray-100);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stat cards: 2×2 grid (two columns); third card sits on row 2, col 1. */
.dashboard-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.dashboard-card {
  border-radius: 8px;
  padding: 14px 16px 12px;
  background: var(--theme-white);
  color: var(--theme-black);
  border: 1px solid var(--theme-gray-100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.dashboard-card--green {
  background: #189e52;
  border-color: #158a48;
  color: #ffffff;
}

.dashboard-card--blue {
  background: #1879bd;
  border-color: #1569a8;
  color: #ffffff;
}

.dashboard-card--amber {
  background: #f36f2a;
  border-color: #e55a1f;
  color: #ffffff;
}

.dashboard-card--gray {
  background: var(--theme-white);
}

.dashboard-card--green .dashboard-card-label,
.dashboard-card--green .dashboard-card-footer,
.dashboard-card--blue .dashboard-card-label,
.dashboard-card--blue .dashboard-card-footer,
.dashboard-card--amber .dashboard-card-label,
.dashboard-card--amber .dashboard-card-footer {
  color: inherit;
  opacity: 0.9;
}

.dashboard-card--clickable {
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.dashboard-card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.dashboard-card--clickable:focus-visible {
  outline: 2px solid var(--theme-black);
  outline-offset: 2px;
}

.dashboard-card-count {
  font-size: 33px;
  font-weight: 700;
}

.dashboard-card-count--sm {
  font-size: 19px;
}

.dashboard-card-label {
  margin-bottom: 2px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dashboard-card-footer {
  align-self: flex-end;
  font-size: 12px;
  opacity: 0.9;
}

/* Recent activity — full width below the stat grid */
.dashboard-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.dashboard-column {
  min-width: 0;
}

.dashboard-table {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-table-header,
.dashboard-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr minmax(88px, 0.95fr);
  gap: 8px;
  font-size: 12px;
}

.dashboard-table-header {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--theme-gray-100);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-gray-700);
  font-weight: 700;
}

.dashboard-table-row {
  padding: 4px 0;
  align-items: center;
}

.dashboard-table-row span:first-child {
  font-size: 13px;
  color: var(--theme-black);
  /* color: #ffffff; */
}

.user-dash-report-btn {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.user-dash-report-btn:hover {
  background: #dbeafe;
}

.user-dash-report-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.user-dash-report-muted {
  color: var(--theme-gray-400);
  font-size: 12px;
}

.dashboard-risk-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-risk-card {
  padding: 6px 7px;
  border-radius: 10px;
  border: 1px solid var(--theme-gray-100);
  background: var(--theme-gray-50);
  font-size: 11px;
  color: var(--theme-gray-600);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dashboard-risk-card--accent {
  border-color: var(--theme-black);
  background: var(--theme-white);
}

.dashboard-risk-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.dashboard-risk-status {
  font-size: 11px;
  color: var(--theme-black);
}

@media (max-width: 900px) {
  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .dashboard-topbar-nav {
    flex-wrap: wrap;
  }
}
