:root{--hc-primary:#2563eb;--hc-primary-dark:#1d4ed8;--hc-bg:#f3f6fb;--hc-border:#dbe3ef;--hc-text:#172033;--hc-muted:#64748b;--hc-success:#0f9f6e;--hc-danger:#dc2626}
#hc-root{position:fixed;inset:0;z-index:100000;background:var(--hc-bg);color:var(--hc-text);font-family:Inter,Segoe UI,Arial,sans-serif;display:flex;flex-direction:column}
#hc-root *{box-sizing:border-box}#hc-root button,#hc-root input,#hc-root select,#hc-root textarea{font:inherit}
.hc-top{height:58px;background:#fff;border-bottom:1px solid var(--hc-border);display:flex;align-items:center;padding:0 22px;gap:18px;flex:none}.hc-brand{display:flex;align-items:center;gap:10px;font-weight:750;font-size:18px}.hc-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;display:grid;place-items:center}.hc-top small{color:var(--hc-muted)}.hc-close{margin-left:auto;border:1px solid var(--hc-border);background:#fff;border-radius:8px;padding:8px 13px;cursor:pointer}.hc-close:hover{background:#f8fafc}
.hc-layout{display:grid;grid-template-columns:238px 1fr;min-height:0;flex:1}.hc-nav{background:#172033;color:#d8e2f0;padding:16px 11px;overflow:auto}.hc-nav-title{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#8fa1ba;padding:8px 10px}.hc-nav button{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:inherit;padding:10px 12px;border-radius:8px;text-align:left;cursor:pointer;margin:2px 0}.hc-nav button:hover{background:#243149}.hc-nav button.active{background:#2563eb;color:#fff}.hc-nav .ico{font-size:17px;width:20px;text-align:center}
.hc-main{min-width:0;overflow:auto;padding:22px}.hc-header{display:flex;gap:15px;align-items:flex-start;margin-bottom:18px}.hc-header h1{font-size:24px;margin:0 0 4px}.hc-header p{margin:0;color:var(--hc-muted)}.hc-actions{margin-left:auto;display:flex;gap:8px}.hc-btn{border:1px solid var(--hc-border);background:#fff;border-radius:8px;padding:9px 14px;cursor:pointer;color:var(--hc-text)}.hc-btn:hover{background:#f8fafc}.hc-btn.primary{background:var(--hc-primary);border-color:var(--hc-primary);color:#fff}.hc-btn.primary:hover{background:var(--hc-primary-dark)}.hc-btn.danger{color:var(--hc-danger)}
.hc-patientbar{background:#fff;border:1px solid var(--hc-border);border-radius:12px;padding:13px 15px;margin-bottom:18px;display:flex;align-items:center;gap:12px}.hc-patientbar label{font-weight:650}.hc-patientbar select{min-width:330px;max-width:620px;border:1px solid #cbd5e1;border-radius:7px;padding:8px}.hc-patient-meta{color:var(--hc-muted);font-size:13px}
.hc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.hc-card{background:#fff;border:1px solid var(--hc-border);border-radius:12px;padding:17px;box-shadow:0 1px 2px #0f172a0a}.hc-card.click{cursor:pointer}.hc-card.click:hover{border-color:#93b4f7;box-shadow:0 5px 18px #1e40af12}.hc-card h3{font-size:16px;margin:0 0 8px}.hc-card p{font-size:13px;line-height:1.45;color:var(--hc-muted);margin:0}.hc-card .count{font-size:28px;font-weight:750;color:var(--hc-primary);margin:7px 0}.hc-panel{background:#fff;border:1px solid var(--hc-border);border-radius:12px;overflow:hidden}.hc-panel-head{display:flex;align-items:center;padding:14px 16px;border-bottom:1px solid var(--hc-border);gap:10px}.hc-panel-head h2{font-size:17px;margin:0}.hc-panel-head .hc-btn{margin-left:auto}.hc-table-wrap{overflow:auto}.hc-table{width:100%;border-collapse:collapse;font-size:13px}.hc-table th{background:#f8fafc;color:#526177;font-weight:650;text-align:left;padding:10px 12px;border-bottom:1px solid var(--hc-border);white-space:nowrap}.hc-table td{padding:11px 12px;border-bottom:1px solid #edf1f6;vertical-align:top}.hc-table tr:last-child td{border-bottom:0}.hc-empty{text-align:center;padding:40px 20px;color:var(--hc-muted)}.hc-pill{display:inline-flex;border-radius:999px;padding:3px 9px;background:#e8f0ff;color:#1d4ed8;font-size:12px;font-weight:650}.hc-pill.green{background:#e5f8f1;color:#087a55}.hc-link{border:0;background:none;color:var(--hc-primary);padding:0;cursor:pointer}
.hc-modal-backdrop{position:fixed;inset:0;z-index:100010;background:#0f172a77;display:grid;place-items:center;padding:25px}.hc-modal{background:#fff;border-radius:14px;width:min(820px,96vw);max-height:92vh;overflow:auto;box-shadow:0 24px 70px #0004}.hc-modal.wide{width:min(1050px,97vw)}.hc-modal header{display:flex;align-items:center;padding:16px 20px;border-bottom:1px solid var(--hc-border)}.hc-modal header h2{font-size:19px;margin:0}.hc-modal header button{margin-left:auto;border:0;background:none;font-size:22px;cursor:pointer}.hc-form{padding:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hc-field{display:flex;flex-direction:column;gap:6px}.hc-field.full{grid-column:1/-1}.hc-field label{font-size:13px;font-weight:650;color:#39475b}.hc-field input,.hc-field select,.hc-field textarea{width:100%;border:1px solid #cbd5e1;border-radius:7px;padding:9px 10px;background:#fff}.hc-field textarea{min-height:88px;resize:vertical}.hc-form footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;padding-top:8px}.hc-check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}.hc-check{border:1px solid var(--hc-border);border-radius:9px;padding:10px;display:flex;gap:9px;align-items:flex-start}.hc-check input{margin-top:3px}.hc-check span{font-size:13px}.hc-detail{margin-top:7px}.hc-toast{position:fixed;z-index:100020;right:22px;bottom:22px;background:#172033;color:#fff;border-radius:9px;padding:12px 16px;box-shadow:0 8px 25px #0004}.hc-toast.error{background:#991b1b}.hc-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;padding:16px}.hc-photo{border:1px solid var(--hc-border);border-radius:10px;overflow:hidden;background:#fff}.hc-photo img{display:block;width:100%;height:165px;object-fit:cover;background:#eef2f7}.hc-photo div{padding:10px}.hc-photo small{color:var(--hc-muted)}.hc-section{margin-bottom:16px}.hc-section-title{display:flex;align-items:center;gap:10px;margin:0 0 9px}.hc-section-title h3{margin:0;font-size:16px}.hc-section-title button{margin-left:auto}.hc-note{padding:11px 13px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;color:#1e40af;font-size:13px;margin-bottom:14px}
@media(max-width:800px){.hc-layout{grid-template-columns:1fr}.hc-nav{display:flex;overflow:auto;padding:8px}.hc-nav-title{display:none}.hc-nav button{min-width:max-content}.hc-main{padding:13px}.hc-patientbar{align-items:flex-start;flex-direction:column}.hc-patientbar select{min-width:0;width:100%}.hc-form{grid-template-columns:1fr}.hc-field.full{grid-column:auto}.hc-top small{display:none}}

/* Integración nativa con el workspace de Kivo */
#hc-root{position:fixed;inset:74px 0 0;z-index:50;background:#fff;color:var(--text,#201f1e);font-family:Segoe UI,Arial,sans-serif;font-size:14px;display:block}
#hc-root .module-workspace{height:100%;min-height:0}
#hc-root .module-nav{height:100%;top:0}
#hc-root .module-content{height:100%;overflow:auto}
#hc-root .module-nav-search span{color:var(--azure-blue,#0078d4)}
#hc-root .tree-item{border-radius:0;margin:0}
#hc-root .workspace-panel{padding-top:10px}
#hc-root .hc-patientbar{border:0;border-bottom:1px solid var(--border-light,#edebe9);border-radius:0;box-shadow:none;padding:8px 0 12px;margin:0 0 10px;background:#fff}
#hc-root .hc-patientbar select{border:1px solid #8a8886;border-radius:2px;min-height:28px;padding:3px 8px}
#hc-root .hc-panel,#hc-root .hc-card{border:1px solid var(--border-light,#edebe9);border-radius:0;box-shadow:none}
#hc-root .hc-card.click:hover{border-color:#c7e0f4;background:var(--azure-blue-soft,#eff6fc);box-shadow:none}
#hc-root .hc-card .count{color:var(--azure-blue,#0078d4)}
#hc-root .hc-panel-head{min-height:40px;padding:6px 9px;border-bottom:1px solid var(--border-light,#edebe9)}
#hc-root .hc-panel-head h2{font-size:14px;font-weight:600}
#hc-root .hc-table th,#hc-root .hc-table td{height:33px;padding:0 9px;border-bottom:1px solid var(--border-light,#edebe9);font-size:13px}
#hc-root .hc-table th{background:#fff;color:#201f1e;font-weight:600}
#hc-root .hc-table tr:hover td{background:var(--surface-hover,#f3f2f1)}
#hc-root .hc-btn{min-height:28px;color:var(--azure-link,#0067b8);background:#fff;border:1px solid var(--border,#d2d0ce);border-radius:2px;padding:0 10px}
#hc-root .hc-btn:hover{background:var(--surface-hover,#f3f2f1)}
#hc-root .hc-btn.primary{color:#fff;background:var(--azure-blue,#0078d4);border-color:var(--azure-blue,#0078d4)}
#hc-root .hc-pill{border-radius:10px;background:#deecf9;color:#0067b8;min-height:20px;padding:1px 7px}
#hc-root .hc-pill.green{color:#107c10;background:#dff6dd}
#hc-root .hc-link{color:var(--azure-link,#0067b8)}
#hc-root .hc-note{border:0;border-left:3px solid var(--azure-blue,#0078d4);border-radius:0;background:var(--azure-blue-soft,#eff6fc);color:#323130}
.hc-modal-backdrop{pointer-events:none;place-items:stretch end;background:#0000;padding:0;inset:74px 0 0}
.hc-modal{pointer-events:auto;width:min(560px,100vw);height:100%;max-height:none;border-left:1px solid var(--border,#d2d0ce);border-radius:0;box-shadow:-8px 0 24px #0003}
.hc-modal.wide{width:min(720px,100vw)}
.hc-modal header{min-height:52px;padding:10px 16px}
.hc-modal header h2{font-size:16px;font-weight:600}
.hc-modal .hc-btn{min-height:30px;color:var(--azure-link,#0067b8);background:#fff;border:1px solid var(--border,#d2d0ce);border-radius:2px;padding:0 12px}
.hc-modal .hc-btn.primary{color:#fff;background:var(--azure-blue,#0078d4);border-color:var(--azure-blue,#0078d4)}
.hc-form{grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px 16px;padding:16px}
.hc-field input,.hc-field select,.hc-field textarea{border:1px solid #8a8886;border-radius:2px;min-height:28px;padding:4px 8px}
.hc-form footer{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--border-light,#edebe9);padding:10px 0}
@media(max-width:700px){#hc-root{inset:74px 0 0}#hc-root .module-workspace{grid-template-columns:1fr}#hc-root .module-nav{display:none}.hc-form{grid-template-columns:1fr}}

/* Ventana maestra: mismo lenguaje visual y flujo de Socios de Negocios */
#hc-root .hc-icon{width:19px;height:19px;display:block;fill:currentColor;flex:none}
#hc-root .module-nav-search .hc-icon{width:16px;height:16px;color:var(--azure-link,#0067b8)}
#hc-root .tree-chevron{width:18px;display:grid;place-items:center;color:#201f1e}
#hc-root .tree-chevron .hc-icon{width:13px;height:13px}
#hc-root .tree-children .tree-item{padding-left:38px}
#hc-root .module-breadcrumb{gap:10px}
#hc-root .module-breadcrumb button{color:var(--azure-link,#0067b8);border:0;background:none;padding:0;cursor:pointer}
#hc-root .hc-title-icon{width:48px;height:48px;border-radius:2px;background:var(--azure-blue,#0078d4);color:#fff;display:grid;place-items:center}
#hc-root .hc-title-icon .hc-icon{width:31px;height:31px}
#hc-root .module-titlebar h1{font-size:30px;line-height:38px;font-weight:400;margin:0;color:#111}
#hc-root .module-titlebar p{font-size:15px;color:#605e5c;margin:0}
#hc-root .title-close{font-size:18px;letter-spacing:2px}
#hc-root .workspace-tabs{min-height:48px}
#hc-root .workspace-tab{font-size:17px;padding:0 0 12px;margin-right:28px}
#hc-root .command-bar{min-height:56px;gap:2px;padding:7px 0;border-bottom:1px solid var(--border,#d2d0ce)}
#hc-root .command-bar button{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 13px;color:var(--azure-link,#0067b8);border:0;background:#fff;font-size:16px;cursor:pointer}
#hc-root .command-bar button:hover{background:var(--surface-hover,#f3f2f1)}
#hc-root .command-bar .command-primary{background:var(--azure-blue,#0078d4);color:#fff;padding:0 16px}
#hc-root .command-bar .command-primary:hover{background:#106ebe}
#hc-root .command-bar .command-disabled{color:#c8c6c4;cursor:default}
#hc-root .command-bar .command-disabled:hover{background:#fff}
#hc-root .command-divider{height:28px;border-left:1px solid var(--border,#d2d0ce);margin:6px 9px}
#hc-root .workspace-panel{padding:20px 0 0}
#hc-root .filter-row{display:flex;align-items:center;gap:10px;margin:0 0 7px}
#hc-root .filter-search-input{width:300px;height:36px;display:flex;align-items:center;gap:8px;border:1px solid #8a8886;background:#fff;padding:0 10px}
#hc-root .filter-search-input:focus-within{border-color:var(--azure-blue,#0078d4);box-shadow:inset 0 0 0 1px var(--azure-blue,#0078d4)}
#hc-root .filter-search-input .hc-icon{width:18px;height:18px;color:#323130}
#hc-root .filter-search-input input{width:100%;border:0;outline:0;font-size:16px;background:transparent}
#hc-root .filter-add{height:36px;display:flex;align-items:center;gap:7px;border:0;border-radius:18px;background:#deecf9;color:#201f1e;padding:0 15px;font-size:16px;cursor:pointer}
#hc-root .filter-add:hover{background:#c7e0f4}
#hc-root .filter-add .hc-icon{width:17px;height:17px}
#hc-root .table-shell{overflow:auto;border-top:1px solid var(--border,#d2d0ce)}
#hc-root .azure-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:14px}
#hc-root .azure-table th{height:40px;text-align:left;padding:0 11px;border-bottom:1px solid var(--border-light,#edebe9);font-weight:600;white-space:nowrap;color:#111;background:#fff}
#hc-root .azure-table td{height:41px;padding:0 11px;border-bottom:1px solid var(--border-light,#edebe9);vertical-align:middle;color:#111}
#hc-root .azure-table tbody tr:hover td,#hc-root .azure-table tbody tr.selected td{background:var(--azure-blue-soft,#eff6fc)}
#hc-root .hc-record-link{border:0;background:none;color:var(--azure-link,#0067b8);padding:0;cursor:pointer;font:inherit}
#hc-root .hc-record-link:hover{text-decoration:underline}
#hc-root .status-pill{display:inline-flex;align-items:center;min-height:24px;padding:1px 10px;border-radius:14px;font-size:13px;font-weight:400}
#hc-root .status-pill.green{color:#107c10;background:#dff6dd}
#hc-root .hc-recordbar{min-height:54px;display:flex;align-items:center;gap:28px;border:1px solid var(--border-light,#edebe9);border-left:3px solid var(--azure-blue,#0078d4);padding:7px 12px;margin-bottom:12px;background:#fff}
#hc-root .hc-recordbar>div:first-child{display:flex;flex-direction:column;min-width:290px}
#hc-root .hc-recordbar span{font-size:12px;color:#605e5c}
#hc-root .hc-recordbar strong{font-size:15px;font-weight:600}
#hc-root .hc-recordbar>div:nth-child(2){color:#605e5c}
#hc-root .hc-recordbar button{margin-left:auto;border:0;background:none;color:var(--azure-link,#0067b8);cursor:pointer;padding:7px 10px}
#hc-root .hc-patient-picker{border:1px solid var(--border-light,#edebe9);padding:12px}
#hc-root .hc-picker-title{font-size:16px;font-weight:600;margin:0 0 12px}
#hc-root .hc-picker-help{padding:10px 2px;color:#605e5c;font-size:13px}
#hc-root .azure-table .hc-empty{height:72px;padding:20px;text-align:center;color:#605e5c}

/* Escala exacta del workspace nativo de Kivo */
#hc-root .module-breadcrumb{min-height:26px;gap:6px;font-size:13px}
#hc-root .module-titlebar{grid-template-columns:42px minmax(0,1fr) 36px;gap:8px;min-height:58px}
#hc-root .hc-title-icon{width:38px;height:38px}
#hc-root .hc-title-icon .hc-icon{width:24px;height:24px}
#hc-root .module-titlebar h1{font-size:24px;line-height:normal;font-weight:600}
#hc-root .module-titlebar h1 span{font-weight:400}
#hc-root .module-titlebar p{margin:1px 0 0;font-size:13px}
#hc-root .workspace-tabs{gap:22px;min-height:36px}
#hc-root .workspace-tab{min-height:36px;margin-right:0;padding:0 0 7px;font-size:14px}
#hc-root .command-bar{min-height:44px;gap:4px;padding:0}
#hc-root .command-bar button{min-height:32px;gap:7px;padding:0 10px;font-size:14px}
#hc-root .command-bar .command-primary{padding:0 10px}
#hc-root .command-bar .hc-icon{width:16px;height:16px}
#hc-root .command-divider{height:24px;margin:4px 8px}
#hc-root .workspace-panel{padding:10px 0 24px}
#hc-root .filter-row{gap:8px;min-height:40px;margin:0}
#hc-root .filter-search-input{width:min(240px,100%);height:auto;min-height:28px;gap:6px;padding:0 8px;border-radius:2px}
#hc-root .filter-search-input input{min-height:24px;font-size:14px}
#hc-root .filter-search-input .hc-icon{width:16px;height:16px}
#hc-root .filter-add{min-height:28px;height:auto;gap:6px;padding:0 10px;border:1px solid #deecf9;border-radius:14px;font-size:14px}
#hc-root .filter-add .hc-icon{width:15px;height:15px}
#hc-root .table-shell{max-width:1120px}
#hc-root .azure-table{min-width:760px;font-size:13px}
#hc-root .azure-table th,#hc-root .azure-table td{height:33px;padding:0 9px;font-size:13px}
#hc-root .status-pill{min-height:20px;padding:1px 7px;border-radius:10px;font-size:12px}
#hc-root .hc-recordbar{min-height:44px;gap:20px;padding:5px 10px;margin-bottom:10px}
#hc-root .hc-recordbar>div:first-child{min-width:250px}
#hc-root .hc-recordbar strong{font-size:14px}
#hc-root .hc-patient-picker{padding:10px}
#hc-root .hc-picker-title{font-size:14px;margin-bottom:8px}
#hc-root .azure-table .hc-empty{height:52px;padding:12px}
#hc-root .title-close{width:36px;height:32px;padding:0;display:grid;place-items:center}
#hc-root .hc-more-icon{width:20px;height:20px;display:block;fill:#201f1e}
#hc-root .hc-table tbody tr[data-record-resource]{cursor:pointer}
#hc-root .hc-table tbody tr[data-record-resource]:focus td{background:var(--azure-blue-soft,#eff6fc);box-shadow:inset 0 0 0 1px #c7e0f4}
#hc-root .hc-record-filter-row{margin-bottom:0}
#hc-root .operative-master-form-page{border:1px solid var(--border-light,#edebe9);min-height:280px}
#hc-root .bp-record-heading{min-height:52px;padding:8px 12px;border-bottom:1px solid var(--border-light,#edebe9)}
#hc-root .bp-record-heading span{font-size:12px;color:#605e5c}
#hc-root .bp-record-heading h3{font-size:17px;font-weight:600;margin:2px 0 0}
#hc-root .hc-embedded-form{max-width:920px;padding:16px 12px}
#hc-root .hc-embedded-form input:disabled,#hc-root .hc-embedded-form select:disabled,#hc-root .hc-embedded-form textarea:disabled{color:#323130;background:#f3f2f1;opacity:1}
#hc-root .bp-form-placeholder{min-height:250px;display:grid;place-items:center;color:#605e5c}

/* Formulario documental: estructura nativa de Oferta de Ventas */
#hc-root .sales-document-page{max-width:1120px;min-height:470px;padding:14px}
#hc-root .sales-document-page .bp-record-heading{min-height:0;margin:0 0 12px;padding:0;border:0;display:flex;align-items:center;justify-content:space-between;gap:16px}
#hc-root .sales-document-page .bp-record-heading span{color:var(--muted,#605e5c);font-size:12px}
#hc-root .sales-document-page .bp-record-heading h3{margin:0;font-size:18px;font-weight:600}
#hc-root .sales-document-stack{display:grid;gap:18px}
#hc-root .sales-document-stack>section{display:grid;gap:8px}
#hc-root .sales-document-stack>section>h3,#hc-root .sales-step-block>h3{margin:0;font-size:14px;font-weight:600}
#hc-root .document-wizard{display:grid;gap:10px}
#hc-root .document-wizard-status{min-height:26px;display:flex;align-items:baseline;gap:8px;padding-bottom:6px;border-bottom:1px solid var(--border-light,#edebe9)}
#hc-root .document-wizard-status span{color:var(--muted,#605e5c);font-size:12px}
#hc-root .document-wizard-status strong{font-size:14px;font-weight:600}
#hc-root .document-step-body{display:grid;gap:12px}
#hc-root .azure-form{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:14px 20px}
#hc-root .azure-form label{display:grid;gap:5px;color:#201f1e;font-size:13px}
#hc-root .azure-form input,#hc-root .azure-form select,#hc-root .azure-form textarea{width:100%;min-height:28px;padding:4px 8px;border:1px solid #8a8886;border-radius:0;background:#fff}
#hc-root .azure-form textarea{min-height:92px;resize:vertical}
#hc-root .sales-header-grid{grid-template-columns:repeat(3,minmax(180px,280px));align-items:start}
#hc-root .sales-step-block{display:grid;gap:10px}
#hc-root .clinical-document-text{grid-template-columns:minmax(0,1fr)}
#hc-root .hc-clinical-form-grid{grid-template-columns:repeat(3,minmax(180px,280px));align-items:start}
#hc-root .full-field{grid-column:1/-1}
#hc-root .lookup-input-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:0}
#hc-root .lookup-input-row button{min-height:28px;display:inline-grid;place-items:center;border:1px solid var(--border,#d2d0ce);background:#fff;color:var(--azure-link,#0067b8)}
#hc-root .lookup-input-row button:hover{background:var(--surface-hover,#f3f2f1)}
#hc-root .lookup-input-row .hc-icon{width:14px;height:14px}
#hc-root .document-comment-footer{display:grid;gap:5px;font-size:13px}
#hc-root .document-comment-footer textarea{width:100%;min-height:78px;padding:4px 8px;border:1px solid #8a8886;resize:vertical}
#hc-root .document-footer-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid var(--border-light,#edebe9)}
#hc-root .document-footer-actions button{min-height:32px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border:1px solid var(--border-light,#edebe9);background:#fff;color:var(--azure-link,#0067b8)}
#hc-root .document-footer-actions button:hover{background:var(--surface-hover,#f3f2f1)}
#hc-root .document-footer-actions .command-primary{color:#fff;background:var(--azure-blue,#0078d4);border-color:var(--azure-blue,#0078d4)}
.hc-lookup-panel{width:min(720px,100vw)}
.hc-lookup-body{padding:14px;overflow:hidden}
.hc-lookup-panel .hc-icon{width:14px;height:14px;display:block;fill:currentColor;flex:none}
.hc-lookup-body .filter-search-input{width:100%;height:30px;min-height:30px;margin:0 0 10px;padding:0 8px;display:flex;align-items:center;gap:6px;border:1px solid #8a8886;border-radius:2px;background:#fff}
.hc-lookup-body .filter-search-input input{width:100%;min-width:0;height:26px;border:0;outline:0;background:transparent;font-size:14px}
.hc-lookup-body .table-shell{width:100%;max-width:none;overflow:auto;border-top:1px solid var(--border,#d2d0ce)}
.hc-lookup-body .azure-table{width:100%;min-width:0;table-layout:auto;border-collapse:collapse;font-size:13px}
.hc-lookup-body .azure-table th,.hc-lookup-body .azure-table td{height:33px;padding:0 9px;white-space:nowrap;border-bottom:1px solid var(--border-light,#edebe9)}
.hc-lookup-table tbody tr{cursor:pointer}
@media(max-width:800px){#hc-root .sales-header-grid,#hc-root .hc-clinical-form-grid{grid-template-columns:1fr}#hc-root .azure-form{grid-template-columns:1fr}}
#hc-root .hc-pathology-section{grid-column:1/-1;padding-top:10px;border-top:1px solid var(--border-light,#edebe9)}
#hc-root .hc-pathology-section h3{margin:0 0 8px;font-size:14px;font-weight:600}
#hc-root .hc-pathology-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:0;border-top:1px solid var(--border-light,#edebe9);border-left:1px solid var(--border-light,#edebe9)}
#hc-root .hc-pathology-item{min-height:38px;display:grid;grid-template-columns:18px minmax(90px,1fr) minmax(0,140px);align-items:center;gap:7px;padding:5px 8px;border-right:1px solid var(--border-light,#edebe9);border-bottom:1px solid var(--border-light,#edebe9);font-size:13px;background:#fff}
#hc-root .hc-pathology-item>input[type=checkbox]{width:14px;height:14px;min-height:0;padding:0;margin:0}
#hc-root .hc-pathology-item>input:not([type=checkbox]){width:100%;min-height:26px;padding:2px 6px;border:1px solid #8a8886}
#hc-root .hc-pathology-readonly{display:flex;flex-wrap:wrap;gap:6px}
#hc-root .hc-pathology-readonly span{display:inline-flex;min-height:24px;align-items:center;padding:1px 9px;border-radius:12px;background:#e5f1fb;color:#323130;font-size:13px}
#hc-root .hc-pathology-readonly em{color:#605e5c;font-size:13px}
@media(max-width:800px){#hc-root .hc-pathology-grid{grid-template-columns:1fr}}
