/* Alpha 1.15.99 — Prescription: vraies colonnes indépendantes.
   Corrige l'alerte poids décalée par les lignes CSS partagées. */
#v26TabPrescriptions .v26-prescription-create-section>.v26-section-body{
  display:grid!important;
  grid-template-columns:minmax(310px,.72fr) minmax(0,1.45fr)!important;
  gap:18px!important;
  align-items:start!important;
}
#v26TabPrescriptions .v115-rx-left-column,
#v26TabPrescriptions .v115-rx-right-column{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
#v26TabPrescriptions .v115-rx-left-column{grid-column:1}
#v26TabPrescriptions .v115-rx-right-column{grid-column:2}
#v26TabPrescriptions .v115-rx-left-column .v26-prescription-sticky-tools{
  margin:0!important;
}
#v26TabPrescriptions .v115-rx-left-column .v26-quick-menu{
  margin:0!important;
}
#v26TabPrescriptions .v115-rx-right-column .v28-prescription-weight-alert{
  margin:0!important;
}
#v26TabPrescriptions .v115-rx-right-column>.v26-prescription-submit-sticky{
  width:100%;
  box-sizing:border-box;
}
@media(max-width:1240px){
  #v26TabPrescriptions .v26-prescription-create-section>.v26-section-body{
    grid-template-columns:minmax(280px,.82fr) minmax(0,1.35fr)!important;
    gap:12px!important;
  }
}
@media(max-width:900px){
  #v26TabPrescriptions .v26-prescription-create-section>.v26-section-body{
    display:block!important;
  }
  #v26TabPrescriptions .v115-rx-left-column,
  #v26TabPrescriptions .v115-rx-right-column{
    display:flex;
    width:100%;
  }
  #v26TabPrescriptions .v115-rx-left-column{margin-bottom:10px}
}


/* Alpha 1.15.100 — Prescription: navigation à gauche, éditeur à droite. */
#v26TabPrescriptions .v26-prescription-create-section>.v26-section-body>.v115-rx-left-column{
  grid-column:1!important;
  grid-row:1!important;
}
#v26TabPrescriptions .v26-prescription-create-section>.v26-section-body>.v115-rx-right-column{
  grid-column:2!important;
  grid-row:1!important;
}
#v26TabPrescriptions .v115-rx-left-column{
  align-self:start;
}
#v26TabPrescriptions .v115-rx-right-column{
  align-self:start;
}
#v26TabPrescriptions .v115-rx-column-head{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:10px 12px;
  border:1px solid #c5d2db;
  border-radius:13px;
  background:linear-gradient(180deg,#fbfcfd 0%,#edf3f6 100%);
  box-sizing:border-box;
}
#v26TabPrescriptions .v115-rx-column-head>span{
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:9px;
  background:#176fa5;
  color:#fff;
  font-size:12px;
  font-weight:900;
}
#v26TabPrescriptions .v115-rx-column-head>div{
  min-width:0;
}
#v26TabPrescriptions .v115-rx-column-head strong,
#v26TabPrescriptions .v115-rx-column-head small{
  display:block;
}
#v26TabPrescriptions .v115-rx-column-head strong{
  color:#183b54;
  font-size:12px;
  line-height:1.2;
}
#v26TabPrescriptions .v115-rx-column-head small{
  margin-top:2px;
  color:#728594;
  font-size:9.5px;
}
#v26TabPrescriptions .v115-rx-left-column{
  padding:10px;
  border:1px solid #c5d2db;
  border-radius:16px;
  background:#e7edf2;
  box-shadow:0 5px 16px rgba(18,55,78,.05);
}
#v26TabPrescriptions .v115-rx-right-column{
  padding:10px;
  border:1px solid #c5d2db;
  border-radius:16px;
  background:#eef3f6;
  box-shadow:0 5px 16px rgba(18,55,78,.05);
}
#v26TabPrescriptions .v115-rx-left-column .v26-prescription-sticky-tools{
  position:sticky;
  top:calc(var(--urg-topbar,74px) + 8px);
}
#v26TabPrescriptions .v115-rx-left-column .v26-quick-menu{
  max-height:calc(100vh - 360px);
  overflow:auto!important;
}
#v26TabPrescriptions .v115-rx-right-column .v26-prescription-stage,
#v26TabPrescriptions .v115-rx-right-column .v26-selected-item,
#v26TabPrescriptions .v115-rx-right-column .v28-prescription-weight-alert,
#v26TabPrescriptions .v115-rx-right-column .v26-posology-safety-line{
  width:100%;
  box-sizing:border-box;
}
@media(max-width:900px){
  #v26TabPrescriptions .v26-prescription-create-section>.v26-section-body>.v115-rx-left-column,
  #v26TabPrescriptions .v26-prescription-create-section>.v26-section-body>.v115-rx-right-column{
    grid-column:auto!important;
    grid-row:auto!important;
  }
  #v26TabPrescriptions .v115-rx-left-column,
  #v26TabPrescriptions .v115-rx-right-column{
    padding:8px;
  }
}


/* Alpha 1.15.102 — Prescription workspace fixe, sous-onglets et poids compact. */

/* L'onglet Prescription devient un espace de travail : pas de scroll de page. */
body.urg-v26-patient-focus.v115-rx-workspace-open{
  overflow:hidden!important;
}
body.urg-v26-patient-focus.v115-rx-workspace-open .layout{
  height:100dvh!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  padding-bottom:8px!important;
}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-workspace-card{
  height:calc(100dvh - var(--urg-topbar) - 12px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-shell{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-main{
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-banner,
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-latest-vitals-banner{
  flex:0 0 auto!important;
}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26TabPrescriptions:not([hidden]){
  flex:1 1 auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  padding:7px 9px 9px!important;
  box-sizing:border-box!important;
}

/* Sous-navigation Nouvelle / Actives / Historique */
#v26TabPrescriptions .v115-rx-workspace-tabs{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:6px;
  margin:0 0 7px;
  padding:5px;
  border:1px solid #c8d5de;
  border-radius:12px;
  background:#e4ebf0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
#v26TabPrescriptions .v115-rx-workspace-tabs button{
  min-height:34px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 11px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#506a7c;
  font-size:10px;
  font-weight:850;
  cursor:pointer;
  white-space:nowrap;
}
#v26TabPrescriptions .v115-rx-workspace-tabs button:hover{
  background:rgba(255,255,255,.65);
}
#v26TabPrescriptions .v115-rx-workspace-tabs button.active{
  border-color:#b9cbd6;
  background:#fff;
  color:#145f8e;
  box-shadow:0 2px 7px rgba(20,58,82,.08);
}
#v26TabPrescriptions .v115-rx-workspace-tabs button>span{
  font-size:14px;
  line-height:1;
}
#v26TabPrescriptions .v115-rx-workspace-tabs button>b{
  min-width:19px;
  padding:2px 6px;
  border-radius:999px;
  background:#dce8ef;
  color:#526d7f;
  font-size:8px;
  text-align:center;
}
#v26TabPrescriptions .v115-rx-workspace-tabs button.active>b{
  background:#e5f2f9;
  color:#126b9f;
}

#v26TabPrescriptions .v115-rx-workspace-pane{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
#v26TabPrescriptions .v115-rx-workspace-pane[hidden]{
  display:none!important;
}

/* Nouvelle prescription : les deux colonnes occupent la hauteur restante. */
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]>.v26-prescription-create-section{
  height:100%;
  min-height:0;
  margin:0!important;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]>.v26-prescription-create-section>.v26-section-head{
  flex:0 0 auto;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]>.v26-prescription-create-section>.v26-section-body{
  flex:1 1 auto;
  min-height:0!important;
  overflow:hidden!important;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-left-column,
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-right-column{
  height:100%;
  max-height:100%;
  min-height:0;
  overflow:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-left-column .v26-prescription-sticky-tools{
  position:static!important;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-left-column .v26-quick-menu{
  max-height:none!important;
  overflow:visible!important;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v26-prescription-submit-sticky{
  position:sticky!important;
  bottom:0!important;
  z-index:4;
  box-shadow:0 -8px 16px rgba(21,54,76,.07);
}

/* Poids : indicateur compact dans l'en-tête droit, jamais un grand bandeau. */
#v26TabPrescriptions .v115-rx-weight-slot{
  margin-left:auto;
  flex:0 0 auto;
}
#v26TabPrescriptions .v115-rx-weight-slot .v28-prescription-weight-alert{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#v26TabPrescriptions .v115-rx-weight-slot .v28-prescription-weight-alert[hidden]{
  display:none!important;
}
#v26TabPrescriptions .v115-rx-weight-slot .v115-rx-weight-chip{
  min-height:31px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border:1px solid #d7cfae;
  border-radius:9px;
  background:#fffaf0;
  color:#765f2e;
  cursor:pointer;
  white-space:nowrap;
}
#v26TabPrescriptions .v115-rx-weight-slot .v115-rx-weight-chip span{
  font-size:13px;
}
#v26TabPrescriptions .v115-rx-weight-slot .v115-rx-weight-chip strong{
  font-size:8.5px;
  font-weight:900;
}
#v26TabPrescriptions .v115-rx-weight-slot .v115-rx-weight-chip em{
  color:#91753d;
  font-size:8px;
  font-style:normal;
  font-weight:800;
}
#v26TabPrescriptions .v115-rx-weight-slot .v28-prescription-weight-alert.blocking .v115-rx-weight-chip{
  border-color:#d76464;
  background:#fff2f2;
  color:#9d2626;
}
#v26TabPrescriptions .v115-rx-weight-slot .v28-prescription-weight-alert.blocking .v115-rx-weight-chip em{
  color:#a94545;
}

