/* EtkinMadde 7.3: built against user's 2026-10-22 live-site archive.
   The full site contains many historical CSS layers. All drug-specific layout
   adjustments below are deliberately scoped and loaded LAST. */

/* Exactly the same normal-flow header/banner rhythm as emr_ingredient pages. */
body.single-em_drug .site-header {
  position:relative!important;
  top:auto!important;
  height:auto;
  z-index:20;
}
body.single-em_drug .em72-page {
  position:relative;
  isolation:isolate;
  display:block;
  margin:0!important;
  padding:0 0 44px!important;
  background:#f3f6fa;
  overflow:visible!important;
}
body.single-em_drug .em72-page>.em72-scene {
  top:0;
  height:235px;
  position:absolute;
  z-index:-1;
}
body.single-em_drug .em72-page>.em72-shell {
  display:block;
  position:relative;
  z-index:1;
  width:min(1190px,calc(100% - 32px));
  margin:0 auto!important;
  padding:38px 0 0!important;
  background:transparent!important;
  transform:none!important;
}
body.single-em_drug .em72-page .em72-crumb {
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center;
  flex-wrap:wrap;
  position:relative!important;
  inset:auto!important;
  z-index:1!important;
  width:100%;
  min-height:18px;
  margin:0 0 17px!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
  background:none!important;
  color:#4b6280;
  font-size:12px;
  line-height:1.45;
  overflow:visible!important;
  transform:none!important;
}
body.single-em_drug .em72-page .em72-crumb a {color:#174780;font-weight:750}
body.single-em_drug .em72-page .em72-hero {margin-top:0!important}
/* On return visits the browser may restore a slightly scrolled position.
   Never pin the breadcrumbs over the hero: they stay in normal document flow. */

/* Equal-height columns without a dead white area under the embedded PDF.
   Viewer, content and iframe all flex to fill the available height. */
body.single-em_drug .em72-page .em63-grid {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.06fr)!important;
  align-items:stretch!important;
  gap:16px!important;
}
body.single-em_drug .em72-page .em63-left,
body.single-em_drug .em72-page .em63-right {min-width:0;min-height:0;display:flex;flex-direction:column}
body.single-em_drug .em72-page .em63-right .em62-pdf-panel {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  height:100%;
  padding:11px;
}
body.single-em_drug .em72-page .em63-right .em-pdf-viewer {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  width:100%;
  height:100%;
  min-height:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  overflow:hidden;
}
body.single-em_drug .em72-page .em63-right .em-pdf-viewer__tabs {
  flex:0 0 auto;
  margin-bottom:10px;
  padding:0;
}
body.single-em_drug .em72-page .em63-right .em-pdf-viewer__content {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
  height:auto;
  margin:0;
  border:1px solid #dce5ef;
  border-radius:12px;
  overflow:hidden;
}
body.single-em_drug .em72-page .em63-right .em-pdf-viewer__frame {
  display:block;
  flex:1 1 auto;
  width:100%;
  min-height:440px;
  height:100%;
  border:0;
}
body.single-em_drug .em72-page .em63-right .em-pdf-viewer__fallback,
body.single-em_drug .em72-page .em63-right .em-pdf-viewer__toolbar {display:none!important}
body.single-em_drug .em72-page .em63-related-grid {margin-top:14px}

@media(max-width:1024px){
  body.single-em_drug .em72-page .em63-grid {grid-template-columns:minmax(0,1fr)!important}
  body.single-em_drug .em72-page .em63-right .em62-pdf-panel {height:auto}
  body.single-em_drug .em72-page .em63-right .em-pdf-viewer {height:auto}
  body.single-em_drug .em72-page .em63-right .em-pdf-viewer__frame {height:clamp(480px,72vh,730px)!important;min-height:480px;flex:none}
}
@media(max-width:550px){
  body.single-em_drug .em72-page>.em72-shell {width:calc(100% - 18px);padding-top:18px!important}
  body.single-em_drug .em72-page>.em72-scene {height:195px}
  body.single-em_drug .em72-page .em72-crumb {margin-bottom:15px!important}
  body.single-em_drug .em72-page .em63-right .em-pdf-viewer__frame {height:70vh!important;min-height:480px}
}
