/* V2.1.27 — Unified Plugin portal chrome */
body.lmp-portal-surface .lmp-v814-heading,
body.lmp-portal-surface .lmp-plugin-credit{display:none!important}

/* The Theme owns the single portal header; keep it identical across all portal surfaces. */
body.lmp-portal-surface .lmp-portal-auth-nav{
  width:100%!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;
  padding:14px clamp(18px,4vw,54px)!important;background:rgba(255,255,255,.98)!important;
  box-shadow:0 8px 28px rgba(7,52,65,.07)!important;display:grid!important;
  grid-template-columns:minmax(190px,1fr) auto minmax(190px,1fr)!important;
  align-items:center!important;gap:18px!important;direction:rtl!important;position:relative!important;z-index:100!important;
  box-sizing:border-box!important;
}
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-brand{grid-column:1!important;justify-self:start!important;min-width:0!important;direction:rtl!important}
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-info{display:none!important}
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links{grid-column:2!important;justify-content:center!important;flex-wrap:nowrap!important;gap:6px!important;direction:rtl!important}
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:11px 18px!important;border-radius:12px!important;color:#4d6570!important;
  background:transparent!important;box-shadow:none!important;font-size:14px!important;font-weight:800!important;white-space:nowrap!important;
}
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:hover{background:#eef8f8!important;color:#087f83!important}
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:nth-child(3){background:#0b7d83!important;color:#fff!important;box-shadow:0 8px 22px rgba(7,125,131,.16)!important}
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:last-child{
  position:absolute!important;left:clamp(18px,4vw,54px)!important;top:50%!important;transform:translateY(-50%)!important;
  background:#0b7d83!important;color:#fff!important;box-shadow:0 8px 22px rgba(7,125,131,.16)!important;
  font-size:14px!important;
}
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:last-child::after{content:none!important}

/* Workspace/page content must not inherit the old generic page-heading chrome. */
body.lmp-portal-surface .lab-page > .lmp-v814-heading,
body.lmp-portal-surface .lab-page-portal > .lmp-v814-heading{display:none!important}

@media(max-width:700px){
 body.lmp-portal-surface .lmp-portal-auth-nav{grid-template-columns:1fr auto!important;padding:10px 14px!important}
 body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important}
 body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a{width:100%!important;box-sizing:border-box!important}
 body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:last-child{position:static!important;transform:none!important;grid-column:1/-1!important;order:4!important}
}


/* V2.1.28 — Legacy Plugin header/menu is never visible on Theme portal surfaces. */
body.lmp-portal-surface .lmp-v814-nav,
body.lmp-portal-surface .lmp-v814-nav + *,
body.lmp-portal-surface .lmp-v814-heading { display:none!important; }
body.lmp-portal-surface .lmp-portal-auth-nav { min-height:72px!important; }
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-brand { display:flex!important; align-items:center!important; gap:10px!important; text-decoration:none!important; }
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-brand img { width:42px!important; height:42px!important; object-fit:contain!important; border-radius:10px!important; }
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-brand strong { color:#17333b!important; font-size:13px!important; white-space:nowrap!important; }
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-brand small { display:none!important; }
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a.is-active { background:#0b7d83!important; color:#fff!important; box-shadow:0 8px 22px rgba(7,125,131,.16)!important; }
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-site { position:absolute!important; left:clamp(18px,4vw,54px)!important; top:50%!important; transform:translateY(-50%)!important; display:inline-flex!important; align-items:center!important; justify-content:center!important; padding:11px 18px!important; border-radius:12px!important; background:#0b7d83!important; color:#fff!important; font-size:14px!important; font-weight:850!important; text-decoration:none!important; }
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-site:hover { background:#096c71!important; color:#fff!important; }

/* V2.1.30 — Remove the doctor collaboration link from the doctor login surface. */
body.lmp-portal-surface .lmp-v815-auth .auth-links a[href*="lab-doctor-request"]{
  display:none!important;
}
body.lmp-portal-surface .lmp-v815-auth .auth-links:has(a[href*="lab-doctor-request"]){
  display:none!important;
}


/* V85.46 / V2.1.69 — premium portal navigation + mobile containment */
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a{
  min-height:44px!important;
  border:1px solid #d7e9ea!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#ffffff,#f3f9f9)!important;
  box-shadow:0 7px 18px rgba(7,52,65,.06)!important;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease!important;
}
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:hover{transform:translateY(-1px)!important;box-shadow:0 10px 22px rgba(7,52,65,.09)!important}
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a.is-active,
body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:nth-child(3){background:linear-gradient(135deg,#078f98,#086f78)!important;color:#fff!important;border-color:#078f98!important}
@media(max-width:700px){
  body.lmp-portal-surface .lmp-portal-auth-nav{width:100%!important;max-width:100%!important;padding:9px 8px!important;gap:8px!important;box-sizing:border-box!important}
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-brand{max-width:100%!important}
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links{gap:6px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a{padding:9px 5px!important;font-size:14px!important;min-width:0!important;white-space:nowrap!important}
}
@media(max-width:430px){
  body.lmp-portal-surface .lmp-portal-auth-nav{padding-inline:6px!important}
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links{gap:5px!important}
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a{font-size:14px!important;padding-inline:3px!important}
}

/* V85.47 / V2.1.70 — premium three-item portal navigation on mobile */
@media(max-width:700px){
  body.lmp-portal-surface .lmp-portal-auth-nav{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;max-width:100%!important;
    padding:9px 8px!important;gap:8px!important;
    box-sizing:border-box!important;
  }
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-brand{
    grid-column:1!important;justify-self:stretch!important;min-width:0!important;
  }
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links{
    grid-column:1!important;grid-row:auto!important;
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;width:100%!important;min-width:0!important;
  }
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a{
    position:static!important;transform:none!important;
    width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;
    padding:0 5px!important;box-sizing:border-box!important;
    border-radius:13px!important;font-size:14px!important;line-height:1.2!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:last-child{
    grid-column:auto!important;order:initial!important;
    background:linear-gradient(135deg,#078f98,#086f78)!important;color:#fff!important;
    border-color:#078f98!important;
  }
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-site{display:none!important}
}
@media(max-width:390px){
  body.lmp-portal-surface .lmp-portal-auth-nav{padding-inline:5px!important}
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links{gap:4px!important}
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a{font-size:14px!important;padding-inline:3px!important}
}

/* V85.48 / V2.1.71 — Premium portal mobile navigation and balanced side gutters */
@media(max-width:700px){
  body.lmp-portal-surface .lmp-portal-auth-nav{
    padding-inline:14px!important;
    border-radius:0 0 18px 18px!important;
  }
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links{gap:7px!important}
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a{
    min-height:46px!important;
    height:46px!important;
    padding-inline:8px!important;
    border-radius:14px!important;
    font-size:14px!important;
    border:1px solid #d5e7e8!important;
    background:linear-gradient(180deg,#fff,#f3f9f9)!important;
    box-shadow:0 7px 18px rgba(7,52,65,.07)!important;
    color:#294b54!important;
  }
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:hover,
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:focus-visible{
    color:#087d89!important;
    background:linear-gradient(135deg,#edf9f8,#e4f5f4)!important;
    border-color:#b9dfe0!important;
  }
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a.is-active,
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a:nth-child(3){
    color:#fff!important;
    background:linear-gradient(135deg,#087f89,#076a73)!important;
    border-color:#087f89!important;
    box-shadow:0 10px 24px rgba(7,125,131,.18)!important;
  }
  body.lmp-portal-surface .lmp-v814-shell{width:calc(100% - 32px)!important}
}
@media(max-width:430px){
  body.lmp-portal-surface .lmp-portal-auth-nav{padding-inline:12px!important}
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links{gap:6px!important}
  body.lmp-portal-surface .lmp-portal-auth-nav .portal-auth-links a{font-size:8.5px!important;padding-inline:6px!important}
  body.lmp-portal-surface .lmp-v814-shell{width:calc(100% - 28px)!important}
}
