/* Avisos: filas con poco texto (estilo iPhone). Solo presentación de la lista de recordatorios. */
:root { --av-line: var(--line-soft, #E5E5EA); --av-mut: var(--muted, #5F6168); --av-acc: var(--blue, #0284C7); --av-red: #C62828; --av-redbg: #FDECEC; }
#recordatorios #remindersAppointmentsList { background: var(--card, #fff); border-radius: 14px; overflow: hidden; }
#recordatorios .av-lhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 10px; border-bottom: 1px solid var(--av-line); }
#recordatorios .av-lhead b { font-size: 14.5px; font-weight: 750; color: var(--ink); }
#recordatorios .av-lhead small { font-size: 12.5px; font-weight: 600; color: var(--av-mut); font-variant-numeric: tabular-nums; }
#recordatorios .av-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 5px 14px; border-top: 1px solid var(--av-line); font-variant-numeric: tabular-nums; }
#recordatorios .av-row:first-of-type { border-top: 0; }
#recordatorios .av-av { width: 34px; height: 34px; border-radius: 50%; background: var(--card-2, #F1F5F9); border: 1px solid var(--av-line); color: var(--av-mut); display: grid; place-items: center; flex: none; overflow: hidden; }
#recordatorios .av-av svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#recordatorios .av-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
#recordatorios .av-hora { min-width: 50px; white-space: nowrap; font-weight: 700; font-size: .9rem; letter-spacing: -.01em; flex: none; font-variant-numeric: tabular-nums; }
#recordatorios .av-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#recordatorios .av-who b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#recordatorios .av-who span { font-size: .74rem; color: var(--av-mut); }
.av-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; border: 0; font-family: inherit; }
.av-pill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.av-pill.wa { background: #E3F6EA; color: #0B6B38; }
.av-pill.wa-manual { background: #FEF3C7; color: #92400E; }
.av-pill.ma { background: #E8F4FB; color: #01659A; }
.av-pill.auto { background: #EDE9FE; color: #5B3FD0; }
.av-pill.no { background: var(--av-redbg); color: var(--av-red); min-height: 40px; padding: 0 12px; cursor: pointer; }
#recordatorios .av-go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--av-acc); color: #fff; font-weight: 700; font-size: .82rem; cursor: pointer; text-decoration: none; font-family: inherit; }
#recordatorios .av-go.sent { background: #E8F4FB; color: #01659A; }
#recordatorios .av-go-sec { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--av-line); background: #F8FAFC; color: #334155; font-weight: 600; font-size: .75rem; text-decoration: none; font-family: inherit; transition: all .15s ease; }
#recordatorios .av-go-sec:hover { background: #E2E8F0; color: #0F172A; }
#recordatorios .av-go-sec.sent { background: #E8F4FB; color: #01659A; border-color: #BAE6FD; }
#recordatorios .av-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: #F2F2F7; color: var(--av-mut); cursor: pointer; }
#recordatorios .av-row .msg-preview-box { display: none; }
#recordatorios .av-row.show-preview { flex-wrap: wrap; }
#recordatorios .av-row.show-preview .msg-preview-box { display: block; flex-basis: 100%; margin-top: 4px; font-size: .85rem; color: var(--av-mut); }
/* «Enviados hoy» y «Todas»: texto menor, filas bajas, sin vista previa; de 20 en 20 */
#recordatorios .av-largo .av-row { min-height: 46px; padding: 4px 12px; gap: 10px; }
#recordatorios .av-largo .av-hora { width: 40px; font-size: .84rem; }
#recordatorios .av-largo .av-who b { font-size: .86rem; }
#recordatorios .av-largo .av-who span { font-size: .72rem; }
#recordatorios .av-largo .av-pill { font-size: .72rem; min-height: 30px; padding: 0 10px; }
#recordatorios .av-largo .av-pill.no { min-height: 44px; }
#recordatorios .av-largo .av-go { font-size: .8rem; padding: 0 12px; }
#recordatorios .av-mas { display: block; width: 100%; min-height: 44px; border: 0; border-top: 1px solid var(--av-line); background: transparent; color: var(--av-acc); font: 700 .85rem inherit; font-family: inherit; cursor: pointer; }
#recordatorios .av-mas:hover { background: #F2F2F7; }
#recordatorios .av-fin { padding: 10px; text-align: center; font-size: .72rem; color: var(--av-mut); border-top: 1px solid var(--av-line); }
#recordatorios #avBanner { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 6px 6px 6px 14px; background: var(--av-redbg); color: var(--av-red); border-radius: 14px; font-weight: 700; min-height: 52px; justify-content: space-between; }
#recordatorios #avBanner[hidden] { display: none; }
#recordatorios #avBanner button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: #fff; color: var(--av-red); font-weight: 700; cursor: pointer; font-family: inherit; }
#recordatorios .av-row button:focus-visible, #recordatorios .av-row a:focus-visible, #recordatorios #avBanner button:focus-visible { outline: 2px solid var(--av-acc); outline-offset: 2px; }
@media (max-width: 520px) { #recordatorios .av-row { flex-wrap: wrap; } #recordatorios .av-who { flex-basis: calc(100% - 70px); } }

/* Ventana de cita: interruptor «Avisar al paciente» con el canal que se usará */
#appointmentForm .av-cita { display: flex; align-items: center; gap: 10px; min-height: 48px; }
#appointmentForm .av-cita .av-l { flex: 1; font-weight: 600; }
#appointmentForm .av-cita .av-mut { color: var(--av-mut); font-size: .85rem; font-weight: 600; }
#appointmentForm .av-sw { position: relative; width: 51px; height: 31px; flex: none; margin: 0; }
#appointmentForm .av-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
#appointmentForm .av-sw span { position: absolute; inset: 0; border-radius: 16px; background: #D1D1D6; transition: background .2s; }
#appointmentForm .av-sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s; }
#appointmentForm .av-sw input:checked + span { background: #34C759; }
#appointmentForm .av-sw input:checked + span::after { transform: translateX(20px); }
#appointmentForm .av-sw input:focus-visible + span { outline: 2px solid var(--av-acc); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #appointmentForm .av-sw span, #appointmentForm .av-sw span::after { transition: none; } }