/* Actives et Historique : espaces autonomes, pas empilés sous la création. */
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="active"]>.v26-section{
  height:100%;
  min-height:0;
  margin:0!important;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="active"]>.v26-section>.v26-section-head{
  flex:0 0 auto;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="active"]>.v26-section>.v26-section-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="past"]>.v26-prescriptions-past{
  height:100%;
  min-height:0;
  margin:0!important;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="past"]>.v26-prescriptions-past>summary{
  flex:0 0 auto;
}
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="past"]>.v26-prescriptions-past>.v26-prescriptions-past-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

/* Scrollbars discrètes sur les modules. */
#v26TabPrescriptions .v115-rx-left-column,
#v26TabPrescriptions .v115-rx-right-column,
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="active"]>.v26-section>.v26-section-body,
#v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="past"]>.v26-prescriptions-past>.v26-prescriptions-past-body{
  scrollbar-width:thin;
  scrollbar-color:#b7c7d2 transparent;
}

@media(max-width:900px){
  body.urg-v26-patient-focus.v115-rx-workspace-open{
    overflow:auto!important;
  }
  body.urg-v26-patient-focus.v115-rx-workspace-open .layout{
    height:auto!important;
    overflow:visible!important;
  }
  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-workspace-card,
  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-shell{
    height:auto!important;
    overflow:visible!important;
  }
  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26TabPrescriptions:not([hidden]){
    overflow:visible!important;
  }
  #v26TabPrescriptions .v115-rx-workspace-pane{
    overflow:visible;
  }
  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-left-column,
  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-right-column{
    height:auto;
    max-height:none;
    overflow:visible!important;
  }
  #v26TabPrescriptions .v115-rx-workspace-tabs{
    overflow-x:auto;
  }
  #v26TabPrescriptions .v115-rx-weight-slot{
    margin-left:0;
  }
}


/* Alpha 1.15.103 — Correctif structure viewport.
   Identité + constantes restent visibles ; seules les zones métier défilent. */
