/* ==========================================================================
   dashboard.css — time inputs, figures, progress bar, over-budget banner
   ========================================================================== */

/* ========================================================= time inputs === */
.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* .input-lg lives in forms.css — it has to come after the .input base. */

.time-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .time-grid { grid-template-columns: 1fr 1fr; }
  .time-grid .field:last-child { grid-column: 1 / -1; }
}

/* ================================================ over-budget banner ==== */
.banner-over {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  margin-top: 16px;
  border-radius: var(--radius);
  background: var(--critical-wash);
  color: var(--critical);
  font-size: 12.5px;
  line-height: 1.5;
  animation: note-in 180ms var(--ease);
}
.banner-over svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.banner-over strong { font-weight: 700; }

@keyframes note-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================ figures === */
/* Read-outs, not cards — the cards are the panels around them. */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--border);
}

.stat { min-width: 0; }

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-top: 5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-value .unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 2px;
}

.stat.warn .stat-value { color: var(--caution); }
.stat.over .stat-value { color: var(--critical); }

/* Three figures across a phone need to shrink to stay on one line each. */
@media (max-width: 460px) {
  .stats { gap: 8px; }
  .stat-label { font-size: 10px; letter-spacing: .02em; }
  .stat-value { font-size: 16px; }
  .stat-value .unit { font-size: 11px; margin-left: 1px; }
}

/* ======================================================= progress bar === */
.progress-track {
  position: relative;
  height: 8px;
  background: var(--surface-alt);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width 400ms var(--ease), background-color 200ms var(--ease);
}

.progress-track.warn .progress-fill { background: var(--caution); }
.progress-track.over .progress-fill { background: var(--critical); }
