
/* Movimiento: avisos, fondo de ventanas, pasos de atención y entrada de secciones 2026-10-19 */
@keyframes odOvIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes odPanelIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes odRowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes odStepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.modal-overlay:not(.hidden) { animation: odOvIn .18s ease-out; }
.notice.msg-out { opacity: 0; transform: translateX(30px) scale(.95); transition: opacity .18s ease-in, transform .18s ease-in; animation: none; }
#quickCareForm .qc2-stp, #quickCareForm .qc2-stp i { transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
#quickCareForm .qc2-body.qc-step-in { animation: odStepIn .22s cubic-bezier(.23,1,.32,1); }
.panel.pg-enter { animation: odPanelIn .2s ease-out; }
.panel.pg-enter :is(.patient-item, .mini-card, tbody tr) { animation: odRowIn .24s cubic-bezier(.23,1,.32,1) both; }
.panel.pg-enter :is(.patient-item, .mini-card, tbody tr):nth-child(2) { animation-delay: 30ms; }
.panel.pg-enter :is(.patient-item, .mini-card, tbody tr):nth-child(3) { animation-delay: 60ms; }
.panel.pg-enter :is(.patient-item, .mini-card, tbody tr):nth-child(4) { animation-delay: 90ms; }
.panel.pg-enter :is(.patient-item, .mini-card, tbody tr):nth-child(5) { animation-delay: 120ms; }
.panel.pg-enter :is(.patient-item, .mini-card, tbody tr):nth-child(6) { animation-delay: 150ms; }
.panel.pg-enter :is(.patient-item, .mini-card, tbody tr):nth-child(7) { animation-delay: 180ms; }
.panel.pg-enter :is(.patient-item, .mini-card, tbody tr):nth-child(8) { animation-delay: 210ms; }
.panel.pg-enter :is(.patient-item, .mini-card, tbody tr):nth-child(n+9) { animation: none; }
@media (prefers-reduced-motion: reduce) { .panel.pg-enter, .panel.pg-enter * , .modal-overlay:not(.hidden), #quickCareForm .qc2-body.qc-step-in { animation: none !important; } }
/* 2026-10-19: el aviso "Sin sesión" (ficha-extra.js, fijo arriba, z-index 9000) tapaba la X de las hojas/ventanas
   (p. ej. «Nueva atención» en celular). Mientras haya una ventana abierta se oculta; vuelve al cerrarla. */
body:has(.modal-overlay:not(.hidden), #pgOverlay, #orOverlay, #azOverlay, #pdModHost.pd-mod-pagina) #noSessionBanner { display: none !important; }
