:root{--bg: #f5f7fa;--surface: #ffffff;--surface-2: #eef3f8;--ink: #17212f;--muted: #667385;--line: #d9e1ea;--nav: #142942;--nav-2: #1e476b;--blue: #25699a;--blue-2: #e5f1fa;--green: #1f7a63;--amber: #a46718;--amber-bg: #fff5df;--red: #9a3d3d;--red-bg: #fbeaea;--shadow: 0 14px 35px rgba(20, 41, 66, .08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;letter-spacing:0}html,body{overflow-x:hidden}button,input,select{font:inherit}button{border:0;cursor:pointer}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(380px,520px);background:linear-gradient(105deg,#142942f0,#1e476be6),url(https://images.unsplash.com/photo-1581093458791-9f3c3c58b3d7?auto=format&fit=crop&w=1800&q=80);background-size:cover;background-position:center}.login-intro{color:#fff;display:flex;flex-direction:column;justify-content:flex-end;padding:56px}.brand-mark{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:8px;background:#ffffff24;border:1px solid rgba(255,255,255,.24);margin-bottom:20px}.brand-mark svg{width:28px;height:28px}.login-intro h1{margin:0 0 12px;max-width:760px;font-size:clamp(34px,5vw,66px);line-height:.96;letter-spacing:0}.login-intro p{max-width:660px;color:#ffffffd1;font-size:18px;line-height:1.55;margin:0}.login-panel{align-self:center;margin:28px;background:#fffffff5;border:1px solid rgba(255,255,255,.5);border-radius:8px;padding:34px;box-shadow:var(--shadow)}.login-panel h2{margin:0 0 8px;font-size:26px}.login-panel .subtle{margin-bottom:28px}.login-error{margin:0 0 18px;border:1px solid #e6bcbc;border-radius:8px;background:var(--red-bg);color:#8a3434;font-size:13px;font-weight:700;line-height:1.4;padding:12px 14px}.field{display:grid;gap:8px;margin-bottom:16px}.field-help{color:var(--muted);font-size:12px;font-weight:500;line-height:1.35}.field label{font-size:13px;font-weight:700;color:#344054}.field input,.field select,.search-box input,.filters input,.filters select{width:100%;min-height:42px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);padding:0 12px;outline:none}.field input:focus,.search-box input:focus,.filters input:focus,.filters select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #25699a1f}.autocomplete-field{position:relative}.autocomplete-list{display:none;position:absolute;z-index:12;top:calc(100% - 10px);left:0;right:0;max-height:260px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow)}.autocomplete-list.open{display:block}.autocomplete-list button,.empty-suggestion{width:100%;min-height:40px;padding:9px 12px;text-align:left;background:#fff;color:var(--ink);border-bottom:1px solid var(--line);font-weight:600}.autocomplete-list button:hover{background:var(--surface-2)}.autocomplete-list .muted-action,.empty-suggestion{color:var(--muted);font-weight:600}.selected-receptor-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.selected-receptor-summary strong,.selected-receptor-summary span{display:block}.selected-receptor-summary span{margin-top:3px;color:var(--muted);font-size:12px}.primary-btn,.secondary-btn,.ghost-btn,.icon-btn{min-height:38px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-weight:700;white-space:nowrap}.primary-btn{background:var(--blue);color:#fff}.secondary-btn{background:var(--blue-2);color:var(--nav);border:1px solid #c8dfef}.warning-outline-btn{min-height:38px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;background:#fffaf0;color:#8a4b08;border:1px solid #d69b45;font-weight:700}.primary-btn:disabled,.secondary-btn:disabled,.warning-outline-btn:disabled{cursor:not-allowed;opacity:.55}.alert-decision-page{padding-block:4px}.alert-decision-shell{width:min(860px,100%);margin:0 auto;display:grid;gap:14px}.alert-decision-header h1{margin:0 0 6px;font-size:26px}.alert-decision-header p{margin:0;color:var(--muted)}.alert-decision-card{display:grid;gap:16px}.alert-decision-reason{padding:14px 16px;border-left:4px solid var(--blue);border-radius:6px;background:#f3f8fc}.alert-decision-reason span,.alert-email-subject span,.alert-email-body>span{display:block;margin-bottom:4px;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.alert-decision-reason h2,.alert-decision-reason p,.alert-decision-section-title,.alert-recipient-summary p{margin:0}.alert-decision-reason h2{font-size:19px}.alert-decision-reason p{margin-top:5px}.alert-decision-section-title{margin-bottom:10px;font-size:17px}.alert-decision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px;margin:0}.alert-decision-grid div{min-width:0}.alert-decision-grid dt{color:var(--muted);font-size:12px;font-weight:700}.alert-decision-grid dd{margin:2px 0 0;color:var(--text);font-weight:700}.alert-email-preview{padding:14px;border:1px solid var(--line);border-radius:6px;background:#fbfcfd}.alert-email-subject{padding-bottom:10px;border-bottom:1px solid var(--line)}.alert-email-body{padding-top:10px}.alert-email-body p{margin:0;line-height:1.55;white-space:pre-line}.alert-recipient-summary{padding:10px 12px;border-radius:6px;background:#f5f8fa}.alert-recipient-warning{color:#8a4b08;font-weight:700}.alert-decision-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.alert-decision-actions button{min-height:42px;width:100%}@media(max-width:700px){.alert-decision-grid,.alert-decision-actions{grid-template-columns:1fr}}.ghost-btn,.icon-btn{background:#fff;color:var(--nav);border:1px solid var(--line)}.icon-btn{width:38px;padding:0}.app-shell{height:100vh;height:100dvh;display:grid;grid-template-columns:248px minmax(0,1fr);overflow:hidden}.sidebar{height:100vh;height:100dvh;min-height:0;background:var(--nav);color:#fff;padding:22px 16px;display:flex;flex-direction:column;gap:22px;overflow:hidden;flex-shrink:0}.mobile-sidebar-backdrop,.mobile-sidebar-close,.mobile-menu-btn{display:none}.sidebar-brand{display:flex;gap:12px;align-items:center;padding:0 6px 18px;border-bottom:1px solid rgba(255,255,255,.14)}.sidebar-brand strong{display:block;font-size:18px}.sidebar-brand span{display:block;color:#ffffffb8;font-size:12px;margin-top:2px}.nav{flex:1 1 auto;min-height:0;display:grid;align-content:start;gap:6px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.nav button{min-height:42px;border-radius:6px;background:transparent;color:#ffffffc2;display:flex;align-items:center;gap:10px;padding:0 10px;text-align:left}.nav button.active,.nav button:hover{background:#ffffff1f;color:#fff}.role-card{flex:0 0 auto;margin-top:auto;background:#ffffff14;border:1px solid rgba(255,255,255,.14);border-radius:8px;padding:14px;font-size:13px;color:#ffffffc2}.role-card strong{display:block;color:#fff;margin-bottom:4px}.account-entry-btn{width:100%;margin-top:12px;border:1px solid rgba(255,255,255,.28);border-radius:6px;background:#ffffff14;color:#fff;cursor:pointer;font-size:12px;font-weight:800;min-height:34px}.account-entry-btn:hover{background:#ffffff24}.main{height:100vh;height:100dvh;min-width:0;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 28px;background:var(--surface);border-bottom:1px solid var(--line)}.topbar-title-row{display:flex;align-items:center;gap:12px;min-width:0}.topbar h1{margin:0;font-size:22px}.top-actions{display:flex;align-items:center;gap:10px}.user-pill{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;color:var(--muted);font-size:13px}.avatar{width:28px;height:28px;border-radius:50%;background:var(--nav-2);color:#fff;display:grid;place-items:center;font-weight:800;font-size:12px}.content{flex:1 0 auto;padding:28px}.page{display:none}.page.active{display:block}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}.section-head h2{margin:0 0 4px;font-size:24px}.subtle{color:var(--muted);margin:0;line-height:1.45}.grid{display:grid;gap:18px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 330px;align-items:start}.dashboard-grid-client{grid-template-columns:minmax(0,1fr) 330px;margin-bottom:24px}.dashboard-main-stack{display:grid;gap:18px;min-width:0}.dashboard-metrics-panel{margin-top:0}.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.card,.panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.metric{padding:18px}.metric span{color:var(--muted);font-size:13px;font-weight:700}.metric strong{display:block;margin-top:10px;font-size:30px}.metric small{display:block;color:var(--muted);margin-top:4px}.panel{padding:18px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-title h3{margin:0;font-size:17px}.search-box{display:flex;gap:10px;min-width:min(520px,100%)}.dashboard-search-panel{display:grid;gap:14px;margin-bottom:18px}.dashboard-search-panel h3{margin:0 0 4px;font-size:20px}.dashboard-search-box{max-width:920px}.dashboard-search-results{min-height:42px}.dashboard-date-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding-top:2px}.dashboard-date-filter-title{width:100%;font-size:13px;font-weight:800;color:#344054}.dashboard-date-filter .field{width:180px;margin-bottom:0}.dashboard-context-line{margin-top:6px}.dashboard-institution-filter-panel{display:grid;gap:12px;margin-bottom:18px}.dashboard-institution-filter-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.dashboard-institution-filter{min-width:min(420px,100%);margin-bottom:0}.dashboard-result-list{display:grid;gap:8px}.dashboard-result{min-width:0;width:100%;border:1px solid var(--line);background:#f8fafc;border-radius:8px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;cursor:pointer}.dashboard-result:hover{border-color:#9fb9d7;background:#f3f8fd}.dashboard-result strong,.dashboard-result small{display:block;overflow-wrap:anywhere}.dashboard-result small{color:var(--muted);margin-top:4px}.search-cards-wrap{display:none}.search-result-card-list{display:grid;gap:10px;padding:4px 0}.search-result-card{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;transition:background .12s ease,border-color .12s ease}.search-result-card:hover,.search-result-card:active{border-color:#9fb9d7;background:#f3f8fd}.search-result-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.search-result-card-name{font-size:15px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}.search-result-card-pct{color:var(--blue);font-size:20px;font-weight:800;white-space:nowrap}.search-result-card-meta{color:var(--muted);font-size:13px;line-height:1.4}.search-result-card-code{display:grid;gap:4px;padding:8px 10px;border-radius:6px;background:var(--surface-2);color:var(--ink);font-size:13px}.search-result-card-note{margin:0;padding:8px 10px;border-left:3px solid var(--blue);border-radius:4px;background:var(--blue-2);color:var(--ink);font-size:13px;line-height:1.4}.search-result-card-action{display:flex;justify-content:flex-end}.case-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:14px}.case-pagination-info{color:var(--muted);font-size:13px}.case-pagination-actions{display:flex;align-items:center;gap:8px}.case-pagination-page{color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap}.dashboard-metrics{margin-bottom:18px}.institutional-dashboard-metrics{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.institutional-dashboard-metrics .card{box-shadow:none}.dashboard-alerts-panel{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow-y:auto}.dashboard-alerts-badge{display:none}.dashboard-empty{padding:24px;color:var(--muted);text-align:center}.dashboard-table-detail{display:block;margin-top:3px;color:var(--muted);font-size:11px}.dashboard-percentage{color:var(--blue);font-weight:800}.activity-cards-wrap{display:none}.activity-card-list{display:grid;gap:10px}.activity-card{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.activity-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.activity-card-name{font-size:15px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}.activity-card-pct{color:var(--blue);font-size:20px;font-weight:800;white-space:nowrap}.activity-card-meta{color:var(--muted);font-size:13px;line-height:1.4}.activity-card-obs{margin:0;padding:8px 10px;border-left:3px solid var(--blue);border-radius:4px;background:var(--blue-2);color:var(--ink);font-size:13px;line-height:1.4}.activity-card-action{display:flex;justify-content:flex-end}.activity-load-more{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:14px}.activity-load-more .secondary-btn,.activity-load-more .ghost-btn{min-width:140px}.dashboard-older-activity{display:grid;gap:10px;margin-top:16px}.dashboard-older-activity h4{margin:0;color:#415164;font-size:14px}.table-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;color:var(--muted);font-size:13px}.table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:8px;background:#fff}table{width:100%;border-collapse:collapse;min-width:820px}th,td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;vertical-align:middle}th{color:#415164;background:#f8fafc;font-size:12px;text-transform:uppercase;letter-spacing:0}.table-sort-btn{appearance:none;border:0;background:transparent;padding:0;margin:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer;text-align:left;white-space:nowrap}.table-sort-btn:hover{color:#1f3d5a}.usage-page{display:grid;gap:20px}.usage-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.usage-heading h2,.usage-heading p,.usage-section small{margin:0}.usage-heading p,.usage-section small{color:var(--muted);margin-top:5px}.usage-quick-ranges,.usage-filter-actions{display:flex;flex-wrap:wrap;gap:8px}.usage-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));align-items:end;gap:14px;margin-top:16px}.usage-filter-grid label:not(.usage-checkbox){display:grid;gap:6px;color:#415164;font-size:13px;font-weight:700}.usage-filter-grid input,.usage-filter-grid select{min-height:40px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:8px 10px}.usage-checkbox{display:flex;align-items:center;gap:8px;min-height:40px}.usage-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.usage-table{min-width:1500px}.usage-table td{white-space:nowrap}@media(max-width:1280px){.usage-filter-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}.usage-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:860px){.usage-heading{flex-direction:column}.usage-filter-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.usage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}tr:last-child td{border-bottom:0}.badge{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 9px;font-size:12px;font-weight:800;white-space:nowrap}.badge.green{background:#e3f4ef;color:var(--green)}.badge.blue{background:var(--blue-2);color:var(--blue)}.badge.amber{background:var(--amber-bg);color:var(--amber)}.badge.red{background:var(--red-bg);color:#9a3d3d}.alerts{display:grid;gap:12px}.alert{border:1px solid #ecd39b;background:var(--amber-bg);border-radius:8px;padding:13px}.alert.automatic,.alert.red{border-color:#e6bcbc;background:var(--red-bg)}.alert.observation{border-color:#ecd39b;background:var(--amber-bg)}.alert.automatic,.alert.observation{border-left-width:4px}.alert strong{display:block;margin-bottom:5px;font-size:13px}.alert p{margin:0;color:#5d4b31;font-size:13px;line-height:1.4}.alert-meta{margin-top:7px;color:var(--muted);font-size:12px;line-height:1.35}.alert .ghost-btn{margin-top:10px}.alerts-page-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);align-items:start;gap:18px}.alerts-list-panel{min-width:0}.alerts-table{min-width:980px}.alerts-cards-wrap{display:none}.alerts-mobile-card-list{display:grid;gap:10px}.alerts-table tr.automatic td:first-child{border-left:4px solid #c2410c}.alerts-table tr.observation td:first-child{border-left:4px solid #d97706}.alerts-table tbody tr.automatic{background:#fef2f28c}.alerts-table tbody tr.observation{background:#fffbeba6}.alerts-note-cell{min-width:260px;max-width:420px;line-height:1.45}.alerts-scope-panel{position:sticky;top:18px}.alerts-scope-panel h3{margin:0 0 10px;font-size:16px}.alerts-scope-panel p{margin:0;color:#526173;font-size:14px;line-height:1.5}.alert .badge{margin-top:10px;display:inline-flex}.note{border-left:4px solid var(--blue);background:var(--blue-2);color:#244258;padding:12px 14px;border-radius:6px;line-height:1.45}.filters{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr 1fr auto;gap:10px;margin-bottom:16px}.case-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.case-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.patient-identity-head{display:grid;gap:8px}.patient-identity-head h3{margin:0}.patient-identity-name{font-size:32px;font-weight:800;line-height:1.12;letter-spacing:0;color:var(--ink);word-break:break-word}.kv{min-width:0;padding:14px;background:#f9fbfd;border:1px solid var(--line);border-radius:8px}.kv span{display:block;color:var(--muted);font-size:12px;font-weight:800;margin-bottom:6px}.kv strong{font-size:15px;overflow-wrap:anywhere}.donor-list{display:grid;gap:3px}.donor-list-item{line-height:1.35}.result-strip{grid-template-columns:repeat(6,minmax(0,1fr))}.result-strip-emphasis{grid-template-columns:repeat(3,minmax(0,1fr))}.patient-metric{min-height:116px}.patient-metric strong{display:block;font-size:18px;line-height:1.25}.result-metric-highlight{background:#f8fbfe;border-color:#cfe0ee}.result-metric-strong strong{font-size:28px;font-weight:800;color:var(--blue)}.institutional-result-summary{grid-template-columns:minmax(220px,1.25fr) repeat(2,minmax(0,1fr))}.institutional-quimerism-metric strong{font-size:44px;line-height:1}.patient-summary-metrics{display:grid;grid-template-columns:minmax(220px,1.35fr) repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}.patient-summary-metric{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:112px;padding:18px;border:1px solid var(--line);border-radius:8px;background:#f8fbfe}.patient-summary-metric span{display:block;color:var(--muted);font-size:12px;font-weight:700;line-height:1.2;text-transform:uppercase}.patient-summary-metric strong{display:block;color:var(--ink);font-size:22px;font-weight:800;line-height:1.15;overflow-wrap:anywhere}.patient-summary-metric-primary{border-color:#cfe0ee;background:var(--blue-2)}.patient-summary-metric-primary strong{color:var(--blue);font-size:48px;line-height:1}.patient-control-note{margin-top:14px;border-left:4px solid var(--blue);background:var(--blue-2);border-radius:8px;padding:12px 14px}.patient-control-note h4{margin:0 0 6px;font-size:14px}.patient-control-note p{margin:0;line-height:1.45}.control-cards-wrap,.profile-cards-wrap{display:none}.control-card-list,.profile-request-card-list{display:grid;gap:10px}.control-card,.profile-request-card{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.control-card-header,.profile-request-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.control-card-date{color:var(--muted);font-size:13px;font-weight:700}.control-card-pct{color:var(--blue);font-size:22px;font-weight:800;white-space:nowrap}.control-card-meta,.profile-request-card-meta{color:var(--muted);font-size:13px;line-height:1.4}.control-card-code,.profile-request-card-code{display:grid;gap:4px;padding:6px 8px;border-radius:6px;background:var(--surface-2);color:var(--ink);font-size:13px}.control-card-obs{padding:8px 10px;border-left:3px solid var(--blue);border-radius:4px;background:var(--blue-2);font-size:13px;line-height:1.4}.control-card-action{display:flex;justify-content:flex-end}.chart-card{min-height:360px}.chart-linked-block{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.chart-linked-head{margin-bottom:10px}.chart-linked-head h3{margin:0 0 3px;font-size:16px}.chart-linked-head .subtle{font-size:12px}.chart-linked-table-wrap{margin-top:0}.chart-linked-table{font-size:13px}.chart-linked-table thead th,.chart-linked-table td,.chart-linked-table th{padding-top:10px;padding-bottom:10px}.chart-linked-table th:nth-child(1),.chart-linked-table td:nth-child(1),.chart-linked-table th:nth-child(3),.chart-linked-table td:nth-child(3),.chart-linked-table th:nth-child(4),.chart-linked-table td:nth-child(4){text-align:center}.chart-linked-table th:nth-child(6),.chart-linked-table td:nth-child(6){text-align:center}.chart-linked-table td:nth-child(5){white-space:nowrap}.chart-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;flex-wrap:wrap}.chart-toolbar-note{margin:4px 0 0}.chart-toolbar-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.segmented{display:inline-flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fff}.segmented button{min-height:34px;padding:0 12px;color:var(--muted);background:#fff;border-right:1px solid var(--line)}.segmented button:last-child{border-right:0}.segmented button.active{background:var(--blue);color:#fff}.chart-root{position:relative;min-width:0}.chart-shell{display:flex;flex-direction:column;gap:12px}.chart-visual{position:relative}.chart-svg{width:100%;height:auto;display:block;min-height:320px}.chart-axis-label{font-size:12px;fill:#697789}.chart-grid-line{stroke:#e3ebf2;stroke-width:1;stroke-dasharray:4 6}.chart-axis{stroke:#bcc8d4;stroke-width:1.2}.chart-point,.chart-bar{transition:opacity .15s ease,transform .15s ease,filter .15s ease}.chart-point:hover,.chart-bar:hover{filter:brightness(.98);opacity:1}.chart-point-last{filter:drop-shadow(0 0 7px rgba(37,105,154,.22))}.chart-bar-last{filter:drop-shadow(0 2px 8px rgba(37,105,154,.2))}.chart-legend{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;color:var(--muted);font-size:13px}.chart-legend-item{display:inline-flex;align-items:center;gap:8px}.chart-legend-swatch{width:12px;height:12px;border-radius:999px}.chart-tooltip{position:absolute;z-index:3;min-width:230px;max-width:300px;background:#111827f5;color:#fff;border-radius:10px;padding:12px 14px;box-shadow:0 14px 30px #0f172a2e;pointer-events:none}.chart-tooltip-title{font-size:13px;color:#d6e0ea;margin-bottom:4px}.chart-tooltip-value{font-size:20px;font-weight:800;margin-bottom:10px}.chart-tooltip-grid{display:grid;gap:8px}.chart-tooltip-grid div{display:grid;gap:2px}.chart-tooltip-grid span{font-size:11px;color:#9fb0c3}.chart-tooltip-grid strong{font-size:13px;font-weight:700;color:#fff}.chart-root-empty{padding:28px 22px;border:1px dashed #cfd8e3;border-radius:10px;background:#fbfdff}.chart-root-empty h4{margin:0 0 8px;font-size:16px}.chart-mobile-list{display:grid;gap:12px;margin-top:12px}.chart-mobile-item{display:grid;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.chart-mobile-item-header{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.chart-mobile-item-date{flex:1;color:var(--muted);font-size:13px;font-weight:700}.chart-mobile-item-type{font-size:12px;font-weight:700}.chart-mobile-item-pct{color:var(--blue);font-size:18px;font-weight:800;white-space:nowrap}.chart-mobile-bar-track{height:8px;overflow:hidden;border-radius:999px;background:var(--surface-2)}.chart-mobile-bar-fill{height:100%;border-radius:999px;background:var(--blue);transition:width .3s ease}.chart-mobile-item-donor{color:var(--muted);font-size:12px}.chart-mobile-list .ghost-btn{width:100%}.pdf-preview{border:1px solid var(--line);border-radius:8px;background:linear-gradient(#fff,#fff) padding-box,repeating-linear-gradient(0deg,#f2f5f8 0 9px,#fff 9px 18px);min-height:250px;padding:18px}.pdf-page{min-height:214px;background:#fff;border:1px solid #cfd8e3;box-shadow:0 10px 18px #14294214;padding:18px}.pdf-line{height:8px;background:#d8e1eb;border-radius:99px;margin:12px 0}.pdf-line.short{width:58%}.internal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.internal-forms{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.collapsible-form-head{margin-bottom:0}.collapsible-form-head .subtle{margin-top:4px}.collapsible-form-body{margin-top:16px}.collapsible-form-body[hidden],[hidden]{display:none!important}.data-form{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-wide{grid-column:1 / -1}.field textarea{width:100%;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);padding:10px 12px;resize:vertical;outline:none}.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #25699a1f}.module{min-height:148px;padding:18px;display:grid;align-content:space-between}.module svg,.nav svg,.icon{width:19px;height:19px;flex:0 0 auto}.module h3{margin:12px 0 6px;font-size:17px}.module p{color:var(--muted);margin:0;line-height:1.42;font-size:14px}.modal-backdrop{position:fixed;inset:0;background:#0c18267a;display:none;align-items:center;justify-content:center;padding:18px;z-index:20}.modal-backdrop.open{display:flex}.modal{width:min(980px,100%);max-width:calc(100vw - 36px);max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow:hidden;background:#fff;border-radius:8px;box-shadow:0 24px 70px #0c182647;border:1px solid var(--line)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-bottom:1px solid var(--line)}.modal-header h3{margin:0}.modal-body{padding:18px;overflow:auto;max-height:calc(100vh - 170px);max-height:calc(100dvh - 170px)}.modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:18px;border-top:1px solid var(--line)}.institutional-summary-backdrop{background:#0c182694}.institutional-summary-modal{width:min(820px,100%)}.institutional-summary-header{padding:20px 24px}.institutional-summary-header h3{font-size:18px;font-weight:800}.institutional-summary-close{color:var(--muted);font-size:24px;font-weight:500;line-height:1}.institutional-summary-close:hover{background:var(--surface-2);color:var(--ink)}.institutional-summary-body{padding:26px 24px 28px}.institutional-summary-patient{margin:0 0 22px;color:var(--ink);font-size:28px;font-weight:800;line-height:1.2}.institutional-summary-metrics{display:grid;grid-template-columns:minmax(210px,1.25fr) repeat(2,minmax(0,1fr));gap:14px}.institutional-summary-metric{min-width:0;min-height:126px;padding:20px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.institutional-summary-metric span{display:block;margin-bottom:14px;color:var(--muted);font-size:11px;font-weight:800;line-height:1.2;text-transform:uppercase}.institutional-summary-metric strong{display:block;color:var(--ink);font-size:20px;font-weight:800;line-height:1.25;overflow-wrap:anywhere}.institutional-summary-metric-primary{border-color:#bdd8ea;background:var(--blue-2)}.institutional-summary-metric-primary strong{color:var(--blue);font-size:50px;line-height:1}.institutional-summary-observation{margin-top:18px;padding:14px 16px;border-left:3px solid #b6cddd;background:#f6f9fc}.institutional-summary-empty{margin:26px 0 8px;padding:28px 20px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:15px;font-weight:600;text-align:center}.account-modal-backdrop{background:#11182794}.account-modal{max-width:720px;width:min(720px,calc(100vw - 32px))}.account-modal-header{border-bottom:1px solid var(--line)}.account-modal-body{display:grid;gap:18px;padding:22px 24px}.account-section{display:grid;gap:12px}.account-section+.account-section{border-top:1px solid var(--line);padding-top:18px}.account-section h4{margin:0;font-size:14px}.account-readonly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.account-readonly-grid input[readonly]{background:#f8fafc;color:#4c5a6a}.account-alert-preference{align-items:flex-start;cursor:pointer;display:flex;gap:10px}.account-alert-preference input{flex:0 0 auto;margin-top:3px}.account-alert-preference span{display:grid;gap:4px}.account-alert-preference small{color:var(--muted);line-height:1.45}.account-empty{color:var(--muted);padding:24px;text-align:center}.account-modal-actions{border-top:1px solid var(--line);padding:16px 24px}.field-error,.field-success{margin:6px 0 0;font-size:12px;font-weight:700}.field-error{color:#9a3d3d}.field-success{color:var(--green)}.filter-error{margin:12px 0 0;color:#9a3d3d;font-size:13px;font-weight:600}.filter-section-heading{display:flex;gap:8px;align-items:baseline;margin-bottom:14px}.filter-section-heading span,.dashboard-date-filter-label{color:var(--muted);font-size:13px}.dashboard-date-filter-label{margin:10px 0 0;font-weight:600}.dashboard-filter-form{display:grid;grid-template-columns:minmax(240px,1fr) minmax(150px,180px) minmax(150px,180px) auto;gap:12px;align-items:end;width:100%}.dashboard-filter-form .field{margin-bottom:0}.dashboard-filter-actions{display:flex;gap:8px;min-height:42px}.dashboard-filter-error{grid-column:1 / -1;margin-top:0}@media(max-width:900px){.dashboard-filter-form{grid-template-columns:1fr 1fr}.dashboard-filter-search,.dashboard-filter-actions,.dashboard-filter-error{grid-column:1 / -1}}@media(max-width:768px){.search-results-panel-client .search-table-wrap{display:none}.search-results-panel-client .search-cards-wrap{display:block}.search-result-card-action .secondary-btn,.search-result-card-action .primary-btn,.search-result-card-action .ghost-btn{width:100%}.alerts-list-panel-client .alerts-table-wrap{display:none}.alerts-list-panel-client .alerts-cards-wrap{display:block}.alerts-cards-wrap .ghost-btn,.alerts-cards-wrap .secondary-btn,.alerts-cards-wrap .primary-btn{width:100%}.patient-detail-client .control-table-wrap,.patient-detail-client .profile-table-wrap{display:none}.patient-detail-client .control-cards-wrap,.patient-detail-client .profile-cards-wrap{display:block}.control-card-action .secondary-btn,.control-card-action .primary-btn,.control-card-action .ghost-btn,.profile-request-card .secondary-btn,.profile-request-card .primary-btn,.profile-request-card .ghost-btn{width:100%}.dashboard-alerts-badge{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin-bottom:16px;border:1px solid #ecd39b;border-radius:8px;background:var(--amber-bg);color:var(--amber);font-size:14px;font-weight:700;line-height:1.35}.dashboard-alerts-badge a{color:inherit;text-decoration:none;white-space:nowrap}.dashboard-client-view .dashboard-alerts-panel,.dashboard-activity-panel-client .activity-table-wrap{display:none}.dashboard-activity-panel-client .activity-cards-wrap{display:block}.activity-card-action .secondary-btn,.activity-card-action .primary-btn,.activity-card-action .ghost-btn{width:100%}}.institutional-summary-observation h4{margin:0 0 6px;font-size:13px}.institutional-summary-observation p{margin:0;color:#40536a;font-size:14px;line-height:1.5;white-space:pre-wrap}.institutional-summary-actions{padding:18px 24px}.profile-detail{display:grid;gap:18px}.profile-detail-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:6px}.profile-detail-item{border:1px solid #d7e1ec;border-radius:10px;padding:12px 14px;background:#f8fafc}.profile-detail-label{font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase;margin-bottom:4px;letter-spacing:0}.profile-detail-value{font-size:15px;font-weight:600;color:#0f172a;line-height:1.35;word-break:break-word}.profile-detail-note{border-left:4px solid var(--blue);background:var(--blue-2);border-radius:8px;padding:12px 14px}.profile-detail-note h4,.profile-detail-section h4{margin:0 0 10px;font-size:14px}.profile-detail-note p{margin:0;color:var(--ink);line-height:1.45}.profile-detail-section{display:grid;gap:10px}.profile-detail .table-wrap{margin-top:0}.profile-detail .table-wrap table{min-width:100%}.profile-detail .table-wrap th{text-align:left}.profile-detail .table-wrap td:nth-child(2),.profile-detail .table-wrap td:nth-child(3),.profile-detail .table-wrap th:nth-child(2),.profile-detail .table-wrap th:nth-child(3){text-align:center}.profile-detail .note{margin:0}@media(max-width:1060px){.app-shell,.login-shell,.dashboard-grid,.alerts-page-grid,.case-layout{grid-template-columns:1fr}.app-shell,.main{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}.sidebar{height:auto;position:fixed;z-index:80;top:0;bottom:0;left:0;width:min(84vw,320px);max-width:320px;padding:18px;overflow-y:auto;transform:translate(-105%);transition:transform .18s ease;box-shadow:18px 0 50px #0a17263d}.sidebar .nav{flex:0 0 auto;min-height:auto;overflow:visible}.sidebar.open{transform:translate(0)}.mobile-sidebar-backdrop{display:block;position:fixed;z-index:70;inset:0;width:100%;height:100%;padding:0;border:0;background:#07121e7a;opacity:0;pointer-events:none;transition:opacity .18s ease}.mobile-sidebar-backdrop.open{opacity:1;pointer-events:auto}.mobile-sidebar-close{display:inline-flex;margin-left:auto;min-width:38px;color:#fff;border-color:#ffffff42;background:#ffffff14}.mobile-menu-btn{display:inline-grid;flex:0 0 auto;place-items:center;gap:4px;width:42px;height:42px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--nav)}.mobile-menu-btn span{display:block;width:18px;height:2px;border-radius:999px;background:currentColor}.nav{grid-template-columns:1fr}.role-card{margin-top:0}.dashboard-alerts-panel{position:static;max-height:none}.alerts-scope-panel{position:static}.cards,.case-summary,.result-strip,.institutional-result-summary,.patient-summary-metrics,.institutional-summary-metrics,.internal-grid,.internal-forms,.filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.login-shell{min-height:100vh;min-height:100dvh;align-content:center;background:linear-gradient(180deg,#142942f2,#1e476be6),url(https://images.unsplash.com/photo-1581093458791-9f3c3c58b3d7?auto=format&fit=crop&w=900&q=70);background-position:center}.login-intro,.content,.topbar{padding:20px}.login-intro{align-items:center;justify-content:flex-end;padding-bottom:0;text-align:center}.login-intro .brand-mark{width:44px;height:44px;margin-bottom:12px}.login-intro h1{margin-bottom:0;font-size:32px;line-height:1}.login-intro p{display:none}.login-panel{align-self:stretch;width:auto;margin:10px 20px 20px;padding:22px}.login-panel h2{font-size:22px}.login-panel .subtle{margin-bottom:20px!important;font-size:13px;line-height:1.45}.login-panel .primary-btn{width:100%}.topbar{height:auto;align-items:center;flex-direction:row}.topbar-title-row{flex:1 1 auto}.topbar-title-row h1{font-size:19px!important}.topbar-title-row .subtle{font-size:12px!important}.section-head,.panel-title,.search-box{width:100%;flex-direction:column;align-items:stretch}.top-actions{flex:0 0 auto}.user-pill{width:auto;justify-content:flex-start}.nav,.cards,.case-summary,.result-strip,.institutional-result-summary,.internal-grid,.internal-forms,.form-grid,.filters{grid-template-columns:1fr}.sidebar{padding:16px}.sidebar-brand{padding-bottom:12px}.dashboard-result{align-items:flex-start;flex-direction:column}.dashboard-result .badge{align-self:flex-start}.dashboard-date-filter .field{width:min(220px,calc(50% - 8px))}.chart-toolbar-actions,.segmented{width:100%}.chart-toolbar-actions{justify-content:stretch}.segmented{display:flex;flex-wrap:wrap;overflow:visible}.segmented button{flex:1 1 auto;min-width:116px}.chart-svg{min-height:260px}.modal-backdrop{align-items:stretch;padding:8px}.modal{width:100%;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}.modal-header{padding:14px}.modal-body{padding:14px;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px)}.modal-actions{padding:14px}.account-modal-backdrop{align-items:stretch;padding:8px}.account-modal{display:flex;flex-direction:column;width:100%;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}.account-modal-header{flex:0 0 auto;padding:14px 16px}.account-modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px}.account-readonly-grid{grid-template-columns:1fr}.account-section+.account-section{padding-top:16px}.account-modal-actions{flex:0 0 auto;padding:12px 16px 16px}.institutional-summary-header,.institutional-summary-actions{padding:14px 16px}.institutional-summary-backdrop{align-items:center}.institutional-summary-modal{height:auto;max-height:calc(100dvh - 16px)}.institutional-summary-body{padding:20px 16px 22px}.institutional-summary-patient{margin-bottom:18px;font-size:23px}.institutional-summary-metrics{grid-template-columns:1fr}.institutional-summary-metric{min-height:104px}}@media(max-width:480px){.login-shell{align-content:stretch}.content,.topbar,.login-intro{padding:16px}.login-intro{min-height:152px;padding-bottom:0}.login-panel{margin:0 12px 12px;padding:20px 18px}.login-panel h2{font-size:21px}.login-panel .field{margin-bottom:14px}.login-panel input{min-height:46px}.panel,.metric{padding:14px}.primary-btn,.secondary-btn,.ghost-btn{min-height:42px;width:100%;white-space:normal}.icon-btn{min-width:42px;min-height:42px}.account-modal-backdrop{padding:0}.account-modal{width:100%;max-width:100vw;max-height:100vh;max-height:100dvh;border-radius:0}.account-modal-body{padding:14px}.account-section h4{font-size:13px}.account-modal-actions .ghost-btn,.account-section .primary-btn{width:100%}.search-filter-actions{display:flex!important;flex-direction:column;width:100%;gap:8px}.search-filter-actions .primary-btn,.search-filter-actions .secondary-btn,.search-filter-actions .ghost-btn{width:100%}.case-pagination{align-items:stretch;flex-direction:column}.case-pagination-actions{width:100%}.case-pagination-actions .secondary-btn,.case-pagination-actions .ghost-btn,.case-pagination-actions .primary-btn{flex:1}.activity-load-more{flex-direction:column}.activity-load-more .secondary-btn,.activity-load-more .ghost-btn,.dashboard-date-filter .field,.dashboard-date-filter .secondary-btn,.dashboard-date-filter .ghost-btn,.search-box .primary-btn{width:100%}.table-pagination{align-items:stretch;flex-direction:column}.patient-identity-name{font-size:24px}.institutional-quimerism-metric strong{font-size:36px}.patient-detail-client .institutional-result-summary{grid-template-columns:1fr!important}.profile-detail-summary{grid-template-columns:1fr}.modal-actions{align-items:stretch;flex-direction:column-reverse}.institutional-summary-actions{flex-direction:column}}
