/**
 * Gerenciar Lembretes — módulo operacional premium
 * Escopo: body.wbot-page--lembretes
 */

body.wbot-page--lembretes .wbot-main .container-fluid {
  max-width: 1680px;
}

/* —— Hero / header —— */
.wbot-lem-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.wbot-lem-hero__title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--wbot-text-primary);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.wbot-lem-hero__lead {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--wbot-text-secondary);
  font-weight: 500;
  max-width: 42rem;
  line-height: 1.5;
}

.wbot-lem-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.wbot-lem-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wbot-text-secondary);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--wbot-border-soft);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.wbot-lem-chip i {
  font-size: 0.85rem;
  color: var(--wbot-color-primary);
  opacity: 0.9;
}

.wbot-lem-hero__actions .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

/* KPI grid — 4 colunas */
.wbot-kpi-grid.wbot-kpi-grid--lembretes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1199px) {
  .wbot-kpi-grid.wbot-kpi-grid--lembretes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .wbot-kpi-grid.wbot-kpi-grid--lembretes {
    grid-template-columns: 1fr;
  }
}

/* Painel filtros (alinha a Mensagens) */
.wbot-lem-filters.wbot-msg-panel {
  margin-bottom: 1.25rem;
}

.wbot-lem-filters .wbot-msg-panel__inner {
  padding: 1.25rem 1.35rem;
}

.wbot-lem-filters .wbot-msg-panel__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--wbot-text-muted);
  margin-bottom: 0.65rem;
}

body.wbot-page--lembretes .wbot-lem-filters .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wbot-text-secondary);
}

body.wbot-page--lembretes .wbot-lem-filters .form-control {
  border-radius: var(--wbot-radius-md);
  padding: 0.55rem 0.85rem;
}

.wbot-lem-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.wbot-lem-filter-actions .btn-primary {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  border: none;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.28);
}

/* Tabela — cabeçalho alinhado ao design das outras telas */
body.wbot-page--lembretes .wbot-msg-table {
  margin: 0;
  font-size: 0.875rem;
}

body.wbot-page--lembretes .wbot-msg-table thead th {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wbot-text-muted) !important;
  background: #fafbfc !important;
  border-bottom: 1px solid var(--wbot-border-soft) !important;
  padding: 0.95rem 1rem !important;
  white-space: nowrap;
}

body.wbot-page--lembretes .wbot-msg-table tbody td {
  border-color: #f1f5f9 !important;
}

body.wbot-page--lembretes .wbot-msg-table tbody tr {
  transition: background 0.15s ease;
}

body.wbot-page--lembretes .wbot-msg-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.04) !important;
}

.wbot-lem-table-wrap.wbot-msg-panel--table {
  margin-bottom: 0;
}

.wbot-lem-table-wrap .wbot-msg-panel__head {
  padding: 1.15rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(241, 245, 249, 0.95);
}

.wbot-lem-table-wrap .wbot-msg-panel__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wbot-text-primary);
}

.wbot-lem-table-wrap .wbot-msg-panel__head p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--wbot-text-muted);
}

body.wbot-page--lembretes .wbot-msg-table tbody td {
  padding: 1rem 1.1rem !important;
  vertical-align: middle !important;
}

.wbot-lem-td--patient {
  font-weight: 600;
  color: var(--wbot-text-primary);
  max-width: 220px;
}

.wbot-lem-td--patient .text-muted {
  font-weight: 500;
  font-size: 0.8rem;
}

.wbot-lem-td--date {
  white-space: nowrap;
}

.wbot-lem-td--date strong {
  font-weight: 600;
  color: var(--wbot-text-primary);
}

.wbot-lem-td--date small {
  display: block;
  margin-top: 0.2rem;
  color: var(--wbot-text-muted);
  font-weight: 500;
}

.wbot-lem-td--envio {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: var(--wbot-text-secondary);
}

/* Pills tipo / status */
body.wbot-page--lembretes .wbot-lem-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
}

.wbot-lem-pill--consulta {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.22);
}

.wbot-lem-pill--exame {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.wbot-lem-pill--st-pendente {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.wbot-lem-pill--st-enviado {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.wbot-lem-pill--st-erro {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
}

.wbot-lem-pill--st-cancelado {
  background: #e2e8f0;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.wbot-lem-pill--st-default {
  background: #f1f5f9;
  color: #64748b;
}

/* Ações — reforço leve na coluna */
body.wbot-page--lembretes .wbot-msg-actions {
  min-height: 36px;
}
