/* ===============================================
   REPORTS — Landing Page Cards
=============================================== */
.report-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.report-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.report-card:hover {
  border-color: var(--brass);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.report-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.report-card-body {
  flex: 1;
  min-width: 0;
}
.report-card-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 3px;
}
/* A live count on the one card that has one. The title names the work; this
   says how much of it is waiting. */
.report-card-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brass-lo);
}
.report-card-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}
.report-card-arrow {
  color: var(--text-3);
  font-size: 12px;
  flex-shrink: 0;
  transition: color 0.12s;
}
.report-card:hover .report-card-arrow {
  color: var(--brass-lo);
}

/* ===============================================
   REPORTS — Filter Bar
=============================================== */
.report-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
}

.salesperson-audit { padding-bottom: 16px; }
.salesperson-audit__head { position: sticky; top: 0; z-index: 3; }
.salesperson-audit__picker { display: flex; align-items: center; gap: 7px; }
.salesperson-audit__picker .form-control { width: 240px; min-height: 36px; }
.salesperson-audit > .detail-card { margin-left: 16px; margin-right: 16px; }
.salesperson-audit > div[style*="display:grid"] { margin-left: 16px; margin-right: 16px; }

@media (max-width: 760px) {
  .salesperson-audit__head { position: static; }
  .salesperson-audit__picker { align-items: stretch; width: 100%; }
  .salesperson-audit__picker .form-control { width: 100%; }
}
.report-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.report-filter-group label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.report-filter-presets {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

/* ===============================================
   REPORTS — KPI Grid (Financial Summary)
=============================================== */
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

/* ===============================================
   RESPONSIVE
   (Only overrides classes defined above in this
   same file — Propshaft safe)
=============================================== */
@media (max-width: 1024px) {
  .report-cards-grid {
    grid-template-columns: 1fr;
  }
  .report-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .report-filter-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  .report-filter-group .form-control {
    width: 100% !important;
  }
  .report-kpi-grid {
    grid-template-columns: 1fr;
  }
  .report-filter-presets {
    width: 100%;
  }
  .report-filter-presets .btn-ghost-sm {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 11px;
    padding: 6px 8px;
  }
}
/* Report destinations share location and purpose; each report keeps only the
   filters and evidence specific to its question. */
.report-workspace-head { margin-bottom: 12px; }
.report-workspace-head .workspace-ledger__head { min-height: 68px; }
.report-workspace-head:has(+ .report-filter-bar),
.report-workspace-head:has(+ .report-toolbar) {
  margin-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.report-workspace-head + .report-filter-bar,
.report-workspace-head + form.report-filter-bar,
.report-workspace-head + .report-toolbar {
  margin-top: 0;
  margin-bottom: 12px !important;
  padding: 11px 16px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
}
.report-workspace-head ~ .empty {
  min-height: 240px;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
}
