@import"https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap";:root{font-family:Manrope,Segoe UI,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh}a{color:inherit;text-decoration:none}:root{--brand-blue-950: #04245f;--brand-blue-900: #07439a;--brand-blue-700: #0a67c4;--brand-blue-500: #24a4e4;--brand-orange-700: #e65a00;--brand-orange-600: #f17700;--brand-orange-500: #ff9400;--neutral-0: #ffffff;--neutral-50: #f7fbff;--neutral-100: #edf3fb;--neutral-200: #d7e5f6;--neutral-700: #395474;--neutral-900: #15263e;--bg-start: #f0f6ff;--bg-end: #f5fbff;--panel: var(--neutral-0);--text: var(--neutral-900);--muted: #5b7190;--border: var(--neutral-200);--danger: #a22828;--accent: var(--brand-blue-700);--accent-2: var(--brand-blue-900);--sidebar: var(--brand-blue-950);--sidebar-text: #deecff}.route-loader{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(circle at 15% 20%,rgba(36,164,228,.2),transparent 28%),radial-gradient(circle at 85% 80%,rgba(255,148,0,.2),transparent 28%),linear-gradient(155deg,var(--bg-start),var(--bg-end));color:var(--text)}.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:24px;color:var(--text)}.auth-shell--vitalges{background:radial-gradient(circle at 10% 10%,rgba(36,164,228,.25),transparent 24%),radial-gradient(circle at 95% 90%,rgba(255,148,0,.22),transparent 30%),linear-gradient(150deg,#eff7ff,#eaf4ff 55%,#fff7ec)}.auth-stage{width:min(1060px,100%);display:grid;grid-template-columns:minmax(280px,.9fr) minmax(360px,1.1fr);background:var(--panel);border:1px solid rgba(10,103,196,.12);border-radius:26px;overflow:hidden;box-shadow:0 30px 56px #07439a29,0 8px 18px #07439a14}.auth-brand-panel{position:relative;isolation:isolate;background:linear-gradient(170deg,#0872ce,#094fa8 58%,#063b82);color:#f2f9ff;padding:40px 34px}.brand-blobs{position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 25% 20%,rgba(255,255,255,.16),transparent 32%),radial-gradient(circle at 72% 84%,rgba(255,155,36,.42),transparent 38%),radial-gradient(circle at 78% 20%,rgba(36,164,228,.54),transparent 28%)}.brand-content{display:grid;gap:14px}.brand-logo-wrap{width:190px;height:190px;display:grid;place-items:center;padding:12px;border-radius:28px;background:linear-gradient(165deg,#fffffff7,#ebf6fffa);border:1px solid rgba(255,255,255,.9);box-shadow:0 18px 32px #04245f47,inset 0 1px #ffffffd9}.brand-logo{width:162px;height:162px;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(6,70,145,.2))}.brand-fallback{width:128px;height:128px;border-radius:28px;display:grid;place-items:center;font-size:2.6rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--brand-orange-500),var(--brand-orange-700))}.auth-brand-panel h1{margin:8px 0 0;font-size:clamp(1.9rem,3.3vw,2.7rem);line-height:1}.auth-brand-panel p{margin:0;max-width:30ch;color:#f1f8ffe6}.brand-points{margin:6px 0 0;padding-left:18px;display:grid;gap:6px;color:#f1f8fff2}.brand-points a{color:#fff;font-weight:700;text-decoration:underline;text-decoration-color:#fff9;text-underline-offset:3px}.auth-panel{background:var(--panel);border-radius:16px;padding:22px}.auth-panel--modern{padding:36px;display:grid;align-content:center;width:min(520px,100%);justify-self:center}.auth-header{margin-bottom:14px}.eyebrow{margin:0;color:var(--brand-blue-700);font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:.78rem}.auth-header h2{margin:6px 0;font-size:clamp(1.7rem,2.2vw,2.05rem);color:var(--neutral-900)}.auth-header p{margin:0;color:var(--muted);max-width:36ch}.form-grid{margin-top:16px;display:grid;gap:12px}.form-grid--modern{margin-top:18px;gap:14px}label{display:grid;gap:7px;font-size:.9rem;font-weight:600;color:var(--muted)}input{border:1px solid var(--border);border-radius:12px;padding:12px 13px;font-size:.98rem;background:var(--neutral-50);transition:border-color .2s ease,box-shadow .2s ease}input:focus{outline:none;border-color:var(--brand-blue-500);box-shadow:0 0 0 4px #24a4e429}select{border:1px solid var(--border);border-radius:12px;padding:12px 13px;font-size:.98rem;background:var(--neutral-50);transition:border-color .2s ease,box-shadow .2s ease}select:focus{outline:none;border-color:var(--brand-blue-500);box-shadow:0 0 0 4px #24a4e429}.password-input-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.password-input-row input{width:100%}.password-toggle{background:var(--neutral-100);color:var(--brand-blue-900);border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-weight:700;min-width:88px}.password-toggle:hover{background:#dfeafb}.field-help{margin-top:2px;color:var(--muted);font-size:.78rem;font-weight:500}button{border:0;border-radius:10px;padding:10px 12px;cursor:pointer;color:#fff;background:var(--accent);font-weight:600}.btn-primary{margin-top:2px;border-radius:12px;padding:12px 14px;background:linear-gradient(135deg,var(--brand-blue-700),var(--brand-blue-900));box-shadow:0 8px 16px #07439a47;font-size:16px}.btn-primary:hover{background:linear-gradient(135deg,#0b6bcb,#0a4d9f)}button:hover{background:var(--accent-2)}button:disabled{opacity:.65;cursor:not-allowed}.error{margin-top:10px;margin-bottom:0;color:var(--danger);font-weight:700}.auth-meta-grid{margin-top:18px;border-top:1px solid var(--border);padding-top:14px;display:grid;gap:10px}.auth-meta-item{display:grid;gap:2px}.auth-meta-item span{color:var(--muted);font-size:.82rem}.auth-meta-item strong{color:var(--text);font-size:.85rem;word-break:break-all}.tenant-shell{--tenant-sidebar-width: 280px;--tenant-bg-base: #f2f7ff;--tenant-bg-a: rgba(36, 164, 228, .2);--tenant-bg-b: rgba(255, 148, 0, .18);--tenant-text: #15263e;--tenant-strong: #15263e;--tenant-muted: #5b7190;--tenant-header-bg: rgba(255, 255, 255, .82);--tenant-header-border: rgba(10, 103, 196, .16);--tenant-card-bg: #ffffff;--tenant-card-border: rgba(10, 103, 196, .14);--tenant-card-shadow: rgba(10, 60, 135, .07);--tenant-kpi-bg-a: rgba(255, 255, 255, .95);--tenant-kpi-bg-b: #ffffff;--tenant-track-bg-a: #f3f8ff;--tenant-track-bg-b: #eaf2ff;--tenant-track-border: rgba(10, 103, 196, .14);--tenant-table-border: rgba(10, 103, 196, .1);--tenant-donut-center: #ffffff;--tenant-notif-bg-start: #ffffff;--tenant-notif-bg-end: #ebf4ff;--tenant-notif-bg-hover-start: #f5faff;--tenant-notif-bg-hover-end: #dfecff;--tenant-notif-border: rgba(7, 67, 154, .24);--tenant-notif-color: var(--brand-blue-900);--tenant-avatar-bg-start: #1f8edf;--tenant-avatar-bg-end: #0a67c4;--tenant-avatar-border: rgba(10, 103, 196, .32);--tenant-avatar-text: #ffffff;min-height:100dvh;height:100dvh;display:grid;grid-template-columns:var(--tenant-sidebar-width) 1fr;color:var(--tenant-text);background:radial-gradient(circle at 0% 8%,var(--tenant-bg-a),transparent 26%),radial-gradient(circle at 95% 92%,var(--tenant-bg-b),transparent 30%),var(--tenant-bg-base);transition:grid-template-columns .26s ease;overflow:hidden}.tenant-shell.sidebar-collapsed{--tenant-sidebar-width: 96px}.tenant-shell.theme-dark{--tenant-bg-base: #081729;--tenant-bg-a: rgba(36, 164, 228, .12);--tenant-bg-b: rgba(255, 148, 0, .1);--tenant-text: #dce9ff;--tenant-strong: #f2f7ff;--tenant-muted: #9ab0d1;--tenant-header-bg: rgba(9, 25, 45, .86);--tenant-header-border: rgba(112, 154, 216, .24);--tenant-card-bg: #10243f;--tenant-card-border: rgba(122, 165, 230, .24);--tenant-card-shadow: rgba(1, 8, 20, .45);--tenant-kpi-bg-a: #122a49;--tenant-kpi-bg-b: #10223d;--tenant-track-bg-a: #132b49;--tenant-track-bg-b: #0f233d;--tenant-track-border: rgba(124, 168, 229, .24);--tenant-table-border: rgba(123, 168, 230, .22);--tenant-donut-center: #10243f;--tenant-notif-bg-start: #173253;--tenant-notif-bg-end: #142a46;--tenant-notif-bg-hover-start: #1c3b63;--tenant-notif-bg-hover-end: #183454;--tenant-notif-border: rgba(135, 174, 232, .34);--tenant-notif-color: #dbe9ff;--tenant-avatar-bg-start: #2a7fd3;--tenant-avatar-bg-end: #215ea2;--tenant-avatar-border: rgba(148, 190, 245, .35);--tenant-avatar-text: #f2f7ff}.tenant-sidebar{background:linear-gradient(180deg,#0d66c8,#07439a 44%,#04245f);color:var(--sidebar-text);padding:18px 14px 16px;border-right:1px solid rgba(255,255,255,.12);display:grid;grid-template-rows:auto auto 1fr;gap:18px;position:sticky;top:0;height:100dvh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(188,220,255,.34) rgba(5,46,108,.22)}.tenant-sidebar::-webkit-scrollbar{width:8px}.tenant-sidebar::-webkit-scrollbar-track{background:linear-gradient(180deg,#062b6333,#04214e57);border-radius:999px}.tenant-sidebar::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#cae2ff52,#92bcef57);border-radius:999px;border:1px solid rgba(6,41,96,.4)}.tenant-sidebar::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#d6eaff6b,#a2c7f570)}.tenant-shell.theme-dark .tenant-sidebar{scrollbar-color:rgba(129,174,230,.34) rgba(3,27,64,.34)}.tenant-shell.theme-dark .tenant-sidebar::-webkit-scrollbar-track{background:linear-gradient(180deg,#031d4652,#02133070)}.tenant-shell.theme-dark .tenant-sidebar::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#8db7ec57,#5a8ed25c);border-color:#03193d80}.tenant-shell.theme-dark .tenant-sidebar::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#9dc4f470,#6c9ee075)}.tenant-brand-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}.tenant-brand-mark{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;padding:4px;background:linear-gradient(150deg,#fff,#deedff);box-shadow:0 8px 18px #02163a47}.tenant-brand-logo{width:100%;height:100%;object-fit:contain}.tenant-brand-copy{display:grid;gap:1px}.tenant-brand-copy strong{font-size:.98rem;color:#f3f9ff}.tenant-brand-copy span{font-size:.76rem;color:#d6e9ffdb;text-transform:uppercase;letter-spacing:.05em}.tenant-sidebar-toggle{width:32px;height:32px;border-radius:9px;border:1px solid rgba(255,255,255,.28);background:#ffffff1a;display:grid;place-items:center;padding:0;transition:background .2s ease,border-color .2s ease}.tenant-sidebar-toggle svg{width:18px;height:18px}.tenant-sidebar-toggle:hover{background:#fff3;border-color:#ffffff6b}.tenant-sidebar-caption{margin:0;font-size:.78rem;color:#deecffd9;line-height:1.4}.tenant-nav{display:grid;gap:9px;align-content:start}.tenant-nav-item{width:100%;border:1px solid transparent;border-radius:12px;padding:9px 10px;background:#ffffff14;color:var(--sidebar-text);text-decoration:none;display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center;transition:transform .2s ease,background .2s ease,border-color .2s ease}.tenant-nav-item:hover{transform:translate(2px);background:#ffffff29;border-color:#ffffff38}.tenant-nav-item.is-active{background:linear-gradient(135deg,#ffffff40,#24a4e457);border-color:#ffffff61;box-shadow:0 10px 20px #03143a3d}.tenant-nav-item.is-disabled{opacity:.58;cursor:not-allowed}.tenant-nav-item.is-disabled:hover{transform:none;background:#ffffff14;border-color:transparent}.tenant-nav-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:#e8f2ff;background:#03235752}.tenant-nav-icon svg{width:20px;height:20px}.tenant-nav-icon--staff svg{width:21px;height:21px;stroke-width:1.8}.tenant-nav-icon--mobile svg{width:30px;height:30px}.tenant-nav-text{display:grid;gap:1px}.tenant-nav-text strong{font-size:.9rem;color:#f3f9ff}.tenant-nav-text small{font-size:.74rem;color:#daeaffcc}.tenant-shell.sidebar-collapsed .tenant-brand-row{grid-template-columns:1fr;justify-items:center}.tenant-shell.sidebar-collapsed .tenant-brand-copy,.tenant-shell.sidebar-collapsed .tenant-sidebar-caption,.tenant-shell.sidebar-collapsed .tenant-nav-text{display:none}.tenant-shell.sidebar-collapsed .tenant-nav-item{grid-template-columns:1fr;justify-items:center;padding:9px 6px}.tenant-shell.sidebar-collapsed .tenant-nav-item:hover{transform:none}.tenant-shell.sidebar-collapsed .tenant-nav-icon{width:40px}.tenant-main{display:grid;grid-template-rows:auto 1fr;min-width:0;min-height:0;height:100dvh;overflow:hidden}.tenant-header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px clamp(16px,3vw,30px);border-bottom:1px solid var(--tenant-header-border);background:var(--tenant-header-bg);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);position:sticky;top:0;z-index:20}.tenant-header-copy{display:grid;gap:3px}.tenant-user-row{display:flex;align-items:center;gap:10px}.tenant-user-avatar{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;font-size:.9rem;font-weight:800;letter-spacing:.01em;text-transform:uppercase;color:var(--tenant-avatar-text);border:1px solid var(--tenant-avatar-border);background:linear-gradient(150deg,var(--tenant-avatar-bg-start),var(--tenant-avatar-bg-end));box-shadow:0 3px 7px #04245f2e}.tenant-header-copy strong{font-size:clamp(.96rem,1.5vw,1.06rem);color:var(--tenant-strong)}.tenant-header-copy p{margin:0;color:var(--tenant-muted)}.tenant-header-kicker{margin:0;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--brand-blue-500);font-weight:700}.tenant-header-actions{display:flex;align-items:center;gap:10px}.tenant-theme-toggle{width:40px;height:40px;border:1px solid var(--tenant-notif-border);border-radius:12px;padding:0;display:grid;place-items:center;color:var(--tenant-notif-color);background:linear-gradient(165deg,var(--tenant-notif-bg-start),var(--tenant-notif-bg-end))}.tenant-theme-toggle svg{width:20px;height:20px}.tenant-theme-toggle:hover{background:linear-gradient(165deg,var(--tenant-notif-bg-hover-start),var(--tenant-notif-bg-hover-end))}.tenant-notifications-btn{width:40px;height:40px;border:1px solid var(--tenant-notif-border);border-radius:12px;padding:0;display:grid;place-items:center;color:var(--tenant-notif-color);background:linear-gradient(165deg,var(--tenant-notif-bg-start),var(--tenant-notif-bg-end))}.tenant-notifications-btn svg{width:28px;height:28px}.tenant-notifications-btn:hover{background:linear-gradient(165deg,var(--tenant-notif-bg-hover-start),var(--tenant-notif-bg-hover-end))}.tenant-logout-btn{border:1px solid rgba(7,67,154,.24);border-radius:12px;padding:9px 14px;color:#fff;background:linear-gradient(140deg,#0a67c4,#07439a);box-shadow:0 8px 14px #07439a38}.tenant-logout-btn:hover{background:linear-gradient(140deg,#0b6fce,#08479f)}.tenant-content{padding:22px clamp(16px,3vw,30px) 28px;overflow-y:auto;min-height:0}@keyframes dashboard-rise{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}.dashboard-page{font-family:Avenir Next,Nunito Sans,Segoe UI,sans-serif;display:grid;gap:16px}.dashboard-intro{display:grid;gap:6px}.dashboard-overline{margin:0;color:var(--brand-blue-700);font-weight:700;text-transform:uppercase;letter-spacing:.05em;font-size:.75rem}.dashboard-intro h1{margin:0;font-size:clamp(1.45rem,2.6vw,2rem);color:var(--tenant-strong)}.dashboard-intro p{margin:0;color:var(--tenant-muted);max-width:70ch}.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px}.dashboard-kpi-card{border:1px solid var(--tenant-card-border);border-radius:16px;background:linear-gradient(180deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:14px;display:grid;gap:6px;box-shadow:0 10px 18px var(--tenant-card-shadow);animation:dashboard-rise .35s ease both}.dashboard-kpi-card:nth-child(2){animation-delay:.05s}.dashboard-kpi-card:nth-child(3){animation-delay:.1s}.dashboard-kpi-card:nth-child(4){animation-delay:.15s}.dashboard-kpi-card p{margin:0;color:var(--tenant-muted);font-size:.82rem}.dashboard-kpi-card strong{font-size:clamp(1.2rem,2vw,1.6rem);color:var(--tenant-strong)}.dashboard-kpi-card span{font-size:.8rem;font-weight:700}.trend-up{color:#1f7f4f}.trend-down{color:#b3531b}.dashboard-main-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:12px}.dashboard-surface{border:1px solid var(--tenant-card-border);border-radius:18px;background:var(--tenant-card-bg);padding:16px;box-shadow:0 14px 24px var(--tenant-card-shadow)}.surface-header{display:flex;justify-content:space-between;gap:12px;align-items:start}.surface-header p{margin:0;color:var(--tenant-muted);font-size:.8rem}.surface-header h2{margin:2px 0 0;color:var(--tenant-strong);font-size:1.08rem}.surface-header strong{color:var(--brand-blue-900);font-size:.92rem}.activity-bars{margin-top:16px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.activity-bar-item{display:grid;justify-items:center;gap:6px}.activity-bar-item small{color:var(--tenant-muted);font-weight:700;font-size:.74rem}.activity-bar-track{width:100%;height:170px;border-radius:12px;display:flex;align-items:flex-end;padding:5px;border:1px solid var(--tenant-track-border);background:linear-gradient(180deg,var(--tenant-track-bg-a) 0%,var(--tenant-track-bg-b) 100%)}.activity-bar-track span{width:100%;border-radius:8px;background:linear-gradient(180deg,#24a4e4,#0a67c4);box-shadow:0 8px 14px #0a67c442}.dashboard-surface--distribution{display:grid;align-content:start;gap:12px}.distribution-chart-wrap{display:grid;justify-items:center;gap:14px}.distribution-donut{width:min(188px,90%);aspect-ratio:1;border-radius:50%;background:conic-gradient(from 30deg,#0a67c4 0 44%,#24a4e4 44% 75%,#ff9400 75% 100%);position:relative;box-shadow:0 14px 24px #0a67c438}.distribution-donut:after{content:"";position:absolute;inset:27px;border-radius:50%;background:var(--tenant-donut-center);box-shadow:inset 0 0 0 1px var(--tenant-track-border)}.distribution-legend{margin:0;padding:0;width:100%;list-style:none;display:grid;gap:8px}.distribution-legend li{display:flex;align-items:center;gap:8px;color:var(--tenant-muted);font-size:.84rem}.distribution-legend strong{margin-left:auto;color:var(--tenant-strong)}.dot{width:10px;height:10px;border-radius:50%}.dot-blue{background:#0a67c4}.dot-cyan{background:#24a4e4}.dot-orange{background:#ff9400}.dashboard-surface--table{padding-top:14px}.activity-table-wrap{margin-top:8px;overflow:auto}.activity-table{width:100%;border-collapse:collapse;min-width:620px}.activity-table th,.activity-table td{padding:10px 8px;border-bottom:1px solid var(--tenant-table-border);text-align:left}.activity-table th{color:var(--tenant-muted);font-size:.76rem;text-transform:uppercase;letter-spacing:.05em}.activity-table th .staff-sort-btn{border:0;padding:0;border-radius:0;display:inline-flex;align-items:center;gap:6px;background:transparent;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}.activity-table th .staff-sort-btn:hover{background:transparent;color:var(--tenant-strong)}.activity-table th .staff-sort-btn.is-active{color:var(--brand-blue-700)}.staff-sort-indicator{font-size:1.08em;font-weight:800;line-height:1;opacity:.72}.activity-table th .staff-sort-btn.is-active .staff-sort-indicator{opacity:1}.activity-table td{color:var(--tenant-strong);font-size:.9rem}.status-chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 9px;font-size:.75rem;font-weight:700}.status-chip.is-done{color:#1f7f4f;background:#1f7f4f24}.status-chip.is-pending{color:#b3531b;background:#e570242b}.status-chip.is-review{color:#0a4f94;background:#0a67c424}.status-chip.is-alert{color:#9f1f1f;background:#be242429}.status-chip.is-high-glucose{color:#9a3412;background:#f973162e}.tenant-shell.theme-dark .status-chip.is-alert{color:#fecaca;background:#b91c1c57;border:1px solid rgba(252,165,165,.5)}.tenant-shell.theme-dark .status-chip.is-high-glucose{color:#fed7aa;background:#7c2d1257;border:1px solid rgba(253,186,116,.5)}.staff-kpi-card{gap:8px}.staff-kpi-head{display:flex;align-items:center;gap:8px}.staff-kpi-head p{margin:0}.tenant-shell:not(.theme-dark) .staff-kpi-head p,.tenant-shell:not(.theme-dark) .staff-kpi-card strong{color:var(--brand-blue-900)}.staff-kpi-icon{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;border:1px solid rgba(10,103,196,.2)}.staff-kpi-icon svg{width:32px;height:32px}.staff-kpi-icon--workers{background:#24a4e424;color:#0a67c4}.staff-kpi-icon--active{background:#1f7f4f24;color:#1f7f4f}.staff-kpi-icon--schedule{background:#f1770029;color:#b3531b}.staff-kpi-icon--vacation{background:#6366f129;color:#4f46e5}.tenant-shell.theme-dark .staff-kpi-icon{border-color:#7ca8e542}.tenant-shell.theme-dark .staff-kpi-icon--workers{background:#24a4e438;color:#7bc8f0}.tenant-shell.theme-dark .staff-kpi-icon--active{background:#31a4603d;color:#8dd7b1}.tenant-shell.theme-dark .staff-kpi-icon--schedule{background:#f177003d;color:#ffbf85}.tenant-shell.theme-dark .staff-kpi-icon--vacation{background:#6366f147;color:#c3c6ff}.staff-feedback{margin:10px 0 0;color:#1f7f4f;font-weight:700}.staff-toolbar{margin-top:12px;margin-bottom:8px;display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:10px;align-items:end}.staff-search-field{display:grid;gap:6px}.staff-search-field span{color:var(--tenant-muted);font-size:.82rem;font-weight:700}.tenant-shell.theme-dark .staff-search-field input{background:#132b49;border-color:#7ca8e54d;color:var(--tenant-strong)}.tenant-shell.theme-dark .staff-search-field input::placeholder{color:#9ab0d1}.staff-search-meta{margin:0;color:var(--tenant-muted);font-size:.82rem;justify-self:end}.staff-pagination{margin-top:10px;display:flex;justify-content:flex-end;align-items:center;gap:10px}.staff-pagination-label{margin:0;color:var(--tenant-muted);font-size:.84rem;font-weight:700}.staff-actions-cell{width:104px}.staff-row-actions{display:flex;justify-content:flex-end;gap:8px}.staff-action-btn{width:34px;height:34px;border-radius:10px;padding:0;border:1px solid var(--tenant-card-border);background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);display:grid;place-items:center;box-shadow:0 6px 12px var(--tenant-card-shadow)}.staff-action-btn svg{width:18px;height:18px}.staff-action-btn--edit{color:var(--brand-blue-900)}.staff-action-btn--details{color:#0f766e}.staff-action-btn--details:hover{background:#d9f6f1}.staff-action-btn--edit:hover{background:#dcecff}.staff-action-btn--delete{color:#a22828}.staff-action-btn--delete:hover{background:#ffe6e6}.staff-action-btn--delete-tratamiento{color:#b30000}.staff-action-btn--delete-tratamiento:hover{background:#ffd9d9}.staff-action-btn--modules{color:#7e5303}.staff-action-btn--modules:hover{background:#e1efff}.staff-action-btn--toggle.is-on{color:#166534}.staff-action-btn--toggle.is-on:hover{background:#dcfce7}.staff-action-btn--toggle.is-off{color:#9a3412}.staff-action-btn--toggle.is-off:hover{background:#ffedd5}.staff-action-btn--new-medicacion{color:#1f8a43}.staff-action-btn--new-medicacion:hover{background:#e4f7ea}.staff-action-btn--edit-medicaciones{color:#c96a00}.staff-action-btn--edit-medicaciones:hover{background:#fff1e1}.staff-action-btn--create-treatment{color:#1f8a43}.staff-action-btn--create-treatment:hover{background:#e4f7ea}.staff-action-btn--exp-clinico{color:#f35c5c}.staff-action-btn--exp-clinico svg{fill:currentColor;stroke:currentColor;stroke-width:1.8}.staff-action-btn--exp-clinico:hover{background:#ffd9d9}.staff-action-btn--exp-diario{color:#0b7a75}.staff-action-btn--exp-diario:hover{background:#e2f6f4}.staff-action-btn--exp-psicologico{color:#7a3fb3}.staff-action-btn--exp-psicologico:hover{background:#efe2fb}.staff-action-btn--exp-social{color:#ec9d53}.staff-action-btn--exp-social:hover{background:#e4f7ea}.staff-action-btn--monedero{color:#1f8a43}.staff-action-btn--monedero:hover{background:#e4f7ea}.staff-action-btn--pia{color:#0239af}.staff-action-btn--pia:hover{background:#fff1e1}.staff-action-btn--comunicaciones{color:#006fa6}.staff-action-btn--comunicaciones:hover{background:#e3f4ff}.resident-feature-links{display:flex;align-items:center;justify-content:flex-start;gap:3px;flex-wrap:nowrap}.residents-table{min-width:1040px;table-layout:fixed}.residents-table th:nth-child(1),.residents-table td:nth-child(1){width:22%}.residents-table th:nth-child(2),.residents-table td:nth-child(2){width:11%}.residents-table th:nth-child(3),.residents-table td:nth-child(3){width:11%}.residents-table th:nth-child(4),.residents-table td:nth-child(4){width:10%}.residents-table th:nth-child(5),.residents-table td:nth-child(5){width:12%}.residents-table th:nth-child(6),.residents-table td:nth-child(6){width:22%}.residents-table th:nth-child(7),.residents-table td:nth-child(7){width:12%}.residents-table .staff-action-btn--modules{width:34px;height:34px;border-radius:10px}.residents-table .staff-action-btn--modules svg{width:20px;height:20px}.residents-table .staff-action-btn--modules:first-child svg{width:22px;height:22px}.residents-table .resident-feature-links a:nth-child(3) svg{width:24px;height:24px}.staff-modal-backdrop{position:fixed;inset:0;padding:20px;background:#0418338c;display:grid;place-items:center;z-index:40}.staff-modal{width:min(760px,100%);max-height:min(92dvh,740px);overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(61,118,173,.55) transparent;border-radius:16px;border:1px solid var(--tenant-card-border);background:var(--tenant-card-bg);box-shadow:0 24px 48px #04183366;padding:18px}.staff-modal::-webkit-scrollbar{width:8px}.staff-modal::-webkit-scrollbar-track{background:transparent}.staff-modal::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#5e97cde6,#2e69a0eb);border-radius:999px;border:2px solid transparent;background-clip:padding-box}.staff-modal::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#4c8cc6f5,#1f5c96fa);border-radius:999px;border:2px solid transparent;background-clip:padding-box}.tenant-shell.theme-dark .staff-modal{scrollbar-color:rgba(122,190,235,.6) transparent}.tenant-shell.theme-dark .staff-modal::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#83c6f0e6,#438fc2eb);border-radius:999px;border:2px solid transparent;background-clip:padding-box}.tenant-shell.theme-dark .staff-modal::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#9bd6faf2,#57a2d3fa);border-radius:999px;border:2px solid transparent;background-clip:padding-box}.staff-modal--compact{width:min(460px,100%)}.staff-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.staff-modal-header p,.staff-modal-header h2{margin:0}.staff-modal-header p{color:var(--tenant-muted);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.staff-modal-header h2{color:var(--tenant-strong);font-size:1.2rem}.staff-modal-close{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--tenant-card-border);border-radius:999px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);cursor:pointer;font-size:1.3rem;line-height:1;text-align:center}.staff-modal-close:disabled{cursor:not-allowed;opacity:.55}.staff-edit-form{margin-top:14px;display:grid;gap:14px}.resident-wizard-modal__panel{margin-top:14px;padding:16px;border:1px solid rgba(148,163,184,.22);border-radius:16px;background:linear-gradient(180deg,#f8fafcf5,#f1f5f9eb);box-shadow:inset 0 1px #ffffffbf,0 10px 24px #0f172a0f}.resident-wizard-modal__panel .staff-edit-form{margin-top:0}.tenant-shell.theme-dark .resident-wizard-modal__panel{border-color:#7aa5e638;background:linear-gradient(180deg,#0d1e33c7,#102642b8);box-shadow:inset 0 1px #ffffff0a,0 12px 28px #0000002e}.staff-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.staff-form-grid__full{grid-column:1 / -1}.staff-form-grid--checkboxes-inline{grid-template-columns:repeat(2,minmax(0,max-content));align-items:center}.staff-edit-form label{display:grid;gap:6px;color:var(--tenant-strong);font-size:.82rem;font-weight:700}.staff-edit-form label.staff-checkbox-row{display:inline-flex;align-items:center;gap:8px;font-size:.84rem}.staff-edit-form label.staff-checkbox-row span{font-weight:600}.staff-edit-form :is(input,select,textarea){width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--tenant-card-border);border-radius:12px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);font:inherit;box-sizing:border-box;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}.staff-edit-form :is(input[type=checkbox],input[type=radio]){width:16px;min-width:16px;height:16px;min-height:16px;padding:0;border-radius:4px;box-sizing:border-box;accent-color:#0a67c4}.staff-edit-form textarea{min-height:112px;resize:vertical}.staff-edit-form :is(input,select,textarea)::placeholder{color:var(--tenant-muted)}.staff-edit-form :is(input,select,textarea):focus-visible{outline:none;border-color:#0a67c48c;box-shadow:0 0 0 3px #0a67c42e;background:var(--tenant-kpi-bg-b)}.staff-edit-form :is(input[type=checkbox],input[type=radio]):focus-visible{box-shadow:0 0 0 2px #0a67c433}.tenant-shell.theme-dark .staff-edit-form :is(input,select,textarea){border-color:#7aa5e657;background:#0f2744;color:#e6f0ff}.tenant-shell.theme-dark .staff-edit-form :is(input,select,textarea):focus-visible{border-color:#93c5fdb3;box-shadow:0 0 0 3px #1d4ed84d;background:#123055}.tenant-shell.theme-dark .staff-edit-form :is(input,select,textarea)::placeholder{color:#9ab0d1}.tenant-shell.theme-dark .staff-edit-form input[type=date]::-webkit-calendar-picker-indicator,.tenant-shell.theme-dark .staff-edit-form input[type=time]::-webkit-calendar-picker-indicator{filter:invert(.95) brightness(1.1)}.staff-modal-select{width:100%;min-height:46px;box-sizing:border-box}.resident-pautas-turnos-group{margin:0;border:1px solid var(--tenant-card-border);border-radius:12px;padding:10px 12px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.resident-pautas-turnos-group legend{padding:0 4px;font-size:.82rem;color:var(--tenant-muted);font-weight:700}.resident-pautas-turnos-option{display:inline-flex;align-items:center;gap:6px;font-size:.86rem;color:var(--tenant-strong)}.staff-edit-form label.resident-pautas-turnos-option{display:inline-flex;align-items:center;gap:6px}.resident-pautas-switches{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px;margin-bottom:8px}.resident-pautas-switch{display:inline-flex;align-items:center;gap:6px;font-size:.86rem;color:var(--tenant-strong)}.staff-edit-form label.resident-pautas-switch{display:inline-flex;align-items:center;gap:8px}.staff-edit-form.is-submitted :is(input,select,textarea)[required]:invalid:not(:disabled){border-color:#d53f3f;box-shadow:0 0 0 3px #d53f3f2e}.staff-input-invalid{border-color:#d53f3f!important;box-shadow:0 0 0 3px #d53f3f2e}.staff-field-note-error{margin-top:2px;color:#b42318;font-size:.78rem;font-weight:700}.staff-password-input-wrap{position:relative;display:flex;align-items:center}.staff-password-input-wrap input{width:100%;padding-right:44px}.staff-password-toggle-btn{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:1px solid transparent;border-radius:8px;padding:0;display:grid;place-items:center;color:var(--tenant-muted);background:transparent;box-shadow:none}.staff-password-toggle-btn svg{width:18px;height:18px}.staff-password-toggle-btn:hover{color:var(--tenant-strong);background:var(--tenant-kpi-bg-a);border-color:var(--tenant-card-border)}.staff-form-actions{display:flex;justify-content:flex-end;gap:10px}.staff-secondary-btn{border:1px solid var(--tenant-card-border);background:var(--tenant-kpi-bg-a);color:var(--tenant-strong)}.staff-secondary-btn:hover{background:var(--tenant-track-bg-a)}.staff-primary-btn{background:linear-gradient(140deg,#0a67c4,#07439a);color:#fff}.staff-primary-btn:hover{background:linear-gradient(140deg,#0b6fce,#08479f)}.staff-modal :is(.staff-primary-btn,.staff-secondary-btn){transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.staff-modal :is(.staff-primary-btn,.staff-secondary-btn):hover:not(:disabled){transform:translateY(-1px);filter:saturate(1.05)}.staff-modal .staff-primary-btn:hover:not(:disabled){box-shadow:0 10px 20px #08479f47}.staff-modal .staff-secondary-btn:hover:not(:disabled){box-shadow:0 8px 16px #07234f29}.staff-modal :is(.staff-primary-btn,.staff-secondary-btn):active:not(:disabled){transform:translateY(0)}.staff-modal :is(.staff-primary-btn,.staff-secondary-btn):disabled{transform:none;box-shadow:none;filter:none}.resident-modules-toolbar{display:flex;justify-content:flex-start;gap:10px;flex-wrap:wrap}.resident-modules-back-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none}.resident-modules-back-link svg{width:16px;height:16px}.resident-modules-back-link--enhanced{border-radius:12px;padding:8px 12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));box-shadow:0 8px 16px var(--tenant-card-shadow);transition:transform .2s ease,box-shadow .2s ease}.resident-modules-back-link--enhanced:hover{transform:translateY(-1px);box-shadow:0 10px 18px var(--tenant-card-shadow)}.resident-module-card{display:grid;gap:14px}.resident-module-card__copy{display:grid;gap:6px}.resident-module-card__copy h2{margin:0;font-size:1rem;color:var(--tenant-strong)}.resident-module-card__copy p{margin:0;color:var(--tenant-muted)}.resident-module-card__footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.resident-entities-surface{display:grid;gap:14px;background:transparent;border-color:transparent;box-shadow:none}.resident-antecedentes-surface{display:grid;gap:12px}.resident-antecedentes-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid var(--tenant-card-border)}.resident-antecedentes-header__title-wrap{display:grid;gap:4px}.resident-antecedentes-header__icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:#0a67c4;background:linear-gradient(165deg,#24a4e42e,#0a67c433);border:1px solid rgba(10,103,196,.24);margin-bottom:4px}.resident-antecedentes-header__icon svg{width:21px;height:21px}.resident-antecedentes-header__title-wrap p{margin:0;color:var(--tenant-muted);font-size:.84rem}.resident-antecedentes-header__title-wrap h2{margin:0;color:var(--tenant-strong);font-size:1.2rem;line-height:1.2}.resident-antecedentes-header__title-wrap small{color:var(--tenant-muted);font-size:.82rem;line-height:1.4}.resident-antecedentes-header__meta{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.resident-antecedentes-note{margin:0;font-size:.84rem;color:var(--tenant-muted)}.resident-antecedentes-form{margin-top:2px;border:1px solid var(--tenant-card-border);border-radius:12px;padding:14px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b))}.resident-antecedentes-form__field{display:grid;gap:8px;color:var(--tenant-muted);font-size:.82rem;font-weight:700}.resident-antecedentes-form__heading{display:grid;gap:4px}.resident-antecedentes-form__heading span{color:var(--tenant-strong);font-size:.92rem}.resident-antecedentes-form__heading small{color:var(--tenant-muted);font-size:.8rem;font-weight:500}.resident-antecedentes-form__field textarea{min-height:300px;max-height:560px;resize:vertical;border-radius:10px;border:1px solid var(--tenant-card-border);background:var(--tenant-card-bg);color:var(--tenant-strong);padding:10px 12px;font-family:inherit;font-size:1rem;font-weight:400;line-height:1.45;transition:border-color .2s ease,box-shadow .2s ease}.resident-antecedentes-form__field textarea:focus{outline:none;border-color:#0a67c473;box-shadow:0 0 0 3px #0a67c41f}.resident-antecedentes-form__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.resident-antecedentes-charcount{margin:0;color:var(--tenant-muted);font-size:.8rem;font-weight:700}.resident-antecedentes-charcount.is-alert{color:#9f1f1f}.resident-antecedentes-print-btn{display:inline-flex;align-items:center;gap:7px;border-color:#0a67c44d;background:#0a67c41f;color:#0a4f94}.resident-antecedentes-print-btn svg{width:16px;height:16px}.resident-antecedentes-print-btn:hover:not(:disabled){background:#0a67c42e;border-color:#0a67c461}.resident-antecedentes-reset-btn{border-color:#c265133d;background:#fb923c24;color:#9a3412}.resident-antecedentes-reset-btn:hover:not(:disabled){background:#fb923c38;border-color:#c2651352}.resident-antecedentes-attachment-btn{border-color:#0891b23d;background:#22d3ee24;color:#0f766e}.resident-antecedentes-attachment-btn:hover:not(:disabled){background:#22d3ee38;border-color:#0891b252}.resident-glucemias-surface{display:grid;gap:14px}.resident-glucemias-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.resident-glucemias-kpi-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:5px}.resident-glucemias-kpi-card p{margin:0;font-size:.82rem;color:var(--tenant-muted)}.resident-glucemias-kpi-card strong{font-size:1.2rem;line-height:1.2;color:var(--tenant-strong)}.resident-glucemias-kpi-card span{font-size:.8rem;color:var(--tenant-muted)}.resident-glucemias-chart-card,.resident-glucemias-table-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:8px}.resident-glucemias-chart-card__header,.resident-glucemias-table-card__header{display:grid;gap:4px}.resident-glucemias-chart-card__header h3,.resident-glucemias-table-card__header h3{margin:0;color:var(--tenant-strong);font-size:.98rem}.resident-glucemias-chart-card__header p,.resident-glucemias-table-card__header p{margin:0;color:var(--tenant-muted);font-size:.82rem}.resident-glucemias-filter-bar{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.resident-glucemias-filter-btn{border:1px solid var(--tenant-card-border);border-radius:999px;padding:4px 10px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);font-size:.78rem;font-weight:700;line-height:1}.resident-glucemias-filter-btn:hover{background:var(--tenant-track-bg-a)}.resident-glucemias-filter-btn.is-active{border-color:#0a67c473;background:linear-gradient(140deg,#0a67c4,#07439a);color:#fff}.resident-glucemias-filter-summary{margin:0;color:var(--tenant-muted);font-size:.78rem}.resident-glucemias-table-card__header{grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:12px}.resident-glucemias-table-card__header>div{display:grid;gap:4px}.resident-glucemias-table-card__actions{justify-self:end}.resident-glucemias-table-card__actions .staff-primary-btn{white-space:nowrap}.resident-glucemias-chart-card__legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.resident-glucemias-legend-pill{border-radius:999px;border:1px solid var(--tenant-card-border);background:#0a67c414;color:var(--tenant-strong);font-size:1.27rem;font-weight:700;padding:1px 7px}.resident-glucemias-legend-pill--target{background:#1f7f4f1a;border-color:#1f7f4f42}.resident-glucemias-chart-wrap{overflow-x:auto;max-width:100%}.resident-glucemias-chart{display:block;width:min(100%,1258px);min-width:676px;height:auto;margin-inline:auto}.resident-glucemias-chart__gridline{stroke:#0a67c429;stroke-width:1}.tenant-shell.theme-dark .resident-glucemias-chart__gridline{stroke:#87aee83d}.resident-glucemias-chart__ylabel{font-size:11.6px;fill:var(--tenant-muted);text-anchor:end}.resident-glucemias-chart__xlabel{font-size:11.6px;fill:var(--tenant-muted);text-anchor:middle}.resident-glucemias-chart__target-band{fill:url(#glucemiaTargetBand)}.resident-glucemias-chart__axis{stroke:#0a67c433;stroke-width:1.2}.resident-glucemias-chart__average-line{stroke:#f17700e6;stroke-width:1.4;stroke-dasharray:5 4}.resident-glucemias-chart__average-label{font-size:9.2px;font-weight:700;fill:#e65a00f2;text-anchor:end}.resident-glucemias-chart__area{fill:url(#glucemiaArea)}.resident-glucemias-chart__line{fill:none;stroke:#0a67c4;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.resident-glucemias-chart__dot{fill:#1f7f4f;stroke:#fff;stroke-width:1.6}.resident-glucemias-chart__dot.is-latest{fill:#ff9400;stroke:#fff;stroke-width:1.8}.tenant-shell.theme-dark .resident-glucemias-chart__dot,.tenant-shell.theme-dark .resident-glucemias-chart__dot.is-latest{stroke:#10243f}.resident-glucemias-empty{margin:0;color:var(--tenant-muted);font-size:.86rem}.resident-glucemias-table{min-width:760px}.resident-hidrataciones-chart-card{border-color:#2980b957;background:radial-gradient(120% 160% at 95% -25%,rgba(61,168,232,.2),transparent 46%),linear-gradient(165deg,#e9f6ffeb,#ddf0ffbd)}.resident-hidrataciones-legend-pill{border-color:#318bca4d;background:#1e91db1f;color:#0b4f83}.resident-hidrataciones-chart .resident-glucemias-chart__gridline{stroke:#1c7cc633}.resident-hidrataciones-chart .resident-glucemias-chart__axis{stroke:#126db35c}.resident-hidrataciones-chart .resident-glucemias-chart__average-line{stroke:#008bccf2;stroke-dasharray:4 4}.resident-hidrataciones-chart__target-line{stroke-width:1.6}.resident-hidrataciones-chart .resident-glucemias-chart__average-label{fill:#0d5f98}.resident-hidrataciones-chart__bar{fill:url(#hidratacionBar)}.resident-hidrataciones-chart__bar.is-below{fill:#5aa8e8}.resident-hidrataciones-chart__bar.is-on-target{fill:#18b7c6}.resident-hidrataciones-chart__bar.is-above{fill:#0f7fc9}.tenant-shell.theme-dark .resident-hidrataciones-chart-card{border-color:#4797e157;background:radial-gradient(120% 160% at 90% -20%,rgba(59,153,218,.24),transparent 44%),linear-gradient(165deg,#122b47db,#0c2039e6)}.tenant-shell.theme-dark .resident-hidrataciones-legend-pill{border-color:#6ab6f04d;background:#2c90e338;color:#d9efff}.tenant-shell.theme-dark .resident-hidrataciones-chart .resident-glucemias-chart__gridline{stroke:#7bbcee3d}.tenant-shell.theme-dark .resident-hidrataciones-chart .resident-glucemias-chart__axis{stroke:#75b2e561}.tenant-shell.theme-dark .resident-hidrataciones-chart__bar.is-below{fill:#3f8ed1}.tenant-shell.theme-dark .resident-hidrataciones-chart__bar.is-on-target{fill:#29abc8}.tenant-shell.theme-dark .resident-hidrataciones-chart__bar.is-above{fill:#2f98e3}.resident-constantes-surface{display:grid;gap:14px}.resident-constantes-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.resident-constantes-kpi-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:5px}.resident-constantes-kpi-card p{margin:0;font-size:.82rem;color:var(--tenant-muted)}.resident-constantes-kpi-card strong{font-size:1.08rem;line-height:1.2;color:var(--tenant-strong)}.resident-constantes-kpi-card span{font-size:.8rem;color:var(--tenant-muted)}.resident-constantes-chart-card,.resident-constantes-table-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:8px}.resident-constantes-chart-card__header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}.resident-constantes-chart-card__header>div:first-child{display:grid;gap:4px}.resident-constantes-chart-card__header h3{margin:0;color:var(--tenant-strong);font-size:.98rem}.resident-constantes-chart-card__header p{margin:0;color:var(--tenant-muted);font-size:.82rem}.resident-constantes-chart-filters{display:grid;gap:7px;align-content:start}.resident-constantes-metric-switch{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end}.resident-constantes-metric-btn{border:1px solid var(--tenant-card-border);border-radius:999px;padding:4px 10px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);font-size:.78rem;font-weight:700;line-height:1}.resident-constantes-metric-btn:hover{background:var(--tenant-track-bg-a)}.resident-constantes-metric-btn.is-active{border-color:#0a67c473;background:linear-gradient(140deg,#0a67c4,#07439a);color:#fff}.resident-constantes-chart-wrap{overflow-x:auto;max-width:100%}.resident-constantes-chart{display:block;width:min(100%,1020px);min-width:720px;height:auto;margin-inline:auto}.resident-constantes-chart__gridline{stroke:#0a67c429;stroke-width:1}.tenant-shell.theme-dark .resident-constantes-chart__gridline{stroke:#87aee83d}.resident-constantes-chart__ylabel,.resident-constantes-chart__xlabel{font-size:11.2px;fill:var(--tenant-muted)}.resident-constantes-chart__ylabel{text-anchor:end}.resident-constantes-chart__xlabel{text-anchor:middle}.resident-constantes-chart__axis{stroke:#0a67c433;stroke-width:1.2}.resident-constantes-chart__area{fill:url(#constantesArea)}.resident-constantes-chart__line{fill:none;stroke:#0a67c4;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.resident-constantes-chart__dot{stroke:#fff;stroke-width:1.55}.resident-constantes-chart__dot.is-latest{stroke-width:1.8}.tenant-shell.theme-dark .resident-constantes-chart__dot,.tenant-shell.theme-dark .resident-constantes-chart__dot.is-latest{stroke:#10243f}.resident-constantes-empty{margin:0;color:var(--tenant-muted);font-size:.86rem}.resident-constantes-table-card__header{display:grid;grid-template-columns:1fr;gap:10px;align-items:start}.resident-constantes-table-card__header h3{margin:0;color:var(--tenant-strong);font-size:.98rem}.resident-constantes-table-card__header p{margin:0;color:var(--tenant-muted);font-size:.82rem}.resident-constantes-table-card__header>div:first-child{display:grid;gap:4px}.resident-constantes-filter-bar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end}.resident-constantes-filter-btn{border:1px solid var(--tenant-card-border);border-radius:999px;padding:4px 10px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);font-size:.78rem;font-weight:700;line-height:1}.resident-constantes-filter-btn:hover{background:var(--tenant-track-bg-a)}.resident-constantes-filter-btn.is-active{border-color:#0a67c473;background:linear-gradient(140deg,#0a67c4,#07439a);color:#fff}.resident-constantes-filter-summary{margin:0;color:var(--tenant-muted);font-size:.78rem}.resident-constantes-table-card__actions{display:flex;justify-content:flex-end}.resident-constantes-table-card__actions .staff-primary-btn{white-space:nowrap}.resident-constantes-table{min-width:680px}.resident-constantes-head-cell{display:inline-flex;align-items:center;gap:5px}.resident-constantes-head-cell svg{color:#0a67c4}.tenant-shell.theme-dark .resident-constantes-head-cell svg{color:#9cc4ff}.resident-constantes-record-icon{width:18px;height:18px}.resident-constantes-calendar-entry{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px}.resident-constantes-calendar-hour{display:block;line-height:1}.resident-constantes-calendar-entry .resident-care-icon-strip{width:auto;gap:6px}.resident-glucemias-calendar-entry{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px}.resident-glucemias-calendar-hour{display:block;line-height:1}.resident-glucemias-calendar-entry .resident-care-icon-strip{width:auto;gap:6px}.resident-constantes-actions-cell{width:92px}.resident-constantes-detail-modal{max-width:840px}.resident-constantes-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.resident-constantes-detail-card{border:1px solid var(--tenant-card-border);border-radius:10px;padding:10px 12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));display:grid;gap:5px}.resident-constantes-detail-card span{font-size:.78rem;color:var(--tenant-muted);font-weight:700}.resident-constantes-detail-card strong{font-size:.95rem;color:var(--tenant-strong)}.resident-constantes-detail-card.is-success{border-color:#86efac;background:linear-gradient(170deg,#ecfdf3,#dcfce7)}.resident-constantes-detail-card.is-success span,.resident-constantes-detail-card.is-success strong{color:#166534}.resident-constantes-detail-card.is-warning{border-color:#f59e0b;background:linear-gradient(170deg,#fff7ed,#ffedd5)}.resident-constantes-detail-card.is-warning span,.resident-constantes-detail-card.is-warning strong{color:#92400e}.resident-constantes-detail-card.is-danger{border-color:#fda4af;background:linear-gradient(170deg,#fff1f2,#ffe4e6)}.resident-constantes-detail-card.is-danger span,.resident-constantes-detail-card.is-danger strong{color:#9f1239}.resident-constantes-detail-card.is-info{border-color:#93c5fd;background:linear-gradient(170deg,#eff6ff,#dbeafe)}.resident-constantes-detail-card.is-info span,.resident-constantes-detail-card.is-info strong{color:#1e40af}.resident-citas-surface,.resident-sujecciones-surface{display:grid;gap:14px}.resident-empty-copy{margin:0;color:var(--tenant-muted)}.resident-sujecciones-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.resident-sujecciones-kpi-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:5px}.resident-sujecciones-kpi-card p{margin:0;font-size:.82rem;color:var(--tenant-muted)}.resident-sujecciones-kpi-card strong{font-size:1.08rem;line-height:1.2;color:var(--tenant-strong)}.resident-sujecciones-kpi-card span{font-size:.8rem;color:var(--tenant-muted)}.resident-sujecciones-kpi-card--wide{grid-column:span 2}.resident-sujecciones-kpi-card__head{display:inline-flex;align-items:center;gap:6px}.resident-sujecciones-kpi-card__head svg{width:18px;height:18px;color:#0a67c4}.tenant-shell.theme-dark .resident-sujecciones-kpi-card__head svg{color:#9cc4ff}.resident-sujecciones-table-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:8px}.resident-sujecciones-table-card__header{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start}.resident-sujecciones-table-card__header h3{margin:0;color:var(--tenant-strong);font-size:.98rem}.resident-sujecciones-table-card__header p{margin:0;color:var(--tenant-muted);font-size:.82rem}.resident-sujecciones-table-card__actions{display:flex;justify-content:flex-end}.resident-sujecciones-table-card__actions .staff-primary-btn{white-space:nowrap}.resident-sujecciones-table{min-width:1020px}.resident-sujecciones-detail-list{margin:0;padding-left:18px;display:grid;gap:6px}.resident-sujecciones-detail-list li{display:grid;gap:3px;color:var(--tenant-muted)}.resident-sujecciones-detail-list strong{color:var(--tenant-strong)}.resident-sujecciones-authorization-tools{display:grid;gap:12px;padding:12px;border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b))}.resident-sujecciones-authorization-tools__header{display:grid;gap:3px}.resident-sujecciones-authorization-tools__header h3{margin:0;font-size:.98rem;color:var(--tenant-strong)}.resident-sujecciones-authorization-tools__header p{margin:0;font-size:.8rem;color:var(--tenant-muted)}.resident-sujecciones-authorization-tools__actions{display:flex;flex-wrap:wrap;gap:10px}.resident-sujecciones-authorization-tools__actions .staff-secondary-btn{min-width:220px;justify-content:center;padding-inline:14px;border-color:#0a67c4;background:linear-gradient(140deg,#0a67c4,#07439a);color:#fff}.resident-sujecciones-authorization-tools__actions .staff-secondary-btn:hover:not(:disabled){background:linear-gradient(140deg,#0b6fce,#08479f);border-color:#0b6fce}.resident-sujecciones-authorization-tools__uploads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.resident-sujecciones-authorization-tools__upload{display:grid;gap:6px;margin:0;padding:10px;border:1px solid var(--tenant-card-border);border-radius:10px;background:var(--tenant-card-bg)}.resident-sujecciones-authorization-tools__upload-title{color:var(--tenant-strong);font-size:.86rem;font-weight:700}.resident-sujecciones-authorization-tools__file-input{width:100%;border-radius:10px;background:var(--tenant-kpi-bg-a);border:1px solid var(--tenant-card-border);padding:8px 10px;font-size:.9rem;color:var(--tenant-strong)}.resident-sujecciones-authorization-tools__file-note{margin:0;color:var(--tenant-muted);font-size:.76rem;min-height:1rem}@media(max-width:900px){.resident-sujecciones-authorization-tools__actions .staff-secondary-btn{min-width:100%}.resident-sujecciones-authorization-tools__uploads{grid-template-columns:1fr}}.resident-citas-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.resident-citas-kpi-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:5px}.resident-citas-kpi-card p{margin:0;font-size:.82rem;color:var(--tenant-muted)}.resident-citas-kpi-card strong{font-size:1.08rem;line-height:1.2;color:var(--tenant-strong)}.resident-citas-kpi-card span{font-size:.8rem;color:var(--tenant-muted)}.resident-kpi-count-warning{color:#c96a00!important}.resident-kpi-count-success{color:#1f9d55!important}.resident-objetivos-table,.resident-ellipsis-table{table-layout:fixed}.resident-objetivos-table th,.resident-objetivos-table td,.resident-ellipsis-table th,.resident-ellipsis-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resident-citas-table-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:8px}.resident-citas-table-card__header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:start}.resident-citas-table-card__header h3{margin:0;color:var(--tenant-strong);font-size:.98rem}.resident-citas-table-card__header p{margin:0;color:var(--tenant-muted);font-size:.82rem}.resident-citas-table-card__header>div:first-child{display:grid;gap:4px}.resident-citas-filter-bar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end}.resident-citas-filter-btn{border:1px solid var(--tenant-card-border);border-radius:999px;padding:4px 10px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);font-size:.78rem;font-weight:700;line-height:1}.resident-citas-filter-btn:hover{background:var(--tenant-track-bg-a)}.resident-citas-filter-btn.is-active{border-color:#0a67c473;background:linear-gradient(140deg,#0a67c4,#07439a);color:#fff}.resident-citas-filter-summary{margin:0;color:var(--tenant-muted);font-size:.78rem}.resident-citas-filter-bar input{min-height:40px;border:1px solid var(--tenant-card-border);border-radius:12px;padding:0 12px;color:var(--tenant-strong)}.resident-citas-filter-bar input::placeholder{color:var(--tenant-muted)}.tenant-shell input[type=search]{background:#f7fbff}.tenant-shell input[type=search]::placeholder{font-size:.84rem}.staff-form-note{margin:0;color:var(--tenant-muted);font-size:.78rem}.resident-belongings-list{display:grid;gap:10px}.resident-belongings-list__row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.resident-belongings-list__delete{margin-bottom:1px}.resident-prendas-list{gap:14px}.resident-prendas-list__item{display:grid;gap:12px;padding:14px 16px;border:1px solid rgba(148,163,184,.22);border-radius:14px;background:#ffffff9e}.resident-prendas-list__item-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.resident-prendas-list__item-head strong{color:var(--tenant-strong);font-size:.92rem}.resident-prendas-list__grid{gap:10px 12px}.tenant-shell.theme-dark .resident-prendas-list__item{border-color:#7aa5e62e;background:#0f2036b8}.resident-wizard-entry-list{display:grid;gap:12px}.resident-wizard-summary-list{display:grid;gap:8px}.resident-wizard-summary-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:10px 12px;border:1px solid rgba(148,163,184,.22);border-radius:12px;background:#ffffff9e}.resident-wizard-summary-row.is-selected{border-color:#0e749057;background:#ecfdffdb;box-shadow:0 0 0 2px #22d3ee14}.resident-wizard-summary-row__main{display:grid;gap:2px;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.resident-wizard-summary-row__main strong{color:var(--tenant-strong);font-size:.84rem}.resident-wizard-summary-row__main span{color:var(--tenant-muted);font-size:.78rem}.resident-wizard-summary-row__action{flex-shrink:0}.resident-wizard-entry-card{display:grid;gap:12px;padding:14px;border:1px solid rgba(148,163,184,.22);border-radius:14px;background:#ffffff94}.resident-wizard-entry-card__header{display:flex;align-items:center;justify-content:space-between;gap:12px}.resident-wizard-entry-card__header strong{color:var(--tenant-strong);font-size:.86rem}.resident-wizard-entry-card__delete{flex-shrink:0}.tenant-shell.theme-dark .resident-wizard-entry-card{border-color:#7aa5e638;background:#0c1b2f80}.tenant-shell.theme-dark .resident-wizard-summary-row{border-color:#7aa5e638;background:#0c1b2f70}.tenant-shell.theme-dark .resident-wizard-summary-row.is-selected{border-color:#38bdf866;background:#082f49b3;box-shadow:0 0 0 2px #38bdf81a}.resident-belongings-add-btn{border-color:#0d94883d;background:#0d948824;color:#0f766e}.resident-belongings-add-btn:hover:not(:disabled){background:#0d948838;border-color:#0d94884d}.record-column-filter-bar{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 14px}.record-column-filter-bar label{display:grid;gap:4px;min-width:190px}.record-column-filter-bar label span{font-size:.76rem;font-weight:700;letter-spacing:.02em;color:var(--tenant-muted)}.resident-citas-table-card__actions{display:flex;gap:10px;justify-self:end}.resident-citas-table-card__actions .staff-primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.resident-contratos-actions{display:flex;align-items:center;gap:10px}.resident-contratos-actions .staff-secondary-btn,.resident-contratos-submit .staff-primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}.resident-contratos-form{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.resident-contratos-form__full{grid-column:1 / -1}.resident-contratos-submit{margin-top:12px}.staff-modal .staff-form-actions :is(.staff-primary-btn,.staff-secondary-btn){display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}.resident-comunicaciones-destino-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.resident-comunicaciones-destino-id{margin:0;font-size:.75rem;color:var(--tenant-muted);font-weight:700;line-height:1.2}.resident-comunicaciones-table{min-width:1040px}.resident-comunicaciones-resultado-cell{display:inline-flex;align-items:center;justify-content:flex-start;min-width:120px}.resident-vacunas-table-card__actions{display:flex;align-items:center;gap:14px}.resident-citas-renuncia-btn{width:fit-content;align-self:flex-start;white-space:nowrap}.resident-citas-table{min-width:820px}.resident-citas-table .status-chip.is-pending{color:#0a4f94;background:#0a67c424}.resident-monedero-table__concept{display:grid;gap:4px;padding:8px 10px;border-radius:12px}.resident-monedero-table__concept strong{color:var(--tenant-strong);font-size:.95rem;font-weight:700}.resident-monedero-table__concept span{color:var(--tenant-muted);font-size:.82rem;line-height:1.35}.resident-monedero-type-chip{font-weight:700}.resident-monedero-type-chip--ingreso{color:#166534;background:#16653424}.resident-monedero-type-chip--gasto{color:#b42318;background:#b4231824}.resident-monedero-type-chip--ajuste{color:#b45309;background:#b4530929}.resident-monedero-table__amount{font-weight:700;white-space:nowrap}.resident-monedero-table__amount.is-positive{color:#166534}.resident-monedero-table__amount.is-negative{color:#b42318}.resident-monedero-table__amount.is-adjustment{color:#b45309}.resident-monedero-table__balance{font-weight:700;white-space:nowrap}.resident-monedero-table__balance.is-positive{color:#166534}.resident-monedero-table__balance.is-negative{color:#b42318}.resident-monedero-table__balance.is-neutral,.resident-monedero-kpi--saldo strong{color:#0f4c81}.resident-monedero-kpi--ingresos strong{color:#166534}.resident-monedero-kpi--gastos strong{color:#b42318}.resident-monedero-table{min-width:980px}.resident-monedero-table col.resident-monedero-col-fecha{width:18%}.resident-monedero-table col.resident-monedero-col-tipo{width:11%}.resident-monedero-table col.resident-monedero-col-concepto{width:31%}.resident-monedero-table col.resident-monedero-col-importe,.resident-monedero-table col.resident-monedero-col-saldo{width:12%}.resident-monedero-table col.resident-monedero-col-metodo{width:10%}.resident-monedero-table col.resident-monedero-col-acciones{width:6%}.resident-monedero-table th,.resident-monedero-table td{vertical-align:top}.resident-monedero-table td:nth-child(4),.resident-monedero-table td:nth-child(5){white-space:nowrap}.resident-monedero-table td:nth-child(7),.resident-monedero-table th:nth-child(7){text-align:center}.resident-monedero-table .staff-actions-cell{width:auto}.resident-monedero-table .staff-row-actions{justify-content:center}.resident-monedero-month-bar{justify-content:flex-start;align-items:center;gap:10px}.resident-monedero-month-picker{min-height:42px;min-width:210px;border-radius:14px;padding:8px 14px}.resident-monedero-month-picker input{min-width:0;width:100%;text-transform:lowercase;font-size:.98rem;font-weight:700}.resident-monedero-month-btn{min-height:42px;padding-inline:14px;border-radius:14px;white-space:nowrap}.tenant-shell.theme-dark .resident-monedero-month-picker{background:#0f2744;border-color:#7aa5e657;color:#e6f0ff}.tenant-shell.theme-dark .resident-monedero-month-picker input{color:#e6f0ff;color-scheme:dark}.tenant-shell.theme-dark .resident-monedero-month-picker input::-webkit-calendar-picker-indicator{filter:invert(.95) brightness(1.1)}.tenant-shell.theme-dark input[type=search]{background:#132b49;border-color:#7ca8e54d;color:var(--tenant-strong)}.tenant-shell.theme-dark input[type=search]::placeholder{color:#9ab0d1}.tenant-shell.theme-dark .resident-citas-table-card textarea{border-color:#7aa5e657;background:#0f2744;color:#e6f0ff}.tenant-shell.theme-dark .resident-citas-table-card textarea::placeholder{color:#9ab0d1}.tenant-shell.theme-dark .resident-citas-table .status-chip.is-pending{color:#bfdbfe;background:#1d4ed857}.resident-inventario-list{display:grid;gap:10px}.resident-inventario-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;padding:12px 14px;border:1px solid rgba(148,163,184,.2);border-radius:14px;background:#ffffff9e}.resident-inventario-item__icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px}.resident-inventario-item__icon--pertenencia{background:#0a67c41f;color:#0a4f94}.resident-inventario-item__icon--prenda{background:#0d948824;color:#0f766e}.resident-inventario-item__content{display:grid;gap:4px}.resident-inventario-item__content strong{color:var(--tenant-strong);font-size:.92rem}.resident-inventario-item__content span{color:var(--tenant-muted);font-size:.81rem;line-height:1.4}.tenant-shell.theme-dark .resident-inventario-item{border-color:#7aa5e638;background:#0c1b2f70}.tenant-shell.theme-dark .resident-inventario-item__icon--pertenencia{background:#1d4ed847;color:#bfdbfe}.tenant-shell.theme-dark .resident-inventario-item__icon--prenda{background:#0891b242;color:#99f6e4}.resident-valoraciones-psicologicas-table{min-width:720px}.resident-valoraciones-psicologicas-table th,.resident-valoraciones-psicologicas-table td{padding:8px 6px}.resident-valoraciones-psicologicas-table col.resident-valoraciones-col-fecha{width:18%}.resident-valoraciones-psicologicas-table col.resident-valoraciones-col-motivo{width:40%}.resident-valoraciones-psicologicas-table col.resident-valoraciones-col-revision,.resident-valoraciones-psicologicas-table col.resident-valoraciones-col-acciones{width:21%}.resident-valoraciones-psicologicas-table .staff-actions-cell{text-align:center}.resident-valoraciones-psicologicas-table .staff-row-actions{justify-content:center}.resident-valoraciones-psicologicas-table td:nth-child(1),.resident-valoraciones-psicologicas-table td:nth-child(3),.resident-valoraciones-psicologicas-table th:nth-child(1),.resident-valoraciones-psicologicas-table th:nth-child(3){white-space:nowrap}.resident-valoraciones-kpi-revision-mix{display:inline-flex;align-items:baseline;gap:6px}.resident-valoraciones-kpi-revision-mix .is-warning{color:#c96a00}.resident-valoraciones-kpi-revision-mix .is-danger{color:#b42318}.resident-terapia-participa-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:700}.resident-terapia-participa-chip.is-participa{color:#1f9d55}.resident-terapia-participa-chip.is-no-participa{color:#d14343}.resident-evolucion-estado-box{display:inline-flex;align-items:center;justify-content:center;min-width:86px;padding:4px 8px;border-radius:10px;font-size:.75rem;font-weight:700;line-height:1.2;text-align:center;white-space:nowrap}.resident-evolucion-estado-box.is-done{color:#1f7f4f;background:#1f7f4f24;box-shadow:inset 0 0 0 1px #1f7f4f33}.resident-evolucion-estado-box.is-review{color:#0a4f94;background:#0a67c424;box-shadow:inset 0 0 0 1px #0a67c433}.resident-evolucion-estado-box.is-alert{color:#9f1f1f;background:#be242429;box-shadow:inset 0 0 0 1px #be242433}.resident-pautas-panales-table{min-width:1120px}.resident-diagnosticos-actions-cell{width:148px}.resident-analiticas-actions-cell{width:188px}.resident-oxigenoterapia-actions-cell{width:148px}.resident-registros-oxigenoterapia-col-sat,.resident-registros-oxigenoterapia-sat-cell{width:120px;max-width:120px}.resident-registros-oxigenoterapia-sat-cell small{display:block;margin-top:0}.resident-registros-oxigenoterapia-sat-box{display:inline-flex;align-items:center;justify-content:center;min-width:84px;padding:4px 8px;border-radius:10px}.resident-registros-oxigenoterapia-sat-box.is-done{background:#1f7f4f24;box-shadow:inset 0 0 0 1px #1f7f4f33}.resident-registros-oxigenoterapia-sat-box.is-alert{background:#be242424;box-shadow:inset 0 0 0 1px #be242433}.resident-registros-oxigenoterapia-sat-box.is-pending,.resident-registros-oxigenoterapia-sat-box.is-review{background:#0a67c41a;box-shadow:inset 0 0 0 1px #0a67c429}.resident-registros-oxigenoterapia-sat-result{display:inline-block;font-weight:700;white-space:nowrap}.resident-registros-oxigenoterapia-sat-result.is-done{color:#1f7f4f}.resident-registros-oxigenoterapia-sat-result.is-alert{color:#9f1f1f}.resident-registros-oxigenoterapia-sat-result.is-pending,.resident-registros-oxigenoterapia-sat-result.is-review{color:#0a4f94}.resident-oxigenoterapia-select-wrap{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:700;color:var(--tenant-muted)}.resident-oxigenoterapia-select{border:1px solid var(--tenant-card-border);border-radius:8px;padding:5px 8px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);font-size:.8rem;min-width:210px}.resident-sondas-selector-wrap{display:grid;gap:6px;max-width:360px}.resident-sondas-selector-wrap label{margin:0;color:var(--tenant-muted);font-size:.78rem;font-weight:700}.resident-sondas-detail-close-btn{margin-top:15px}.resident-oxigenoterapia-chart-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:8px}.resident-oxigenoterapia-chart-card__header{display:grid;gap:10px}.resident-oxigenoterapia-chart-card__header h3{margin:0;color:var(--tenant-strong);font-size:.98rem}.resident-oxigenoterapia-chart-card__header p{margin:0;color:var(--tenant-muted);font-size:.82rem}.resident-oxigenoterapia-chart-filters{display:grid;gap:8px}.resident-oxigenoterapia-metric-switch{display:flex;flex-wrap:wrap;gap:7px}.resident-oxigenoterapia-metric-btn{border:1px solid var(--tenant-card-border);border-radius:999px;padding:4px 10px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);font-size:.78rem;font-weight:700;line-height:1}.resident-oxigenoterapia-metric-btn:hover{background:var(--tenant-track-bg-a)}.resident-oxigenoterapia-metric-btn.is-active{border-color:#0a67c473;background:linear-gradient(140deg,#0a67c4,#07439a);color:#fff}.resident-oxigenoterapia-chart-card__legend{display:flex;flex-wrap:wrap;gap:8px}.resident-oxigenoterapia-legend-pill{border:1px solid var(--tenant-card-border);border-radius:999px;padding:4px 10px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);font-size:.76rem;font-weight:700;line-height:1}.resident-oxigenoterapia-chart-wrap{overflow-x:auto;padding-bottom:2px}.resident-oxigenoterapia-chart{display:block;width:100%;min-width:760px;height:auto}.resident-oxigenoterapia-chart__target-band{fill:#1f7f4f21}.resident-oxigenoterapia-chart__gridline{stroke:#5b7fac3d;stroke-width:1}.resident-oxigenoterapia-chart__ylabel,.resident-oxigenoterapia-chart__xlabel{fill:var(--tenant-muted);font-size:8px}.resident-oxigenoterapia-chart__ylabel{text-anchor:end}.resident-oxigenoterapia-chart__xlabel{text-anchor:middle}.resident-oxigenoterapia-chart__axis{stroke:#5b7fac59;stroke-width:1.2}.resident-oxigenoterapia-chart__area{fill:url(#oxigenoterapiaArea)}.resident-oxigenoterapia-chart__line{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.resident-oxigenoterapia-chart__dot{stroke:#fff;stroke-width:1.9}.resident-oxigenoterapia-chart__dot.is-latest{stroke-width:2.2}.resident-oxigenoterapia-chart__reference-line{stroke:#f08a24;stroke-width:1.6;stroke-dasharray:6 5}.resident-oxigenoterapia-chart__reference-label{fill:#a95711;font-size:8px;font-weight:700;text-anchor:end}.resident-oxigenoterapia-chart__average-line{stroke:#d97706;stroke-width:1.3;stroke-dasharray:3 5;opacity:.9}.resident-oxigenoterapia-chart__average-label{fill:#b45309;font-size:8px;font-weight:700;text-anchor:end}.resident-oxigenoterapia-empty{margin:0;color:var(--tenant-muted);font-size:.82rem}.tenant-shell.theme-dark .resident-oxigenoterapia-chart__target-band{fill:#28a75f2e}.tenant-shell.theme-dark .resident-oxigenoterapia-chart__gridline{stroke:#7ca8e54d}.tenant-shell.theme-dark .resident-oxigenoterapia-chart__dot,.tenant-shell.theme-dark .resident-oxigenoterapia-chart__dot.is-latest{stroke:#0c2240}.tenant-shell.theme-dark .resident-oxigenoterapia-chart__reference-label{fill:#f9b56f}.tenant-shell.theme-dark .resident-oxigenoterapia-chart__average-label{fill:#fbbf24}.resident-citas-head-cell{display:inline-flex;align-items:center;gap:5px}.resident-citas-head-cell svg{color:#0a67c4}.tenant-shell.theme-dark .resident-citas-head-cell svg{color:#9cc4ff}.resident-care-icon-strip{display:inline-flex;align-items:center;gap:8px;min-height:20px}.resident-care-icon{flex:0 0 auto}.resident-care-icon--care{width:18px;height:18px;color:#166534}.resident-care-icon--warning{width:18px;height:18px;color:#d97706}.resident-care-icon--empty{width:18px;height:18px;color:#7b8a97}.resident-care-icon--panal-urina{width:18px;height:18px;color:#facc15}.resident-care-icon--panal-heces{width:18px;height:18px;color:#92400e}.resident-care-icon--panal-lesion{width:18px;height:18px;color:#b91c1c}.resident-care-icon--panal-proteccion,.resident-care-icon--hidratacion{width:18px;height:18px;color:#1d4ed8}.tenant-shell.theme-dark .resident-care-icon--care{color:#7dd3a7}.tenant-shell.theme-dark .resident-care-icon--warning{color:#fbbf24}.tenant-shell.theme-dark .resident-care-icon--empty{color:#94a3b8}.tenant-shell.theme-dark .resident-care-icon--panal-urina{color:#facc15}.tenant-shell.theme-dark .resident-care-icon--panal-heces{color:#fdba74}.tenant-shell.theme-dark .resident-care-icon--panal-lesion{color:#f87171}.tenant-shell.theme-dark .resident-care-icon--panal-proteccion,.tenant-shell.theme-dark .resident-care-icon--hidratacion{color:#93c5fd}.resident-daily-panal-detail-chips{display:flex;flex-wrap:wrap;gap:8px}.resident-curas-surface{display:grid;gap:14px}.resident-curas-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.resident-curas-kpi-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:5px}.resident-curas-kpi-card p{margin:0;font-size:.82rem;color:var(--tenant-muted)}.resident-curas-kpi-card strong{font-size:1.08rem;line-height:1.2;color:var(--tenant-strong)}.resident-curas-kpi-card span{font-size:.8rem;color:var(--tenant-muted)}.resident-curas-table-card{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:12px;display:grid;gap:8px}.resident-curas-table-card__header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:start}.resident-curas-table-card__header h3{margin:0;color:var(--tenant-strong);font-size:.98rem}.resident-curas-table-card__header p{margin:0;color:var(--tenant-muted);font-size:.82rem}.resident-curas-table-card__header>div:first-child{display:grid;gap:4px}.resident-curas-filter-bar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end}.resident-curas-filter-btn{border:1px solid var(--tenant-card-border);border-radius:999px;padding:4px 10px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);font-size:.78rem;font-weight:700;line-height:1}.resident-curas-filter-btn:hover{background:var(--tenant-track-bg-a)}.resident-curas-filter-btn.is-active{border-color:#0a67c473;background:linear-gradient(140deg,#0a67c4,#07439a);color:#fff}.resident-curas-filter-summary{margin:0;color:var(--tenant-muted);font-size:.78rem}.resident-curas-table-card__actions{justify-self:end}.resident-curas-table-card__actions .staff-primary-btn{white-space:nowrap}.resident-curas-table{min-width:1120px}.resident-curas-actions-cell{width:188px}.resident-curas-head-cell{display:inline-flex;align-items:center;gap:5px}.resident-curas-head-cell svg{color:#0a67c4}.tenant-shell.theme-dark .resident-curas-head-cell svg{color:#9cc4ff}.resident-curas-detail-modal{max-width:820px;max-height:min(90dvh,820px)}.resident-curas-upload-preview{margin:0;width:fit-content;border:1px solid var(--tenant-card-border);border-radius:12px;padding:6px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b))}.resident-curas-upload-preview img{display:block;width:min(320px,100%);max-height:220px;object-fit:cover;border-radius:8px}.resident-curas-image-modal{max-width:760px}.resident-curas-image-modal__title{margin:0;font-size:.88rem;font-weight:700;color:var(--tenant-strong)}.resident-curas-image-modal__frame{border:1px solid var(--tenant-card-border);border-radius:12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));padding:8px;max-height:62vh;display:grid;place-items:center}.resident-curas-image-modal__frame img{display:block;width:min(100%,680px);max-height:calc(62vh - 16px);object-fit:contain;border-radius:8px}.resident-curas-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.resident-curas-detail-field{display:grid;gap:5px;min-width:0;align-content:start;border:1px solid var(--tenant-card-border);border-radius:10px;padding:10px 12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b))}.resident-curas-detail-field--wide{grid-column:1 / -1}.resident-curas-detail-field span{font-size:.78rem;color:var(--tenant-muted);font-weight:700}.resident-curas-detail-field strong{font-size:.95rem;color:var(--tenant-strong);overflow-wrap:anywhere;word-break:break-word}.resident-curas-detail-field--tone-success{border-color:#bbf7d0;background:#dcfce7}.resident-curas-detail-field--tone-warning,.resident-curas-detail-field--tone-is-high-glucose{border-color:#fdba74;background:#fff7ed}.resident-curas-detail-field--tone-danger,.resident-curas-detail-field--tone-is-alert{border-color:#fecaca;background:#fee2e2}.resident-curas-detail-field--tone-info{border-color:#0a67c438;background:#0a67c424}.resident-curas-detail-field--tone-success span,.resident-curas-detail-field--tone-success strong{color:#166534}.resident-curas-detail-field--tone-warning span,.resident-curas-detail-field--tone-warning strong,.resident-curas-detail-field--tone-is-high-glucose span,.resident-curas-detail-field--tone-is-high-glucose strong{color:#9a3412}.resident-curas-detail-field--tone-danger span,.resident-curas-detail-field--tone-danger strong,.resident-curas-detail-field--tone-is-alert span,.resident-curas-detail-field--tone-is-alert strong{color:#b91c1c}.resident-curas-detail-field--tone-info span,.resident-curas-detail-field--tone-info strong{color:#0a4f94}.resident-detail-scroll-text{display:block;white-space:pre-wrap;line-height:1.42;max-height:8.52em;overflow:auto;padding-right:2px}.resident-curas-detail-texts{display:grid;gap:10px}.resident-curas-detail-image{display:grid;gap:8px}.resident-curas-detail-image h3{margin:0;font-size:.86rem;color:var(--tenant-strong)}.resident-curas-detail-image__frame{border:1px solid var(--tenant-card-border);border-radius:10px;padding:6px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));width:fit-content;max-width:100%}.resident-curas-detail-image__frame img{display:block;width:min(300px,100%);max-height:220px;object-fit:cover;border-radius:8px}.resident-curas-detail-texts article{border:1px solid var(--tenant-card-border);border-radius:10px;padding:10px 12px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));display:grid;gap:5px}.resident-curas-detail-texts article.is-warning{border-color:#f59e0b;background:linear-gradient(170deg,#fff7ed,#ffedd5)}.resident-curas-detail-texts h3{margin:0;font-size:.86rem;color:var(--tenant-strong)}.resident-curas-detail-texts article.is-warning h3{color:#c2410c}.resident-curas-detail-texts p{margin:0;color:var(--tenant-muted);white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.resident-curas-detail-texts article.is-warning p{color:#9a3412}.resident-tratamientos-detail-list{margin:0;padding-left:18px;display:grid;gap:4px;color:var(--tenant-muted)}.resident-tratamientos-detail-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}.resident-tratamientos-detail-item>span:first-child{flex:1 1 auto;min-width:0}.resident-tratamientos-detail-item>span:last-child{flex:0 0 auto;min-width:0;width:fit-content;text-align:right}.resident-tratamientos-detail-item .status-chip{flex-shrink:0}.resident-tratamientos-detail-close-btn{margin-top:15px}.tenant-shell.theme-dark .resident-antecedentes-form__field textarea{background:#132b49;border-color:#7ca8e54d}.tenant-shell.theme-dark .resident-antecedentes-print-btn{border-color:#60a5fa57;background:#1d4ed847;color:#bfdbfe}.tenant-shell.theme-dark .resident-antecedentes-print-btn:hover:not(:disabled){background:#1d4ed85c;border-color:#60a5fa6b}.tenant-shell.theme-dark .resident-antecedentes-reset-btn{border-color:#fb923c47;background:#9a341247;color:#fdba74}.tenant-shell.theme-dark .resident-antecedentes-reset-btn:hover:not(:disabled){background:#c2410c5c;border-color:#fb923c5c}.tenant-shell.theme-dark .resident-antecedentes-attachment-btn{border-color:#22d3ee4d;background:#0891b242;color:#99f6e4}.tenant-shell.theme-dark .resident-antecedentes-attachment-btn:hover:not(:disabled){background:#0891b257;border-color:#22d3ee61}.resident-clinical-summary{display:grid;gap:12px}.resident-clinical-summary__intro{display:grid;gap:6px}.resident-clinical-summary__intro h1{margin:0;font-size:clamp(1.35rem,2.4vw,1.85rem);color:var(--tenant-strong)}.resident-clinical-summary__intro p{margin:0;color:var(--tenant-muted)}.resident-clinical-summary__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.resident-clinical-summary__field{display:grid;gap:6px;border:1px solid var(--tenant-card-border);border-radius:10px;padding:12px 14px;background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b))}.resident-clinical-summary__field span{font-size:.84rem;font-weight:600;line-height:1.3;color:var(--tenant-muted)}.resident-clinical-summary__field strong{color:var(--tenant-strong);font-size:1.02rem;font-weight:700;line-height:1.35}.resident-clinical-summary__allergies-chip{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;width:fit-content;flex:0 0 auto;border:0;box-shadow:none;max-width:100%;font-size:.84rem;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resident-clinical-summary__allergies-chip--with-data{color:var(--tenant-strong);background:linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b))}.resident-clinical-summary__allergies-word{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;color:#9f1f1f;background:#be242429}.resident-clinical-summary__allergies-value{min-width:0;color:var(--tenant-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resident-entities-header{display:grid;gap:6px}.resident-entities-header h2{margin:0;font-size:1rem;color:var(--tenant-strong)}.resident-entities-header p{margin:0;color:var(--tenant-muted)}.resident-entities-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;width:100%;margin-inline:0;background:transparent}.resident-entities-groups{display:grid;gap:16px}.resident-entities-group{display:grid;gap:8px}.resident-entities-group__title{display:inline-flex;align-items:center;width:fit-content;padding:4px 10px;border-radius:999px;font-size:.8rem;font-weight:700;letter-spacing:.02em;color:#2a4e7a;background:#bdd6f161;border:1px solid rgba(130,168,210,.42)}.tenant-shell.theme-dark .resident-entities-group__title{color:#cde0ff;background:#274c7b6b;border-color:#5481ba8a}.resident-entity-card{border:1px solid var(--tenant-card-border);border-radius:14px;padding:12px;display:grid;gap:10px;text-decoration:none;color:inherit;background:linear-gradient(170deg,#fffffffa,#fcfefffc);transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease}.tenant-shell.theme-dark .resident-entity-card{background:linear-gradient(170deg,#132b49f0,#10233df5)}.resident-entity-card:hover{transform:translateY(-1px);border-color:#0a67c44d;box-shadow:0 8px 16px var(--tenant-card-shadow)}.resident-entity-card__head{display:flex;align-items:center;gap:9px}.resident-entity-card__icon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:var(--tenant-notif-color);background:linear-gradient(165deg,var(--tenant-notif-bg-start),var(--tenant-notif-bg-end));border:1px solid var(--tenant-notif-border)}.resident-entity-card__icon svg{width:18px;height:18px}.resident-entity-card h3{margin:0;font-size:.95rem;color:var(--tenant-strong)}.resident-entity-card p{margin:0;color:var(--tenant-muted);font-size:.88rem}.resident-entity-card__footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.resident-entity-card__cta{font-size:.82rem;font-weight:700;color:var(--tenant-notif-color)}.mobile-device-card{position:relative;overflow:hidden;min-height:156px;width:100%;min-width:0;align-content:start;gap:14px;padding:18px;border-radius:8px;background:linear-gradient(180deg,rgba(255,255,255,.7),transparent 42%),linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b))}.tenant-shell.theme-dark .mobile-device-card{background:linear-gradient(180deg,rgba(28,59,99,.32),transparent 42%),linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b))}.mobile-device-grid{width:min(980px,100%);margin:0 auto;grid-template-columns:repeat(2,minmax(360px,440px));justify-content:center;gap:96px}.mobile-device-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--brand-blue-700),var(--brand-orange-500))}.mobile-device-card .resident-entity-card__head{align-items:flex-start}.mobile-device-card .resident-entity-card__icon{width:42px;height:42px;flex:0 0 auto;color:#fff;background:linear-gradient(150deg,var(--brand-blue-700),var(--brand-blue-900));box-shadow:0 8px 14px #07439a2e}.mobile-device-card .resident-entity-card__icon svg{width:22px;height:22px}.mobile-device-card h3{font-size:1rem}.mobile-device-card p{max-width:100%;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-device-card__footer{margin-top:auto;justify-content:flex-start}.mobile-device-card__button{min-width:112px;border-radius:8px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#0a67c4,#07439a);color:#fff;font-size:.86rem;font-weight:700;line-height:1;text-decoration:none;box-shadow:0 8px 14px #07439a38;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.mobile-device-card__button:hover:not(:disabled){transform:translateY(-1px);background:linear-gradient(140deg,#0b6fce,#08479f);box-shadow:0 10px 18px #07439a42}.device-provisioning-layout{display:grid;grid-template-columns:minmax(320px,.92fr) minmax(320px,1.08fr);gap:16px;align-items:start}.device-provisioning-card{display:grid;gap:14px}.device-provisioning-submit{min-width:128px}.device-management-surface{display:grid;gap:14px}.device-management-header,.device-provisioning-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.device-management-header h2,.device-management-header p,.device-provisioning-modal__header h2,.device-provisioning-modal__header p{margin:0}.device-management-header h2,.device-provisioning-modal__header h2{color:var(--tenant-strong);font-size:1.05rem}.device-management-header p,.device-provisioning-modal__header p{color:var(--tenant-muted)}.device-management-header__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.device-management-create-btn,.device-management-refresh-btn{min-height:40px;border-radius:8px;display:inline-flex;align-items:center;gap:8px}.device-management-create-btn svg,.device-management-refresh-btn svg{width:17px;height:17px}.device-management-table{min-width:880px}.family-device-management-table{min-width:0;table-layout:fixed}.family-device-management-table th:first-child,.family-device-management-table td:first-child{width:18%}.family-device-management-table th:nth-child(2),.family-device-management-table td:nth-child(2){width:21%}.family-device-management-table th:nth-child(3),.family-device-management-table td:nth-child(3){width:17%}.family-device-management-table th:nth-child(4),.family-device-management-table td:nth-child(4){width:11%}.family-device-management-table th:nth-child(5),.family-device-management-table td:nth-child(5){width:17%}.family-device-management-table th,.family-device-management-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle}.device-management-table th:nth-child(6),.device-management-table td:nth-child(6){width:128px}.family-device-management-table th:nth-child(6),.family-device-management-table td:nth-child(6){width:180px;overflow-wrap:normal}.device-management-revoke-btn{width:auto;min-width:84px;padding:0 10px;font-size:.78rem}.family-device-actions-cell{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;white-space:nowrap}.device-management-empty,.device-management-loading{margin:0}.device-management-empty{min-height:260px;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;color:var(--tenant-muted)}.device-management-empty svg{width:52px;height:52px;color:var(--tenant-notif-color)}.device-management-empty h2,.device-management-empty p{margin:0}.device-management-empty h2{color:var(--tenant-strong);font-size:1rem}.device-provisioning-modal{width:min(1040px,100%);border-radius:8px;padding:0;overflow:auto}.device-provisioning-modal__header{padding:18px 20px 16px;border-bottom:1px solid var(--tenant-card-border);background:linear-gradient(180deg,var(--tenant-kpi-bg-a),var(--tenant-card-bg))}.device-provisioning-modal__close{width:38px;height:38px;padding:0;border-radius:8px;display:grid;place-items:center;flex:0 0 auto}.device-provisioning-modal__close svg{width:18px;height:18px}.device-provisioning-modal__body{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(420px,1.15fr);min-height:470px}.device-provisioning-form{margin:0;padding:20px;align-content:start;border-right:1px solid var(--tenant-card-border)}.device-provisioning-section-heading{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;margin-bottom:16px}.device-provisioning-step{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--tenant-notif-bg);color:var(--tenant-notif-color);font-size:.82rem;font-weight:800}.device-provisioning-section-heading h3,.device-provisioning-section-heading p{margin:0}.device-provisioning-section-heading h3{color:var(--tenant-strong);font-size:1rem}.device-provisioning-section-heading p{color:var(--tenant-muted);font-size:.86rem;line-height:1.4}.device-provisioning-form__grid{display:grid;gap:14px}.device-provisioning-form__grid label{min-width:0}.device-provisioning-form__grid input,.device-provisioning-form__grid select{width:100%}.device-provisioning-form__note{margin:0;color:var(--tenant-muted);font-size:.84rem;line-height:1.45}.device-provisioning-result{display:grid;gap:14px;align-content:start;min-width:0;padding:20px;background:var(--tenant-kpi-bg-a)}.family-device-qr-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);gap:16px;align-items:stretch}.device-provisioning-qr-preview{min-width:0}.device-provisioning-qr,.device-provisioning-empty{border-radius:8px;border:1px solid var(--tenant-card-border);background:var(--tenant-card-bg)}.device-provisioning-qr{display:grid;align-content:center;justify-items:center;gap:12px;min-height:100%;padding:16px}.device-provisioning-qr img{width:min(220px,100%);aspect-ratio:1;border-radius:8px;border:1px solid var(--tenant-card-border);background:#fff;padding:10px;box-shadow:0 14px 24px var(--tenant-card-shadow)}.device-provisioning-qr__meta{display:grid;justify-items:center;gap:8px;text-align:center}.device-provisioning-qr__meta p,.device-provisioning-qr__meta strong{margin:0}.device-provisioning-qr__meta p{color:var(--tenant-muted)}.device-provisioning-qr__meta strong{color:var(--tenant-strong);font-size:.92rem}.family-device-qr-actions{display:grid;gap:12px;align-content:start;min-width:0}.family-device-qr-actions label{display:grid;gap:6px;color:var(--tenant-muted);font-size:.84rem;font-weight:700}.family-device-qr-actions select,.family-device-qr-actions input{width:100%}.family-device-qr-actions__row{display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:12px}.family-device-qr-actions .device-provisioning-submit{width:100%}.device-provisioning-empty,.device-provisioning-permission{display:grid;place-items:center;gap:12px;text-align:center;color:var(--tenant-muted)}.device-provisioning-empty{min-height:100%;align-content:center;padding:18px;border-style:dashed}.device-provisioning-permission{min-height:280px}.device-provisioning-empty svg,.device-provisioning-permission svg{width:54px;height:54px;color:var(--tenant-notif-color)}.device-provisioning-empty p,.device-provisioning-permission p,.device-provisioning-permission h2{margin:0}.device-provisioning-permission{grid-template-columns:auto minmax(0,1fr);place-items:center start;min-height:auto;text-align:left}.device-provisioning-permission h2{color:var(--tenant-strong);font-size:1rem}@media(max-width:700px){.mobile-device-grid{grid-template-columns:minmax(0,320px)}.family-device-qr-actions__row{grid-template-columns:1fr}}@media(max-width:960px){.device-provisioning-layout{grid-template-columns:1fr}.device-management-header,.device-provisioning-modal__header{display:grid}.device-management-header__actions{justify-content:flex-start}.device-provisioning-modal__body{grid-template-columns:1fr;min-height:auto}.device-provisioning-form{border-right:0;border-bottom:1px solid var(--tenant-card-border)}.family-device-qr-panel{grid-template-columns:1fr}.device-provisioning-qr,.device-provisioning-empty{min-height:280px}}@media(max-width:1200px){.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}.dashboard-main-grid{grid-template-columns:1fr}.distribution-chart-wrap{grid-template-columns:auto 1fr;align-items:center;justify-items:start}.staff-toolbar{grid-template-columns:1fr auto}.staff-search-meta{grid-column:1 / -1;justify-self:start}.resident-antecedentes-header{flex-direction:column;align-items:stretch}.resident-antecedentes-header__meta{justify-content:flex-start}.resident-glucemias-kpis,.resident-constantes-kpis,.resident-citas-kpis,.resident-sujecciones-kpis,.resident-curas-kpis,.resident-curas-detail-grid,.resident-constantes-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-pagination{justify-content:flex-start;flex-wrap:wrap}}@media(max-width:960px){.auth-stage{grid-template-columns:1fr}.auth-brand-panel{padding:26px}.resident-glucemias-kpis,.resident-constantes-kpis,.resident-citas-kpis,.resident-sujecciones-kpis{grid-template-columns:1fr}.resident-sujecciones-kpi-card--wide{grid-column:span 1}.resident-curas-kpis,.resident-curas-detail-grid,.resident-constantes-detail-grid{grid-template-columns:1fr}.resident-glucemias-chart{min-width:633px}.resident-glucemias-table-card__header{grid-template-columns:1fr}.resident-glucemias-table-card__actions{justify-self:start}.resident-constantes-table-card__header,.resident-constantes-chart-card__header{grid-template-columns:1fr}.resident-constantes-metric-switch,.resident-constantes-filter-bar,.resident-constantes-table-card__actions{justify-content:flex-start}.resident-citas-table-card__header,.resident-sujecciones-table-card__header{grid-template-columns:1fr}.resident-sujecciones-table-card__actions,.resident-citas-filter-bar{justify-content:flex-start}.resident-citas-table-card__actions{justify-self:start}.resident-oxigenoterapia-chart{min-width:640px}.resident-oxigenoterapia-select{min-width:170px}.resident-oxigenoterapia-metric-switch{justify-content:flex-start}.resident-curas-table-card__header{grid-template-columns:1fr}.resident-curas-filter-bar{justify-content:flex-start}.resident-curas-table-card__actions{justify-self:start}.resident-curas-actions-cell,.resident-diagnosticos-actions-cell,.resident-oxigenoterapia-actions-cell{width:auto}.resident-constantes-chart{min-width:640px}.brand-logo-wrap{width:148px;height:148px;border-radius:20px;padding:8px}.brand-logo{width:124px;height:124px}.brand-fallback{width:94px;height:94px;border-radius:20px;font-size:2rem}.auth-panel--modern{padding:24px}.tenant-shell{grid-template-columns:1fr;height:auto;overflow:visible}.tenant-sidebar{padding:14px;border-right:0;border-bottom:1px solid rgba(255,255,255,.14);grid-template-rows:auto 1fr;gap:12px;position:static;height:auto;overflow:visible}.tenant-shell.sidebar-collapsed{--tenant-sidebar-width: 1fr}.tenant-sidebar-toggle{display:none}.tenant-shell.sidebar-collapsed .tenant-brand-copy,.tenant-shell.sidebar-collapsed .tenant-sidebar-caption,.tenant-shell.sidebar-collapsed .tenant-nav-text{display:grid}.tenant-shell.sidebar-collapsed .tenant-brand-row{grid-template-columns:auto 1fr;justify-items:stretch}.tenant-shell.sidebar-collapsed .tenant-nav-item{grid-template-columns:40px 1fr;justify-items:stretch;padding:9px 10px}.tenant-main{height:auto;overflow:visible}.tenant-nav{grid-template-columns:1fr 1fr}.tenant-header{align-items:start;flex-direction:column}.tenant-header-actions{align-self:stretch;justify-content:flex-end}.tenant-content{padding-top:16px}.dashboard-kpi-grid{grid-template-columns:1fr}.distribution-chart-wrap{grid-template-columns:1fr;justify-items:center}.staff-form-grid{grid-template-columns:1fr}}.communication-warning-modal{max-width:520px;overflow:hidden;padding:0;opacity:1;background:#fff;border-color:#0a67c433;box-shadow:0 26px 52px #0418336b;-webkit-backdrop-filter:none;backdrop-filter:none}.communication-warning-modal__header{background:linear-gradient(135deg,#0a67c4,#163152);color:#fff;padding:16px 18px}.communication-warning-modal__header h2{margin:0;font-size:1.2rem;font-weight:800}.communication-warning-modal__header p{margin:8px 0 0;color:#ffffffe0;font-size:.92rem;font-weight:600}.communication-warning-modal__content{padding:16px 18px 6px}.communication-warning-modal__content p{margin:0;color:#1f3657;font-size:1rem;font-weight:700}.tenant-shell.theme-dark .communication-warning-modal,.staff-modal-backdrop.is-theme-dark .communication-warning-modal{background:#102640;border-color:#7eb1e852;box-shadow:0 26px 52px #00000085}.tenant-shell.theme-dark .communication-warning-modal__header,.staff-modal-backdrop.is-theme-dark .communication-warning-modal__header{background:linear-gradient(135deg,#1b4f84,#102a46)}.tenant-shell.theme-dark .communication-warning-modal__header p,.staff-modal-backdrop.is-theme-dark .communication-warning-modal__header p{color:#e0eeffe6}.tenant-shell.theme-dark .communication-warning-modal__content p,.staff-modal-backdrop.is-theme-dark .communication-warning-modal__content p{color:#d5e5f6}.communication-warning-modal__actions{display:flex;gap:10px;padding:16px 18px 18px}.communication-warning-modal__actions .staff-primary-btn,.communication-warning-modal__actions .staff-secondary-btn{flex:1}.communication-warning-modal__cancel{border-color:#b91c1c;background:#ef444433;color:#7f1d1d}.communication-warning-modal__confirm{border-color:#15803d;background:#22c55e40;color:#14532d}.tenant-shell.theme-dark .communication-warning-modal__cancel,.staff-modal-backdrop.is-theme-dark .communication-warning-modal__cancel{border-color:#f871718c;background:#7f1d1d73;color:#fecaca}.tenant-shell.theme-dark .communication-warning-modal__confirm,.staff-modal-backdrop.is-theme-dark .communication-warning-modal__confirm{border-color:#4ade808c;background:#15803d73;color:#bbf7d0}.tenant-shell.theme-dark .communication-warning-modal__actions .staff-secondary-btn:hover:not(:disabled),.staff-modal-backdrop.is-theme-dark .communication-warning-modal__actions .staff-secondary-btn:hover:not(:disabled){background:#991b1b8f;box-shadow:0 8px 16px #00000052}.tenant-shell.theme-dark .communication-warning-modal__actions .staff-primary-btn:hover:not(:disabled),.staff-modal-backdrop.is-theme-dark .communication-warning-modal__actions .staff-primary-btn:hover:not(:disabled){background:#16653494;box-shadow:0 10px 20px #00000057}.shift-book-page .resident-citas-table-card__actions .staff-primary-btn{display:inline-flex;align-items:center;gap:8px}.shift-book-table td{vertical-align:top}.shift-book-table td:nth-child(3){min-width:240px;max-width:360px;white-space:normal}.shift-book-table tbody tr.is-priority-direccion td{background:#fff7f7}.shift-book-table tbody tr.is-priority-enfermeria td{background:#f5fff8}.shift-book-table tbody tr.is-priority-auxiliar td{background:#fff}.shift-book-table tbody tr.is-priority-direccion td:first-child{box-shadow:inset 3px 0 #ef4444}.shift-book-table tbody tr.is-priority-enfermeria td:first-child{box-shadow:inset 3px 0 #22c55e}.shift-book-table tbody tr.is-priority-auxiliar td:first-child{box-shadow:inset 3px 0 #2563eb}.shift-book-professional-cell{display:inline-flex;align-items:center;gap:8px;flex-wrap:nowrap;max-width:100%;min-width:0}.shift-book-professional-inline{display:inline-flex;align-items:center;gap:8px;flex-wrap:nowrap}.shift-book-professional-name{white-space:nowrap}.shift-book-role-badge{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;font-size:.7rem;font-weight:800;line-height:1.2;border:1px solid transparent;flex:0 0 auto}.shift-book-role-badge.is-priority-direccion{color:#b91c1c;background:#fee2e2;border-color:#fecaca}.shift-book-role-badge.is-priority-admin{color:#854d0e;background:#fef3c7;border-color:#fcd34d}.shift-book-role-badge.is-priority-enfermeria{color:#166534;background:#dcfce7;border-color:#bbf7d0}.shift-book-role-badge.is-priority-medico{color:#1d4ed8;background:#dbeafe;border-color:#93c5fd}.shift-book-role-badge.is-priority-psicologia{color:#4338ca;background:#eef2ff;border-color:#a5b4fc}.shift-book-role-badge.is-priority-trabajo-social{color:#0f766e;background:#ecfeff;border-color:#67e8f9}.shift-book-role-badge.is-priority-terapia-ocupacional{color:#166534;background:#f0fdf4;border-color:#86efac}.shift-book-role-badge.is-priority-fisioterapia{color:#155e75;background:#ecfeff;border-color:#67e8f9}.shift-book-role-badge.is-priority-auxiliar{color:#1d4ed8;background:#dbeafe;border-color:#bfdbfe}.shift-book-modal{max-width:760px}.shift-book-detail-grid{margin-top:10px;grid-template-columns:max-content max-content minmax(0,1fr)}.shift-book-professional-field{justify-self:start;width:fit-content;max-width:100%}.resident-curas-detail-texts article.shift-book-observaciones-card{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:10px 12px}.resident-curas-detail-texts article.shift-book-observaciones-card h3{color:#c2410c}.resident-curas-detail-texts article.shift-book-observaciones-card p{color:#9a3412}.shift-book-modal-detail.is-priority-direccion{border-color:#fca5a5;box-shadow:0 24px 48px #b91c1c33}.shift-book-modal-detail.is-priority-enfermeria{border-color:#86efac;box-shadow:0 24px 48px #16653433}.shift-book-modal-detail.is-priority-auxiliar{border-color:#93c5fd;box-shadow:0 24px 48px #1d4ed833}.agenda-date-filter{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--tenant-card-border);border-radius:10px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);padding:6px 10px}.agenda-date-filter input{border:0;background:transparent;color:inherit;font:inherit}.agenda-calendar-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.agenda-calendar-controls>strong{display:inline-flex;align-items:center;justify-content:center;min-width:190px;padding:7px 12px;border-radius:10px;border:1px solid rgba(10,103,196,.22);background:linear-gradient(170deg,#f7fbff,#eef5ff);color:#0a4f94;font-size:.83rem;font-weight:800;text-transform:capitalize;box-shadow:inset 0 -1px #ffffff80}.agenda-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:8px;border:1px solid var(--tenant-card-border);border-radius:16px;background:radial-gradient(circle at 12% 10%,rgba(10,103,196,.08),transparent 42%),radial-gradient(circle at 88% 90%,rgba(15,118,110,.06),transparent 40%),linear-gradient(170deg,var(--tenant-kpi-bg-a),var(--tenant-kpi-bg-b));box-shadow:0 12px 22px var(--tenant-card-shadow)}.agenda-calendar-weekday{font-size:.73rem;font-weight:800;color:var(--tenant-muted);text-align:center;padding:6px 0;letter-spacing:.03em;text-transform:uppercase}.agenda-calendar-day{height:96px;position:relative;border:1px solid rgba(10,103,196,.18);border-radius:14px;background:var(--tenant-kpi-bg-a);color:var(--tenant-strong);cursor:pointer;padding:7px 7px 6px;display:flex;flex-direction:column;gap:5px;text-align:left;box-shadow:0 4px 12px #0a3c8714;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease;overflow:hidden}.agenda-calendar-add-btn{position:absolute;top:5px;right:5px;width:18px;height:18px;border-radius:999px;border:1px solid rgba(10,103,196,.5);background:linear-gradient(180deg,#0b6fce,#07439a);color:#fff;font-size:.86rem;font-weight:900;line-height:1;display:inline-flex;align-items:center;justify-content:center;padding:0;box-shadow:0 4px 9px #0a3c8747}.agenda-calendar-add-btn:hover{filter:saturate(1.08);transform:translateY(-1px)}.agenda-calendar-add-btn:disabled{cursor:not-allowed;opacity:.45;filter:grayscale(.3);transform:none;box-shadow:none}.agenda-calendar-day:hover{background:var(--tenant-track-bg-a);transform:translateY(-1px);box-shadow:0 10px 18px #0a3c8724;border-color:#0a67c457}.agenda-calendar-day.is-selected{border-color:#0a67c49e;background:linear-gradient(170deg,#f7fbff,#eef5ff);box-shadow:0 0 0 2px #0a67c42e,0 12px 22px #0a3c872e}.agenda-calendar-day.is-outside{opacity:.56;background:color-mix(in srgb,var(--tenant-kpi-bg-a) 80%,#ffffff 20%)}.agenda-calendar-daynum{font-weight:800;font-size:.82rem;line-height:1}.agenda-calendar-entry-list{display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-height:0;overflow-y:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:rgba(123,168,230,.45) transparent}.agenda-calendar-entry-list::-webkit-scrollbar{width:6px}.agenda-calendar-entry-list::-webkit-scrollbar-track{background:transparent}.agenda-calendar-entry-list::-webkit-scrollbar-thumb{background:#0a67c459;border-radius:999px}.agenda-calendar-entry{display:block;flex:0 0 auto;font-size:.68rem;font-weight:700;line-height:1.2;border-radius:8px;border:1px solid transparent;padding:2px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.agenda-calendar-entry__btn{width:100%;border:0;background:transparent;color:inherit;padding:0;margin:0;font:inherit;text-align:left;cursor:pointer}.agenda-calendar-entry.resident-constantes-calendar-entry{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;white-space:nowrap}.agenda-calendar-entry.resident-hidratacion-calendar-entry{justify-content:flex-start;align-items:center;width:100%;min-height:34px;font-size:.72rem;padding:4px 8px}.resident-hidratacion-calendar-content{width:auto;display:inline-flex;align-items:center;justify-content:flex-start;gap:10px}.resident-hidratacion-glass{position:relative;width:14px;height:18px;display:inline-flex;align-items:flex-end;justify-content:center;border:1px solid rgba(10,103,196,.4);border-radius:3px 3px 5px 5px;background:#dbeafe80;overflow:hidden}.resident-hidratacion-glass-fill{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#60a5fa,#0a67c4)}.agenda-calendar-entry.resident-glucemias-calendar-entry{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;white-space:nowrap}.agenda-calendar-entry.is-pendiente{color:#0a4f94;background:#0a67c424;border-color:#0a67c438}.agenda-calendar-entry.is-confirmado,.agenda-calendar-entry.is-completado{color:#166534;background:#dcfce7;border-color:#bbf7d0}.agenda-calendar-entry.is-cancelado{color:#b91c1c;background:#fee2e2;border-color:#fecaca}.agenda-calendar-entry.is-no_completado{color:#9a3412;background:#fff7ed;border-color:#fdba74}.agenda-calendar-entry.is-pending{color:#0a4f94;background:#0a67c424;border-color:#0a67c438}.agenda-calendar-entry.is-done{color:#166534;background:#dcfce7;border-color:#bbf7d0}.agenda-calendar-entry.is-alert{color:#b91c1c;background:#fee2e2;border-color:#fecaca}.agenda-calendar-entry.is-warning,.agenda-calendar-entry.is-high-glucose{color:#9a3412;background:#fff7ed;border-color:#fdba74}.agenda-calendar-entry.is-hydration-green-amber{color:#3f6212;background:#f7fee7;border-color:#bef264}.agenda-calendar-entry.is-hydration-red-amber{color:#9a3412;background:#fff7ed;border-color:#fdba74}.agenda-calendar-entry.is-hydration-orange-deep{color:#9a3412;background:#ffedd5;border-color:#fb923c}.agenda-calendar-entry.is-hydration-red-soft{color:#b45309;background:#ffedd5;border-color:#f97316}.agenda-calendar-entry.is-hydration-red-deep{color:#7f1d1d;background:#fee2e2;border-color:#fca5a5}.agenda-calendar-entry.is-review{color:#0a4f94;background:#0a67c424;border-color:#0a67c438}.agenda-calendar-entry.is-priority-direccion{color:#b91c1c;background:#fee2e2;border-color:#fecaca}.agenda-calendar-entry.is-priority-enfermeria{color:#166534;background:#dcfce7;border-color:#bbf7d0}.agenda-calendar-entry.is-priority-auxiliar{color:#1d4ed8;background:#dbeafe;border-color:#bfdbfe}.agenda-calendar-counters{display:inline-flex;gap:5px;flex-wrap:wrap}.agenda-calendar-counters small{display:inline-flex;align-items:center;border-radius:999px;border:1px solid transparent;padding:1px 6px;font-size:.61rem;font-weight:800;letter-spacing:.01em;box-shadow:inset 0 -1px #ffffff3d}.agenda-calendar-counters .is-pending{color:#0a4f94;background:#0a67c424;border-color:#0a67c433}.agenda-calendar-counters .is-done{color:#166534;background:#dcfce7;border-color:#bbf7d0}.agenda-calendar-counters .is-alert{color:#b91c1c;background:#fee2e2;border-color:#fecaca}.agenda-subtitle{margin-top:3px;color:var(--tenant-muted);font-size:.79rem;line-height:1.3}.agenda-status-chip,.agenda-priority-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;padding:3px 8px;font-size:.72rem;font-weight:800;border:1px solid transparent}.agenda-status-chip svg{width:13px;height:13px}.agenda-table tbody tr td{transition:background-color .16s ease}.agenda-table tbody tr:hover td{background:var(--tenant-track-bg-a)}.agenda-table tbody tr.is-flash td{animation:agendaRowFlash 1.8s ease}@keyframes agendaRowFlash{0%{background-color:#0a67c438}to{background-color:transparent}}.agenda-status-chip.is-pendiente{color:#0a4f94;background:#0a67c424;border-color:#0a67c433}.agenda-status-chip.is-confirmado,.agenda-status-chip.is-completado{color:#166534;background:#dcfce7;border-color:#bbf7d0}.agenda-status-chip.is-cancelado{color:#b91c1c;background:#fee2e2;border-color:#fecaca}.agenda-status-chip.is-no_completado{color:#9a3412;background:#fff7ed;border-color:#fdba74}.agenda-priority-chip.is-baja{color:#166534;background:#ecfdf5;border-color:#a7f3d0}.agenda-priority-chip.is-media{color:#92400e;background:#fffbeb;border-color:#fde68a}.agenda-priority-chip.is-alta{color:#9f1239;background:#fff1f2;border-color:#fecdd3}.agenda-visibility-chip{display:inline-flex;align-items:center;margin-left:8px;padding:1px 7px;border-radius:999px;font-size:.66rem;font-weight:800;border:1px solid transparent;vertical-align:middle}.agenda-visibility-chip.is-privado{color:#7c2d12;background:#fff7ed;border-color:#fdba74}.agenda-visibility-chip.is-centro{color:#166534;background:#ecfdf5;border-color:#86efac}.agenda-visibility-chip.is-equipo{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.agenda-visibility-chip.is-auxiliares{color:#7c3aed;background:#f5f3ff;border-color:#c4b5fd}.agenda-visibility-chip.is-cocina{color:#9a3412;background:#fff7ed;border-color:#fdba74}.agenda-visibility-chip.is-enfermeria{color:#0f766e;background:#ecfeff;border-color:#67e8f9}.agenda-visibility-chip.is-fisioterapia{color:#0f766e;background:#ecfeff;border-color:#5eead4}.agenda-visibility-chip.is-limpieza{color:#0f766e;background:#f0fdfa;border-color:#99f6e4}.agenda-visibility-chip.is-medico{color:#9f1239;background:#fff1f2;border-color:#fda4af}.agenda-visibility-chip.is-psicologia{color:#4338ca;background:#eef2ff;border-color:#a5b4fc}.agenda-visibility-chip.is-terapia{color:#166534;background:#f0fdf4;border-color:#86efac}.agenda-visibility-chip.is-trabajo_social{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.agenda-table tbody tr.is-priority-direccion td:first-child{box-shadow:inset 3px 0 #ef4444}.agenda-table tbody tr.is-priority-admin td:first-child{box-shadow:inset 3px 0 #eab308}.agenda-table tbody tr.is-priority-enfermeria td:first-child{box-shadow:inset 3px 0 #22c55e}.agenda-table tbody tr.is-priority-medico td:first-child{box-shadow:inset 3px 0 #2563eb}.agenda-table tbody tr.is-priority-psicologia td:first-child{box-shadow:inset 3px 0 #6366f1}.agenda-table tbody tr.is-priority-trabajo-social td:first-child{box-shadow:inset 3px 0 #06b6d4}.agenda-table tbody tr.is-priority-terapia-ocupacional td:first-child{box-shadow:inset 3px 0 #22c55e}.agenda-table tbody tr.is-priority-fisioterapia td:first-child{box-shadow:inset 3px 0 #0891b2}.agenda-table tbody tr.is-priority-auxiliar td:first-child{box-shadow:inset 3px 0 #2563eb}.agenda-visibility-select.is-privado{color:#7c2d12;background:#fff7ed;border-color:#fdba74}.agenda-visibility-select.is-centro{color:#166534;background:#ecfdf5;border-color:#86efac}.agenda-visibility-select.is-equipo{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.agenda-visibility-select.is-auxiliares{color:#7c3aed;background:#f5f3ff;border-color:#c4b5fd}.agenda-visibility-select.is-cocina{color:#9a3412;background:#fff7ed;border-color:#fdba74}.agenda-visibility-select.is-enfermeria{color:#0f766e;background:#ecfeff;border-color:#67e8f9}.agenda-visibility-select.is-fisioterapia{color:#0f766e;background:#ecfeff;border-color:#5eead4}.agenda-visibility-select.is-limpieza{color:#0f766e;background:#f0fdfa;border-color:#99f6e4}.agenda-visibility-select.is-medico{color:#9f1239;background:#fff1f2;border-color:#fda4af}.agenda-visibility-select.is-psicologia{color:#4338ca;background:#eef2ff;border-color:#a5b4fc}.agenda-visibility-select.is-terapia{color:#166534;background:#f0fdf4;border-color:#86efac}.agenda-visibility-select.is-trabajo_social{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.agenda-visibility-select option[value=privado]{background:#fff7ed;color:#7c2d12}.agenda-visibility-select option[value=centro]{background:#ecfdf5;color:#166534}.agenda-visibility-select option[value=equipo]{background:#eff6ff;color:#1d4ed8}.agenda-visibility-select option[value=auxiliares]{background:#f5f3ff;color:#7c3aed}.agenda-visibility-select option[value=cocina]{background:#fff7ed;color:#9a3412}.agenda-visibility-select option[value=enfermeria],.agenda-visibility-select option[value=fisioterapia]{background:#ecfeff;color:#0f766e}.agenda-visibility-select option[value=limpieza]{background:#f0fdfa;color:#0f766e}.agenda-visibility-select option[value=medico]{background:#fff1f2;color:#9f1239}.agenda-visibility-select option[value=psicologia]{background:#eef2ff;color:#4338ca}.agenda-visibility-select option[value=terapia]{background:#f0fdf4;color:#166534}.agenda-visibility-select option[value=trabajo_social]{background:#eff6ff;color:#1d4ed8}.agenda-cancel-entry-btn{border-color:#fca5a5;background:linear-gradient(180deg,#fff1f2,#ffe4e6);color:#991b1b;box-shadow:inset 0 -1px #991b1b24}.agenda-cancel-entry-btn:hover:not(:disabled){background:linear-gradient(180deg,#ffe4e6,#fecdd3)}.agenda-complete-entry-btn{background:linear-gradient(180deg,#22c55e,#15803d);border-color:#15803d;box-shadow:0 10px 18px #15803d47}.agenda-complete-entry-btn:hover:not(:disabled){background:linear-gradient(180deg,#16a34a,#166534);box-shadow:0 12px 20px #15803d57}.tenant-shell.theme-dark .shift-book-table tbody tr.is-priority-direccion td{background:#ef44441f}.tenant-shell.theme-dark .shift-book-table tbody tr.is-priority-enfermeria td{background:#22c55e1a}.tenant-shell.theme-dark .shift-book-table tbody tr.is-priority-auxiliar td{background:#2563eb1a}.tenant-shell.theme-dark .shift-book-role-badge.is-priority-direccion{color:#fecaca;background:#b91c1c57;border-color:#fca5a580}.tenant-shell.theme-dark .shift-book-role-badge.is-priority-admin{color:#fde68a;background:#a1620757;border-color:#fcd34d80}.tenant-shell.theme-dark .shift-book-role-badge.is-priority-enfermeria{color:#bbf7d0;background:#15803d57;border-color:#86efac7a}.tenant-shell.theme-dark .shift-book-role-badge.is-priority-medico{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd7a}.tenant-shell.theme-dark .shift-book-role-badge.is-priority-psicologia{color:#c7d2fe;background:#4338ca57;border-color:#a5b4fc70}.tenant-shell.theme-dark .shift-book-role-badge.is-priority-trabajo-social{color:#a5f3fc;background:#0891b252;border-color:#67e8f970}.tenant-shell.theme-dark .shift-book-role-badge.is-priority-terapia-ocupacional{color:#bbf7d0;background:#15803d57;border-color:#86efac75}.tenant-shell.theme-dark .shift-book-role-badge.is-priority-fisioterapia{color:#a5f3fc;background:#0e749057;border-color:#67e8f970}.tenant-shell.theme-dark .shift-book-role-badge.is-priority-auxiliar{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd80}.tenant-shell.theme-dark .resident-curas-detail-field--tone-success{border-color:#86efac7a;background:#15803d57}.tenant-shell.theme-dark .resident-curas-detail-field--tone-warning,.tenant-shell.theme-dark .resident-curas-detail-field--tone-is-high-glucose{border-color:#fdba7480;background:#7c2d1257}.tenant-shell.theme-dark .resident-curas-detail-field--tone-danger,.tenant-shell.theme-dark .resident-curas-detail-field--tone-is-alert{border-color:#fca5a580;background:#b91c1c57}.tenant-shell.theme-dark .resident-curas-detail-field--tone-info{border-color:#93c5fd80;background:#1d4ed857}.tenant-shell.theme-dark .resident-curas-detail-field--tone-success span,.tenant-shell.theme-dark .resident-curas-detail-field--tone-success strong{color:#bbf7d0}.tenant-shell.theme-dark .resident-curas-detail-field--tone-warning span,.tenant-shell.theme-dark .resident-curas-detail-field--tone-warning strong,.tenant-shell.theme-dark .resident-curas-detail-field--tone-is-high-glucose span,.tenant-shell.theme-dark .resident-curas-detail-field--tone-is-high-glucose strong{color:#fed7aa}.tenant-shell.theme-dark .resident-curas-detail-field--tone-danger span,.tenant-shell.theme-dark .resident-curas-detail-field--tone-danger strong,.tenant-shell.theme-dark .resident-curas-detail-field--tone-is-alert span,.tenant-shell.theme-dark .resident-curas-detail-field--tone-is-alert strong{color:#fecaca}.tenant-shell.theme-dark .resident-curas-detail-field--tone-info span,.tenant-shell.theme-dark .resident-curas-detail-field--tone-info strong{color:#bfdbfe}.tenant-shell.theme-dark .resident-curas-detail-texts article.shift-book-observaciones-card{background:#7c2d125c;border-color:#fbbf245c}.tenant-shell.theme-dark .resident-curas-detail-texts article.shift-book-observaciones-card h3{color:#fcd34d}.tenant-shell.theme-dark .resident-curas-detail-texts article.shift-book-observaciones-card p{color:#fed7aa}.tenant-shell.theme-dark .shift-book-modal-detail.is-priority-direccion{border-color:#fca5a5ad;box-shadow:0 24px 48px #3c0a0a80}.tenant-shell.theme-dark .shift-book-modal-detail.is-priority-enfermeria{border-color:#86efac9e;box-shadow:0 24px 48px #0a301a7a}.tenant-shell.theme-dark .shift-book-modal-detail.is-priority-auxiliar{border-color:#93c5fdad;box-shadow:0 24px 48px #091f4c80}.tenant-shell.theme-dark .agenda-date-filter input::-webkit-calendar-picker-indicator{filter:invert(.95) brightness(1.1)}.tenant-shell.theme-dark .agenda-calendar-controls>strong{border-color:#93c5fd61;background:linear-gradient(170deg,#173a60,#153556);color:#dbeafe;box-shadow:inset 0 -1px #93c5fd33}.tenant-shell.theme-dark .agenda-status-chip.is-pendiente{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd80}.tenant-shell.theme-dark .agenda-calendar-day{background:linear-gradient(170deg,#122f52,#112948);border-color:#7ba8e652;box-shadow:0 6px 14px #00000047}.tenant-shell.theme-dark .agenda-calendar-add-btn{border-color:#93c5fda8;background:linear-gradient(180deg,#2563eb,#1e3a8a);box-shadow:0 6px 12px #00000061}.tenant-shell.theme-dark .agenda-calendar-day:hover{background:linear-gradient(170deg,#194069,#17375e);border-color:#93c5fd85;box-shadow:0 12px 22px #0000005c}.tenant-shell.theme-dark .agenda-calendar-day.is-selected{border-color:#93c5fdb8;background:linear-gradient(170deg,#1a3f66,#19395f);box-shadow:0 0 0 2px #3b82f63d,0 14px 24px #0000006b}.tenant-shell.theme-dark .agenda-calendar-day.is-outside{opacity:.52;background:linear-gradient(170deg,#122f52c7,#112948c7);border-color:#7ba8e638}.tenant-shell.theme-dark .agenda-calendar-grid{border-color:#7ba8e64d;background:radial-gradient(circle at 12% 10%,rgba(59,130,246,.16),transparent 44%),radial-gradient(circle at 88% 90%,rgba(20,184,166,.14),transparent 42%),linear-gradient(170deg,#0f2744,#10243f);box-shadow:0 14px 26px #00000057}.tenant-shell.theme-dark .agenda-calendar-counters .is-pending{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd80}.tenant-shell.theme-dark .agenda-calendar-counters .is-done{color:#bbf7d0;background:#15803d57;border-color:#86efac7a}.tenant-shell.theme-dark .agenda-calendar-counters .is-alert{color:#fecaca;background:#b91c1c57;border-color:#fca5a580}.tenant-shell.theme-dark .agenda-calendar-entry.is-pendiente{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd80}.tenant-shell.theme-dark .agenda-calendar-entry.is-confirmado,.tenant-shell.theme-dark .agenda-calendar-entry.is-completado{color:#bbf7d0;background:#15803d57;border-color:#86efac7a}.tenant-shell.theme-dark .agenda-calendar-entry.is-cancelado{color:#fecaca;background:#b91c1c57;border-color:#fca5a580}.tenant-shell.theme-dark .agenda-calendar-entry.is-no_completado{color:#fed7aa;background:#7c2d1257;border-color:#fdba7480}.tenant-shell.theme-dark .agenda-calendar-entry.is-pending{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd80}.tenant-shell.theme-dark .agenda-calendar-entry.is-done{color:#bbf7d0;background:#15803d57;border-color:#86efac7a}.tenant-shell.theme-dark .agenda-calendar-entry.is-alert{color:#fecaca;background:#b91c1c57;border-color:#fca5a580}.tenant-shell.theme-dark .agenda-calendar-entry.is-warning,.tenant-shell.theme-dark .agenda-calendar-entry.is-high-glucose{color:#fed7aa;background:#7c2d1257;border-color:#fdba7480}.tenant-shell.theme-dark .agenda-calendar-entry.is-hydration-green-amber{color:#d9f99d;background:#4d7c0f57;border-color:#bef26485}.tenant-shell.theme-dark .agenda-calendar-entry.is-hydration-red-amber{color:#fed7aa;background:#7c2d1257;border-color:#fdba7480}.tenant-shell.theme-dark .agenda-calendar-entry.is-hydration-orange-deep{color:#fdba74;background:#9a34125c;border-color:#fb923c8a}.tenant-shell.theme-dark .agenda-calendar-entry.is-hydration-red-soft{color:#fdba74;background:#b94a0d5c;border-color:#f973168a}.tenant-shell.theme-dark .agenda-calendar-entry.is-hydration-red-deep{color:#fecaca;background:#7f1d1d6b;border-color:#fca5a58c}.tenant-shell.theme-dark .agenda-calendar-entry.is-review{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd80}.tenant-shell.theme-dark .resident-hidratacion-glass{border-color:#93c5fd80;background:#1e3a8a5c}.tenant-shell.theme-dark .resident-hidratacion-glass-fill{background:linear-gradient(180deg,#60a5fa,#1d4ed8)}.tenant-shell.theme-dark .agenda-calendar-entry.is-priority-direccion{color:#fecaca;background:#b91c1c57;border-color:#fca5a580}.tenant-shell.theme-dark .agenda-calendar-entry.is-priority-admin{color:#fde68a;background:#a1620757;border-color:#fcd34d80}.tenant-shell.theme-dark .agenda-calendar-entry.is-priority-enfermeria{color:#bbf7d0;background:#15803d57;border-color:#86efac7a}.tenant-shell.theme-dark .agenda-calendar-entry.is-priority-medico{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd7a}.tenant-shell.theme-dark .agenda-calendar-entry.is-priority-psicologia{color:#c7d2fe;background:#4338ca57;border-color:#a5b4fc70}.tenant-shell.theme-dark .agenda-calendar-entry.is-priority-trabajo-social{color:#a5f3fc;background:#0891b252;border-color:#67e8f970}.tenant-shell.theme-dark .agenda-calendar-entry.is-priority-terapia-ocupacional{color:#bbf7d0;background:#15803d57;border-color:#86efac75}.tenant-shell.theme-dark .agenda-calendar-entry.is-priority-fisioterapia{color:#a5f3fc;background:#0e749057;border-color:#67e8f970}.tenant-shell.theme-dark .agenda-calendar-entry.is-priority-auxiliar{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd80}.tenant-shell.theme-dark .agenda-calendar-entry-list{scrollbar-color:rgba(147,197,253,.28) transparent}.tenant-shell.theme-dark .agenda-calendar-entry-list::-webkit-scrollbar-thumb{background:#93c5fd42}.tenant-shell.theme-dark .agenda-calendar-entry-list::-webkit-scrollbar-thumb:hover{background:#93c5fd5c}.tenant-shell.theme-dark .agenda-status-chip.is-confirmado,.tenant-shell.theme-dark .agenda-status-chip.is-completado{color:#bbf7d0;background:#15803d57;border-color:#86efac7a}.tenant-shell.theme-dark .agenda-status-chip.is-cancelado{color:#fecaca;background:#b91c1c57;border-color:#fca5a580}.tenant-shell.theme-dark .agenda-status-chip.is-no_completado{color:#fed7aa;background:#7c2d1257;border-color:#fdba7480}.tenant-shell.theme-dark .agenda-priority-chip.is-baja{color:#bbf7d0;background:#15803d4d;border-color:#86efac70}.tenant-shell.theme-dark .agenda-priority-chip.is-media{color:#fde68a;background:#92400e57;border-color:#fbbf2470}.tenant-shell.theme-dark .agenda-priority-chip.is-alta{color:#fecdd3;background:#9f123957;border-color:#fb718570}.tenant-shell.theme-dark .agenda-visibility-chip.is-privado{color:#fed7aa;background:#7c2d125c;border-color:#fdba7475}.tenant-shell.theme-dark .agenda-visibility-chip.is-centro{color:#bbf7d0;background:#15803d57;border-color:#86efac75}.tenant-shell.theme-dark .agenda-visibility-chip.is-equipo{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd7a}.tenant-shell.theme-dark .agenda-visibility-chip.is-auxiliares{color:#ddd6fe;background:#5b21b657;border-color:#c4b5fd75}.tenant-shell.theme-dark .agenda-visibility-chip.is-cocina{color:#fed7aa;background:#9a341257;border-color:#fdba7475}.tenant-shell.theme-dark .agenda-visibility-chip.is-enfermeria{color:#a5f3fc;background:#0f766e57;border-color:#67e8f970}.tenant-shell.theme-dark .agenda-visibility-chip.is-fisioterapia{color:#99f6e4;background:#0f766e57;border-color:#2dd4bf70}.tenant-shell.theme-dark .agenda-visibility-chip.is-limpieza{color:#99f6e4;background:#0d94884d;border-color:#99f6e466}.tenant-shell.theme-dark .agenda-visibility-chip.is-medico{color:#fecdd3;background:#9f123957;border-color:#fb718570}.tenant-shell.theme-dark .agenda-visibility-chip.is-psicologia{color:#c7d2fe;background:#4338ca57;border-color:#a5b4fc70}.tenant-shell.theme-dark .agenda-visibility-chip.is-terapia{color:#bbf7d0;background:#15803d57;border-color:#86efac75}.tenant-shell.theme-dark .agenda-visibility-chip.is-trabajo_social{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd7a}.tenant-shell.theme-dark .agenda-table tbody tr:hover td{background:#1a3b6299}.tenant-shell.theme-dark .agenda-table tbody tr.is-flash td{animation:agendaRowFlashDark 1.8s ease}@keyframes agendaRowFlashDark{0%{background-color:#3b82f647}to{background-color:transparent}}.tenant-shell.theme-dark .agenda-visibility-select.is-privado{color:#fed7aa;background:#7c2d125c;border-color:#fdba7475}.tenant-shell.theme-dark .agenda-visibility-select.is-centro{color:#bbf7d0;background:#15803d57;border-color:#86efac75}.tenant-shell.theme-dark .agenda-visibility-select.is-equipo{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd7a}.tenant-shell.theme-dark .agenda-visibility-select.is-auxiliares{color:#ddd6fe;background:#5b21b657;border-color:#c4b5fd75}.tenant-shell.theme-dark .agenda-visibility-select.is-cocina{color:#fed7aa;background:#9a341257;border-color:#fdba7475}.tenant-shell.theme-dark .agenda-visibility-select.is-enfermeria{color:#a5f3fc;background:#0f766e57;border-color:#67e8f970}.tenant-shell.theme-dark .agenda-visibility-select.is-fisioterapia{color:#99f6e4;background:#0f766e57;border-color:#2dd4bf70}.tenant-shell.theme-dark .agenda-visibility-select.is-limpieza{color:#99f6e4;background:#0d94884d;border-color:#99f6e466}.tenant-shell.theme-dark .agenda-visibility-select.is-medico{color:#fecdd3;background:#9f123957;border-color:#fb718570}.tenant-shell.theme-dark .agenda-visibility-select.is-psicologia{color:#c7d2fe;background:#4338ca57;border-color:#a5b4fc70}.tenant-shell.theme-dark .agenda-visibility-select.is-terapia{color:#bbf7d0;background:#15803d57;border-color:#86efac75}.tenant-shell.theme-dark .agenda-visibility-select.is-trabajo_social{color:#bfdbfe;background:#1d4ed857;border-color:#93c5fd7a}.tenant-shell.theme-dark .agenda-visibility-select option[value=privado]{background:#5f2f13;color:#fed7aa}.tenant-shell.theme-dark .agenda-visibility-select option[value=centro]{background:#14532d;color:#bbf7d0}.tenant-shell.theme-dark .agenda-visibility-select option[value=equipo]{background:#1e3a8a;color:#bfdbfe}.tenant-shell.theme-dark .agenda-visibility-select option[value=auxiliares]{background:#4c1d95;color:#ddd6fe}.tenant-shell.theme-dark .agenda-visibility-select option[value=cocina]{background:#7c2d12;color:#fed7aa}.tenant-shell.theme-dark .agenda-visibility-select option[value=enfermeria]{background:#134e4a;color:#a5f3fc}.tenant-shell.theme-dark .agenda-visibility-select option[value=fisioterapia],.tenant-shell.theme-dark .agenda-visibility-select option[value=limpieza]{background:#134e4a;color:#99f6e4}.tenant-shell.theme-dark .agenda-visibility-select option[value=medico]{background:#881337;color:#fecdd3}.tenant-shell.theme-dark .agenda-visibility-select option[value=psicologia]{background:#312e81;color:#c7d2fe}.tenant-shell.theme-dark .agenda-visibility-select option[value=terapia]{background:#14532d;color:#bbf7d0}.tenant-shell.theme-dark .agenda-visibility-select option[value=trabajo_social]{background:#1e3a8a;color:#bfdbfe}.tenant-shell.theme-dark .agenda-cancel-entry-btn{border-color:#f871718c;background:linear-gradient(180deg,#7f1d1d94,#7f1d1d6b);color:#fecaca;box-shadow:inset 0 -1px #fecaca24}.tenant-shell.theme-dark .agenda-cancel-entry-btn:hover:not(:disabled){background:linear-gradient(180deg,#991b1ba8,#7f1d1d85)}.tenant-shell.theme-dark .agenda-complete-entry-btn{background:linear-gradient(180deg,#15803d,#14532d);border-color:#4ade8080;box-shadow:0 12px 22px #00000057}.tenant-shell.theme-dark .agenda-complete-entry-btn:hover:not(:disabled){background:linear-gradient(180deg,#166534,#14532d)}
