
/* Pacientes: Versión 4 — Minimalismo Suizo / Apple Cupertino (4 Columnas Aireadas) */
.pi2, .pi2-lg { --tone: #71717A; }
.pi2[data-tone="urgencia"], .pi2-lg[data-tone="urgencia"] { --tone: #F59E0B; }
.pi2[data-tone="protesis"], .pi2-lg[data-tone="protesis"] { --tone: #EC4899; }
.pi2[data-tone="ortodoncia"], .pi2-lg[data-tone="ortodoncia"] { --tone: #3B82F6; }
.pi2[data-tone="limpieza"], .pi2-lg[data-tone="limpieza"] { --tone: #10B981; }
.pi2[data-tone="endodoncia"], .pi2-lg[data-tone="endodoncia"] { --tone: #8B5CF6; }
.pi2[data-tone="cirugia"], .pi2-lg[data-tone="cirugia"] { --tone: #EC4899; }
.pi2[data-tone="restauracion"], .pi2-lg[data-tone="restauracion"] { --tone: #6366F1; }
.pi2[data-tone="control"], .pi2-lg[data-tone="control"] { --tone: #14B8A6; }
.pi2[data-tone="evaluacion"], .pi2-lg[data-tone="evaluacion"] { --tone: #71717A; }
html body .p-split:not(.has-selection) .patient-list { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; }
@media (max-width: 1200px) { html body .p-split:not(.has-selection) .patient-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 900px) { html body .p-split:not(.has-selection) .patient-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { html body .p-split:not(.has-selection) .patient-list { grid-template-columns: 1fr !important; } }
html body .patient-list .patient-item.pi2 { position: relative; display: flex !important; flex-direction: column !important; justify-content: space-between !important; gap: 10px; text-align: left; padding: 15px 16px !important; overflow: hidden; border-radius: 14px !important; min-height: 112px; height: auto; background: var(--card, #FFFFFF) !important; border: 1px solid var(--line, #E4E4E7) !important; box-shadow: none !important; transition: border-color .15s ease, transform .15s ease; }
html body .patient-list .patient-item.pi2:hover { border-color: #CBD5E1 !important; }
html body .patient-list .patient-item.pi2::before { display: none !important; content: none !important; }
.pi2-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-width: 0; width: 100%; }
.pi2-head { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pi2-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink, #111111); line-height: 1.2; }
.pi2-num { font-size: .73rem; font-weight: 600; color: #A1A1AA; flex: none; font-variant-numeric: tabular-nums; }
.pi2-id { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 500; color: #71717A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pi2-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi2-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); display: inline-block; flex: 0 0 7px; }
.pi2-last { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--line, #E4E4E7) 65%, transparent); font-size: .76rem; width: 100%; font-variant-numeric: tabular-nums; }
.pi2-date { color: #3F3F46; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi2-cita { color: #0284C7; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi2-debe { color: #E11D48; font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.pi2-ok { color: #A1A1AA; font-weight: 500; flex: none; }
html body .patient-list .patient-item.pi2.active { border-color: var(--accent, #0284C7) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #0284C7) 25%, transparent) !important; }
