:root{--font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--bg-page: #f8fafc;--surface: #ffffff;--surface-hover: #f1f5f9;--border: #e2e8f0;--border-light: #f1f5f9;--border-focus: #2563eb;--text-main: #0f172a;--text-body: #334155;--text-muted: #64748b;--text-subtle: #94a3b8;--brand-navy: #15234b;--brand-navy-mid: #1e3060;--brand-navy-light: #2a4494;--primary: #15234b;--primary-hover: #1e3060;--primary-subtle: #f0f4ff;--primary-border: #bfdbfe;--success: #059669;--success-subtle: #ecfdf5;--success-border: #a7f3d0;--danger: #dc2626;--danger-subtle: #fef2f2;--danger-border: #fecaca;--warning: #d97706;--warning-subtle: #fffbeb;--warning-border: #fde68a;--info: #0284c7;--info-subtle: #f0f9ff;--info-border: #bae6fd;--shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, .05);--shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, .08), 0 1px 2px -1px rgba(15, 23, 42, .08);--shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);--shadow-card: 0 2px 4px rgba(15, 23, 42, .03), 0 8px 24px -4px rgba(15, 23, 42, .06);--shadow-popover: 0 12px 32px -4px rgba(15, 23, 42, .16), 0 4px 12px -2px rgba(15, 23, 42, .08);--shadow-focus: 0 0 0 3.5px rgba(37, 99, 235, .16);--radius-sm: 8px;--radius-md: 10px;--radius-lg: 14px;--radius-xl: 18px;--radius-pill: 9999px}*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:var(--font-sans);font-size:13.5px;line-height:1.5;color:var(--text-body);background-color:var(--bg-page);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9999px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}button{border:0;background:none;font-family:inherit;cursor:pointer;outline:none;transition:all .15s cubic-bezier(.4,0,.2,1)}button:focus-visible{box-shadow:var(--shadow-focus)}.center{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--text-muted);font-size:14px;font-weight:600;background:var(--bg-page)}.loading-spinner{width:38px;height:38px;border:3.5px solid #e2e8f0;border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.spin{animation:spin .8s linear infinite}header{height:64px;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 3px #0000000a;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1440px)/2));gap:28px;position:sticky;top:0;z-index:40}.brand{display:flex;align-items:center;gap:14px;white-space:nowrap}.brand img{height:36px;width:auto}.brand-text{display:flex;align-items:center;gap:10px;border-left:1px solid #e2e8f0;padding-left:14px}.brand-title{color:#15234b;font-size:15px;font-weight:800;letter-spacing:.02em}.brand-sub{color:#15234b;background:#15234b14;border:1px solid rgba(21,35,75,.2);padding:2px 9px;border-radius:var(--radius-pill);font-size:11px;font-weight:700;letter-spacing:.03em}nav{display:flex;align-items:center;gap:6px;flex:1;overflow-x:auto;padding:4px 0}nav::-webkit-scrollbar{display:none}nav a{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:8px;color:#64748b;font-size:13px;font-weight:600;white-space:nowrap;background:transparent;border:1px solid transparent;text-decoration:none;transition:all .15s ease}nav a svg{width:16px;height:16px;color:#94a3b8;opacity:.85}nav a:hover{background:#f1f5f9;color:#0f172a}nav a:hover svg{color:#0f172a;opacity:1}nav a.active{background:#15234b;color:#fff;border:1px solid #15234b;box-shadow:0 1px 2px #15234b26}nav a.active svg{color:#fff;opacity:1}.user{display:flex;align-items:center;gap:12px;white-space:nowrap}.user-badge{display:flex;align-items:center;gap:9px;padding:4px 10px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:var(--radius-pill);color:#1e293b}.user-avatar{width:26px;height:26px;border-radius:50%;background:#e2e8f0;display:grid;place-items:center;color:#64748b}.user-avatar svg{width:15px;height:15px}.user-name{font-size:12.5px;font-weight:650;max-width:160px;overflow:hidden;text-overflow:ellipsis;color:#1e293b}.logout-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:8px;background:#fff1f2;border:1px solid #fecdd3;color:#e11d48;font-size:12px;font-weight:700;cursor:pointer;transition:all .15s ease}.logout-btn:hover{background:#ffe4e6;border-color:#fda4af;color:#be123c}.logout-btn svg{width:15px;height:15px}.logout-btn:hover{background:#ef4444;border-color:#ef4444;color:#fff;box-shadow:0 2px 8px #ef444459}main{max-width:1440px;margin:0 auto;padding:28px 24px 48px}.title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;background:#fff;border:1px solid var(--border);border-radius:16px;padding:16px 20px;box-shadow:var(--shadow-xs)}.title h1{font-size:18px;font-weight:800;color:var(--text-main);margin:0 0 3px;letter-spacing:-.02em}.title p{margin:0;color:var(--text-muted);font-size:12.5px}.title-icon-badge{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#15234b;color:#fff;border:1px solid #15234b;box-shadow:var(--shadow-xs);flex-shrink:0}.title-icon-badge svg{width:20px;height:20px}.title-icon-badge .ok-icon{color:#6ee7b7}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl);padding:22px;box-shadow:var(--shadow-card)}.card h2{margin:0 0 18px;font-size:16.5px;font-weight:750;color:var(--text-main);letter-spacing:-.01em}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.card-head h2{margin:0}.card-head small{color:var(--text-muted);font-size:12.5px;font-weight:500;display:block;margin-top:2px}.grid{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}label{display:grid;gap:6px;color:var(--text-body);font-size:12.5px;font-weight:700}input,select,textarea{width:100%;height:42px;border:1px solid #cbd5e1;border-radius:var(--radius-md);padding:0 13px;font-family:inherit;font-size:13px;color:var(--text-main);background:var(--surface);transition:all .15s ease}input:focus,select:focus,textarea:focus{border-color:var(--border-focus);outline:none;box-shadow:var(--shadow-focus)}input::placeholder,textarea::placeholder{color:var(--text-subtle)}select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.primary{height:38px;background:#15234b;color:#fff;border-radius:10px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:12.5px;box-shadow:0 1px 2px #15234b33;border:1px solid #15234b}.primary:hover:not(:disabled){background:#1e3060;border-color:#1e3060;box-shadow:0 4px 10px #15234b38}.primary:active:not(:disabled){transform:translateY(0)}.primary:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.primary svg{width:15px;height:15px}.btn-detail{display:inline-flex;height:32px;align-items:center;justify-content:center;gap:6px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;padding:0 12px;font-size:12px;font-weight:600;color:#15234b;box-shadow:var(--shadow-xs);white-space:nowrap;transition:all .15s ease}.btn-detail:hover:not(:disabled){background:#f8fafc;border-color:#cbd5e1}.btn-detail svg{width:14px;height:14px;color:#64748b}.secondary{height:42px;background:#fff;border:1px solid #cbd5e1;border-radius:var(--radius-md);padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:var(--text-body);font-weight:700;font-size:13px;box-shadow:var(--shadow-xs)}.secondary:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8;color:var(--text-main);box-shadow:var(--shadow-sm)}.secondary:disabled{opacity:.5;cursor:not-allowed}.secondary svg{width:17px;height:17px}.secondary.icon-only{width:42px;padding:0}.danger-button{height:42px;background:#fff;border:1px solid #fecaca;border-radius:var(--radius-md);padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#dc2626;font-weight:700;font-size:13px;box-shadow:var(--shadow-xs)}.danger-button svg{width:17px;height:17px}.danger-button:hover:not(:disabled){background:#fef2f2;border-color:#f87171;color:#b91c1c}.danger-button.solid{background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;border-color:#dc2626;box-shadow:0 2px 8px #dc26264d}.danger-button.solid:hover:not(:disabled){background:linear-gradient(135deg,#b91c1c,#991b1b);box-shadow:0 4px 14px #dc262666}.danger-button:disabled{opacity:.45;cursor:not-allowed}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:var(--radius-pill);font-size:11px;font-weight:750;letter-spacing:.02em;white-space:nowrap}.badge-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.badge-success{background:var(--success-subtle);color:var(--success);border:1px solid var(--success-border)}.badge-success .badge-dot{background:#10b981}.badge-danger{background:var(--danger-subtle);color:var(--danger);border:1px solid var(--danger-border)}.badge-danger .badge-dot{background:#ef4444}.badge-warning{background:var(--warning-subtle);color:var(--warning);border:1px solid var(--warning-border)}.badge-warning .badge-dot{background:#f59e0b}.badge-info{background:var(--primary-subtle);color:var(--primary);border:1px solid var(--primary-border)}.badge-info .badge-dot{background:#3b82f6}.badge-neutral{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}.badge-neutral .badge-dot{background:#94a3b8}.mono-badge{font-family:var(--font-mono);font-size:11.5px;font-weight:600;background:#f1f5f9;color:#1e293b;padding:2px 7px;border-radius:6px;border:1px solid #e2e8f0;display:inline-block;white-space:nowrap}.mono-chip{font-family:var(--font-mono);font-size:11px;background:#f8fafc;color:#475569;padding:2.5px 7px;border-radius:6px;border:1px solid #e2e8f0;display:inline-block;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.duration-badge{display:inline-block;padding:2.5px 7px;border-radius:6px;font-size:11px;font-weight:700;font-family:var(--font-mono)}.duration-badge.fast{background:#ecfdf5;color:#059669}.duration-badge.medium{background:#fffbeb;color:#b45309}.duration-badge.slow{background:#fef2f2;color:#dc2626}.mono{font-family:var(--font-mono);font-size:11.5px}.ok{color:var(--success)}.bad{color:var(--danger)}.info{color:#2563eb}.table-container,.table{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-card);padding:0}table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:12.5px}th{background:#f8fafc;color:#475569;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.05em;padding:12px 14px;border-bottom:1px solid #e2e8f0;text-align:left}td{padding:12px 14px;border-bottom:1px solid #f1f5f9;vertical-align:middle;color:var(--text-body)}tbody tr:hover{background:#f8fafc}tbody tr:last-child td{border-bottom:none}.cell-primary{display:block;font-weight:700;color:var(--text-main);line-height:1.35}.cell-secondary{display:block;font-size:11.5px;color:var(--text-muted);line-height:1.35;margin-top:2px}.queue-pill-sub{display:flex;align-items:baseline;gap:4px;margin-bottom:3px}.queue-label{font-size:10px;color:var(--text-subtle);text-transform:uppercase;font-weight:700}.queue-number{font-size:13.5px;font-weight:800;color:var(--text-main)}.truncate-cell{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-state{padding:36px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--text-muted)}.empty-state .empty-icon{width:36px;height:36px;color:#cbd5e1}.empty-state h3{font-size:15px;font-weight:750;color:var(--text-main);margin:0}.empty-state p{font-size:13px;color:var(--text-muted);max-width:360px;margin:0}.empty{text-align:center;color:var(--text-muted);padding:32px 20px;margin:0}.date-toolbar{display:flex;align-items:flex-end;gap:12px;margin-bottom:18px;padding:16px 20px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-xs);flex-wrap:wrap}.date-toolbar label{width:175px}.date-toolbar .booking-field{width:min(340px,100%);flex:1 1 260px}.lookup-switch{display:flex;align-self:flex-end;padding:3px;border-radius:var(--radius-md);background:#f1f5f9;border:1px solid #e2e8f0}.lookup-switch button{height:36px;padding:0 14px;border-radius:7px;color:var(--text-muted);font-size:12.5px;font-weight:700;white-space:nowrap}.lookup-switch button.active{color:#fff;background:#15234b;box-shadow:0 1px 3px #15234b33}.active-lookup-note{display:grid;gap:2px;align-self:center;padding:4px 12px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:var(--radius-md)}.active-lookup-note b{color:#166534;font-size:12.5px}.active-lookup-note span{color:#15803d;font-size:11.5px}.correlation-wrap{margin-left:auto;align-self:center;display:flex;flex-direction:column;align-items:flex-end;gap:3px}.correlation-label{font-size:10px;text-transform:uppercase;font-weight:700;color:var(--text-subtle);letter-spacing:.04em}.add-layout{display:grid;grid-template-columns:minmax(390px,.85fr) minmax(0,1.55fr);gap:20px;align-items:start}.visit-panel{padding:0;overflow:hidden;position:sticky;top:86px}.panel-header{padding:14px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;background:#f8fafc}.panel-header h3{margin:0;font-size:14px;font-weight:750;color:var(--text-main)}.panel-count{font-size:11.5px;font-weight:700;color:var(--text-muted);background:#e2e8f0;padding:2px 8px;border-radius:var(--radius-pill)}.filter-row{display:grid;grid-template-columns:140px 1fr auto;gap:8px;padding:14px 16px;border-bottom:1px solid var(--border);background:var(--surface)}.visit-list{max-height:640px;overflow-y:auto}.visit-row{width:100%;display:grid;grid-template-columns:1.5fr 1.1fr auto;text-align:left;gap:12px;padding:13px 16px;border-bottom:1px solid #f1f5f9;align-items:center;border-left:3px solid transparent;transition:all .12s ease}.visit-row:hover{background:#f8fafc}.visit-row.selected{background:#eff6ff;border-left-color:#2563eb}.visit-patient{display:grid;gap:2px;min-width:0}.patient-name{font-size:13px;font-weight:750;color:var(--text-main);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.patient-meta{display:flex;align-items:center;gap:6px}.rawat-no{font-size:11px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.visit-clinic{display:grid;gap:2px;min-width:0}.clinic-name{font-size:12.5px;font-weight:700;color:var(--text-main);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.doctor-name{font-size:11.5px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-panel{display:grid;gap:16px}.empty-panel-card{padding:60px 20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .wide{grid-column:1 / -1}.suggestions{margin-top:14px;padding-top:14px;border-top:1px solid #f1f5f9;display:flex;align-items:flex-start;gap:10px}.suggestions-label{font-size:11.5px;font-weight:700;color:var(--text-muted);padding-top:5px;white-space:nowrap}.suggestions-list{display:flex;flex-wrap:wrap;gap:6px}.suggestion-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--radius-pill);background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;font-size:11.5px}.suggestion-chip:hover{background:#dbeafe;border-color:#93c5fd}.suggestion-chip b{font-weight:700}.validation{display:flex;gap:12px;border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:var(--radius-lg);padding:14px 16px}.validation svg{width:20px;height:20px;flex-shrink:0;color:#d97706}.validation b{font-size:13px;font-weight:750;display:block;margin-bottom:4px}.validation p{margin:2px 0;font-size:12px}.payload-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.payload-card{padding:16px}.payload-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.payload-header h2{font-size:13.5px;font-weight:750;margin:0}.payload-badge{font-size:10.5px;font-weight:700;background:#f1f5f9;color:var(--text-muted);padding:2px 6px;border-radius:var(--radius-sm)}.payload-line{display:grid;grid-template-columns:115px minmax(0,1fr);gap:8px;padding:7px 0;border-top:1px solid #f1f5f9;font-size:12px}.field-name{color:var(--text-muted);font-family:var(--font-mono);font-size:11px}.field-val{color:var(--text-main);overflow-wrap:anywhere}.submit-bar{background:#fffffff5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid #cbd5e1;border-radius:var(--radius-lg);padding:14px 18px;position:sticky;bottom:14px;box-shadow:var(--shadow-popover);display:flex;align-items:center;justify-content:space-between;gap:16px;z-index:20}.submit-status-info{display:grid;gap:4px}.submit-status-pill{display:flex;align-items:center;gap:8px}.submit-message{color:var(--text-muted);font-size:12px}.submit-hint{font-size:12px;color:var(--text-muted)}.submit-actions{display:flex;align-items:center;gap:10px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:20px;background:#0f172aa6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.confirm-dialog{width:min(520px,100%);border:1px solid var(--border);border-top:4px solid var(--danger);border-radius:var(--radius-xl);padding:24px;background:var(--surface);box-shadow:0 24px 60px -12px #0f172a59}.confirm-head{display:flex;align-items:center;justify-content:space-between}.danger-icon-badge{width:44px;height:44px;border-radius:var(--radius-lg);display:grid;place-items:center;color:var(--danger);background:var(--danger-subtle);border:1px solid var(--danger-border)}.danger-icon-badge svg{width:22px;height:22px}.close-dialog-btn{width:32px;height:32px;border-radius:var(--radius-md);display:grid;place-items:center;color:var(--text-muted)}.close-dialog-btn:hover{background:#f1f5f9;color:var(--text-main)}.confirm-dialog h2{margin:16px 0 6px;font-size:18.5px;font-weight:800;color:var(--text-main)}.confirm-dialog>p{margin:0 0 16px;color:var(--text-muted);font-size:13px}.confirm-details{margin:0 0 16px;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:#f8fafc}.confirm-details div{display:grid;grid-template-columns:120px 1fr;padding:9px 12px;border-bottom:1px solid var(--border-light);font-size:12.5px}.confirm-details div:last-child{border-bottom:none}.confirm-details dt{color:var(--text-muted)}.confirm-details dd{margin:0;font-weight:700;color:var(--text-main);overflow-wrap:anywhere}.cancel-label{display:grid;gap:7px;font-size:12.5px;font-weight:700;color:var(--text-body)}.cancel-label textarea{min-height:90px;resize:vertical;padding:10px 12px}.character-hint{font-size:11px;font-weight:500;color:var(--text-muted);text-align:right}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.task-tabs{display:inline-flex;gap:4px;padding:4px;margin-bottom:18px;border-radius:12px;background:#f1f5f9;border:1px solid #e2e8f0}.task-tabs button{min-height:36px;padding:0 16px;border-radius:8px;display:inline-flex;align-items:center;gap:8px;color:var(--text-muted);font-size:13px;font-weight:600;transition:all .15s ease}.task-tabs button svg{width:16px;height:16px}.task-tabs button:hover{color:var(--text-main);background:#fff9}.task-tabs button.active{background:#15234b;color:#fff;box-shadow:0 1px 2px #15234b26}.task-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.summary-card{padding:14px 18px;display:flex;align-items:center;gap:14px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-xs)}.summary-icon{width:42px;height:42px;border-radius:var(--radius-md);display:grid;place-items:center;flex-shrink:0}.summary-icon svg{width:22px;height:22px}.icon-total{background:#eff6ff;color:#2563eb}.icon-complete{background:#ecfdf5;color:#059669}.icon-progress{background:#f0f9ff;color:#0284c7}.icon-failed{background:#fef2f2;color:#dc2626}.summary-info{display:grid;gap:2px}.summary-info small{color:var(--text-muted);font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.summary-info b{font-size:22px;font-weight:800;line-height:1.1;color:var(--text-main)}.task-filter-toolbar{flex-wrap:wrap}.task-filter-toolbar label{width:145px}.task-filter-toolbar .booking-field{flex:1 1 240px}.bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#15234b;color:#fff;padding:10px 16px;border-radius:var(--radius-lg);margin-bottom:16px;box-shadow:0 4px 14px #15234b38}.bulk-toolbar-info{display:flex;align-items:center;gap:10px;flex-shrink:0}.bulk-count-badge{display:inline-flex;align-items:center;gap:6px;background:#ffffff29;padding:5px 12px;border-radius:var(--radius-pill);font-size:12.5px;font-weight:600;border:1px solid rgba(255,255,255,.2)}.bulk-count-badge svg{width:15px;height:15px;color:#6ee7b7}.bulk-clear-btn{background:transparent;border:1px solid rgba(255,255,255,.28);color:#f1f5f9;padding:5px 10px;border-radius:var(--radius-md);font-size:11.5px;font-weight:600;cursor:pointer;transition:all .15s ease}.bulk-clear-btn:hover{background:#ffffff29;color:#fff}.bulk-reason-field{flex:1;min-width:180px}.bulk-reason-field input{width:100%;height:36px;background:#ffffff1f;border:1px solid rgba(255,255,255,.25);border-radius:var(--radius-md);color:#fff;padding:0 12px;font-size:12px}.bulk-reason-field input::placeholder{color:#ffffffa6}.bulk-reason-field input:focus{background:#ffffff38;border-color:#fff;outline:none}.bulk-send-btn{flex-shrink:0;height:36px!important;padding:0 14px!important;background:#fff!important;color:#1e3a8a!important;border:1px solid #ffffff!important;font-weight:750;box-shadow:0 2px 8px #0000001f}.bulk-send-btn:hover:not(:disabled){background:#f8fafc!important;transform:translateY(-1px)}.task-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(380px,1fr);gap:18px;align-items:start}.task-patient-table{max-height:calc(100vh - 270px);min-height:520px;overflow-y:auto}.task-patient-table thead{position:sticky;top:0;z-index:2}.task-patient-table tbody tr{cursor:pointer}.task-patient-table tbody tr.selected-row{background:#eff6ff!important;box-shadow:inset 3px 0 #2563eb}.progress-cell{display:grid;gap:4px}.progress-num{font-size:11.5px;font-weight:750;color:var(--text-main)}.progress-bar-wrap{height:6px;background:#e2e8f0;border-radius:var(--radius-pill);overflow:hidden}.progress-bar-fill{height:100%;background:linear-gradient(90deg,#2563eb,#10b981);border-radius:var(--radius-pill);transition:width .3s ease}.prescription-pill{font-size:10.5px;color:var(--text-muted)}.task-detail{position:sticky;top:86px;padding:0;display:flex;flex-direction:column;max-height:calc(100vh - 106px);overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.task-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.12);background:#15234b;color:#fff;flex-shrink:0}.task-detail-patient-info h2{margin:0;font-size:15.5px;font-weight:800;color:#fff}.task-detail-head .mono-badge{background:#ffffff29;color:#fff;border-color:#ffffff40}.task-detail-head .mono-chip{background:#3b82f640;color:#dbeafe;border-color:#93c5fd59}.task-detail-head .cell-secondary{color:#fffc}.task-detail-head .secondary.icon-only{background:#ffffff1a;border-color:#fff3;color:#fff;width:34px;height:34px}.task-detail-head .secondary.icon-only:hover{background:#fff3}.patient-meta-row{display:flex;align-items:center;gap:6px;margin-top:4px;flex-wrap:wrap}.task-timeline-scroll{flex:1;min-height:0;overflow-y:auto;padding:18px 20px}.task-timeline{display:grid;margin:0}.timeline-row{display:grid;grid-template-columns:34px 1fr;gap:12px;min-height:56px;position:relative}.timeline-row:not(:last-child):before{content:"";position:absolute;left:16px;top:32px;bottom:0;border-left:2px dashed #cbd5e1}.task-number-node{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#f1f5f9;color:var(--text-muted);font-size:12px;font-weight:800;border:2px solid #e2e8f0;z-index:1}.task-number-node svg{width:18px;height:18px}.task-number-node.success{background:#059669;color:#fff;border-color:#059669;box-shadow:0 2px 6px #05966959}.task-number-node.failed{background:#dc2626;color:#fff;border-color:#dc2626;box-shadow:0 2px 6px #dc262659}.timeline-content{display:grid;align-content:start;gap:4px;padding-bottom:14px;min-width:0}.timeline-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.task-title{font-size:12.5px;font-weight:750;color:var(--text-main)}.not-applicable-badge{font-size:10px;font-weight:600;background:#f1f5f9;color:var(--text-muted);padding:1px 6px;border-radius:4px}.task-time-field{display:flex;align-items:center;gap:8px;margin-top:3px}.task-time-input{height:32px!important;padding:0 8px!important;font-size:11.5px!important;font-family:var(--font-mono);border-radius:var(--radius-sm)!important;border:1px solid #cbd5e1!important;background:#fff!important;flex:1;min-width:0;color:var(--text-main)}.task-time-input:focus{border-color:var(--primary)!important;box-shadow:0 0 0 3px #2563eb1f!important}.time-now-btn{height:32px;padding:0 9px;font-size:11px;font-weight:700;color:var(--primary);background:#eff6ff;border:1px solid #bfdbfe;border-radius:var(--radius-sm);cursor:pointer;white-space:nowrap;transition:all .15s ease;flex-shrink:0}.time-now-btn:hover:not(:disabled){background:#dbeafe;border-color:#93c5fd;color:#1d4ed8}.time-now-btn:disabled{opacity:.5;cursor:not-allowed}.not-applicable-text{font-size:11.5px;color:var(--text-muted);font-style:italic;padding:3px 0}.timeline-time{font-size:11.5px;color:var(--text-muted)}.timeline-error-alert{margin-top:4px;padding:6px 10px;border-radius:var(--radius-sm);background:var(--danger-subtle);border:1px solid var(--danger-border);color:var(--danger);font-size:11.5px}.timeline-cid{margin-top:3px;align-self:flex-start}.timeline-row.not-applicable{opacity:.45}.task-send-form{display:grid;gap:10px;padding:14px 20px 18px;border-top:1px solid var(--border);background:#f8fafc;flex-shrink:0}.task-form-title-row{display:grid;gap:2px}.task-form-title-row h3{margin:0;font-size:13.5px;font-weight:750;color:var(--text-main)}.hint-text{margin:0;font-size:11.5px;color:var(--text-muted)}.task-action-row{display:grid;grid-template-columns:1fr 1.25fr;gap:10px}.task-action-row button{height:38px;font-size:12.5px}.local-booking-note{margin-top:14px;padding:12px 14px;border-radius:var(--radius-md);display:grid;gap:2px}.local-booking-note b{font-size:13px}.local-booking-note span{font-size:11.5px}.local-booking-note.found{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0}.local-booking-note.external{color:#92400e;background:#fffbeb;border:1px solid #fde68a}.task-list{margin-top:16px;display:grid;gap:8px}.task{border:1px solid var(--border);border-radius:var(--radius-md);padding:12px 14px;display:flex;gap:18px;flex-wrap:wrap;background:#f8fafc}.task span{display:grid;gap:2px}.task small{color:var(--text-subtle);text-transform:uppercase;font-size:10px;font-weight:700}.task b{color:var(--text-main);font-size:12px}.hint-banner{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#fffbeb;border:1px solid #fde68a;border-radius:var(--radius-md);color:#92400e;font-size:12px;margin-top:8px}.hint-banner svg{width:16px;height:16px;flex-shrink:0}.mapping-grid{margin-bottom:20px}.reference-list{height:135px;padding:5px}.reference-list option{padding:6px 10px;border-radius:var(--radius-sm);margin-bottom:2px}.reference-list option:checked{background:#eff6ff;color:#1e40af;font-weight:700}.hfis-panel,.hfis-update-panel{margin-bottom:20px;padding:0;overflow:hidden}.hfis-panel>.card-head,.hfis-update-panel>.card-head{padding:16px 20px;border-bottom:1px solid var(--border);background:#f8fafc;margin-bottom:0}.compare-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) 190px auto;gap:12px;align-items:flex-end;padding:16px 20px;background:var(--surface);border-bottom:1px solid var(--border-light)}.hfis-table{border:0;border-radius:0;box-shadow:none}.schedule-line{display:block;white-space:nowrap;font-family:var(--font-mono);font-size:11.5px}.compare-status{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:750}.compare-status svg{width:14px;height:14px}.compare-status.match{color:#047857}.compare-status.different,.compare-status.missing{color:#b45309}.compare-status.holiday{color:#dc2626}.hfis-update-body{padding:0 20px 18px}.update-summary{display:flex;align-items:center;gap:24px;padding:16px 0}.update-summary span{display:grid;gap:2px}.update-summary small{color:var(--text-subtle);text-transform:uppercase;font-size:10.5px;font-weight:700}.update-summary b{color:var(--text-main);font-size:14px}.update-summary .primary{margin-left:auto}.schedule-chips{display:flex;flex-wrap:wrap;gap:8px}.schedule-chips span{padding:6px 11px;border-radius:var(--radius-sm);background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;font-size:12px;font-weight:700}.update-history{border:0;border-radius:0;box-shadow:none;border-top:1px solid var(--border)}.config-space{margin-top:20px}.config-list{display:grid;gap:10px}.config-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border:1px solid var(--border);border-radius:var(--radius-md);padding:12px 14px;background:#f8fafc}.config-row span{display:grid;gap:2px}.config-row b{font-size:13px;color:var(--text-main)}.config-row small{color:var(--text-muted);font-size:11.5px}.config-row em{font-style:normal;font-weight:800;font-family:var(--font-mono);color:#2563eb;background:#eff6ff;padding:3px 8px;border-radius:6px;border:1px solid #bfdbfe}.config-row button{width:32px;height:32px;border-radius:var(--radius-md);display:grid;place-items:center;color:#dc2626;background:#fef2f2;border:1px solid #fecaca}.config-row button:hover{background:#dc2626;color:#fff}.config-row button svg{width:15px;height:15px}.adopt-dialog{width:min(650px,100%);border-top-color:#1e40af}.adopt-dialog .confirm-head span{color:#1e40af;background:#eff6ff}@media (max-width: 1100px){.add-layout{grid-template-columns:1fr}.visit-panel{position:static}.payload-grid{grid-template-columns:1fr 1fr}.task-workspace{grid-template-columns:1fr}.task-detail{position:static;max-height:none}.task-summary{grid-template-columns:1fr 1fr}}@media (max-width: 860px){header{padding:0 16px;gap:16px}.brand-sub,.user-name,.logout-label{display:none}main{padding:20px 16px 36px}.grid,.payload-grid,.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.filter-row,.compare-toolbar{grid-template-columns:1fr}.table-container{overflow-x:auto}table{min-width:780px}.submit-bar{flex-direction:column;align-items:stretch}.submit-actions{justify-content:flex-end}}table input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:var(--primary)}th input[type=checkbox],td input[type=checkbox]{display:block;margin:0 auto}.config-container{display:grid;gap:20px}.config-nav-tabs{margin-bottom:0}.config-tab-content{display:grid;gap:20px}.profile-selector-card{background:var(--surface)}.profile-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:14px}.profile-card-item{border:1.5px solid var(--border);border-radius:var(--radius-lg);padding:16px;background:var(--surface);display:flex;flex-direction:column;gap:10px;cursor:pointer;transition:all .15s ease;box-shadow:var(--shadow-xs)}.profile-card-item:hover{border-color:#93c5fd;background:#f8fafc;transform:translateY(-1px)}.profile-card-item.selected{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 1px #2563eb,var(--shadow-sm)}.profile-card-item.active-profile{border-left:4px solid #059669}.profile-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.profile-card-name{font-size:14px;font-weight:750;color:var(--text-main);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-card-meta{display:grid;gap:3px;font-size:11.5px;color:var(--text-muted)}.profile-db-name{font-weight:600;color:var(--text-body)}.profile-card-actions{margin-top:4px;padding-top:8px;border-top:1px solid var(--border-light);display:flex;align-items:center;justify-content:flex-end}.activate-btn{height:32px;padding:0 10px;font-size:11.5px;gap:5px;border-radius:var(--radius-sm);background:#fff;color:#1e40af;border-color:#bfdbfe}.activate-btn:hover:not(:disabled){background:#eff6ff;border-color:#93c5fd}.activate-btn svg{width:14px;height:14px}.active-tag{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;color:#059669}.active-tag svg{width:15px;height:15px}.password-input-wrap{position:relative;display:flex;align-items:center}.password-input-wrap input{padding-right:42px}.password-toggle-btn{position:absolute;right:8px;width:28px;height:28px;border-radius:var(--radius-sm);display:grid;place-items:center;color:var(--text-muted);background:transparent}.password-toggle-btn:hover{background:#f1f5f9;color:var(--text-main)}.password-toggle-btn svg{width:16px;height:16px}.field-hint-ok{font-size:11px;font-weight:600;color:#059669;margin-top:2px}.form-actions-bar{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--border-light)}.card-head-badges{display:flex;align-items:center;gap:8px}.url-preset-chips{display:flex;align-items:center;gap:6px;margin-top:6px;flex-wrap:wrap}.url-preset-btn{font-size:11px;font-weight:700;padding:3px 9px;border-radius:var(--radius-pill);background:#f1f5f9;color:var(--text-body);border:1px solid #cbd5e1;transition:all .12s ease}.url-preset-btn:hover{background:#e2e8f0;color:var(--text-main);border-color:#94a3b8}.health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:14px}.health-card{border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;background:#f8fafc;display:flex;flex-direction:column;gap:12px}.health-card-head{display:flex;align-items:center;gap:12px}.health-card-head svg{width:24px;height:24px;color:#2563eb;flex-shrink:0}.health-card-head h3{margin:0;font-size:14px;font-weight:750;color:var(--text-main)}.health-card-head small{color:var(--text-muted);font-size:11.5px}.health-status-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:#fff;border-radius:var(--radius-sm);border:1px solid var(--border-light)}.health-label{font-size:12px;font-weight:600;color:var(--text-body)}.health-info-row{display:grid;gap:4px;font-size:11.5px;color:var(--text-muted)}.mlk-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:20px;background:#0f172aa6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.mlk-modal-dialog{width:95vw;max-height:90vh;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 25px 50px -12px #0f172a59;display:flex;flex-direction:column;overflow:hidden}.mlk-modal-header{background:#15234b;color:#fff;padding:16px 24px;flex-shrink:0}.mlk-modal-header-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.mlk-modal-title-group{display:flex;align-items:flex-start;gap:12px}.mlk-modal-icon{width:40px;height:40px;border-radius:12px;background:#ffffff1a;border:1px solid rgba(255,255,255,.16);display:grid;place-items:center;color:#bfdbfe;flex-shrink:0;margin-top:2px}.mlk-modal-icon svg{width:20px;height:20px}.mlk-modal-title{margin:0;font-size:16px;font-weight:800;color:#fff;letter-spacing:-.01em}.mlk-modal-subtitle{margin:3px 0 0;font-size:12px;color:#dbeafed9}.mlk-modal-close{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:#ffffffb3;background:transparent;flex-shrink:0}.mlk-modal-close:hover:not(:disabled){color:#fff;background:#ffffff1f}.mlk-modal-close svg{width:18px;height:18px}.mlk-modal-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12)}.mlk-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:6px;font-size:11.5px;font-weight:600;background:#ffffff24;color:#fff}.mlk-chip.mono{font-family:var(--font-mono);background:#3b82f638;border:1px solid rgba(147,197,253,.28);color:#dbeafe}.mlk-chip.emerald{background:#10b98138;border:1px solid rgba(110,231,183,.3);color:#d1fae5}.mlk-modal-body{flex:1;overflow-y:auto;padding:20px 24px;background:#f8fafc;display:grid;gap:16px}.mlk-modal-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #e2e8f0;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 -2px 10px #0f172a0a;z-index:20;flex-shrink:0}.mlk-modal-footer-left{font-size:12px;color:var(--text-muted)}.mlk-modal-footer-right{display:flex;align-items:center;gap:8px}.search-input-wrap{position:relative;display:flex;align-items:center}.search-input-wrap input{padding-right:32px}.search-clear-btn{position:absolute;right:8px;width:22px;height:22px;border-radius:6px;display:grid;place-items:center;color:#94a3b8}.search-clear-btn:hover{background:#f1f5f9;color:#334155}.search-clear-btn svg{width:14px;height:14px}
