/* ──────── Cards ──────── */

.card {
  background: var(--bfc-surface);
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--bfc-line);
}
.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--bfc-navy);
  margin: 0;
}
.card-body { padding: 22px; }
.card-body.flush { padding: 0; }

/* ──────── KPI metric strip ──────── */

/* One segmented card with internal dividers, per the DakotAlert metric
   strip; each segment stays a clickable report launcher. */
.metric-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--bfc-surface);
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 18px;
}
.kpi {
  flex: 1 1 auto;
  min-width: 160px;
  background: none;
  border: 0;
  border-left: 1px solid var(--bfc-line);
  padding: 12px 18px;
  text-align: left;
  font: inherit;
  transition: background 0.15s ease;
}
.kpi:first-child { border-left: none; }
/* Interactivity cues (pointer + hover highlight) belong only on KPIs that
   actually do something. Those are rendered as <button class="kpi"> (productivity,
   inventory, receiving, staging) and carry click handlers. Static
   <div class="kpi"> stat tiles (deliver, routes, heatmap) must NOT show a pointer
   or hover state, so they don't imply a click that does nothing. */
button.kpi, a.kpi { cursor: pointer; }
button.kpi:hover, a.kpi:hover { background: var(--bfc-soft); }
.kpi:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(35, 177, 165, 0.18); }
.kpi.active { background: rgba(63, 83, 216, 0.06); box-shadow: inset 0 -3px 0 var(--bfc-indigo); }
.kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bfc-muted);
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bfc-navy);
  margin-top: 6px;
  line-height: 1.1;
}
.kpi-value.danger { color: var(--bfc-danger-text); }
.kpi-value.warn { color: var(--bfc-warn-text); }
.kpi-value.good { color: var(--bfc-success-text); }
.kpi-hint { font-size: 12px; color: var(--bfc-muted); margin-top: 6px; }
.kpi-unit { font-size: 14px; font-weight: 600; color: var(--bfc-muted); }
.prod-daterange { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bfc-muted); }
.prod-daterange input[type="date"] {
  font: inherit; font-family: var(--font-sans); color: var(--bfc-navy); padding: 7px 9px;
  border: 1px solid var(--bfc-line); border-radius: 8px; background: var(--bfc-surface);
}
