:root{--color-primary:#007bff;--color-primary-hover:#0056b3;--color-primary-light:#cfe2ff;--color-gray-50:#f8f9fa;--color-gray-100:#f1f3f5;--color-gray-200:#e9ecef;--color-gray-300:#dee2e6;--color-gray-400:#ced4da;--color-gray-500:#adb5bd;--color-gray-600:#6c757d;--color-gray-700:#495057;--color-gray-800:#343a40;--color-gray-900:#212529;--color-success:#28a745;--color-success-bg:#d1e7dd;--color-success-border:#a3cfbb;--color-success-text:#0f5132;--color-warning:#ffc107;--color-warning-bg:#fff3cd;--color-warning-border:#ffe69c;--color-warning-text:#997404;--color-danger:#dc3545;--color-danger-bg:#f8d7da;--color-danger-border:#f5c6cb;--color-danger-text:#721c24;--color-info:#17a2b8;--color-info-bg:#cff4fc;--color-info-border:#9eeaf9;--color-info-text:#055160;--bg-page:#f5f5f5;--bg-card:#fff;--bg-table-header:#f1f3f5;--bg-hover:#f8f9fa;--border-light:#e9ecef;--border-medium:#dee2e6;--border-dark:#ced4da;--text-primary:#212529;--text-secondary:#6c757d;--text-muted:#adb5bd;--text-link:#007bff;--primary:var(--color-primary);--primary-dark:var(--color-primary-hover);--primary-light:var(--color-primary-light);--bg-secondary:var(--bg-hover);--danger:var(--color-danger);--danger-light:var(--color-danger-bg);--info:var(--color-info);--info-light:var(--color-info-bg);--font-xs:11px;--font-sm:12px;--font-base:13px;--font-md:14px;--font-lg:16px;--font-xl:20px;--font-2xl:24px;--font-normal:400;--font-medium:500;--font-semibold:600;--font-bold:700;--line-height-tight:1.2;--line-height-normal:1.5;--line-height-relaxed:1.75;--space-xs:4px;--space-sm:8px;--space-md:12px;--space-lg:16px;--space-xl:20px;--space-2xl:24px;--space-3xl:32px;--border-width:1px;--border-width-thick:2px;--radius-sm:3px;--radius-md:4px;--radius-lg:6px;--radius-xl:8px;--radius-pill:10px;--radius-circle:50%;--shadow-xs:0 1px 2px #0000000d;--shadow-sm:0 1px 3px #0000001a;--shadow-md:0 4px 6px #0000001a;--shadow-lg:0 10px 15px #0000001a}.ds-page-header{border-bottom:2px solid #dee2e6;border-bottom:var(--border-width-thick) solid var(--border-medium);padding:12px 20px;padding:var(--space-md) var(--space-xl)}.ds-card,.ds-page-header{background-color:#fff;background-color:var(--bg-card);box-shadow:0 1px 2px #0000000d;box-shadow:var(--shadow-xs)}.ds-card{border:1px solid #dee2e6;border:var(--border-width) solid var(--border-medium);border-radius:6px;border-radius:var(--radius-lg)}.ds-tabs{background-color:#e9ecef;background-color:var(--color-gray-200);border-bottom:2px solid #dee2e6;border-bottom:var(--border-width-thick) solid var(--border-medium);border-top-left-radius:6px;border-top-left-radius:var(--radius-lg);border-top-right-radius:6px;border-top-right-radius:var(--radius-lg);display:flex;gap:2px;padding:0 20px;padding:0 var(--space-xl)}.ds-tab{background:none;border:none;border-bottom:3px solid #0000;border-top-left-radius:3px;border-top-left-radius:var(--radius-sm);border-top-right-radius:3px;border-top-right-radius:var(--radius-sm);color:#6c757d;color:var(--text-secondary);cursor:pointer;font-size:13px;font-size:var(--font-base);font-weight:600;font-weight:var(--font-semibold);margin-bottom:-2px;padding:8px 16px;padding:var(--space-sm) var(--space-lg);transition:all .2s}.ds-tab:hover{background-color:#dee2e6;background-color:var(--border-medium)}.ds-tab.active,.ds-tab:hover{color:#212529;color:var(--text-primary)}.ds-tab.active{border-bottom-color:#007bff;border-bottom-color:var(--color-primary);font-weight:700;font-weight:var(--font-bold)}.ds-tab-content,.ds-tab.active{background-color:#fff;background-color:var(--bg-card)}.ds-tab-content{border-bottom:1px solid #dee2e6;border-bottom:var(--border-width) solid var(--border-medium);border-bottom-left-radius:6px;border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:6px;border-bottom-right-radius:var(--radius-lg);border-left:1px solid #dee2e6;border-left:var(--border-width) solid var(--border-medium);border-right:1px solid #dee2e6;border-right:var(--border-width) solid var(--border-medium);box-shadow:0 1px 2px #0000000d;box-shadow:var(--shadow-xs)}.ds-table{background-color:#fff;background-color:var(--bg-card);border-collapse:collapse;font-size:13px;font-size:var(--font-base);width:100%}.ds-table thead{background-color:#f1f3f5;background-color:var(--bg-table-header);border-bottom:1px solid #dee2e6;border-bottom:var(--border-width) solid var(--border-medium)}.ds-table th{color:#6c757d;color:var(--text-secondary);font-size:12px;font-size:var(--font-sm);font-weight:600;font-weight:var(--font-semibold);letter-spacing:.3px;text-align:left;text-transform:uppercase;white-space:nowrap}.ds-table td,.ds-table th{padding:8px 12px;padding:var(--space-sm) var(--space-md)}.ds-table td{border-bottom:1px solid #e9ecef;border-bottom:var(--border-width) solid var(--border-light);color:#212529;color:var(--text-primary);font-size:13px;font-size:var(--font-base);vertical-align:middle}.ds-table tbody tr:hover{background-color:#f8f9fa;background-color:var(--bg-hover)}.ds-btn{border:none;border-radius:3px;border-radius:var(--radius-sm);cursor:pointer;font-size:13px;font-size:var(--font-base);font-weight:500;font-weight:var(--font-medium);padding:8px 16px;padding:var(--space-sm) var(--space-lg);transition:all .2s}.ds-btn-primary{background-color:#007bff;background-color:var(--color-primary);color:#fff}.ds-btn-primary:hover{background-color:#0056b3;background-color:var(--color-primary-hover)}.ds-btn-secondary{background-color:#6c757d;background-color:var(--color-gray-600);color:#fff}.ds-btn-secondary:hover{background-color:#495057;background-color:var(--color-gray-700)}.ds-btn-outline{background-color:initial;border:1px solid #dee2e6;border:var(--border-width) solid var(--border-medium);color:#6c757d;color:var(--text-secondary)}.ds-btn-outline:hover{background-color:#f8f9fa;background-color:var(--bg-hover);border-color:#ced4da;border-color:var(--border-dark);color:#212529;color:var(--text-primary)}.ds-badge{border:1px solid;border:var(--border-width) solid;border-radius:10px;border-radius:var(--radius-pill);font-size:11px;font-size:var(--font-xs);font-weight:600;font-weight:var(--font-semibold);padding:3px 10px}.ds-badge-success{background-color:#d1e7dd;background-color:var(--color-success-bg);border-color:#a3cfbb;border-color:var(--color-success-border);color:#0f5132;color:var(--color-success-text)}.ds-badge-warning{background-color:#fff3cd;background-color:var(--color-warning-bg);border-color:#ffe69c;border-color:var(--color-warning-border);color:#997404;color:var(--color-warning-text)}.ds-badge-danger{background-color:#f8d7da;background-color:var(--color-danger-bg);border-color:#f5c6cb;border-color:var(--color-danger-border);color:#721c24;color:var(--color-danger-text)}.ds-badge-info{background-color:#cff4fc;background-color:var(--color-info-bg);border-color:#9eeaf9;border-color:var(--color-info-border);color:#055160;color:var(--color-info-text)}.ds-badge-neutral{background-color:#e9ecef;background-color:var(--color-gray-200);border-color:#ced4da;border-color:var(--border-dark);color:#212529;color:var(--text-primary)}.ds-p-0{padding:0}.ds-p-sm{padding:8px;padding:var(--space-sm)}.ds-p-md{padding:12px;padding:var(--space-md)}.ds-p-lg{padding:16px;padding:var(--space-lg)}.ds-p-xl{padding:20px;padding:var(--space-xl)}.ds-m-0{margin:0}.ds-m-sm{margin:8px;margin:var(--space-sm)}.ds-m-md{margin:12px;margin:var(--space-md)}.ds-m-lg{margin:16px;margin:var(--space-lg)}.ds-m-xl{margin:20px;margin:var(--space-xl)}.ds-text-xs{font-size:11px;font-size:var(--font-xs)}.ds-text-sm{font-size:12px;font-size:var(--font-sm)}.ds-text-base{font-size:13px;font-size:var(--font-base)}.ds-text-md{font-size:14px;font-size:var(--font-md)}.ds-text-lg{font-size:16px;font-size:var(--font-lg)}.ds-text-primary{color:#212529;color:var(--text-primary)}.ds-text-secondary{color:#6c757d;color:var(--text-secondary)}.ds-text-muted{color:#adb5bd;color:var(--text-muted)}.ds-font-normal{font-weight:400;font-weight:var(--font-normal)}.ds-font-medium{font-weight:500;font-weight:var(--font-medium)}.ds-font-semibold{font-weight:600;font-weight:var(--font-semibold)}.ds-font-bold{font-weight:700;font-weight:var(--font-bold)}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bg-page);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.login-container{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:center;min-height:100vh;padding:20px}.login-card{background:#fff;border-radius:12px;box-shadow:0 20px 60px #0000004d;max-width:400px;padding:40px;width:100%}.login-card h1{color:#333;font-size:28px;margin:0 0 8px;text-align:center}.subtitle{margin:0 0 32px;text-align:center}.form-group input{border:1px solid #ddd;border-radius:6px;box-sizing:border-box;font-size:14px;padding:12px;transition:border-color .3s;width:100%}.form-group input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.btn-primary{font-size:16px;font-weight:600;margin-top:8px;padding:14px;transition:background .3s;width:100%}.btn-primary:hover:not(:disabled){background:#5568d3}.error-message{font-size:14px}.footer-text{border-top:1px solid #eee;margin-top:24px;padding-top:24px;text-align:center}.footer-text p{color:#999;font-size:12px;margin:0}.dashboard-container{background:#f5f7fa;min-height:100vh}.dashboard-nav{align-items:center;background:#fff;box-shadow:0 2px 8px #0000001a;display:flex;justify-content:space-between;padding:16px 32px}.dashboard-nav h1{color:#667eea;font-size:24px;margin:0}.btn-logout{background:#fff;border:1px solid #ddd;border-radius:6px;color:#333;cursor:pointer;font-weight:500;padding:10px 24px;transition:all .3s}.btn-logout:hover{background:#f5f5f5;border-color:#999}.dashboard-content{grid-gap:24px;display:grid;gap:24px;grid-template-columns:1fr 1fr;margin:0 auto;max-width:1200px;padding:32px 16px}@media (max-width:768px){.dashboard-content{grid-template-columns:1fr}}.info-card,.welcome-card{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;padding:32px}.welcome-card h2{color:#333;margin:0 0 24px}.dashboard-user-info{background:#f8f9fa;border-radius:8px;margin-bottom:32px;padding:20px}.info-row{align-items:flex-start;border-bottom:1px solid #e0e0e0;display:flex;gap:1rem;justify-content:space-between;padding:12px 0}.info-row:last-child{border-bottom:none}.info-row .label{color:#666;flex-shrink:0;font-weight:600;min-width:100px}.info-row .value{color:#333;font-family:monospace;font-size:.875rem;text-align:right;word-break:break-all}.test-section{border-top:1px solid #eee;padding-top:24px}.test-section h3{color:#333;margin:0 0 8px}.test-section p{color:#666;margin:0 0 16px}.btn-test{background:#667eea;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:16px;font-weight:600;margin-bottom:12px;padding:14px;transition:background .3s;width:100%}.btn-test:hover{background:#5568d3}.note{color:#999;font-size:12px;font-style:italic}.info-card h3{color:#333;margin:0 0 16px}.info-card h4{color:#333;margin:24px 0 12px}.success{color:#27ae60;margin:8px 0}.info-card ul{color:#666;margin:8px 0;padding-left:20px}.info-card li{margin:8px 0}.btn-secondary{background:#fff;border:1px solid #667eea;border-radius:6px;color:#667eea;padding:10px 24px;transition:all .3s}.btn-secondary:hover{background:#667eea;color:#fff}.facility-selector{position:relative}.facility-display,.facility-selector{align-items:center;display:inline-flex}.facility-display{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;gap:.75rem;height:36px;padding:0 .875rem}.facility-context{display:flex;flex-direction:column;gap:.125rem;line-height:1.2}.facility-name{color:#374151;font-size:.875rem;font-weight:600}.tenant-name{color:#6b7280;font-size:.75rem;font-weight:500}.switch-button{align-items:center;background:none;border:none;border-radius:4px;color:#6b7280;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:color .15s}.switch-button:hover{background:#667eea1a;color:#667eea}.select-context-button{align-items:center;background:none;border:none;color:#667eea;cursor:pointer;display:flex;font-size:.875rem;font-weight:500;gap:.5rem;padding:0;transition:all .15s}.select-context-button:hover{color:#5568d3}.select-context-button svg{flex-shrink:0}.facility-dropdown{background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 12px #00000026;max-height:400px;min-width:280px;overflow-y:auto;position:absolute;right:0;top:calc(100% + .5rem);z-index:1000}.dropdown-content{padding:.5rem}.loading{color:#6b7280;font-size:.875rem;padding:1rem;text-align:center}.dropdown-section{margin-bottom:.5rem}.dropdown-section:last-child{margin-bottom:0}.section-title{color:#9ca3af;font-size:.75rem;font-weight:700;letter-spacing:.05em;padding:.5rem .75rem;text-transform:uppercase}.tenant-group{margin-bottom:1rem}.tenant-group:last-child{margin-bottom:0}.tenant-header{background:#f9fafb;border-radius:4px;color:#4b5563;font-size:.8125rem;font-weight:600;margin-bottom:.25rem;padding:.5rem .75rem}.dropdown-item{align-items:center;background:none;border:none;border-radius:4px;color:#374151;cursor:pointer;display:flex;font-size:.875rem;justify-content:space-between;padding:.625rem .75rem .625rem 1.5rem;text-align:left;transition:all .15s;width:100%}.dropdown-item:hover{background:#f3f4f6;color:#667eea}.dropdown-item.active{background:#667eea1a;color:#667eea;font-weight:500}.check-mark{color:#667eea;font-size:1rem;font-weight:600}.facility-dropdown:before{bottom:0;content:"";left:0;position:fixed;right:0;top:0;z-index:-1}.facility-dropdown::-webkit-scrollbar{width:6px}.facility-dropdown::-webkit-scrollbar-track{background:#0000}.facility-dropdown::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.facility-dropdown::-webkit-scrollbar-thumb:hover{background:#9ca3af}@media (max-width:768px){.facility-display{padding:0 .625rem}.facility-dropdown{max-height:300px;min-width:240px}}.tab-layout{background:var(--bg-page);display:flex;flex-direction:column;height:100vh;overflow:hidden}.tab-nav-container{background:#fff;box-shadow:0 1px 3px #00000014;flex-shrink:0}.tab-nav{border-bottom:1px solid #e5e7eb;justify-content:space-between;margin:0 auto;max-width:1400px;padding:.75rem 2rem}.tab-nav,.tab-nav-left{align-items:center;display:flex}.tab-nav-left{flex:1 1;gap:.5rem}.tab-nav-right{align-items:center;display:flex;gap:.75rem}.app-title{color:#667eea;font-size:1.25rem;font-weight:700;letter-spacing:-.025em;margin:0 1.5rem 0 0}.tab{border-bottom:2px solid #0000;color:#6b7280;font-size:.9375rem;font-weight:500;padding:.625rem 1.25rem;position:relative;transition:all .15s cubic-bezier(.4,0,.2,1);white-space:nowrap}.tab:hover{background:#667eea0d;border-radius:6px 6px 0 0;color:#667eea}.tab.active{border-bottom-color:#667eea;color:#667eea;font-weight:600}.tab.active:before{background:linear-gradient(90deg,#667eea,#764ba2);bottom:0;content:"";height:2px;left:0;position:absolute;right:0}.user-info{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;color:#4b5563;padding:0 .875rem}.logout-button,.user-info{align-items:center;display:inline-flex;font-size:.875rem;font-weight:500;height:36px}.logout-button{background:#fff;border:1px solid #d1d5db;border-radius:6px;box-shadow:0 1px 2px #0000000d;color:#6b7280;cursor:pointer;padding:0 1rem;transition:all .15s cubic-bezier(.4,0,.2,1)}.logout-button:hover{background:#f9fafb;border-color:#667eea;box-shadow:0 1px 3px #667eea1a;color:#667eea;transform:translateY(-1px)}.logout-button:active{transform:translateY(0)}.tab-content{flex:1 1;margin:0 auto;max-width:1400px;overflow-x:hidden;overflow-y:auto;padding:2rem;width:100%}.tab-content::-webkit-scrollbar{width:8px}.tab-content::-webkit-scrollbar-track{background:#0000}.tab-content::-webkit-scrollbar-thumb{background:#0003;border-radius:4px}.tab-content::-webkit-scrollbar-thumb:hover{background:#0000004d}@media (max-width:768px){.tab-nav{gap:.75rem;padding:.75rem 1rem}.tab-nav,.tab-nav-left{align-items:stretch;flex-direction:column}.tab-nav-left{gap:.5rem}.app-title{font-size:1.125rem;margin-bottom:.5rem;margin-right:0;text-align:center}.tab{border-bottom:none;border-left:2px solid #0000;border-radius:6px;padding:.625rem 1rem;text-align:left}.tab.active{background:#667eea0d;border-bottom-color:#0000;border-left-color:#667eea}.tab.active:before{display:none}.tab-nav-right{border-top:1px solid #e5e7eb;justify-content:space-between;padding-top:.75rem}.user-info{flex:1 1;justify-content:center}.tab-content{padding:1.5rem 1rem}}.documents-page{width:100%}.page-header h2{color:#1a202c;font-size:2rem;font-weight:700;margin:0 0 .5rem}.documents-container{display:flex;flex-direction:column;gap:1.5rem}.info-card{background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;padding:1.5rem}.info-card h3{color:#2d3748;font-size:1.25rem;font-weight:600;margin:0 0 .5rem}.info-card p{color:#718096;font-size:.875rem;margin:0 0 1rem}.patient-input-group{display:flex;gap:10px;margin-top:10px}.patient-input,.patient-select{background:#fff;border:1px solid #cbd5e0;border-radius:4px;flex:1 1;font-size:14px;padding:8px 12px;transition:border-color .2s ease}.patient-input:focus,.patient-select:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.facility-context-info{background:#ebf4ff;border-left:3px solid #667eea;border-radius:4px;color:#2c5282;font-size:.875rem;margin-bottom:1rem;padding:.75rem}.facility-context-info strong{color:#1a365d}.error-message{background:#fee;border-left:3px solid #e53e3e;color:#742a2a;font-size:.875rem;margin-bottom:1rem;padding:.75rem}.btn-secondary{background:#e2e8f0;color:#4a5568;padding:8px 16px;transition:all .2s ease}.btn-secondary:hover{background:#cbd5e0}.empty-state{background:#f7fafc;border:2px dashed #cbd5e0;padding:3rem 1.5rem}.empty-state p{color:#a0aec0;font-size:1rem}@media (max-width:768px){.page-header h2{font-size:1.5rem}.patient-input-group{flex-direction:column}.info-card{padding:1rem}}.admin-page{width:100%}.page-header,.page-header h1{margin:0}.page-header p{color:var(--text-secondary);font-size:var(--font-base);font-weight:var(--font-medium)}.admin-section{background:var(--bg-card);border:var(--border-width) solid var(--border-medium);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:var(--space-2xl)}.badge{border-radius:12px;display:inline-block;font-size:11px;font-weight:600;letter-spacing:.5px;padding:4px 10px;text-transform:uppercase}.badge-placeholder{background:#e3f2fd;color:#1565c0}.badge-file{background:#f3e5f5;color:#6a1b9a}.badge-required{background:#ffebee;color:#c62828}.badge-optional{background:#f1f8e9;color:#558b2f}.badge-active{background:#e8f5e9;color:#2e7d32}.badge-inactive{background:#fafafa;color:#9e9e9e}.inactive-row{background:#fafafa;opacity:.6}.create-button{background:#667eea;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px;transition:background .2s}.create-button:hover{background:#5568d3}.form-actions{margin-top:20px}.submit-button{background:#28a745;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:500;padding:10px 24px;transition:background .2s}.submit-button:hover:not(:disabled){background:#218838}.submit-button:disabled{background:#ccc;cursor:not-allowed}.cancel-button{background:#6c757d;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:500;padding:10px 24px;transition:background .2s}.cancel-button:hover{background:#5a6268}.actions-cell-content{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.action-button{border:none;border-radius:4px;cursor:pointer;font-size:12px;font-weight:500;padding:6px 12px;transition:all .2s}.edit-button{background:#667eea;color:#fff}.edit-button:hover{background:#5568d3}.deactivate-button{background:#dc3545;color:#fff}.deactivate-button:hover{background:#c82333}.activate-button{background:#28a745;color:#fff}.activate-button:hover{background:#218838}.form-group textarea{border:1px solid #ced4da;border-radius:6px;font-family:inherit;font-size:14px;padding:10px 12px;transition:border-color .2s;width:100%}.form-group textarea:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.list-container{overflow-x:auto}@media (max-width:768px){.page-header h1{font-size:1.5rem}.admin-section{padding:20px}.section-header{align-items:flex-start;flex-direction:column;gap:15px}.form-row{gap:0;grid-template-columns:1fr}.data-table{font-size:12px}.data-table td,.data-table th{padding:8px 10px}.actions-cell{flex-direction:column;gap:4px}.action-button{width:100%}}.super-admin-page{width:100%}.page-header{margin-bottom:2rem}.page-header h1{color:#1a202c;font-size:2rem;font-weight:700;margin:0 0 .5rem}.page-header p{color:#718096;font-size:1rem;margin:0}.admin-content{display:flex;flex-direction:column;gap:30px}.message{border-radius:8px;font-weight:500;margin-bottom:20px;padding:16px 24px;text-align:center}.message.success{background:#d4edda;border:1px solid #c3e6cb;color:#155724}.message.error{background:#f8d7da;border:1px solid #f5c6cb;color:#721c24}.admin-section{background:#fff;border-radius:12px;box-shadow:0 4px 6px #0000001a;padding:30px}.section-header{align-items:center;border-bottom:2px solid #f0f0f0;display:flex;justify-content:space-between;margin-bottom:25px;padding-bottom:15px}.section-header h2{color:#333;font-size:24px;margin:0}.btn-primary{background:#667eea;border-radius:6px;font-weight:500;padding:10px 20px;transition:background .2s}.btn-primary:hover{background:#5568d3}.btn-primary:disabled{background:#ccc;cursor:not-allowed}.btn-submit{background:#28a745;border-radius:6px;font-size:16px;margin-top:15px;padding:12px 30px;transition:background .2s}.btn-submit:hover:not(:disabled){background:#218838}.btn-submit:disabled{background:#ccc;cursor:not-allowed}.create-form{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;margin-bottom:25px;padding:25px}.form-group,.form-row{margin-bottom:20px}.form-row{grid-gap:20px;gap:20px}.form-group label{color:#333;margin-bottom:8px}.form-group input,.form-group select{border:1px solid #ced4da;border-radius:6px;font-size:14px;padding:10px 12px;transition:border-color .2s;width:100%}.form-group input:focus,.form-group select:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.checkbox-label{gap:10px}.form-help{color:#6c757d;font-size:12px;margin:5px 0 0}.warning{background:#fff3cd;border:1px solid #ffeeba;border-radius:6px;color:#856404;margin-bottom:15px;padding:12px 16px}.items-list{overflow-x:auto}.data-table{border-collapse:collapse;font-size:14px;width:100%}.data-table thead{background:#f8f9fa}.data-table th{border-bottom:2px solid #dee2e6;color:#495057;font-weight:600;padding:12px 16px;text-align:left}.data-table td{border-bottom:1px solid #dee2e6;color:#212529;padding:12px 16px}.data-table code,.data-table tbody tr:hover{background:#f8f9fa}.data-table code{border-radius:3px;color:#e83e8c;font-family:Monaco,Courier New,monospace;font-size:12px;padding:2px 6px}.role-badge{background:#667eea;border-radius:12px;color:#fff;display:inline-block;font-size:12px;padding:4px 12px}.role-badge,.status-badge{font-weight:500}.status-badge.active{background:#d4edda}.status-badge.inactive{background:#f8d7da;color:#721c24}@media (max-width:768px){.page-header h1{font-size:1.5rem}.admin-section{padding:20px}.section-header{align-items:flex-start;flex-direction:column;gap:15px}.form-row{gap:0;grid-template-columns:1fr}.data-table{font-size:12px}.data-table td,.data-table th{padding:8px 10px}}.residents-page{margin:0 auto;max-width:1400px;padding:20px}.page-header{align-items:center;display:flex;gap:20px;justify-content:space-between;margin-bottom:30px}.header-left h1{color:#2c3e50;font-size:28px;margin:0 0 8px}.header-left p{color:#7f8c8d;font-size:14px;margin:0}.header-right{display:flex;gap:12px}.btn-bulk-entry{align-items:center;background-color:#007bff;border:none;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-size:14px;font-weight:600;gap:8px;padding:10px 20px;transition:background-color .2s}.btn-bulk-entry:hover{background-color:#0056b3}@media (max-width:768px){.page-header{align-items:flex-start;flex-direction:column}.header-right{width:100%}.btn-bulk-entry{justify-content:center;width:100%}}.residents-content{background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;padding:20px}.empty-state{color:#7f8c8d;font-style:italic;padding:40px}.table-container{overflow-x:auto}.residents-table{border-collapse:collapse;width:100%}.residents-table thead{background-color:#f8f9fa;border-bottom:2px solid #dee2e6}.residents-table th{color:#495057;font-size:14px;font-weight:600;letter-spacing:.5px;padding:12px 16px;text-align:left;text-transform:uppercase}.residents-table tbody tr{border-bottom:1px solid #e9ecef}.clickable-row{cursor:pointer;transition:background-color .2s}.clickable-row:hover{background-color:#f8f9fa}.residents-table td{color:#495057;font-size:14px;padding:16px}.patient-name-cell{align-items:center;display:flex;gap:12px}.patient-photo-small{border:2px solid #e9ecef;border-radius:50%;height:40px;object-fit:cover;width:40px}.patient-name{color:#2c3e50;font-weight:600}.patient-mrn{color:#7f8c8d;font-size:12px;margin-top:2px}.orders-tab{padding:0}.orders-header{align-items:center;background-color:#f8f9fa;border-bottom:1px solid #dee2e6;display:flex;justify-content:space-between;margin-bottom:12px;padding:12px 16px}.orders-header h2{color:#212529;font-size:16px;font-weight:600;margin:0}.btn-new-order{background-color:#007bff;border:none;border-radius:3px;color:#fff;cursor:pointer;font-size:13px;font-weight:500;padding:6px 14px}.btn-new-order:hover{background-color:#0056b3}.empty-state{background-color:#f8f9fa;border-radius:8px;margin-top:20px}.empty-state p{color:#6c757d;margin-bottom:20px}.btn-create-first{background-color:#28a745;border-radius:4px;font-size:14px;padding:12px 24px}.btn-create-first:hover{background-color:#218838}.orders-table-container{border:1px solid #dee2e6;border-top:none;overflow-x:auto}.orders-table{background-color:#fff;border-collapse:collapse;font-size:13px;width:100%}.orders-table thead{background-color:#f1f3f5;border-bottom:1px solid #dee2e6;position:-webkit-sticky;position:sticky;top:0}.orders-table th{color:#495057;font-size:12px;font-weight:600;letter-spacing:.3px;padding:8px 12px;text-align:left;text-transform:uppercase;white-space:nowrap}.orders-table td{border-bottom:1px solid #e9ecef;color:#212529;font-size:13px;padding:8px 12px;vertical-align:middle}.orders-table tbody tr:hover{background-color:#f8f9fa}.orders-table tbody tr:last-child td{border-bottom:none}.order-description{font-weight:500;max-width:350px}.order-description,.order-directions{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-directions{color:#6c757d;font-size:12px;max-width:250px}.status-badge{background-color:#fff;border:1px solid;border-radius:10px;cursor:pointer;font-size:11px;min-width:90px;padding:3px 10px}.status-badge-active{background-color:#d1e7dd;border-color:#a3cfbb;color:#0f5132}.status-badge-pending{background-color:#fff3cd;border-color:#ffe69c;color:#997404}.status-badge-discontinued{background-color:#e9ecef;border-color:#ced4da;color:#495057}.status-badge-completed{background-color:#cff4fc;border-color:#9eeaf9;color:#055160}.status-badge-on-hold{background-color:#ffe5d0;border-color:#ffda9e;color:#984c0c}.pagination{background-color:#f8f9fa;border-top:1px solid #dee2e6;gap:12px;padding:10px}.btn-pagination{background-color:#6c757d;border:none;border-radius:3px;color:#fff;font-size:12px;padding:5px 12px}.btn-pagination:hover:not(:disabled){background-color:#5a6268}.btn-pagination:disabled{background-color:#e9ecef;color:#adb5bd}.pagination-info{color:#6c757d;font-size:12px}.modal-content{background-color:#fff;box-shadow:0 4px 6px #0000001a}.modal-header{border-bottom:1px solid #dee2e6;padding:20px}.modal-header h2{color:#333;font-size:20px}.btn-close{color:#6c757d;font-size:32px;line-height:1}.btn-close:hover{color:#333}.order-form{padding:20px}.form-section h3{border-bottom:1px solid #dee2e6;color:#495057;font-size:16px;padding-bottom:8px}.form-group,.form-section h3{margin-bottom:16px}.form-group label{margin-bottom:6px}.form-group input[type=date],.form-group input[type=text],.form-group select,.form-group textarea{border:1px solid #ced4da;border-radius:4px;font-family:inherit;font-size:14px;padding:8px 12px;width:100%}.form-group input[type=checkbox]{margin-right:8px}.form-row{grid-template-columns:1fr 1fr}.form-actions{border-top:1px solid #dee2e6;gap:12px;padding-top:20px}.btn-cancel{background-color:#6c757d;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;padding:10px 20px}.btn-cancel:hover:not(:disabled){background-color:#5a6268}.btn-submit{background-color:#28a745;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px}.btn-submit:hover:not(:disabled){background-color:#218838}.error-message{background-color:#f8d7da;border:1px solid #f5c6cb;border-radius:4px;color:#721c24}@media (max-width:768px){.orders-table-container{overflow-x:scroll}.modal-content{max-height:95vh;width:95%}.form-row{grid-template-columns:1fr}.orders-header{align-items:flex-start;flex-direction:column;gap:12px}}.contacts-tab{padding:var(--space-lg)}.contacts-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--space-lg)}.contacts-header h2{color:var(--text-primary);font-size:18px;font-weight:600;margin:0}.btn-new-contact{background:var(--primary);border:none;border-radius:var(--radius-md);color:#fff;cursor:pointer;font-size:13px;font-weight:500;padding:8px 16px;transition:background .2s}.btn-new-contact:hover{background:var(--primary-dark)}.empty-state{padding:var(--space-xl)}.contacts-table-container{border:1px solid var(--border-medium);border-radius:var(--radius-md);overflow-x:auto}.contacts-table{background:#fff;border-collapse:collapse;font-size:13px;width:100%}.contacts-table thead{background:var(--bg-secondary);border-bottom:1px solid var(--border-medium)}.contacts-table thead th{color:var(--text-secondary);font-size:12px;font-weight:600;letter-spacing:.3px;padding:8px 12px;text-align:left;text-transform:uppercase}.contacts-table tbody td{border-bottom:1px solid var(--border-light);color:var(--text-primary);padding:8px 12px}.contacts-table tbody tr:last-child td{border-bottom:none}.contacts-table tbody tr:hover{background:var(--bg-secondary)}.contact-name{color:var(--text-primary);font-weight:500}.contact-type-badge{background:var(--info-light);border-radius:var(--radius-sm);color:var(--info);display:inline-block;font-size:11px;font-weight:500;letter-spacing:.3px;padding:3px 8px;text-transform:uppercase}.contact-actions{white-space:nowrap}.modal-content{max-width:700px}.contact-form{padding:var(--space-lg)}.form-group input[type=email],.form-group input[type=number],.form-group input[type=tel],.form-group input[type=text],.form-group select,.form-group textarea{border:1px solid var(--border-medium);border-radius:var(--radius-sm);font-family:inherit;font-size:13px;padding:8px 12px;transition:border-color .2s;width:100%}.form-group textarea{min-height:60px}.form-group input[type=checkbox]{margin-right:var(--space-xs);width:auto}.vaccine-autocomplete{position:relative;width:100%}.vaccine-autocomplete-input-wrapper{align-items:center;display:flex;position:relative}.vaccine-autocomplete-input{border:1px solid var(--border-medium);border-radius:var(--radius-md);font-size:14px;line-height:1.5;padding:var(--space-sm);padding-right:36px;width:100%}.vaccine-autocomplete-input:focus{border-color:var(--primary);box-shadow:0 0 0 2px #007bff1a;outline:none}.vaccine-autocomplete-input.error{border-color:var(--danger)}.vaccine-autocomplete-input:disabled{background-color:#e9ecef;background-color:var(--bg-disabled,#e9ecef);cursor:not-allowed}.vaccine-autocomplete-clear{align-items:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--text-secondary);cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;padding:0;position:absolute;right:8px;top:50%;transform:translateY(-50%);width:24px}.vaccine-autocomplete-clear:hover{background-color:#f8f9fa;background-color:var(--bg-hover,#f8f9fa);color:var(--text-primary)}.vaccine-autocomplete-spinner{animation:spin .6s linear infinite;border:2px solid var(--border-medium);border-radius:50%;border-top-color:var(--primary);height:16px;position:absolute;right:8px;top:50%;transform:translateY(-50%);width:16px}@keyframes spin{to{transform:translateY(-50%) rotate(1turn)}}.vaccine-autocomplete-dropdown{background:#fff;border:1px solid var(--border-medium);border-radius:var(--radius-md);box-shadow:0 4px 6px #0000001a;left:0;max-height:300px;overflow-y:auto;position:absolute;right:0;top:calc(100% + 4px);z-index:1000}.vaccine-autocomplete-item{border-bottom:1px solid #f1f3f5;border-bottom:1px solid var(--border-light,#f1f3f5);cursor:pointer;padding:var(--space-sm) var(--space-md);transition:background-color .15s ease}.vaccine-autocomplete-item:last-child{border-bottom:none}.vaccine-autocomplete-item.highlighted,.vaccine-autocomplete-item:hover{background-color:#f8f9fa;background-color:var(--bg-hover,#f8f9fa)}.vaccine-item-main{align-items:center;display:flex;gap:var(--space-sm);margin-bottom:4px}.vaccine-item-name{color:var(--text-primary);flex:1 1;font-weight:500}.vaccine-item-cvx{background-color:#e9ecef;background-color:var(--bg-secondary,#e9ecef);border-radius:var(--radius-sm);padding:2px 6px}.vaccine-item-cvx,.vaccine-item-full{color:var(--text-secondary);font-size:12px}.vaccine-item-full{margin-top:2px}.vaccine-item-status{color:#ffc107;color:var(--warning,#ffc107);display:inline-block;font-size:11px;font-weight:500;margin-top:2px;text-transform:uppercase}.vaccine-autocomplete-no-results{color:var(--text-secondary);font-size:14px;padding:var(--space-md);text-align:center}.immunization-status-badge{border-radius:var(--radius-sm);display:inline-block;font-size:12px;font-weight:500;letter-spacing:.5px;line-height:1;padding:4px 8px;text-transform:uppercase}.status-administered{background-color:#d4edda;border:1px solid #c3e6cb;color:#155724}.status-historical{background-color:#d1ecf1;border:1px solid #bee5eb;color:#0c5460}.status-not-eligible{background-color:#fff3cd;border:1px solid #ffeeba;color:#856404}.status-refused{background-color:#f8d7da;border:1px solid #f5c6cb;color:#721c24}.status-default{background-color:#e9ecef;border:1px solid #dee2e6;color:#495057}.immunizations-tab{padding:var(--space-lg)}.immunizations-header{align-items:center;display:flex;gap:var(--space-md);justify-content:space-between;margin-bottom:var(--space-lg)}.immunizations-header h2{color:var(--text-primary);font-size:18px;font-weight:600;margin:0}.header-actions{gap:var(--space-md)}.header-actions,.status-filter{align-items:center;display:flex}.status-filter{gap:var(--space-sm)}.status-filter label{color:var(--text-secondary);font-size:13px;font-weight:500;white-space:nowrap}.status-filter select{-webkit-appearance:none;appearance:none;background-color:#fff;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath fill='%236c757d' d='M6 8 2 4h8z'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat;border:1px solid var(--border-medium);border-radius:var(--radius-sm);color:var(--text-primary);cursor:pointer;font-size:13px;padding:6px 32px 6px 10px;transition:border-color .2s}.status-filter select:hover{border-color:var(--border-dark)}.status-filter select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #007bff1a;outline:none}.btn-new-immunization{background:var(--primary);border:none;border-radius:var(--radius-md);color:#fff;cursor:pointer;font-size:13px;font-weight:500;padding:8px 16px;transition:background .2s;white-space:nowrap}.btn-new-immunization:hover{background:var(--primary-dark)}.loading-state{color:var(--text-secondary);font-size:13px;padding:var(--space-xl);text-align:center}.empty-state{color:var(--text-secondary);padding:var(--space-3xl) var(--space-xl)}.empty-state p{font-size:14px;margin:0 0 var(--space-lg) 0}.btn-create-first{background:var(--primary);border:none;border-radius:var(--radius-md);color:#fff;cursor:pointer;font-size:13px;font-weight:500;margin-top:var(--space-md);padding:10px 20px}.btn-create-first:hover{background:var(--primary-dark)}.immunizations-table-container{border:1px solid var(--border-medium);border-radius:var(--radius-md);overflow-x:auto}.immunizations-table{background:#fff;border-collapse:collapse;font-size:13px;width:100%}.immunizations-table thead{background:var(--bg-secondary);border-bottom:1px solid var(--border-medium)}.immunizations-table thead th{color:var(--text-secondary);font-size:12px;font-weight:600;letter-spacing:.3px;padding:8px 12px;text-align:left;text-transform:uppercase;white-space:nowrap}.immunizations-table tbody td{border-bottom:1px solid var(--border-light);color:var(--text-primary);padding:8px 12px;vertical-align:middle}.immunizations-table tbody tr:last-child td{border-bottom:none}.immunizations-table tbody tr:hover{background:var(--bg-secondary)}.vaccine-name{color:var(--text-primary);font-weight:500}.cvx-code{background:var(--bg-secondary);border-radius:var(--radius-sm);color:var(--text-secondary);font-family:SF Mono,Monaco,Consolas,monospace;font-size:12px;padding:2px 6px}.immunization-date{white-space:nowrap}.immunization-details{color:var(--text-secondary);font-size:12px}.immunization-actions{white-space:nowrap}.btn-delete,.btn-edit{background:#fff;border:1px solid var(--border-medium);border-radius:var(--radius-sm);color:var(--text-primary);cursor:pointer;font-size:12px;margin-right:6px;padding:4px 10px;transition:all .2s}.btn-edit:hover{background:var(--info-light);border-color:var(--info);color:var(--info)}.btn-delete:hover{background:var(--danger-light);border-color:var(--danger);color:var(--danger)}.pagination{background:var(--bg-secondary);border-radius:var(--radius-md);justify-content:space-between;margin-top:var(--space-lg);padding:var(--space-md)}.pagination-info{color:var(--text-secondary);font-size:13px}.pagination-controls{display:flex;gap:var(--space-sm)}.btn-pagination{background:#fff;border:1px solid var(--border-medium);border-radius:var(--radius-sm);cursor:pointer;font-size:13px;padding:6px 12px;transition:all .2s}.btn-pagination:hover:not(:disabled){background:var(--primary);border-color:var(--primary);color:#fff}.btn-pagination:disabled{cursor:not-allowed;opacity:.5}.modal-overlay{animation:fadeIn .2s ease-in-out;background:#00000080}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{animation:slideUp .3s ease-out;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);max-width:800px}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-header{background:#fff;border-bottom:1px solid var(--border-medium);padding:var(--space-lg);position:-webkit-sticky;position:sticky;top:0;z-index:10}.modal-header h2{font-size:18px;font-weight:600;margin:0}.btn-close{align-items:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--text-secondary);cursor:pointer;display:flex;font-size:28px;height:32px;justify-content:center;padding:0;transition:all .2s;width:32px}.btn-close:hover{background:var(--bg-secondary);color:var(--text-primary)}.immunization-form{padding:var(--space-lg)}.form-section{margin-bottom:var(--space-xl)}.form-section:last-child{margin-bottom:0}.form-section h3{border-bottom:1px solid var(--border-light);color:var(--text-primary);font-size:15px;font-weight:600;margin:0 0 var(--space-md) 0;padding-bottom:var(--space-sm)}.form-group{margin-bottom:var(--space-md)}.form-group label{color:var(--text-primary);display:block;font-size:13px;margin-bottom:var(--space-xs)}.form-group input[type=date],.form-group input[type=number],.form-group input[type=text],.form-group input[type=time],.form-group select,.form-group textarea{border:1px solid var(--border-medium);border-radius:var(--radius-sm);font-family:inherit;font-size:13px;padding:8px 12px;transition:border-color .2s;width:100%}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--primary)}.form-group textarea{min-height:80px;resize:vertical}.form-group select{background-color:#fff;cursor:pointer}.form-row{grid-gap:var(--space-md);gap:var(--space-md)}.form-row-2{grid-gap:var(--space-md);grid-template-columns:1fr 1fr}.form-row-2,.form-row-3{display:grid;gap:var(--space-md)}.form-row-3{grid-gap:var(--space-md);grid-template-columns:1fr 1fr 1fr}.required{color:var(--danger);margin-left:2px}.form-actions{background:#fff;border-top:1px solid var(--border-light);bottom:0;display:flex;gap:var(--space-md);justify-content:flex-end;margin:0 calc(var(--space-lg)*-1);padding-left:var(--space-lg);padding-right:var(--space-lg);padding-top:var(--space-lg);position:-webkit-sticky;position:sticky}.btn-cancel,.btn-submit{border-radius:var(--radius-md);cursor:pointer;font-size:13px;font-weight:500;padding:10px 20px;transition:all .2s}.btn-cancel{background:#fff;border:1px solid var(--border-medium);color:var(--text-primary)}.btn-cancel:hover:not(:disabled){background:var(--bg-secondary)}.btn-submit{background:var(--primary);border:none;color:#fff}.btn-submit:hover:not(:disabled){background:var(--primary-dark)}.btn-cancel:disabled,.btn-submit:disabled{cursor:not-allowed;opacity:.6}.error-message{align-items:flex-start;background:var(--danger-light);border-radius:var(--radius-sm);color:var(--danger);display:flex;font-size:12px;gap:6px;line-height:1.4;padding:6px 8px}.error-icon{flex-shrink:0;height:16px;margin-top:1px;width:16px}.input-error,.input-error:focus{background-color:var(--danger-light);border-color:var(--danger)!important}.input-error:focus{box-shadow:0 0 0 3px #dc35451a;outline:none}.delete-confirmation{padding:var(--space-lg);text-align:center}.delete-confirmation h3{color:var(--text-primary);font-size:16px;font-weight:600;margin:0 0 var(--space-md) 0}.delete-confirmation p{color:var(--text-secondary);font-size:13px;margin:0 0 var(--space-lg) 0}.delete-actions{display:flex;gap:var(--space-md);justify-content:center}.btn-delete-cancel{background:#fff;border:1px solid var(--border-medium);border-radius:var(--radius-md);color:var(--text-primary);cursor:pointer;font-size:13px;font-weight:500;padding:8px 16px;transition:all .2s}.btn-delete-cancel:hover{background:var(--bg-secondary)}.btn-delete-confirm{background:var(--danger);border:none;border-radius:var(--radius-md);color:#fff;cursor:pointer;font-size:13px;font-weight:500;padding:8px 16px;transition:all .2s}.btn-delete-confirm:hover{background:#c82333}@media (max-width:768px){.immunizations-header{align-items:flex-start;flex-direction:column}.header-actions{flex-direction:column;width:100%}.status-filter{width:100%}.status-filter select{flex:1 1}.btn-new-immunization{width:100%}.form-row,.form-row-2,.form-row-3{grid-template-columns:1fr}.modal-content{max-height:95vh;width:95%}.pagination{flex-direction:column;gap:var(--space-md)}}.vital-modal{max-height:90vh;max-width:700px;overflow-y:auto}.modal-header{border-bottom:2px solid #e9ecef;margin-bottom:24px;padding-bottom:16px}.modal-header h3{color:#212529;font-size:24px;margin:0;text-transform:capitalize}.btn-back{background:none;border:1px solid #6c757d;border-radius:4px;color:#6c757d;font-size:14px;padding:6px 12px}.btn-back:hover{background-color:#6c757d;color:#fff}.type-selector h3{color:#212529;margin-bottom:24px;text-align:center}.type-grid{grid-gap:16px;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-bottom:20px}.type-card{align-items:center;background:#fff;border:2px solid #e9ecef;border-radius:8px;cursor:pointer;display:flex;flex-direction:column;gap:12px;padding:24px 16px;transition:all .2s}.type-card:hover{background-color:#f8f9fa;border-color:#007bff;box-shadow:0 4px 8px #0000001a;transform:translateY(-2px)}.type-icon{font-size:32px}.type-name{color:#212529;font-size:14px;font-weight:500;text-align:center}.form-section{margin-bottom:24px}.form-section h4{color:#495057;font-size:16px;font-weight:600;margin:0 0 16px}.form-row{grid-gap:16px;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-bottom:16px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{color:#495057;font-size:14px;font-weight:500}.form-group input,.form-group select,.form-group textarea{border:1px solid #ced4da;border-radius:4px;font-family:inherit;font-size:14px;padding:10px 12px}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#007bff;box-shadow:0 0 0 3px #007bff1a;outline:none}.form-group input.error,.form-group select.error{border-color:#dc3545}.form-group input:disabled{background-color:#e9ecef;cursor:not-allowed}.required{color:#dc3545}.error-message{color:#dc3545;font-size:13px;margin-top:4px}.checkbox-label{align-items:center;cursor:pointer;display:flex;gap:8px;-webkit-user-select:none;user-select:none}.checkbox-label input[type=checkbox]{cursor:pointer;width:auto}.pain-scale{color:#6c757d;font-size:12px;font-style:italic;margin-top:4px}.modal-footer{margin-top:32px;padding-top:20px}.btn-secondary{background-color:#6c757d;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px}.btn-secondary:hover:not(:disabled){background-color:#5a6268}.btn-primary:disabled,.btn-secondary:disabled{cursor:not-allowed;opacity:.6}@media (max-width:768px){.vital-modal{margin:20px;max-width:95vw}.type-grid{grid-template-columns:repeat(2,1fr)}.form-row{grid-template-columns:1fr}}.vitals-tab{padding:20px}.vitals-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:20px}.vitals-header-left h2{margin:0 0 5px}.vitals-count{color:#666;font-size:14px;margin:0}.vitals-header-right{align-items:center;display:flex;gap:10px}.type-filter{border:1px solid #ddd;border-radius:4px;font-size:14px;padding:8px 12px}.btn-primary{background-color:#007bff;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;padding:8px 16px}.btn-primary:hover{background-color:#0056b3}.error-banner{padding:12px}.empty-state,.loading{color:#666;padding:40px;text-align:center}.vitals-table-wrapper{margin-bottom:20px;overflow-x:auto}.vitals-table{background:#fff;border-collapse:collapse;box-shadow:0 1px 3px #0000001a;width:100%}.vitals-table th{background-color:#f8f9fa;border-bottom:2px solid #dee2e6;font-weight:600;padding:12px;text-align:left}.vitals-table td{border-bottom:1px solid #dee2e6;padding:12px;vertical-align:middle}.vitals-table tr:hover{background-color:#f8f9fa}.vital-type{font-weight:500;text-transform:capitalize}.vital-value{color:#28a745;font-size:16px;font-weight:600;height:27.5px}.threshold-warnings{display:flex;flex-direction:column;gap:4px}.warning-badge{background-color:#fff3cd;border-radius:4px;color:#856404;display:inline-block;font-size:12px;padding:4px 8px}.notes{max-width:200px;overflow:hidden;text-overflow:ellipsis}.actions,.notes{white-space:nowrap}.btn-action{background-color:#6c757d;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:13px;margin:0 4px;padding:6px 12px}.btn-action:hover{background-color:#5a6268}.btn-danger{background-color:#dc3545}.btn-danger:hover{background-color:#c82333}.pagination{align-items:center;display:flex;gap:20px;justify-content:center;padding:20px 0}.pagination button{background:#fff;border:1px solid #ddd;border-radius:4px;cursor:pointer;padding:8px 16px}.pagination button:disabled{cursor:not-allowed;opacity:.5}.pagination button:hover:not(:disabled){background-color:#f8f9fa}.modal-content{background:#fff;border-radius:8px;max-height:90vh;max-width:600px;overflow-y:auto;padding:24px;width:90%}.current-vitals-panel{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;min-width:280px;padding:16px}.vitals-panel-title{border-bottom:2px solid #dee2e6;color:#495057;font-size:16px;font-weight:600;margin:0 0 12px;padding-bottom:8px}.vitals-list{display:flex;flex-direction:column;gap:10px}.vital-item{align-items:flex-start;display:flex;gap:12px;justify-content:space-between}.vital-label{color:#6c757d;flex-shrink:0;font-size:13px;font-weight:600;min-width:50px}.vital-value-container{align-items:flex-end;display:flex;flex:1 1;flex-direction:column;gap:2px}.current-vital-value{align-items:center;color:#212529;display:flex;font-size:14px;font-weight:600;gap:6px}.current-vital-value.vital-warning{color:#dc3545}.vital-timestamp{color:#6c757d;font-size:11px;font-weight:400}.vital-warnings{display:flex;gap:4px}.vital-warning-badge{cursor:help;font-size:12px}.current-vital-value:empty,.current-vital-value:has(>:only-child:is(:empty,:-moz-only-whitespace)){color:#adb5bd}.patient-detail-page{background-color:var(--bg-page);margin:0;max-width:100%;min-height:100vh;padding:0}.page-header-bar{padding:16px 20px}.patient-summary{grid-gap:20px;background-color:#fff;border:1px solid #dee2e6;border-radius:8px;box-shadow:0 1px 3px #0000000d;display:grid;gap:20px;grid-template-columns:1fr 300px;margin:0 20px 20px;padding:20px}.patient-info-section{display:flex;gap:20px}.patient-photo-container{align-items:center;display:flex;flex-direction:column;flex-shrink:0;gap:8px}.patient-photo-header{border:3px solid #dee2e6;border-radius:50%;box-shadow:0 2px 4px #0000001a;height:120px;object-fit:cover;width:120px}.photo-upload-link{align-items:center;display:flex;flex-direction:column;gap:4px}.btn-upload-photo-link{color:#007bff;cursor:pointer;font-size:12px;text-decoration:underline}.btn-upload-photo-link:hover{color:#0056b3}.photo-error-small{color:#dc3545;font-size:11px;text-align:center}.patient-demographics{flex:1 1;min-width:0}.patient-name-header{color:#212529;font-size:24px;font-weight:600;margin:0 0 16px}.demographics-grid{grid-gap:12px 20px;display:grid;gap:12px 20px;grid-template-columns:repeat(3,1fr)}.demo-item{display:flex;flex-direction:column;gap:4px}.demo-item-full{grid-column:1/-1}.demo-label{color:#6c757d;font-size:11px;font-weight:600;letter-spacing:.5px;text-transform:uppercase}.allergies-text{color:#495057;font-size:14px;font-weight:500}.allergies-text.has-allergies{background-color:#fff5f5;border:1px solid #f8d7da;border-radius:4px;color:#dc3545;font-weight:600;padding:6px 10px}.vitals-section{flex-shrink:0}.vitals-error,.vitals-loading{color:#6c757d;font-size:14px;padding:20px;text-align:center}.page-header{background-color:var(--bg-card);border:var(--border-width) solid var(--border-medium);border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg);border-top:none;border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg);box-shadow:var(--shadow-xs);margin:0 0 var(--space-xl) 0;padding:var(--space-md) var(--space-xl)}.btn-back{align-items:center;background-color:initial;border:var(--border-width) solid var(--border-medium);border-radius:var(--radius-md);color:var(--text-secondary);cursor:pointer;display:inline-flex;font-size:var(--font-base);gap:var(--space-xs);margin-bottom:var(--space-sm);padding:var(--space-sm) var(--space-md);transition:all .2s}.btn-back:hover{background-color:var(--bg-hover);border-color:var(--color-gray-500);color:var(--text-primary)}.page-header h1{color:var(--text-primary);font-size:var(--font-2xl);font-weight:var(--font-bold);margin:var(--space-xs) 0 2px 0}.patient-mrn{color:var(--text-secondary);font-size:var(--font-base);font-weight:var(--font-medium);margin:0}.tabs-container{background-color:#e9ecef;border-bottom:2px solid #dee2e6;border-top-left-radius:6px;border-top-right-radius:6px;display:flex;gap:2px;margin:20px 20px 0;padding:0 20px}.tab{background:none;border:none;border-bottom:3px solid #0000;border-top-left-radius:4px;border-top-right-radius:4px;color:#6c757d;cursor:pointer;font-size:13px;font-weight:600;margin-bottom:-2px;padding:10px 18px;transition:all .2s}.tab:hover{background-color:#dee2e6;color:#495057}.tab-active{background-color:#fff;border-bottom-color:#007bff;color:#212529;font-weight:700}.patient-detail-content{background-color:#fff;border-bottom:1px solid #dee2e6;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-left:1px solid #dee2e6;border-right:1px solid #dee2e6;box-shadow:0 1px 3px #0000000d;margin:0 20px 20px}.detail-section{background:#fff;border-bottom:1px solid #e9ecef;margin-bottom:0;padding:16px}.detail-section:last-child{border-bottom:none}.detail-section h2{border-bottom:1px solid #e9ecef;color:#212529;font-size:16px;font-weight:600;margin:0 0 12px;padding-bottom:8px}.detail-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.detail-item{display:flex;flex-direction:column}.detail-item.full-width{grid-column:1/-1}.detail-item.photo-item{align-items:center;grid-column:1/-1;justify-content:center}.detail-item label{color:#7f8c8d;font-size:12px;font-weight:600;letter-spacing:.5px;margin-bottom:6px;text-transform:uppercase}.detail-value{color:#2c3e50;font-size:15px;font-weight:500}.detail-value.allergies{background-color:#fee;border:1px solid #fcc;border-radius:6px;color:#c33;font-weight:600;padding:8px 12px}.patient-photo-large{border:4px solid #e9ecef;border-radius:50%;box-shadow:0 2px 8px #0000001a;height:150px;object-fit:cover;width:150px}.photo-upload-container{align-items:center;display:flex;flex-direction:column;gap:8px;margin-top:12px}.btn-upload-photo{background-color:#007bff;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;padding:8px 16px;text-align:center;transition:background-color .2s}.btn-upload-photo:hover{background-color:#0056b3}input[type=file]:disabled+.btn-upload-photo{background-color:#6c757d;cursor:not-allowed}.photo-error{color:#dc3545;font-size:12px;margin-top:4px;text-align:center}.status-badge{border-radius:12px;display:inline-block;font-size:12px;font-weight:600;padding:4px 12px;text-transform:capitalize}.status-badge.active{background-color:#d4edda;color:#155724}.status-badge.discharged{background-color:#f8d7da;color:#721c24}.status-badge.deceased{background-color:#d6d8db;color:#383d41}.code-status{border-radius:6px;display:inline-block;font-size:14px;font-weight:600;padding:6px 12px}.code-status.full-code{background-color:#d4edda;color:#155724}.code-status.dnr{background-color:#fff3cd;color:#856404}.code-status.dni{background-color:#d1ecf1;color:#0c5460}.coming-soon{color:#7f8c8d;font-style:italic;padding:40px;text-align:center}.error-message{background-color:#fee;border:1px solid #fcc;border-radius:6px;color:#c33;margin-bottom:20px;padding:12px}.modal-overlay{align-items:center;animation:modalFadeIn .2s ease-out;background-color:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:1000}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}.modal-container{animation:modalSlideIn .2s ease-out;background:#fff;border-radius:8px;box-shadow:0 4px 20px #00000026;display:flex;flex-direction:column;max-height:90vh;max-width:100%}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.modal-small{width:400px}.modal-medium{width:600px}.modal-large{width:900px}.modal-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:20px 24px}.modal-title{color:#212529;font-size:20px;font-weight:600;margin:0}.modal-close-button{align-items:center;background:none;border:none;border-radius:4px;color:#6c757d;cursor:pointer;display:flex;font-size:32px;height:32px;justify-content:center;line-height:1;padding:0;transition:background-color .2s,color .2s;width:32px}.modal-close-button:hover{background-color:#f8f9fa;color:#212529}.modal-body{flex:1 1;overflow-y:auto;padding:24px}.modal-message{color:#495057;font-size:16px;line-height:1.5;margin:0}.modal-footer{background-color:#f8f9fa;border-radius:0 0 8px 8px;border-top:1px solid #e9ecef;display:flex;gap:12px;justify-content:flex-end;padding:16px 24px}.modal-button{border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:600;min-width:80px;padding:10px 20px;transition:background-color .2s,transform .1s}.modal-button:hover{transform:translateY(-1px)}.modal-button:active{transform:translateY(0)}.modal-button-secondary{background-color:#6c757d;color:#fff}.modal-button-secondary:hover{background-color:#5a6268}.modal-button-info{background-color:#007bff;color:#fff}.modal-button-info:hover{background-color:#0056b3}.modal-button-success{background-color:#28a745;color:#fff}.modal-button-success:hover{background-color:#218838}.modal-button-warning{background-color:#ffc107;color:#212529}.modal-button-warning:hover{background-color:#e0a800}.modal-button-danger{background-color:#dc3545;color:#fff}.modal-button-danger:hover{background-color:#c82333}@media (max-width:768px){.modal-large,.modal-medium,.modal-small{max-width:calc(100vw - 40px);width:100%}.modal-header{padding:16px 20px}.modal-title{font-size:18px}.modal-body{padding:20px}.modal-footer{flex-direction:column;padding:12px 20px}.modal-button{width:100%}}.bulk-vitals-entry-page{max-width:100%;overflow-x:auto;padding:20px}.page-header{margin-bottom:20px}.page-header h1{font-size:28px;margin:0 0 5px}.subtitle{color:#666;font-size:14px;margin:0}.filters-bar{align-items:flex-end;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;display:flex;flex-wrap:wrap;gap:16px;margin-bottom:20px;padding:16px}.filter-group{display:flex;flex-direction:column;gap:4px;min-width:120px}.filter-group label{color:#495057;font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase}.filter-group input[type=text],.filter-group select{background:#fff;border:1px solid #ced4da;border-radius:4px;font-size:14px;padding:8px 12px}.filter-group input[type=text]:focus,.filter-group select:focus{border-color:#007bff;box-shadow:0 0 0 3px #007bff1a;outline:none}.btn-save{font-size:16px;font-weight:600;margin-left:auto;padding:10px 24px}.error-banner{background-color:#f8d7da;border:1px solid #f5c6cb;border-radius:4px;color:#721c24;margin-bottom:20px;padding:12px 16px}.bulk-entry-table-wrapper{background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;max-height:calc(100vh - 280px);overflow-x:auto;overflow-y:auto}.bulk-entry-table{border-collapse:initial;border-spacing:0;min-width:1200px;width:100%}.bulk-entry-table thead{background:#f8f9fa;position:-webkit-sticky;position:sticky;top:0;z-index:20}.bulk-entry-table th{background:#f8f9fa;border-bottom:2px solid #dee2e6;color:#495057;font-size:12px;font-weight:600;letter-spacing:.5px;padding:12px;text-align:left;text-transform:uppercase;white-space:nowrap}.bulk-entry-table td{border-bottom:1px solid #dee2e6;font-size:14px;padding:10px 12px}.bulk-entry-table tbody tr:hover{background-color:#f8f9fa}.bulk-entry-table tbody tr.row-changed{background-color:#fff3cd}.bulk-entry-table tbody tr.row-changed:hover{background-color:#ffe8a1}.sticky-col{background:#fff;border-right:1px solid #dee2e6;position:-webkit-sticky;position:sticky;z-index:10}.sticky-col-1{left:0}.sticky-col-2{left:180px}.sticky-col-3{left:280px}.bulk-entry-table thead .sticky-col{background:#f8f9fa;z-index:21}.bulk-entry-table tbody tr:hover .sticky-col{background-color:#f8f9fa}.bulk-entry-table tbody tr.row-changed .sticky-col{background-color:#fff3cd}.bulk-entry-table tbody tr.row-changed:hover .sticky-col{background-color:#ffe8a1}.patient-name{font-weight:500;min-width:180px}.patient-name-link{color:#007bff;font-weight:600;text-decoration:none;transition:color .2s}.patient-name-link:hover{color:#0056b3;text-decoration:underline}.sticky-col-1{max-width:180px;min-width:180px}.sticky-col-2{max-width:100px;min-width:100px}.sticky-col-3{max-width:120px;min-width:120px}.historical-col{color:#6c757d;font-size:13px;min-width:80px;text-align:center}.historical-col .no-data{color:#adb5bd}.entry-col{min-width:120px;padding:8px}.entry-col-primary{background-color:#e7f3ff}.entry-col-secondary{background-color:#fff0e6}.notes-col{min-width:200px;padding:8px}.notes-input,.vital-input{background:#fff;border:2px solid #0000;border-radius:4px;box-sizing:border-box;font-size:14px;padding:6px 8px;transition:all .2s;width:100%}.notes-input:focus,.vital-input:focus{border-color:#007bff;box-shadow:0 0 0 3px #007bff1a;outline:none}.vital-input{color:#28a745;font-weight:600;text-align:center}.notes-input{font-size:13px}.empty-state{color:#6c757d;padding:60px 20px;text-align:center}.empty-state p{font-size:16px;margin:0}@media (max-width:1200px){.filters-bar{align-items:stretch;flex-direction:column}.filter-group{min-width:100%}.btn-save{margin-left:0;width:100%}}@media print{.btn-save,.filters-bar{display:none}.bulk-entry-table-wrapper{max-height:none;overflow:visible}.bulk-entry-table{font-size:10px}.bulk-entry-table td,.bulk-entry-table th{padding:6px 8px}.sticky-col{position:static}}
/*# sourceMappingURL=main.897c48c5.css.map*/