/* Scoped overrides for VHIP Digital Twin Core v0.4.6.9.5.11 — v0.1.4 */
.vhip-ws.vhip-aw14{--aw-border:#29687a;--aw-bg:#092b3a;}
.vhip-ws.vhip-aw14 .vhip-first-view.vhip-aw14-view{grid-template-columns:minmax(0,1fr)!important;min-height:0!important;width:100%;max-width:100%;gap:8px!important}
.vhip-ws.vhip-aw14 .vhip-first-view .vhip-first-main{min-width:0;max-width:100%;width:100%}
/* Compact top context */
.vhip-ws.vhip-aw14 .vhip-persistent-patient-encounter{grid-template-columns:minmax(230px,1.05fr) minmax(250px,1.08fr) minmax(620px,1.35fr)!important;gap:8px!important;padding:7px 10px!important;align-items:start!important}
.vhip-ws.vhip-aw14 .vhip-persistent-patient,
.vhip-ws.vhip-aw14 .vhip-persistent-encounter,
.vhip-ws.vhip-aw14 .vhip-persistent-care-context .vhip-ux-context-chip,
.vhip-ws.vhip-aw14 .vhip-persistent-care-context > a,
.vhip-ws.vhip-aw14 .vhip-persistent-care-context > button{min-height:0!important;padding:7px 9px!important}
.vhip-ws.vhip-aw14 .vhip-persistent-care-context{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(108px,1fr))!important;
  gap:6px!important;
  align-content:start!important;
}
.vhip-ws.vhip-aw14 .vhip-persistent-care-context .vhip-ux-context-chip:nth-of-type(3){display:none!important;} /* Responsable */
.vhip-ws.vhip-aw14 .vhip-persistent-care-context > a,
.vhip-ws.vhip-aw14 .vhip-persistent-care-context > button{
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  gap:6px!important;
  align-items:center!important;
  border:1px solid #2d6272!important;
  border-radius:10px!important;
  background:#07222e!important;
  color:#dff7ff!important;
  text-decoration:none!important;
  font:600 11px/1.2 system-ui,sans-serif!important;
  margin:0!important;
}
.vhip-ws.vhip-aw14 .vhip-persistent-care-context > a .dashicons,
.vhip-ws.vhip-aw14 .vhip-persistent-care-context > button .dashicons{font-size:17px!important;width:18px!important;height:18px!important;color:#76d9ec!important}
.vhip-ws.vhip-aw14 .vhip-persistent-care-context > a small,
.vhip-ws.vhip-aw14 .vhip-persistent-care-context > button small{display:block!important;font-size:9px!important;color:#86c7d6!important;letter-spacing:0!important;font-weight:600!important}
.vhip-ws.vhip-aw14 .vhip-persistent-care-context > a b,
.vhip-ws.vhip-aw14 .vhip-persistent-care-context > button b{display:block!important;font-size:11px!important;color:#fff!important}
.vhip-ws.vhip-aw14 .vhip-persistent-header-actions,
.vhip-ws.vhip-aw14 .vhip-role-adaptive-badge{display:none!important}
/* Remove duplicated route context and progress */
.vhip-ws.vhip-aw14 .vhip-clinical-route .vhip-route-context,
.vhip-ws.vhip-aw14 .vhip-clinical-route .vhip-route-progress{display:none!important}
.vhip-ws.vhip-aw14 .vhip-clinical-route{margin:0 0 4px!important}
.vhip-ws.vhip-aw14 .vhip-clinical-route .vhip-route-steps{margin-top:0!important}
.vhip-ws.vhip-aw14 .vhip-clinical-route .vhip-route-steps button{min-height:50px!important}
/* Bottom action toolbar remains compact; top duplicate Incorporar is hidden */
.vhip-ws.vhip-aw14 .vhip-clinical-action-toolbar{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin:8px 0 10px!important}
.vhip-ws.vhip-aw14 .vhip-clinical-action-toolbar .vhip-clinical-action[data-panel="vhip-ingestion"]{display:none!important}
.vhip-ws.vhip-aw14 .vhip-clinical-action-toolbar .vhip-clinical-action{min-height:58px!important;padding:8px 10px!important}
.vhip-ws.vhip-aw14 .vhip-clinical-action .vhip-action-copy b{font-size:12px!important}
.vhip-ws.vhip-aw14 .vhip-clinical-action .vhip-action-copy small{font-size:10px!important}
/* Remove full utility row from above the map */
.vhip-ws.vhip-aw14 .vhip-first-heading{display:none!important}
.vhip-ws.vhip-aw14 .vhip-first-heading-copy{display:none!important}
.vhip-ws.vhip-aw14 .vhip-first-control-stack,
.vhip-ws.vhip-aw14 .vhip-first-adjust,
.vhip-ws.vhip-aw14 .vhip-twin-quick-access-anchored{display:none!important}
/* Main body: anatomical map + right rail */
.vhip-ws.vhip-aw14 .vhip-aw14-body{display:grid;grid-template-columns:minmax(0,1fr) 208px;gap:10px;align-items:start;padding:0 10px 10px}
.vhip-ws.vhip-aw14 .vhip-aw14-surface-wrap{min-width:0}
.vhip-ws.vhip-aw14 .vhip-first-real-engine-surface{max-width:100%;min-width:0}
.vhip-ws.vhip-aw14 .vhip-first-main .vhip-ux-radial-stage{min-height:520px!important;margin:0!important}
.vhip-ws.vhip-aw14 .vhip-first-main .vhip-ux-radial-center{transform:scale(1)!important;transform-origin:center top}
.vhip-ws.vhip-aw14 .vhip-first-puzzle-status-band{margin:0 0 6px!important;padding:8px 12px!important;min-height:48px!important}
.vhip-ws.vhip-aw14 .vhip-aw14-rail{display:flex;flex-direction:column;gap:8px;min-width:0}
.vhip-ws.vhip-aw14 .vhip-aw14-nav,
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities{display:flex;flex-direction:column;gap:8px}
.vhip-ws.vhip-aw14 .vhip-aw14-nav .vhip-first-twin-node,
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > *{
  position:static!important;inset:auto!important;transform:none!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:48px!important;height:auto!important;margin:0!important;padding:8px 10px!important;display:flex!important;align-items:center!important;gap:8px!important;box-sizing:border-box;text-align:left!important;border-radius:10px!important
}
.vhip-ws.vhip-aw14 .vhip-aw14-nav .vhip-first-twin-node b,
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > * b{font-size:12px!important;line-height:1.15!important}
.vhip-ws.vhip-aw14 .vhip-aw14-nav .vhip-first-twin-node small,
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > * small{display:none!important}
.vhip-ws.vhip-aw14 .vhip-aw14-nav .vhip-first-twin-node .dashicons,
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > * .dashicons{font-size:19px!important;width:20px!important;height:20px!important}
.vhip-ws.vhip-aw14 .vhip-aw14-nav .vhip-first-twin-node i,
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > * .vhip-action-arrow{margin-left:auto;font-size:14px!important}
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > .vhip-aw14-button,
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > .vhip-clinical-action,
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > .vhip-tqa-button{
  border:1px solid #2d6272!important;background:#07222e!important;color:#dff7ff!important;text-decoration:none!important;cursor:pointer
}
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > .vhip-aw14-button[aria-expanded="true"]{background:#14566b!important}
.vhip-ws.vhip-aw14 .vhip-first-summary[hidden]{display:none!important}
.vhip-ws.vhip-aw14 .vhip-first-summary:not([hidden]){width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;padding:0 10px 10px}
.vhip-ws.vhip-aw14 .vhip-first-bottom-nav{position:sticky;bottom:6px;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px;margin:8px 0 0!important}
@media(max-width:1300px){
  .vhip-ws.vhip-aw14 .vhip-persistent-patient-encounter{grid-template-columns:minmax(230px,1fr) minmax(240px,1fr)!important}
  .vhip-ws.vhip-aw14 .vhip-persistent-care-context{grid-column:1/-1;grid-template-columns:repeat(5,minmax(120px,1fr))!important}
  .vhip-ws.vhip-aw14 .vhip-aw14-body{grid-template-columns:minmax(0,1fr)!important}
  .vhip-ws.vhip-aw14 .vhip-aw14-rail{order:-1}
  .vhip-ws.vhip-aw14 .vhip-aw14-nav,.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities{flex-direction:row;flex-wrap:wrap}
  .vhip-ws.vhip-aw14 .vhip-aw14-nav .vhip-first-twin-node,.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > *{flex:1 1 150px;width:auto!important}
}
@media(max-width:1050px){
  .vhip-ws.vhip-aw14 .vhip-persistent-patient-encounter{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .vhip-ws.vhip-aw14 .vhip-persistent-care-context{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .vhip-ws.vhip-aw14 .vhip-clinical-action-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .vhip-ws.vhip-aw14 .vhip-persistent-patient-encounter,.vhip-ws.vhip-aw14 .vhip-persistent-care-context{grid-template-columns:minmax(0,1fr)!important}
  .vhip-ws.vhip-aw14 .vhip-clinical-action-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .vhip-ws.vhip-aw14 .vhip-first-bottom-nav{grid-template-columns:repeat(5,145px)!important;overflow-x:auto}
}
@media(prefers-reduced-motion:reduce){.vhip-ws.vhip-aw14 *{scroll-behavior:auto!important}}

/* v0.1.5 — keep Quick Access controls and dialogs in one live DOM subtree */
.vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > .vhip-twin-quick-access.vhip-aw15-quick-access{
  display:flex!important;flex-direction:column!important;position:static!important;
  inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;gap:8px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  pointer-events:auto!important;z-index:auto!important;
}
.vhip-ws.vhip-aw14 .vhip-aw15-quick-access > .vhip-tqa-button{
  display:flex!important;align-items:center!important;gap:8px!important;
  position:static!important;width:100%!important;min-width:0!important;
  max-width:100%!important;min-height:48px!important;margin:0!important;
  padding:8px 10px!important;box-sizing:border-box!important;pointer-events:auto!important;
}
.vhip-ws.vhip-aw14 .vhip-aw15-quick-access > .vhip-tqa-button b{font-size:12px!important;}
.vhip-ws.vhip-aw14 .vhip-aw15-quick-access > .vhip-tqa-button small{display:none!important;}
.vhip-ws.vhip-aw14 .vhip-aw15-quick-access > .vhip-tqa-drawer{position:fixed!important;}
.vhip-ws.vhip-aw14.vhip-aw14-focused .vhip-clinical-route .vhip-route-steps{display:none!important;}
@media(max-width:1300px){
 .vhip-ws.vhip-aw14 .vhip-aw14-rail-utilities > .vhip-twin-quick-access.vhip-aw15-quick-access{flex:1 1 250px!important;width:auto!important;}
}
