/* Small custom layer on top of Pico.css. Keep this lean. */

:root {
  --pico-form-element-spacing-vertical: 0.5rem;
}

.narrow {
  max-width: 32rem;
  margin: 2rem auto;
}

/* Let the sign-out form sit inline in the nav without block spacing. */
.inline-form {
  display: inline;
  margin: 0;
}
.inline-form button {
  width: auto;
  margin: 0;
  padding: 0.25rem 0.75rem;
}

.brand {
  text-decoration: none;
}

/* Status badges (used by the needs list/detail in later phases). */
.badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-new { background: #fde68a; color: #713f12; }
.badge-acknowledged { background: #bfdbfe; color: #1e3a8a; }
.badge-in_progress { background: #ddd6fe; color: #4c1d95; }
.badge-resolved { background: #bbf7d0; color: #14532d; }
.badge-closed { background: #e5e7eb; color: #374151; }

.muted { color: var(--pico-muted-color); }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Honeypot field: kept in the DOM (bots fill it) but hidden from people. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.intro { white-space: pre-line; }
.error { color: var(--pico-del-color, #b3261e); }

/* Dashboard filter bar: lay the three selects out in a row on wider screens. */
.filters.grid {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  align-items: end;
  margin-bottom: 1rem;
}

/* Activity timeline */
.timeline { list-style: none; padding: 0; }
.timeline li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color);
}
.timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Scheduled-visit list */
.appt-list { list-style: none; padding: 0; }
.appt-list li {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color);
}