@media(min-width:901px){
  body.urg-v26-patient-focus.v115-rx-workspace-open .layout{
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-workspace-card{
    height:calc(100dvh - var(--urg-topbar) - 20px)!important;
    min-height:520px!important;
    overflow:hidden!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-shell{
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-main{
    height:100%!important;
    min-height:0!important;
    display:grid!important;
    grid-template-rows:auto auto minmax(0,1fr)!important;
    overflow:hidden!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-banner{
    grid-row:1;
    min-height:48px!important;
    flex:none!important;
    overflow:visible!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-latest-vitals-banner{
    grid-row:2;
    min-height:79px!important;
    height:auto!important;
    flex:none!important;
    overflow:hidden!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-latest-vitals-head{
    min-height:24px!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-latest-vitals-grid{
    min-height:55px!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26TabPrescriptions:not([hidden]){
    grid-row:3;
    width:100%;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]{
    height:100%!important;
    min-height:0!important;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]>.v26-prescription-create-section{
    height:100%!important;
    min-height:0!important;
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr)!important;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]>.v26-prescription-create-section>.v26-section-head{
    grid-row:1;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]>.v26-prescription-create-section>.v26-section-body{
    grid-row:2;
    height:100%!important;
    min-height:0!important;
    display:grid!important;
    grid-template-columns:minmax(310px,.72fr) minmax(0,1.45fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-left-column,
  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-right-column{
    grid-row:1!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable both-edges;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-left-column{
    grid-column:1!important;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-right-column{
    grid-column:2!important;
  }
}


/* Alpha 1.15.104 — hauteur mesurée depuis le viewport, sans rogner identité/constantes. */
@media(min-width:901px){
  body.urg-v26-patient-focus.v115-rx-workspace-open{
    overflow:hidden!important;
  }

  body.urg-v26-patient-focus.v115-rx-workspace-open .layout{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-workspace-card,
  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-shell,
  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-main{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-main{
    display:block!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-patient-banner{
    min-height:48px!important;
    height:auto!important;
    overflow:visible!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active .v26-latest-vitals-banner{
    display:block!important;
    min-height:79px!important;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
  }

  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26TabPrescriptions:not([hidden]){
    height:var(--v115-rx-available-height,calc(100dvh - 260px))!important;
    max-height:var(--v115-rx-available-height,calc(100dvh - 260px))!important;
    min-height:360px!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]>.v26-prescription-create-section{
    height:100%!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]>.v26-prescription-create-section>.v26-section-body{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    display:grid!important;
    grid-template-columns:minmax(310px,.72fr) minmax(0,1.45fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-left-column,
  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-right-column{
    min-height:0!important;
    height:100%!important;
    max-height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-gutter:stable;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-left-column{
    grid-column:1!important;
    grid-row:1!important;
  }

  #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-right-column{
    grid-column:2!important;
    grid-row:1!important;
  }
}


/* Short screens and tablet keyboards keep the entire form reachable. */
body.urg-v26-patient-focus.v115-rx-workspace-open.v115-rx-compact-viewport{overflow:auto!important}
body.v115-rx-compact-viewport #v26PrescriptionLabView.v115-prescription-workspace-active #v26TabPrescriptions:not([hidden]){height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
body.v115-rx-compact-viewport #v26TabPrescriptions .v115-rx-workspace-pane,
body.v115-rx-compact-viewport #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]>.v26-prescription-create-section,
body.v115-rx-compact-viewport #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]>.v26-prescription-create-section>.v26-section-body{height:auto!important;overflow:visible!important}
body.v115-rx-compact-viewport #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-left-column,
body.v115-rx-compact-viewport #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-right-column{height:auto!important;max-height:none!important;overflow:visible!important}

/* The confirmation remains visible while only the form scrolls. */
#v26TabPrescriptions .v115-rx-options{border:1px solid var(--rx-line,#d9e1e7);border-radius:10px;margin:8px 0;padding:10px;background:var(--rx-surface,#fff)}
#v26TabPrescriptions .v115-rx-options>summary{cursor:pointer;font-weight:700;font-size:12px;color:var(--rx-ink,#172b3a)}
#v26TabPrescriptions .v115-rx-time-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
#v26TabPrescriptions .v115-rx-time-shortcuts button{min-height:36px;padding:7px 10px;border-radius:8px}
#v26TabPrescriptions .v115-rx-time-shortcuts button.active{background:var(--rx-accent-soft,#edf6fb);border-color:var(--rx-accent,#176ea6);color:var(--rx-accent,#176ea6);font-weight:700}
@media(min-width:901px){
 body:not(.v115-rx-compact-viewport) #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-right-column{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important}
 body:not(.v115-rx-compact-viewport) #v26TabPrescriptions .v115-rx-form{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 2px 8px;-webkit-overflow-scrolling:touch}
 body:not(.v115-rx-compact-viewport) #v26TabPrescriptions .v26-prescription-submit-sticky{position:static!important;margin-top:0!important}
}
@media(max-width:900px){
 body.v115-rx-workspace-open #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v115-rx-right-column{padding-bottom:140px!important}
 body.v115-rx-workspace-open #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v26-prescription-submit-sticky{position:fixed!important;width:auto!important;left:8px;right:8px;bottom:env(safe-area-inset-bottom,0px)!important;z-index:30;max-height:30dvh;overflow:auto;margin:0!important;padding:10px!important;background:var(--rx-surface,#fff);border:1px solid var(--rx-line,#d9e1e7);box-shadow:0 -4px 16px #172b3a22}
 body.v115-rx-workspace-open #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v26-prescription-submit-sticky button{min-height:44px}
}

#v26TabPrescriptions [hidden]{display:none!important}

.v115-rx-recorded{padding:8px 12px;margin:0 0 8px;border-radius:8px;background:#e9f7ee;color:#20643c;font-size:13px}
.v115-rx-workspace-tabs [data-v115-rx-draft]{font-size:11px;color:#986000}
.v115-rx-favorites{margin-bottom:12px}.v115-rx-favorites>strong{font-size:12px}.v115-rx-favorites>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.v115-rx-favorites button{padding:7px 10px;border:1px solid #d9e1ee;border-radius:8px;background:#fff;font-size:12px;text-align:left}

/* Prescription workspace: compact patient context and one scroll per column. */
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26PatientWorkspace .v26-patient-banner{
  position:static!important;
  display:grid!important;
  grid-template-columns:minmax(240px,.8fr) minmax(0,1.6fr);
  align-items:start!important;
  gap:8px 12px!important;
  padding:10px 12px!important;
}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26PatientWorkspace .v28-patient-identity-block{
  display:block!important;min-width:0!important;
}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26PatientWorkspace .v28-patient-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26PatientWorkspace .v28-patient-identity-block small{display:block;white-space:normal!important;margin-top:3px}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v291PatientCareTeam.v295-patient-team{grid-column:2;grid-row:1;padding:0!important;margin:0!important;border-left:0!important;align-self:start}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26PatientActions{grid-column:1;grid-row:2;margin:0!important;font-size:11px}
#v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26AllergyBanner{grid-column:2;grid-row:2;margin:0!important;align-self:start;justify-self:end}
#v26TabPrescriptions .v115-rx-left-column .v26-quick-tabs{display:flex!important;flex-wrap:wrap!important;gap:4px!important}
#v26TabPrescriptions .v115-rx-left-column .v26-quick-tabs button{flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:30px!important;padding:6px 8px!important;font-size:11px!important}
#v26TabPrescriptions .v115-rx-left-column .v26-catalog-search{position:static!important;top:auto!important}
#v26TabPrescriptions .v115-rx-left-column .v26-catalog-results,
#v26TabPrescriptions .v115-rx-left-column .v26-quick-menu{max-height:none!important;overflow:visible!important}
@media(max-width:980px){
  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26PatientWorkspace .v26-patient-banner{grid-template-columns:minmax(0,1fr)}
  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v291PatientCareTeam.v295-patient-team,
  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26PatientActions,
  #v26PrescriptionLabView.v26-patient-focus.v115-prescription-workspace-active #v26AllergyBanner{grid-column:1;grid-row:auto;justify-self:stretch}
}
@media(min-width:901px){
 body.v115-rx-workspace-open.v115-rx-compact-viewport #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"] .v26-prescription-submit-sticky{position:fixed!important;width:auto!important;left:8px;right:8px;bottom:env(safe-area-inset-bottom,0px)!important;z-index:30;max-height:30dvh;overflow:auto;margin:0!important;padding:10px!important;background:var(--rx-surface,#fff);border:1px solid var(--rx-line,#d9e1e7);box-shadow:0 -4px 16px #172b3a22}
 body.v115-rx-workspace-open.v115-rx-compact-viewport #v26TabPrescriptions .v115-rx-form{padding-bottom:140px!important}
}

/* Visual chooser and compact routine prescription. */
#v26TabPrescriptions .v115-rx-left-column .v26-quick-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
#v26TabPrescriptions .v115-rx-left-column .v26-quick-tabs button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px!important;width:100%!important;padding:5px!important;white-space:normal!important;line-height:1.15;font-size:10px!important;text-align:center;border-radius:10px!important}
#v26TabPrescriptions .v115-rx-tile-icon{font-size:20px;line-height:1;color:#176ea6}
#v26TabPrescriptions .v26-quick-tabs button.active{outline:2px solid #176ea6;outline-offset:-2px;background:#e8f5ff!important}
#v26TabPrescriptions .v115-rx-form>.stage-instruction,
#v26TabPrescriptions .v115-rx-form>.stage-schedule>.v26-duration-block{display:none!important}
#v26TabPrescriptions .v115-rx-more-actions{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
#v26TabPrescriptions .v115-rx-more-actions button{padding:7px 9px;border:1px solid #bbcedb;border-radius:9px;background:#f5faff;color:#174c70;font-size:11px;min-height:34px}
@media(min-width:1200px){
 #v26TabPrescriptions .v115-rx-form:has(>#v26DoseSafetyBox:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);align-content:start;gap:6px}
 #v26TabPrescriptions .v115-rx-form:has(>#v26DoseSafetyBox:not([hidden]))>*{grid-column:1/-1;margin:0!important}
 #v26TabPrescriptions .v115-rx-form:has(>#v26DoseSafetyBox:not([hidden]))>#v26SelectedCatalog{grid-row:1}
 #v26TabPrescriptions .v115-rx-form:has(>#v26DoseSafetyBox:not([hidden]))>#v26DoseSafetyBox{grid-column:1;grid-row:2}
 #v26TabPrescriptions .v115-rx-form:has(>#v26DoseSafetyBox:not([hidden]))>#v26AdministrationBox{grid-column:2;grid-row:2}
}
#v26TabPrescriptions .v115-rx-form .v26-prescription-stage{padding:9px!important;margin-bottom:6px!important}
#v26TabPrescriptions .v115-rx-form .v26-subsection-head{margin-bottom:6px!important}
#v26TabPrescriptions .v115-rx-form .v26-field{margin-bottom:4px!important}
.v115-rx-details-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px;background:#102c4a80;box-sizing:border-box}
.v115-rx-details-dialog{display:flex;flex-direction:column;width:min(920px,100%);max-height:calc(100dvh - 32px);background:#fff;border-radius:16px;box-shadow:0 20px 70px #102c4a50;overflow:hidden;color:#17364a}
.v115-rx-details-dialog>header,.v115-rx-details-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:12px 16px;background:#f2f7fb}
.v115-rx-details-dialog h3{margin:0;font-size:18px}.v115-rx-details-dialog>footer span{font-size:12px}
.v115-rx-details-dialog button{border:1px solid #bbcedb;border-radius:9px;background:#fff;color:#174c70;padding:9px 12px;cursor:pointer}
.v115-rx-details-body{padding:16px;min-height:0;overflow:auto;overscroll-behavior:contain}
.v115-rx-details-body .v115-rx-form{display:block;padding:0!important;overflow:visible!important}
.v115-rx-details-body .v115-rx-options{display:block!important;margin:8px 0;padding:12px;border:1px solid #d5e2ec;border-radius:10px}
.v115-rx-details-body .v115-rx-more-actions{display:none}
.v115-rx-details-body .v26-prescription-stage:not([hidden]){margin-bottom:10px;padding:12px;border:1px solid #d5e2ec;border-radius:10px}
.v115-rx-details-body [hidden]{display:none!important}
.v115-rx-details-body .v26-field{display:flex;flex-direction:column;gap:5px}
.v115-rx-details-body input,.v115-rx-details-body select,.v115-rx-details-body textarea{max-width:100%;box-sizing:border-box}
@media(max-width:600px){.v115-rx-details-overlay{padding:8px}.v115-rx-details-dialog{max-height:calc(100dvh - 16px)}.v115-rx-details-dialog>footer{flex-wrap:wrap}}
#v26TabPrescriptions .v115-rx-form>*{order:0!important}
#v26TabPrescriptions .v115-rx-time-shortcuts{gap:4px;margin-bottom:5px}
#v26TabPrescriptions .v115-rx-time-shortcuts button{min-height:30px!important;padding:5px 7px!important;font-size:11px!important}
#v26TabPrescriptions .stage-schedule:has(#v26ScheduleType option[value="once"]:checked) #v26SchedulePreview:not(:has(.v26-retro-warning)){display:none}
#v26TabPrescriptions .v26-prescription-create-section>.v26-section-head{padding:8px 12px!important}
#v26TabPrescriptions .v115-rx-right-column>.v115-rx-column-head{padding:8px!important}
#v26TabPrescriptions .v115-rx-right-column>.v115-rx-column-head small{display:none}
#v26TabPrescriptions .v26-once-presets:empty{display:none}
#v26TabPrescriptions #v26SelectedCatalog{padding:8px 10px!important}
#v26TabPrescriptions .v115-rx-column-head .v115-rx-more-actions{margin:0 0 0 auto;justify-content:flex-end}
@media(max-width:600px){#v26TabPrescriptions .v115-rx-right-column>.v115-rx-column-head{flex-wrap:wrap}#v26TabPrescriptions .v115-rx-column-head .v115-rx-more-actions{width:100%;justify-content:flex-start}}

/* PC: one prescription window, independent of the dossier's header height. */
body.urg-v26-patient-focus.v115-rx-workspace-open.v115-rx-modal-open{overflow:hidden!important}
.v115-rx-workspace-overlay{position:fixed;inset:0;z-index:1500;background:#102c4a80;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.v115-rx-workspace-dialog{width:min(1720px,100%);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;min-height:0;background:#fff;border-radius:16px;box-shadow:0 20px 70px #102c4a50;overflow:hidden}
.v115-rx-dialog-header{display:flex;align-items:center;gap:16px;flex:0 0 auto;padding:12px 16px;border-bottom:1px solid #d5e2ec;background:#f2f7fb}
.v115-rx-dialog-header>div:first-child{min-width:0;flex:1}.v115-rx-dialog-header h3{margin:0 0 3px;font-size:18px}.v115-rx-dialog-header strong{font-size:12px;overflow-wrap:anywhere}.v115-rx-dialog-allergies{max-width:38%;font-size:12px;padding:7px 10px;border:1px solid #e8bccc;border-radius:9px;color:#833a51;background:#fff6f8}
.v115-rx-dialog-header>button{flex:0 0 auto;padding:9px 12px;border:1px solid #bbcedb;border-radius:9px;background:#fff;color:#174c70;cursor:pointer}
.v115-rx-dialog-content{flex:1;min-height:0;overflow:hidden;padding:8px}
#v115RxWorkspaceModal #v26TabPrescriptions{height:100%!important;max-height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;margin:0!important;padding:0!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-workspace-tabs{flex:0 0 auto}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-workspace-pane{flex:1;min-height:0!important;height:auto!important;overflow:auto!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]{overflow:hidden!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-prescription-create-section{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;margin:0!important;overflow:hidden!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-prescription-create-section>.v26-section-head{display:none}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-prescription-create-section>.v26-section-body{flex:1;min-height:0!important;display:grid!important;grid-template-columns:minmax(300px,.8fr) minmax(0,1.8fr)!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important;height:auto!important;padding:10px!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-left-column{height:100%!important;min-height:0!important;overflow:auto!important;grid-column:1!important;grid-row:1!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-right-column{height:100%!important;min-height:0!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;grid-column:2!important;grid-row:1!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-form{min-height:0!important;overflow:auto!important;padding-bottom:8px!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-prescription-submit-sticky{position:static!important;width:100%!important;max-height:none!important;margin:0!important;box-sizing:border-box}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-form.v115-rx-show-options>.stage-instruction,
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-form.v115-rx-show-options>.stage-schedule>.v26-duration-block{display:block!important}
body:not(.v115-rx-modal-open) #v26TabPrescriptions .v115-rx-workspace-pane[data-v115-rx-pane="new"]{display:none!important}
@media(max-width:700px){.v115-rx-workspace-overlay{padding:4px}.v115-rx-workspace-dialog{height:calc(100dvh - 8px);max-height:calc(100dvh - 8px)}.v115-rx-dialog-header{flex-wrap:wrap;gap:6px;padding:8px}.v115-rx-dialog-allergies{max-width:100%}#v115RxWorkspaceModal #v26TabPrescriptions .v26-prescription-create-section>.v26-section-body{grid-template-columns:minmax(200px,.8fr) minmax(280px,1.5fr)!important;overflow-x:auto!important}}

/* Clear primary action, clinical context and non-overlapping active cards. */
#v26TabPrescriptions .v115-rx-workspace-tabs button[data-v115-rx-tab="new"]{background:#0866a6!important;color:#fff!important;border:2px solid #0866a6!important;box-shadow:0 3px 8px #0866a633!important;min-height:44px!important;padding:10px 16px!important;font-size:14px!important;font-weight:800!important}
#v26TabPrescriptions .v115-rx-workspace-tabs button[data-v115-rx-tab="new"]:hover{background:#064f82!important;border-color:#064f82!important}
#v26TabPrescriptions .v115-rx-workspace-tabs button[data-v115-rx-tab="new"]>span{color:#fff!important;font-size:22px!important}
#v26TabPrescriptions .v115-rx-workspace-tabs [data-v115-rx-tab="new"] [data-v115-rx-draft]{color:#fff;font-weight:500}
#v26TabPrescriptions .v115-rx-category-svg{display:block;width:24px;height:24px;flex:0 0 auto}
#v26TabPrescriptions .v26-order:has(>.v26-order-select){padding-left:46px!important}
#v26TabPrescriptions .v26-order>.v26-order-select{left:14px!important;top:14px!important;margin:0!important;line-height:1}
#v26TabPrescriptions .v26-order>.v26-order-select input{margin:0!important;width:20px;height:20px;cursor:pointer}
#v26TabPrescriptions .v26-order-head>div{min-width:0}.v26-order-head h5{overflow-wrap:anywhere}
#v115RxWorkspaceModal .v115-rx-dialog-allergies{min-width:240px;max-width:45%;padding:9px 12px;border:2px solid #b67e18;background:#fff5d8;color:#694300;font-size:14px}
#v115RxWorkspaceModal .v115-rx-dialog-allergies>b{display:block;font-size:11px;letter-spacing:.04em;margin-bottom:4px}
#v115RxWorkspaceModal .v115-rx-dialog-allergies .v26-allergy-none{background:transparent!important;padding:0!important;color:inherit!important;font-size:14px!important;font-weight:700}
#v115RxWorkspaceModal .v115-rx-dialog-allergies.has-allergies{border-color:#b42342;background:#fff0f3;color:#971c36}
#v115RxWorkspaceModal .v115-rx-dialog-allergies .v26-allergy-pill{background:transparent!important;color:inherit!important;font-size:14px!important;font-weight:800;padding:3px 0!important;white-space:normal}
#v26TabPrescriptions [data-v115-rx-tab="new"]>span svg{display:block;width:20px;height:20px}
/* Compact header and confirmation without losing clinical contrast. */
#v115RxWorkspaceModal .v115-rx-dialog-header{padding:8px 12px}
#v115RxWorkspaceModal .v115-rx-dialog-allergies{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0;max-width:40%;padding:5px 9px;border-width:1px;font-size:12px}
#v115RxWorkspaceModal .v115-rx-dialog-allergies>b{margin:0;font-size:10px;letter-spacing:.02em}
#v115RxWorkspaceModal .v115-rx-dialog-allergies .v26-allergy-none,
#v115RxWorkspaceModal .v115-rx-dialog-allergies .v26-allergy-pill{font-size:12px!important;line-height:1.3}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-prescription-submit-sticky{padding:8px 10px!important}
#v115RxWorkspaceModal #v26TabPrescriptions #v26CreatePrescriptionBtn{min-height:36px!important;min-width:110px!important;width:auto!important;flex:0 0 auto!important;padding:7px 14px!important;font-size:13px!important;border-radius:10px!important;line-height:1.2}
#v26TabPrescriptions .v115-rx-workspace-tabs button[data-v115-rx-tab="new"]{min-height:36px!important;padding:7px 11px!important;font-size:12px!important;border-width:1px!important;box-shadow:0 2px 5px #0866a622!important}
#v26TabPrescriptions [data-v115-rx-tab="new"]>span svg{width:16px;height:16px}
#v26TabPrescriptions #v115RxDiscardBtn{flex:0 0 auto;min-height:36px;padding:7px 10px;border:1px solid #bdcbd5;border-radius:10px;background:#fff;color:#506579;font-size:12px;cursor:pointer;white-space:nowrap}
#v26TabPrescriptions #v115RxDiscardBtn:hover{background:#edf3f7}
#v26TabPrescriptions #v115RxDiscardBtn:disabled{opacity:.5;cursor:default}
/* Specialized libraries fit the chooser without duplicate search fields. */
#v26TabPrescriptions .v115-rx-left-column .v26-family-library{padding:10px}
#v26TabPrescriptions .v115-rx-left-column .v26-family-library-head{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;align-items:stretch}
#v26TabPrescriptions .v115-rx-left-column .v26-family-search{min-width:0!important;width:100%!important;max-width:100%;box-sizing:border-box}
#v26TabPrescriptions .v115-rx-left-column .v26-family-search input{min-width:0;flex:1;max-width:100%}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-launch{gap:8px;padding:0}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-launch-head{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:9px 11px;border-radius:10px}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-launch-head strong{font-size:13px}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-launch-head small{font-size:11px}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-current{min-width:0;max-width:100%;padding:6px 8px;box-sizing:border-box}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-launch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-launch-grid>button{min-width:0;min-height:76px;padding:8px;gap:7px;border-radius:10px}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-launch-grid>button>b{min-width:28px;width:28px;height:28px;font-size:11px;border-radius:7px}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-launch-grid>button>span{min-width:0}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-launch-grid>button strong{font-size:12px}
#v26TabPrescriptions .v115-rx-left-column .v26-resp-launch-grid>button small{font-size:10px;overflow-wrap:anywhere}

/* PC polish: steady search, quiet surfaces and a structured clinical summary. */
#v115RxWorkspaceModal .v115-rx-workspace-dialog{box-shadow:0 16px 55px #142d4540}
#v115RxWorkspaceModal #v26TabPrescriptions{position:relative}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-left-column{display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;gap:8px;overflow:hidden!important;background:#fff;border-color:#d9e3ea;box-shadow:none}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-browse{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-prescription-sticky-tools{position:static!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-catalog-search{border:0!important;background:transparent!important;padding:4px 0!important;box-shadow:none!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-quick-tabs-mount{margin:0!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-quick-tabs button{border:1px solid transparent!important;background:#f4f7fa!important;box-shadow:none!important;min-height:48px!important;transition:background-color .12s,border-color .12s}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-quick-tabs button:hover{background:#eaf0f5!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-quick-tabs button.active{outline:0;background:#e5f2fc!important;border-color:#1878b6!important;color:#0a4c79!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-right-column{background:#fff;border-color:#d9e3ea;box-shadow:none}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-column-head{background:transparent;border:0;border-bottom:1px solid #e1e8ee;border-radius:0;box-shadow:none;padding:5px 4px 9px!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-form>.v26-prescription-stage{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:8px 4px!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-subsection-head{border:0!important;padding-bottom:0!important}
#v115RxWorkspaceModal #v26TabPrescriptions #v26SelectedCatalog{background:#f4f8fb!important;border:0!important;border-radius:9px!important;box-shadow:none!important}
#v115RxWorkspaceModal #v26TabPrescriptions #v26DoseAmount{font-size:18px!important;font-weight:750;color:#123e5c}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-prescription-submit-sticky{border:0!important;border-top:1px solid #d6e2ec!important;border-radius:0!important;background:#f8fbfd!important;box-shadow:none!important;gap:9px}
#v26PrescriptionPreview .v26-final-prescription-line{font-size:14px;line-height:1.25}
#v26PrescriptionPreview .v26-final-patient-line{font-size:10px;color:#627888}
.v115-rx-summary-chips{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:5px}
.v115-rx-summary-chips>span{display:flex;align-items:baseline;gap:5px;color:#153f5e}
.v115-rx-summary-chips small{font-size:10px;color:#637d8e}
.v115-rx-summary-chips b{font-size:13px;font-weight:750}
.v115-rx-summary-details{margin-top:5px;font-size:11px;line-height:1.35;color:#456277;overflow-wrap:anywhere}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-recorded{position:absolute;z-index:2;top:10px;right:10px;margin:0;padding:5px 9px;font-size:12px;background:#edf8f1;pointer-events:none}
#v26TabPrescriptions .v115-rx-inline-issue{display:block;margin-top:4px;font-size:12px;color:#a42237;line-height:1.3}
#v26TabPrescriptions [aria-invalid="true"]{border-color:#b42342!important;box-shadow:0 0 0 2px #b4234215!important}
#v26TabPrescriptions .v26-order{padding:10px 12px!important;box-shadow:none!important}
#v26TabPrescriptions .v26-order-head{gap:8px}
#v26TabPrescriptions .v26-order-head h5{font-size:14px!important}
#v26TabPrescriptions .v26-order .v26-meta{font-size:10px!important;line-height:1.35;margin-top:4px}
#v26TabPrescriptions .v26-order p{font-size:12px;margin-top:5px}
#v26TabPrescriptions .v26-order-actions{gap:5px;margin-top:8px}
#v26TabPrescriptions .v26-order-actions button{padding:5px 8px!important;min-height:28px!important;font-size:11px!important;box-shadow:none!important}
#v26TabPrescriptions .v26-order-next{padding:6px 8px!important;font-size:12px;line-height:1.3}
.v115-rx-order-summary{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:5px;color:#153f5e;font-size:13px}
.v115-rx-order-summary small{font-size:10px;color:#617b8d}
@media(prefers-reduced-motion:reduce){#v115RxWorkspaceModal #v26TabPrescriptions .v26-quick-tabs button{transition:none}}
#v115RxWorkspaceModal #v26TabPrescriptions .v26-family-library-head{position:sticky;top:0;z-index:5;background:#fff;padding:4px 0 8px}
/* Care forms occupy the main prescription panel instead of another dialog. */
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-right-column.v115-rx-care-editing{grid-template-rows:auto minmax(0,1fr)!important}
#v115RxWorkspaceModal .v115-rx-care-editing>.v115-rx-form,
#v115RxWorkspaceModal .v115-rx-care-editing>.v26-prescription-submit-sticky{display:none!important}
#v115RxWorkspaceModal .v115-rx-care-mount{grid-row:2;min-height:0;overflow:hidden}
#v115RxWorkspaceModal .u360d-inline{position:static;inset:auto;display:block;width:100%;height:100%;padding:0;background:transparent;backdrop-filter:none;animation:none;box-sizing:border-box}
#v115RxWorkspaceModal .u360d-inline>.u360d-shell{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto;width:100%;height:100%;max-height:100%;min-height:0;min-width:0;box-sizing:border-box;overflow:hidden;border:0;box-shadow:none;border-radius:0;animation:none}
#v115RxWorkspaceModal .u360d-inline .u360d-head{grid-row:1;min-width:0;padding:9px 4px;border-bottom:1px solid #e1e8ee;background:#fff}
#v115RxWorkspaceModal .u360d-inline .u360d-title{font-size:17px}
#v115RxWorkspaceModal .u360d-inline .u360d-body{grid-row:2;min-height:0;min-width:0;overflow:auto!important;overscroll-behavior:contain;padding:12px 4px}
#v115RxWorkspaceModal .u360d-inline .u360d-error{grid-row:3;min-width:0;max-height:90px;overflow:auto}
#v115RxWorkspaceModal .u360d-inline .u360d-footer{grid-row:4;position:relative;bottom:auto;min-width:0;flex-wrap:wrap;padding:8px 4px;background:#f8fbfd}
#v115RxWorkspaceModal .u360d-inline .u360d-footer button{min-height:40px;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:7px 12px;font-size:13px}
#v115RxWorkspaceModal .v115-rx-care-form .u360d-field:has(>input[type="checkbox"]){display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:8px}
#v115RxWorkspaceModal .v115-rx-care-form .u360d-field>input[type="checkbox"]{grid-column:1;grid-row:1;width:18px!important;height:18px!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;accent-color:#0866a6}
#v115RxWorkspaceModal .v115-rx-care-form .u360d-field:has(>input[type="checkbox"])>.u360d-field-label{grid-column:2;grid-row:1;line-height:1.4}
/* Protocol and pack review uses the same editor region as care forms. */
#v115RxWorkspaceModal .v26-a35-use-inline{height:100%;min-height:0;min-width:0}
#v115RxWorkspaceModal .v26-a35-use-inline>.v26-a35-use-template{display:flex;flex-direction:column;width:100%;height:100%;max-height:none;min-height:0;min-width:0;overflow:hidden;border:0;border-radius:0;box-shadow:none;padding:0;background:#fff}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-action-modal-head{padding:8px 4px;flex:none}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-action-modal-head strong{font-size:17px}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a35-use-start{padding:7px 4px;flex-wrap:wrap;gap:6px 12px;flex:none}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a35-use-toolbar{padding:7px 4px;flex-wrap:wrap;flex:none}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a35-use-summary{margin:6px 4px;padding:7px 9px;flex:none}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a35-use-list{overflow:auto;min-height:0;min-width:0;flex:1;padding:6px 4px;overscroll-behavior:contain}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a35-use-row{grid-template-columns:18px minmax(0,1fr);padding:8px;gap:8px}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a35-use-main{min-width:0}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a36-use-title{flex-wrap:wrap}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a35-use-check input{width:16px!important;height:16px!important;min-height:0!important;padding:0!important;margin:0!important}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a35-use-edit{grid-template-columns:minmax(65px,.8fr) minmax(55px,.6fr) minmax(120px,1.8fr) minmax(65px,.8fr);gap:6px}
#v115RxWorkspaceModal .v26-a35-use-inline input,
#v115RxWorkspaceModal .v26-a35-use-inline select{box-sizing:border-box;min-width:0;max-width:100%}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a36-pack-footer{position:static;flex:none;margin:0;padding:8px 4px;border-top:1px solid #e1e8ee;background:#f8fbfd}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a36-pack-footer button{min-width:0;min-height:36px;padding:7px 12px;font-size:13px}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a35-use-list{align-content:start}
#v115RxWorkspaceModal .v26-a35-use-inline .v26-a36-pack-footer button:not(.primary){border:1px solid #c8d7e1;border-radius:9px;background:#fff;color:#25485e;font-weight:700}
#v115RxWorkspaceModal .v115-rx-care-editing>.v115-rx-column-head .v115-rx-more-actions{display:none}
/* Browse and edit share the right-hand panel; biology keeps its own layout. */
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v26-prescription-create-section>.v26-section-body{grid-template-columns:320px minmax(0,1fr)!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v115-rx-left-column{grid-template-rows:auto minmax(0,1fr)!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v115-rx-left-column .v26-prescription-sticky-tools{overflow:auto;min-height:0}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v115-rx-right-column>.v115-rx-browse{grid-row:2;min-height:0;overflow:auto;padding:8px 4px;overscroll-behavior:contain}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v115-rx-browse[hidden]{display:none!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-choosing .v115-rx-right-column{grid-template-rows:auto minmax(0,1fr)!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-choosing .v115-rx-right-column>.v115-rx-form,
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-choosing .v115-rx-right-column>.v26-prescription-submit-sticky,
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-choosing .v115-rx-right-column>.v115-rx-care-mount,
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-choosing .v115-rx-more-actions,
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-choosing .v115-rx-weight-slot{display:none!important}
#v115RxWorkspaceModal #v26TabPrescriptions [data-rx-back-results]{margin-left:auto;border:1px solid #c8d7e1;border-radius:9px;background:#fff;color:#25485e;min-height:32px;padding:6px 10px;font-size:12px;font-weight:700;white-space:nowrap}
#v115RxWorkspaceModal #v26TabPrescriptions [data-rx-back-results][hidden]{display:none!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential #v26CatalogResults{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential #v26CatalogResults:empty{display:none}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential #v26CatalogResults>.v26-search-empty,
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential #v26CatalogResults>.v26-medication-suggestions-head{grid-column:1/-1}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v26-catalog-option{min-width:0;margin:0;align-items:start;padding:12px!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v26-catalog-option>div{min-width:0}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v26-catalog-option strong{font-size:14px;overflow-wrap:anywhere}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v26-catalog-option small{font-size:12px}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v115-rx-browse .v26-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v26-medication-search-first{padding:9px;margin-top:8px}
@media(min-width:1650px){
 #v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential #v26CatalogResults,
 #v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v115-rx-browse .v26-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v26-catalog-results,
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v26-quick-menu{max-height:none!important;overflow:visible!important;border:0;background:transparent}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v26-catalog-option{border:1px solid #d8e3ea!important;border-radius:10px}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v115-rx-left-column .v26-quick-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v26-catalog-option{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
/* Keep search directly below categories in the same left-hand location. */
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential .v115-rx-left-column{grid-template-rows:auto minmax(0,max-content) auto minmax(0,1fr)!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-search-dock{grid-row:3;min-width:0;margin-top:12px;padding:10px;border:1px solid #bfd9ec;border-radius:12px;background:#eef7ff}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-search-dock[hidden]{display:none!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-search-dock .v26-catalog-search,
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-search-dock .v26-family-search{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;width:100%!important;min-width:0!important;box-sizing:border-box;margin:0!important;padding:0!important;border:0;border-radius:0;background:transparent}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-search-dock label[hidden]{display:none!important}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-search-dock label>span{font-size:11px;font-weight:800;text-transform:uppercase;color:#60798b;line-height:15px}
#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-search-dock input{width:100%;box-sizing:border-box;min-width:0;min-height:42px;height:42px;border:1px solid #b9cede;border-radius:10px;padding:10px 12px 10px 36px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b70ad' stroke-width='2.5'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") no-repeat 11px center!important;background-size:18px 18px!important;font:600 12px system-ui,-apple-system,"Segoe UI",sans-serif}

#v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-search-dock input:focus{outline:2px solid #1785c3;outline-offset:2px}
/* Match bulk prescription actions to the compact prescription buttons. */
#v26TabPrescriptions .v26-prescription-batch button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px!important;padding:7px 11px!important;border:1px solid #c8d7e1!important;border-radius:9px!important;background:#fff!important;color:#25485e!important;font:700 12px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif!important;box-shadow:none!important;cursor:pointer}
#v26TabPrescriptions .v26-prescription-batch button:hover:not(:disabled){background:#eef6fc!important;border-color:#87b4d3!important}
#v26TabPrescriptions .v26-prescription-batch button.danger{background:#fff3f3!important;border-color:#efb9bd!important;color:#b4232d!important}
#v26TabPrescriptions .v26-prescription-batch button.danger:hover:not(:disabled){background:#ffe8ea!important;border-color:#de8c96!important}
#v26TabPrescriptions .v26-prescription-batch button:focus-visible{outline:2px solid #1785c3;outline-offset:2px}
#v26TabPrescriptions .v26-prescription-batch button:disabled{opacity:.5;cursor:default}
/* Keep planning compact: rhythm beside aligned dates, with presets below. */
#v26TabPrescriptions .v115-rx-form>.stage-schedule{padding:12px;border:1px solid #d6e5ef;border-radius:12px;background:#f8fbfe}
#v26TabPrescriptions .v115-rx-form>.stage-schedule>.v26-subsection-head{margin-bottom:9px}
#v26TabPrescriptions .v115-rx-form>.stage-schedule>.v26-grid-2{display:grid!important;grid-template-columns:minmax(170px,.65fr) minmax(0,2.6fr)!important;align-items:start;gap:12px!important}
#v26TabPrescriptions #v26ScheduleFields{min-width:0}
#v26TabPrescriptions #v26ScheduleFields>.v26-grid-2{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start;gap:10px!important}
#v26TabPrescriptions .stage-schedule .v26-field{min-width:0;margin:0}
#v26TabPrescriptions .stage-schedule .v26-field>input,
#v26TabPrescriptions .stage-schedule .v26-field>select{width:100%;min-width:0;box-sizing:border-box;min-height:38px!important;border-radius:9px}
#v26TabPrescriptions .stage-schedule .v26-field>small{margin-top:2px;line-height:1.35}
#v26TabPrescriptions .stage-schedule button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:32px!important;padding:6px 10px!important;border:1px solid #c8d7e1!important;border-radius:9px!important;background:#fff;color:#25485e;font:700 12px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif!important;box-shadow:none;cursor:pointer}
#v26TabPrescriptions .stage-schedule button:hover{background:#eef6fc;border-color:#87b4d3!important}
#v26TabPrescriptions .stage-schedule button.active{background:#e5f3ff;color:#086fa9;border-color:#1685bf!important}
#v26TabPrescriptions .stage-schedule button:focus-visible{outline:2px solid #1785c3;outline-offset:2px}
#v26TabPrescriptions .stage-schedule .v26-fixed-time-presets,
#v26TabPrescriptions .stage-schedule .v26-once-presets,
#v26TabPrescriptions .stage-schedule .v26-prn-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:9px}
#v26TabPrescriptions .stage-schedule .v26-fixed-time-presets>span{font-size:10px;font-weight:800;color:#617c90;text-transform:uppercase;margin-right:2px}
#v26TabPrescriptions .stage-schedule .v26-fixed-time-presets button{flex-direction:column;align-items:flex-start;gap:2px;text-align:left}
#v26TabPrescriptions .stage-schedule .v26-fixed-time-presets button small{font-size:10px;font-weight:500;color:#617c90}
#v26TabPrescriptions .stage-schedule .v115-rx-time-shortcuts{gap:6px;margin-bottom:7px}
#v26TabPrescriptions .stage-schedule #v26CustomInterval{margin-top:9px}
#v26TabPrescriptions .stage-schedule #v26SchedulePreview:empty{display:none}
@media(max-width:1100px){
 #v26TabPrescriptions .v115-rx-form>.stage-schedule>.v26-grid-2{grid-template-columns:minmax(0,1fr)!important}
}
#v26TabPrescriptions .stage-schedule .v115-rx-schedule-modes{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
#v26TabPrescriptions .stage-schedule .v115-rx-schedule-modes button{min-height:36px!important}
#v26TabPrescriptions .stage-schedule .v115-rx-schedule-modes button.active{background:#076da7;color:#fff;border-color:#076da7!important}
#v26TabPrescriptions .stage-schedule button[hidden]{display:none!important}
/* Mode buttons are the sole visible rhythm selector; keep the select for existing handlers. */
#v26TabPrescriptions .v115-rx-form>.stage-schedule.v115-rx-modes-visible>.v26-grid-2{grid-template-columns:minmax(0,1fr)!important}
#v26TabPrescriptions .v115-rx-form>.stage-schedule.v115-rx-modes-visible>.v26-grid-2>.v26-schedule-choice{display:none!important}

/* Medication revision stays in the current prescription / care-plan surface. */
.v115-rx-inline-medication{margin:0 0 12px;border:1px solid #93b5ec;border-radius:12px;background:#f8fbff;padding:14px;box-shadow:0 3px 14px #1d4ed110}
.v115-rx-inline-medication>.v26-action-modal{width:100%;max-width:none;max-height:none;margin:0;padding:0;background:transparent;box-shadow:none;border:0;overflow:visible}
.v115-rx-inline-medication .v26-a35-med-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.v115-rx-inline-medication .v26-a35-med-edit-grid .wide{grid-column:1/-1}
.v115-rx-inline-medication .v26-a35-med-edit-schedule>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}
.v115-rx-inline-medication [hidden]{display:none!important}
.v115-rx-inline-medication .v115-rx-change-schedule{display:flex;align-items:center;gap:8px;margin-top:8px;font-weight:600}
.v115-rx-change-schedule input[type=checkbox]{width:16px;height:16px;flex:0 0 16px}
.v115-rx-inline-medication .v26-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;position:sticky;bottom:0;background:#f8fbff;padding:8px 0;z-index:2}
.v115-rx-plan-view{display:flex;gap:4px}
.v115-rx-plan-view button[aria-pressed=true]{background:#e8f0ff;color:#164d9b;border-color:#8db2ee;font-weight:700}
.v115-rx-agenda-counts{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.v115-rx-agenda-counts>span{border:1px solid #dbe4ee;background:#f8fafc;border-radius:8px;padding:6px 10px;font-size:12px}
.v115-rx-agenda-counts .overdue{color:#a61b1b;background:#fff1f1;border-color:#f3b8b8}
.v115-rx-agenda-counts .now{color:#8a4700;background:#fff8e8;border-color:#ebd39c}
.v115-rx-agenda-counts .in_progress{color:#1d4e9e;background:#eef5ff}
.v115-rx-agenda-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.v115-rx-agenda-group,.v115-rx-agenda-prn,.v115-rx-agenda-completed{border:1px solid #dce4ed;border-radius:10px;overflow:hidden;background:#fff}
.v115-rx-agenda-group>header,.v115-rx-agenda-prn>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:#f0f5fc;color:#214571}
.v115-rx-agenda-group>header strong{font-size:18px;font-variant-numeric:tabular-nums}
.v115-rx-agenda-group>header span,.v115-rx-agenda-prn>header span{font-size:11px}
.v115-rx-agenda-entry{display:flex;align-items:center;gap:8px;padding:5px 10px;border-top:1px solid #edf1f5;border-left:3px solid #b8cadf}
.v115-rx-agenda-entry.overdue{border-left-color:#d14343;background:#fff7f7}
.v115-rx-agenda-entry.now{border-left-color:#d29319;background:#fffcf2}
.v115-rx-agenda-entry.in_progress{border-left-color:#2563eb}
.v115-rx-agenda-entry.selected{outline:2px solid #3b82f6;outline-offset:-2px;background:#eef5ff}
.v115-rx-agenda-entry .v115-rx-agenda-item{display:grid;gap:3px;flex:1;min-width:0;background:transparent;border:0;text-align:left;padding:7px 0;color:#23354b;box-shadow:none}
.v115-rx-agenda-item strong{white-space:normal;overflow-wrap:anywhere;font-size:13px}
.v115-rx-agenda-item span,.v115-rx-agenda-status{font-size:11px}
.v115-rx-agenda-item:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.v115-rx-agenda-entry.overdue .v115-rx-agenda-status{color:#ad2020;font-weight:700}
.v115-rx-agenda-entry.now .v115-rx-agenda-status{color:#945400;font-weight:700}
.v115-rx-agenda-prn,.v115-rx-agenda-completed{margin-top:12px}
.v115-rx-agenda-prn>article{display:flex;align-items:center;gap:8px;padding:10px 12px;border-top:1px solid #edf1f5}
.v115-rx-agenda-prn>article>div{flex:1;display:grid;gap:4px}
.v115-rx-agenda-prn small{font-size:11px;color:#53657b}
.v115-rx-agenda-completed>summary{padding:10px 12px;cursor:pointer;color:#53657b;font-weight:600}
@media(max-width:900px){.v115-rx-agenda-groups{grid-template-columns:1fr}.v115-rx-inline-medication .v26-a35-med-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.v115-rx-edit-time-models{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.v115-rx-edit-time-models button{padding:4px 7px;font-size:11px;min-height:28px;background:white;border:1px solid #c7d9f1;border-radius:6px;color:#244f85}
.v115-rx-inline-medication .v26-action-modal-head{padding:8px 4px 12px}
.v115-rx-inline-medication .v26-a35-med-edit-grid{padding:10px 4px}
.v115-rx-inline-medication .v26-a35-med-edit-grid label{font-size:12px;font-weight:600;line-height:1.35}
.v115-rx-inline-medication .v26-a35-med-edit-grid input,.v115-rx-inline-medication .v26-a35-med-edit-grid select{font-size:13px;min-height:34px}
.v115-rx-inline-medication .v26-a35-med-edit-grid label.v115-rx-change-schedule{flex-direction:row;align-items:center;justify-content:flex-start;font-size:12px}
.v115-rx-inline-medication .v26-a35-med-edit-grid .v115-rx-change-schedule input{min-height:16px;max-width:16px;margin:0}
.v115-rx-inline-medication .v26-actions>button,.v115-rx-plan-view>button,.v115-rx-agenda-entry>button,.v115-rx-agenda-prn article>button,[data-rx-plan-edit]{font:600 12px/1.2 system-ui,sans-serif;min-height:32px;padding:6px 10px;border:1px solid #c5d3e4;border-radius:7px;background:#fff;color:#27456c;cursor:pointer}
.v115-rx-inline-medication .v26-actions>button.primary{background:#185aab;border-color:#185aab;color:#fff}
.v115-rx-inline-medication button:disabled{opacity:.6;cursor:wait}
.v115-rx-plan-view>button:focus-visible,.v115-rx-agenda-entry>button:focus-visible,.v115-rx-agenda-prn article>button:focus-visible,[data-rx-plan-edit]:focus-visible{outline:2px solid #2563eb;outline-offset:2px}

/* Compact medication revision dialog, requested for active prescriptions. */
dialog.v115-rx-medication-dialog{position:fixed;inset:0;width:min(660px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 64px);margin:auto;padding:14px;border:1px solid #b5cbe7;border-radius:14px;background:#f8fbff;overflow:auto;box-shadow:0 18px 60px #122d5050;color:#23354b}
dialog.v115-rx-medication-dialog::backdrop{background:rgba(15,35,60,.32)}
dialog.v115-rx-medication-dialog .v26-a35-med-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
dialog.v115-rx-medication-dialog .v26-a35-med-edit-schedule>div{grid-template-columns:repeat(2,minmax(0,1fr))}
dialog.v115-rx-medication-dialog .v26-action-modal-head strong{font-size:17px}
dialog.v115-rx-medication-dialog .v26-action-modal-head small{font-size:11px;line-height:1.4}
dialog.v115-rx-medication-dialog .v26-actions{padding:10px 0 0;margin-top:6px}
.v115-rx-shortcuts{display:flex;gap:6px;min-height:28px;margin:0 0 6px}
.v115-rx-shortcuts>button{flex:1;min-height:28px;border:1px solid #c5d5e9;border-radius:7px;background:#fff;color:#2b4e78;font:600 12px/1.2 system-ui,sans-serif;padding:4px 8px;cursor:pointer}
.v115-rx-shortcuts>button[aria-pressed=true]{color:#154e9b;background:#e6f0ff;border-color:#7ba7e7}
.v115-rx-shortcuts>button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.v115-rx-shortcut-head{grid-column:1/-1;padding:4px 0 10px;display:grid;gap:4px}
.v115-rx-shortcut-head strong{font-size:15px;color:#23466f}
.v115-rx-shortcut-head small{font-size:12px;color:#5b7089}

.v115-rx-edit-error{margin:8px 4px;padding:10px 12px;border:1px solid #edb3b3;border-radius:8px;background:#fff1f1;color:#a52323;font:600 12px/1.4 system-ui,sans-serif;outline:none}
/* Inline packs fill their editor column; legacy full-screen pack rules must not widen it. */
#v115RxWorkspaceModal .v115-rx-care-mount{min-width:0}
#v115RxWorkspaceModal #v26A35UseTemplate.v26-a35-use-inline{width:100%;max-width:100%;box-sizing:border-box}
#v115RxWorkspaceModal #v26A35UseTemplate.v26-a35-use-inline>.v26-a35-use-template{
  width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box;
  height:100%;max-height:100%!important;overflow:hidden!important;
}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a35-use-toolbar{flex-wrap:wrap!important}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a35-use-toolbar>span{flex:1 1 100%;overflow-wrap:anywhere}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a35-pack-add{flex:1 1 340px!important;min-width:0!important;max-width:100%;flex-wrap:wrap}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a35-pack-add input{width:0;min-width:0;flex:1 1 180px}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a35-use-list{grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;overflow-x:hidden}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a36-pack-group{min-width:0}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a36-pack-group.lab{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))!important}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a36-use-title>b{min-width:0;overflow-wrap:anywhere}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a35-use-edit{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a35-use-edit label,
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a35-use-instruction{min-width:0}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-a36-pack-footer{flex-wrap:wrap;box-sizing:border-box;max-width:100%}

/* A native confirmation stays above the prescription and medication editor dialogs. */
dialog.v115-rx-back-confirm{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #c9dbe6;border-radius:14px;color:#25485e;background:#fff;box-shadow:0 20px 60px #102c4a40}
dialog.v115-rx-back-confirm::backdrop{background:#102c4a66}
dialog.v115-rx-back-confirm .v26-action-modal-head small{font-size:13px;line-height:1.5;margin-top:8px}
dialog.v115-rx-back-confirm .v26-actions{padding:12px 16px;margin:0;flex-wrap:wrap}
dialog.v115-rx-back-confirm button{min-height:38px;padding:8px 12px;border:1px solid #bdcfdd;border-radius:9px;background:#fff;color:#25485e;font:600 13px system-ui;cursor:pointer}
dialog.v115-rx-back-confirm button.primary{background:#0d5fa8;border-color:#0d5fa8;color:#fff}

/* Patient-specific pack rhythms use the same compact form, without editing the template. */
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-schedule{min-width:0;margin:8px 0 0;padding:8px 10px;border:1px solid #d6e3eb;border-radius:9px;background:#f8fbfd}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-schedule legend{font-size:11px;font-weight:800;color:#315d76;padding:0 4px}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-schedule-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-schedule label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:11px;font-weight:700;color:#47677d}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-schedule input,#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-schedule select{width:100%;min-height:32px;padding:5px 7px;border:1px solid #c5d7e2;border-radius:7px;background:#fff;font-size:12px}
#v115RxWorkspaceModal #v26A35UseTemplate [data-pack-schedule-models]{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
#v115RxWorkspaceModal #v26A35UseTemplate [data-pack-schedule-models] button{border:1px solid #bed4e3;border-radius:7px;background:#fff;color:#255675;padding:5px 8px;font-size:11px;cursor:pointer}
#v115RxWorkspaceModal #v26A35UseTemplate [data-pack-schedule-preview]{display:block;margin-top:5px;color:#517287;font-size:11px}
#v115RxWorkspaceModal #v26A35UseTemplate [data-pack-schedule-error]{margin-top:6px;color:#a12626;font-size:12px;font-weight:700}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-schedule [hidden]{display:none!important}

/* The review remains readable in the pack's scroll area; footer actions stay fixed. */
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review{min-width:0;border:1px solid #c7dae6;border-radius:10px;background:#fff}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review>summary{padding:10px 12px;background:#edf6fc;color:#204f6e;font-size:13px;font-weight:800;cursor:pointer}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.4}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review th,#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review td{padding:8px;vertical-align:top;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid #e1eaf0;color:#31556b}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review thead th{font-size:11px;background:#f8fafc;color:#47687d}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review th:first-child{width:24%}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review th:nth-child(2){width:12%}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review th:nth-child(3){width:9%}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review th:nth-child(4){width:27%}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review small{display:block;font-size:11px;font-weight:400;margin-top:4px}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review-caption{padding:6px 8px;font-size:11px;color:#5d798a;text-align:left}
#v115RxWorkspaceModal #v26A35UseTemplate [data-pack-review-jump]{display:inline;min-height:0!important;height:auto!important;border:0;padding:0 4px;background:transparent;color:#215b7e;font:inherit;text-decoration:underline;cursor:pointer}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-review p{padding:10px;font-size:12px;color:#5d798a}

/* Align the three medication fields in the desktop prescription window. */
@media(min-width:901px){
 #v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-form:has(>#v26DoseSafetyBox:not([hidden]))>:is(#v26DoseSafetyBox,#v26AdministrationBox)>.v26-subsection-head{min-height:26px;box-sizing:border-box;margin-bottom:6px!important}
 #v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-form:has(>#v26DoseSafetyBox:not([hidden])) :is(#v26DoseSafetyBox,#v26AdministrationBox) .v26-field{display:flex;flex-direction:column;align-items:stretch;gap:6px;line-height:16px;margin:0}
 #v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-form:has(>#v26DoseSafetyBox:not([hidden])) :is(#v26DoseAmount,#v26DoseUnit,#v26AdministrationRoute){height:48px!important;min-height:48px!important;max-height:48px;box-sizing:border-box;width:100%;margin:0!important;padding:8px 10px}
}

/* Medication choice groups strengths; preparation retains a concrete presentation. */
#v115RxWorkspaceModal .v115-rx-group-routes{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:2px 7px;border:1px solid #b8d3e4;border-radius:20px;color:#155a87;background:#eef7ff;font-size:11px;font-weight:700}
#v115RxWorkspaceModal .v115-rx-presentation{min-width:0;padding:12px;border:1px solid #cddde8;border-radius:10px;background:#f7fbff}
#v115RxWorkspaceModal .v115-rx-presentation .v26-subsection-head{display:flex;flex-wrap:wrap;gap:4px 12px;margin-bottom:8px}
#v115RxWorkspaceModal .v115-rx-presentation .v26-subsection-head small{color:#547083}
#v115RxWorkspaceModal .v115-rx-presentation select{width:100%;min-width:0;max-width:100%;font-size:12px}

/* Personal favourite state: explicit colour in the prescription header. */
#v26SelectedCatalog .v26-selected-actions .v26-favorite-toggle.active{color:#92400e!important;background:#fef3c7!important;border-color:#d97706!important;font-weight:800}



/* Pack corrections stay alongside the patient draft. */
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-preparation{min-width:0;margin:8px 0;padding:10px;border:1px solid #cbd5e1;border-radius:8px}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-preparation-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-preparation-fields label{display:flex;flex-direction:column;min-width:0;gap:4px;font-size:11px;font-weight:650;color:#34536a}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-preparation-fields input,#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-preparation-fields select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:7px;padding:7px 9px;background:#fff;color:#18374b;font:inherit;font-size:12px;min-height:32px}
#v115RxWorkspaceModal #v26A35UseTemplate .v26-pack-field-error{display:block;white-space:normal;text-align:left;color:#9f1239;background:#fff1f2;border:0;border-radius:4px;padding:5px;font-size:12px;line-height:1.4;cursor:pointer}
#v115RxWorkspaceModal #v26A35UseTemplate [aria-invalid="true"]{border-color:#be123c;outline:1px solid #be123c}


/* Keep prescription actions reachable when zoom or a short/narrow viewport reduces space. */
@media(max-width:900px){
 #v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential:not(.v115-rx-choosing) .v26-prescription-create-section>.v26-section-body{grid-template-columns:minmax(0,1fr)!important;overflow-x:hidden!important}
 #v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential:not(.v115-rx-choosing) .v115-rx-left-column{display:none!important}
 #v115RxWorkspaceModal #v26TabPrescriptions .v115-rx-sequential:not(.v115-rx-choosing) .v115-rx-right-column{grid-column:1!important;min-width:0}
}
@media(max-height:650px){
 #v115RxWorkspaceModal .v115-rx-dialog-header{padding:6px 10px;gap:8px;max-height:90px;overflow:auto}
 #v115RxWorkspaceModal .v115-rx-dialog-allergies{max-height:56px;overflow:auto}
 #v115RxWorkspaceModal .u360d-inline .u360d-head{padding:5px 4px;max-height:80px;overflow:auto}
 #v115RxWorkspaceModal .u360d-inline .u360d-footer{padding:5px 4px;gap:6px}
}
