:root{color-scheme:light;--v-bg:#f3f7fe;--v-surface:#fff;--v-sidebar:#edf4ff;--v-text:#111d42;--v-muted:#667797;--v-border:#dce7f8;--v-primary:#0875ff;--v-hover:#e2edff;--v-shadow:0 2px 7px #17356809;--v-sidebar-width:254px;--v-radius:7px;font-family:'Segoe UI',Tahoma,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--v-bg:#101725;--v-surface:#172235;--v-sidebar:#142034;--v-text:#e1eaff;--v-muted:#a2b3d1;--v-border:#2a3a56;--v-primary:#5ca5ff;--v-hover:#213958;--v-shadow:0 2px 8px #0002}
*{box-sizing:border-box}html,body,#wl-root{height:100%;margin:0;width:100%;overflow:hidden}body{background:var(--v-bg);color:var(--v-text);font:14px 'Segoe UI',Tahoma,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--v-primary);outline-offset:2px}button svg{flex:none}button{color:inherit}#wl-loading{position:fixed;inset:0;display:grid;place-content:center;background:var(--v-bg);color:var(--v-muted);z-index:100000}#wl-root{display:none}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:#adbed7;border-radius:8px}::-webkit-scrollbar-track{background:transparent}
.v4-shell{height:100%;display:grid;grid-template-columns:var(--v-sidebar-width) minmax(0,1fr);grid-template-rows:62px minmax(0,1fr);background:linear-gradient(115deg,var(--v-bg),var(--v-sidebar));transition:grid-template-columns .16s ease}.v4-shell.is-collapsed{--v-sidebar-width:68px}.v4-sidebar{grid-row:1/3;min-width:0;overflow:hidden;background:linear-gradient(120deg,var(--v-sidebar),var(--v-bg));border-right:1px solid var(--v-border);display:flex;flex-direction:column}.v4-user{height:96px;padding:16px 18px;display:flex;align-items:flex-start;gap:10px;flex:none}.v4-avatar{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:50%;background:linear-gradient(135deg,#65b3ff,#1477fd);color:white;border:1px solid #ffffffa0}.v4-user-name{font-weight:750;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}.v4-user-info{min-width:0;flex:1}.v4-online{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--v-muted);margin-top:4px}.v4-online:before{content:'';width:8px;height:8px;border-radius:50%;background:#13b62f}.v4-online.offline:before{background:#d97706}.v4-user-toggle{width:27px;height:27px;border:1px solid var(--v-border);background:var(--v-surface);border-radius:50%;display:grid;place-items:center}.v4-user-toggle svg{transform:rotate(90deg);width:12px}.v4-profile-menu{margin:0 12px 8px;background:var(--v-surface);border:1px solid var(--v-border);border-radius:var(--v-radius);padding:4px}.v4-profile-menu button{display:block;width:100%;border:0;background:none;text-align:left;padding:8px;border-radius:5px}.v4-profile-menu button:hover{background:var(--v-hover)}
.v4-nav{overflow:auto;min-height:0;flex:1;padding:0 9px 18px}.v4-nav-group{padding-top:14px}.v4-group-heading{display:flex;align-items:center;width:100%;border:0;background:none;padding:3px 10px 7px;color:#5a6e9f;font-size:12px;font-weight:750;text-align:left;min-height:28px;white-space:nowrap}.v4-group-heading svg{margin-left:auto;width:11px;height:11px;transform:rotate(90deg)}.v4-group-heading[aria-expanded=false] svg{transform:rotate(0)}.v4-nav-row{position:relative;border-radius:6px;margin:1px 0;display:flex;align-items:center}.v4-nav-button{display:flex;align-items:center;gap:13px;min-height:38px;padding:7px 16px;border:0;border-radius:6px;background:transparent;width:100%;text-align:left;white-space:nowrap;color:var(--v-text);font-size:14px;font-weight:600;min-width:0}.v4-nav-button:hover{background:var(--v-hover)}.v4-nav-button.is-active{background:linear-gradient(100deg,#0588ff,#0767ef);color:#fff;box-shadow:0 3px 9px #0875ff16}.v4-nav-label{overflow:hidden;text-overflow:ellipsis}.v4-nav-row.is-pinned:after{content:'•';position:absolute;right:9px;color:var(--v-primary);pointer-events:none}.v4-nav-row[data-id=pain] svg{color:#ef2354;fill:#ef2354;stroke-width:1.4}.v4-nav-row[data-id=transfer] svg{color:#10b879}.v4-nav-row[data-id=auto-full] svg{color:#ff9b12}.v4-nav-row .is-active svg{color:inherit;fill:none}.v4-nav-row[draggable=true]{cursor:grab}.v4-header{grid-column:2;display:flex;align-items:center;justify-content:space-between;padding:0 18px;min-width:0}.v4-icon-button{width:38px;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:18px;background:none}.v4-icon-button:hover{background:var(--v-surface);border-color:var(--v-border)}.v4-theme-button{border-color:var(--v-border);background:var(--v-surface);box-shadow:var(--v-shadow)}.v4-main{grid-column:2;grid-row:2;min-width:0;min-height:0;overflow:hidden;padding:0 16px 12px;position:relative}.v4-page{height:100%;min-height:0;display:flex;flex-direction:column;min-width:0;overflow:hidden}.v4-page[hidden]{display:none!important}.v4-page[data-module=notes],.v4-page[data-module=tools],.v4-page[data-module=ai-chat],.v4-page[data-module=storage]{border:1px solid var(--v-border);border-radius:var(--v-radius)}.v4-content{padding:24px;overflow:auto;min-height:0;height:100%;background:var(--v-surface);border:1px solid var(--v-border);border-radius:var(--v-radius)}.v4-content h1{font-size:22px;margin:0 0 8px}.v4-content h2{font-size:16px;margin:20px 0 12px}.v4-content p{color:var(--v-muted);line-height:1.6}.v4-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.v4-button{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--v-border);border-radius:6px;padding:8px 12px;background:var(--v-surface);font-size:13px}.v4-button.primary{color:white;background:#0875ff;border-color:#0875ff}.v4-button.danger{color:#dc2626}.v4-field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}.v4-field input,.v4-field select,.v4-control{background:var(--v-surface);border:1px solid var(--v-border);color:var(--v-text);border-radius:5px;padding:8px;min-width:0}.v4-empty{display:grid;place-content:center;text-align:center;min-height:240px;gap:6px;color:var(--v-muted)}.v4-error{padding:10px 12px;background:#fff2ef;border:1px solid #ffd3c9;color:#a8281a;border-radius:6px}.v4-toast{position:fixed;bottom:18px;right:22px;max-width:min(480px,calc(100vw - 30px));z-index:100002;padding:12px 16px;background:var(--v-surface);border:1px solid var(--v-border);box-shadow:0 5px 25px #1233;border-radius:8px}.v4-modal-backdrop{position:fixed;inset:0;z-index:100001;background:#0d1e3b66;display:grid;place-items:center;padding:20px}.v4-modal{width:620px;max-width:100%;max-height:85vh;overflow:auto;background:var(--v-surface);padding:22px;border-radius:12px;border:1px solid var(--v-border);box-shadow:0 20px 60px #10204040}.v4-modal h2{margin:0 0 16px}.v4-modal label{display:flex;gap:8px;align-items:center;margin-bottom:10px}.v4-login{height:100vh;display:grid;place-content:center;background:linear-gradient(125deg,#eef6ff,#fff)}.v4-login form{width:360px;padding:30px;background:var(--v-surface);border:1px solid var(--v-border);border-radius:12px;box-shadow:0 6px 40px #1e407015}.v4-login h1{margin:0 0 22px;font-size:23px}.v4-login .v4-field{margin:15px 0}.v4-book-picker{padding:8px;background:var(--v-surface);border-bottom:1px solid var(--v-border);display:flex;align-items:center;gap:10px}.v4-book-picker select{max-width:100%}
.is-collapsed .v4-user{padding:16px 13px;height:82px}.is-collapsed .v4-user-info,.is-collapsed .v4-user-toggle,.is-collapsed .v4-nav-label,.is-collapsed .v4-group-heading span,.is-collapsed .v4-group-heading svg{display:none}.is-collapsed .v4-group-heading{height:12px;min-height:12px;padding:0;border-top:1px solid var(--v-border)}.is-collapsed .v4-nav{padding-left:7px;padding-right:7px}.is-collapsed .v4-nav-button{padding:10px 17px;justify-content:center;min-height:43px}.is-collapsed .v4-nav-group{padding-top:10px}
/* Integration skin only: selectors, patient cells and event handlers are retained. */
[data-v4-embedded]>.wl-nd:first-child{display:none!important}.v4-shell .v4-page .awm-his-patients{padding:0;background:transparent;font-family:'Segoe UI',Tahoma,sans-serif}.v4-shell .v4-page .his-toolbar{min-height:72px;margin-bottom:14px;border-color:var(--v-border);box-shadow:var(--v-shadow);padding:12px 15px;background:var(--v-surface)}.v4-shell .v4-page .his-toolbar>strong{font-size:20px;color:var(--v-text);display:flex;align-items:center;gap:12px;white-space:nowrap}.v4-shell .v4-page .his-toolbar>strong:before{content:'';width:36px;height:36px;background:var(--v-primary);mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="black" d="M5 2h14v20h-5v-5h-4v5H5V2zm5 3v2H8v2h2v2h4V9h2V7h-2V5h-4z"/%3E%3C/svg%3E') center/contain no-repeat;flex:none}.v4-shell .v4-page .his-toolbar>span{padding:7px 10px;border:1px solid var(--v-border);border-radius:5px;font-size:12px;white-space:nowrap;color:var(--v-text)}.v4-shell .v4-page .status-badge-live,.v4-shell .v4-page .his-toolbar>.his-scan-control,.v4-shell .v4-page .his-open-ahk,.v4-shell .v4-page .his-queue-start{display:none!important}.v4-shell .v4-page .automation-common{margin-left:auto;border-left:1px solid var(--v-border);padding-left:14px;gap:10px}.v4-shell .v4-page .automation-common>strong{font-size:12px;color:var(--v-text)}.v4-shell .v4-page .automation-common label{font-size:11px;color:var(--v-text)}.v4-shell .v4-page .automation-common select{min-height:32px;font-size:12px;background:var(--v-surface);border-color:var(--v-border);color:var(--v-text)}.v4-shell .v4-page .his-filters{margin-bottom:14px;gap:9px}.v4-shell .v4-page .his-filters input,.v4-shell .v4-page .his-filters select,.v4-shell .v4-page .his-day-switch button{border-color:var(--v-border);color:var(--v-text);background:var(--v-surface);min-height:39px}.v4-shell .v4-page .his-day-switch button[aria-pressed=true]{color:#fff;background:#0875ff;border-color:#0875ff}.v4-shell .v4-page .table-container{box-shadow:none;border:1px solid var(--v-border);border-radius:7px}.v4-shell .v4-page .awm-his-patients table{min-width:1420px;font-size:12px}.v4-shell .v4-page .awm-his-patients th{background:#e7effd;border-color:#dce7fa;color:#14234a;font-size:11.5px;padding:12px 8px}.v4-shell .v4-page .awm-his-patients td{padding:9px 8px;border-color:#e4ecfa}.v4-shell .v4-page .patient-name-big{font-size:15px}.v4-shell .v4-page .patient-col-container{min-width:310px;gap:5px}.v4-shell .v4-page .patient-diagnosis{min-width:170px;max-width:225px;font-size:11.5px}.v4-shell .v4-page .mini-lab-card{font-size:10px;padding:1px 4px;gap:3px}.v4-shell .v4-page .mini-lab-title{font-size:9px}.v4-shell .v4-page .mini-lab-value{font-size:11px}.v4-shell .v4-page .patient-time-input{max-width:80px;font-size:12px;border-color:var(--v-border)}.v4-shell .v4-page .row-completed>td{opacity:.58}.v4-shell .v4-page .patient-row>td.patient-info-anemia{opacity:1}.v4-shell .v4-page .automation-role button{border-radius:5px}.v4-shell .v4-page .awm-his-light{background:transparent!important}
@media(max-width:1350px){.v4-shell .v4-page .his-toolbar{gap:9px}.v4-shell .v4-page .his-toolbar>strong{font-size:18px}.v4-shell .v4-page .automation-common{flex-basis:100%;border-left:0;border-top:1px solid var(--v-border);padding-left:0;padding-top:10px}.v4-shell .v4-page .his-toolbar .automation-common>strong{margin-right:auto}}
@media(max-width:760px){.v4-shell,.v4-shell.is-collapsed{grid-template-columns:0 minmax(0,1fr)}.v4-sidebar{position:fixed;inset:0 auto 0 0;width:254px;z-index:10000;box-shadow:8px 0 40px #10203030;transform:translateX(-100%);transition:transform .15s}.v4-shell.mobile-open .v4-sidebar{transform:none}.v4-main{padding:0 8px 8px}.v4-header{padding:0 8px}.v4-mobile-shade{position:fixed;inset:0;z-index:9999;background:#0a163d66;border:0}.v4-shell .v4-page .automation-common{flex-wrap:wrap}.v4-shell .v4-page .his-filters input{min-width:150px}.v4-shell .v4-page .his-toolbar>strong{font-size:17px}.v4-shell .v4-page .his-toolbar>strong:before{width:26px;height:26px}}
@media(prefers-reduced-motion:reduce){.v4-shell,.v4-sidebar{transition:none}.v4-nav-button{scroll-behavior:auto}}
.v4-admin-table{width:100%;overflow:auto;margin:14px 0}.v4-admin-table table{width:100%;border-collapse:collapse;font-size:13px}.v4-admin-table th,.v4-admin-table td{padding:9px;text-align:left;border-bottom:1px solid var(--v-border)}.v4-admin-table th{background:var(--v-bg)}.v4-admin-table input:not([type=checkbox]){width:170px;max-width:100%}.v4-admin-table select{max-width:220px}.v4-admin-table tr[draggable=true]{cursor:grab}.v4-page[data-module=notes] .wl-nd,.v4-page[data-module=notes] aside,.v4-page[data-module=notes] textarea,.v4-page[data-module=notes] input,.v4-page[data-module=notes] div[style*="background"]{background:var(--v-surface)!important;color:var(--v-text)!important;border-color:var(--v-border)!important}.v4-page[data-module=notes] button,.v4-page[data-module=notes] span{color:var(--v-text)!important}.v4-page[data-module=notes] button[aria-pressed=true]{background:var(--v-hover)!important;border-color:var(--v-primary)!important}.v4-page[data-module=notes] aside{background:var(--v-sidebar)!important}
@media print{.v4-sidebar,.v4-header,.v4-toast,.v4-modal-backdrop,.v4-book-picker{display:none!important}.v4-shell{display:block;height:auto;background:white}.v4-main,.v4-page{height:auto;overflow:visible;padding:0}.v4-page[hidden]{display:none!important}}
.v4-user{height:88px}.v4-nav{padding-bottom:8px}.v4-nav-row{margin:0}.v4-nav-button{min-height:34px;padding-top:6px;padding-bottom:6px}.v4-nav-group{padding-top:10px}.v4-group-heading{min-height:24px;padding-bottom:5px}.v4-shell .v4-page .awm-his-patients table{min-width:1400px}.v4-shell .v4-page .awm-his-patients td{padding:8px 6px}.v4-shell .v4-page .patient-col-container{min-width:300px}.v4-shell .v4-page .patient-diagnosis{min-width:160px}.v4-shell .v4-page .patient-automation{min-width:235px;max-width:290px}.v4-shell .v4-page .automation-columns{grid-template-columns:minmax(100px,1fr) minmax(115px,1.1fr);gap:8px}
.v4-nav-button.is-queue-ready:not(:disabled),.v4-shell .his-queue-select-all.queue-selected{color:#172033;background:linear-gradient(120deg,#fca5a5,#fdba74,#fde68a,#86efac,#7dd3fc,#a5b4fc,#d8b4fe,#fca5a5);background-size:500% 500%;animation:awmHisQueueRainbow 1.5s linear infinite;box-shadow:0 0 9px #a78bfa88}
.v4-shell .his-queue-select-all{cursor:pointer;user-select:none}.v4-shell .his-queue-select-all[aria-disabled=true]{cursor:not-allowed}
.v4-infusion-form{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:20px;max-width:620px;margin:26px 0 12px}.v4-infusion-form .v4-button{justify-content:center;grid-column:1/-1}.v4-infusion-form input{min-height:42px}.v4-infusion-result{display:flex;flex-wrap:wrap;gap:24px;margin-top:24px;padding:24px;background:var(--v-bg);border:1px solid var(--v-border);border-radius:8px;max-width:780px}.v4-infusion-result>div{display:flex;flex-direction:column;gap:8px;min-width:170px}.v4-infusion-result span{color:var(--v-muted);font-size:13px}.v4-infusion-result strong{font-size:25px;color:var(--v-primary)}
@media(max-width:500px){.v4-infusion-form{grid-template-columns:1fr}}

.v4-shell .v4-page:is([data-module=his],[data-module=pain],[data-module=transfer]){color-scheme:light;color:var(--v-text);background:var(--v-bg);--v-bg:#f3f7fe;--v-surface:#fff;--v-text:#111d42;--v-muted:#667797;--v-border:#dce7f8;--v-primary:#0875ff;--v-hover:#e2edff;--v-shadow:0 2px 7px #17356809}
.v4-main,.v4-modal,.v4-toast{color-scheme:light;color:var(--v-text);--v-bg:#f3f7fe;--v-surface:#fff;--v-text:#111d42;--v-muted:#667797;--v-border:#dce7f8;--v-primary:#0875ff;--v-hover:#e2edff;--v-shadow:0 2px 7px #17356809}
.v4-shell .v4-light-module{background:#fff;color:#172033;color-scheme:light}
.v4-shell .v4-light-module :where(div,aside,section,header,footer,form,pre){background-color:#fff!important;color:#26364f!important;border-color:#dce7f8!important}
.v4-shell .v4-light-module :where(p,span,label,strong,b,small,summary,code){color:#26364f!important}
.v4-shell .v4-light-module :where(input,textarea,select){background-color:#fff!important;color:#172033!important;border-color:#cbd5e1!important;color-scheme:light}
.v4-shell .v4-light-module :where(input,textarea)::placeholder{color:#74839b!important}
.v4-shell .v4-light-module :where(button){border-color:#cbd5e1!important}
.v4-shell .v4-light-module :where(table,thead,tbody,tr,th,td){background-color:#fff!important;color:#26364f!important;border-color:#dce7f8!important}
.v4-shell .v4-light-module button:is([style*="background: none"],[style*="background: transparent"]){color:#475569!important}
.v4-shell .v4-light-module .document-paper-area{background:#e7ecf2!important}
.v4-shell .v4-light-module .document-sheet :where(span,p,b,strong){color:#000!important}
.v4-shell .v4-light-module .document-field input{background:#eff6ff!important;color:#000!important}

