/* =============================================================
   SPOTREALTY — BUYER TODAY VIEW STYLES
   Phase 2 Modernization: Canonical Small Buyer Card Layout
   ============================================================= */

.buyer-today {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.buyer-today-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
}

.buyer-today-search-input {
  flex: 1;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  background: var(--bg2);
  color: var(--text);
  outline: none;
}
.buyer-today-search-input:focus {
  border-color: #6366f1;
  background: var(--bg);
}

.buyer-today-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.buyer-today-section-overdue {
  border-color: #fecaca;
}
.buyer-today-section-today {
  border-color: #c7d2fe;
}
.buyer-today-section-upcoming {
  border-color: #bae6fd;
}
.buyer-today-section-nofollowup {
  border-color: var(--border);
}

.buyer-today-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.buyer-today-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.buyer-today-section-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

/* Canonical Small Card 4/3/2/1 Grid Layout */
.buyer-today-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .buyer-today-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .buyer-today-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .buyer-today-grid {
    grid-template-columns: 1fr;
  }
}

/* Legacy Follow-Up Tile Styles (Inert / Retained for Backward Safety) */
.buyer-today-card {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.buyer-today-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.buyer-today-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 6px;
}

.buyer-today-card-id {
  font-weight: 700;
  font-family: monospace;
  color: var(--text2);
}

.buyer-today-card-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-today-card-info {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.buyer-today-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.buyer-today-empty {
  padding: 24px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px dashed var(--border2);
}

.buyer-today-search-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--bg2);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border2);
}

.buyer-today-toggle-btn {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.buyer-today-toggle-btn:hover {
  color: #6366f1;
}
