/* Mobile table scroll */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Touch-friendly buttons */
button, .btn { min-height: 44px; }

/* Status badges */
.badge-hot     { background: #ef4444; color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; }
.badge-warm    { background: #f97316; color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; }
.badge-cold    { background: #3b82f6; color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; }
.badge-closing { background: #22c55e; color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; }
.badge-dead    { background: #6b7280; color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; }

/* HTMX loading indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: block; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pico-background-color);
  border-top: 1px solid var(--pico-muted-border-color);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 100;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  text-decoration: none;
  color: var(--pico-muted-color);
  gap: 2px;
  min-width: 44px;
}
.bottom-nav a.active { color: var(--pico-primary); }
.bottom-nav a svg { width: 22px; height: 22px; }

/* Nav badge (test food count) */
.nav-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: white;
  font-size: 0.55rem;
  padding: 1px 4px;
  border-radius: 8px;
  line-height: 1.4;
  min-width: 14px;
  text-align: center;
  pointer-events: none;
}

/* Page content padding above bottom nav */
main { padding-bottom: 70px; }

/* Amber highlight for unpaid rows */
.row-unpaid { background: #fef3c7 !important; }

/* Amber highlight for stale lead rows (7+ days no FU) */
.row-stale { background: #fff7ed !important; }

/* Dashboard cards */
.dash-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.dash-card-title {
  font-size: 0.9rem;
  color: #374151;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-badge {
  background: #7c3aed;
  color: white;
  font-size: 0.65rem;
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: auto;
}
.dash-more {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #7c3aed;
  margin-top: 8px;
  text-decoration: none;
}

/* Inline status select on leads list */
/* appearance:none + explicit sizing ensures it renders on mobile */
.status-select {
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
  min-width: 90px;
  max-width: 145px;
  display: inline-block;
  background: #e5e7eb !important;
  color: #374151 !important;
}
/* !important overrides Pico CSS custom property cascade on <select> */
.status-select.badge-hot     { background: #ef4444 !important; color: white !important; }
.status-select.badge-warm    { background: #f97316 !important; color: white !important; }
.status-select.badge-cold    { background: #3b82f6 !important; color: white !important; }
.status-select.badge-closing { background: #22c55e !important; color: white !important; }
.status-select.badge-dead    { background: #6b7280 !important; color: white !important; }

/* Copy-to-clipboard button */
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.8rem;
  min-height: unset;
  line-height: 1;
  color: var(--pico-muted-color);
  opacity: 0.6;
  vertical-align: middle;
}
.copy-btn:hover { opacity: 1; }

/* Global search results */
.search-result-item {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  border-bottom: 1px solid #f3f4f6;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f5f3ff; }
.search-result-tag {
  font-size: 0.65rem;
  background: #e0e7ff;
  color: #3730a3;
  padding: 1px 6px;
  border-radius: 8px;
  margin-right: 4px;
}
