
/* v1.3.6: force hidden account subforms/panels to stay hidden even when theme CSS is aggressive. */
.nah-sdp-dock [hidden],
.nah-sdp-dock form[hidden],
.nah-sdp-popover[hidden],
.nah-sdp-login-form[hidden],
.nah-sdp-forgot-form[hidden]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
@charset "UTF-8";
:root{--nah-sdp-accent:#0f766e;--nah-sdp-z:999999;--nah-sdp-bar-h:66px}
.nah-sdp-dock,.nah-sdp-dock *{box-sizing:border-box;font-family:Arial,"Roboto","Noto Sans","Segoe UI",sans-serif!important;letter-spacing:normal!important;text-transform:none!important}
.nah-sdp-dock{position:fixed;right:16px;top:50%;transform:translateY(-50%);z-index:var(--nah-sdp-z);display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none}
.nah-sdp-dock a,.nah-sdp-dock button{pointer-events:auto;text-decoration:none!important}
.nah-sdp-dock-btn{width:132px;min-height:46px;border:0;border-radius:16px;background:#fff!important;color:#0f172a!important;box-shadow:0 12px 32px rgba(15,23,42,.16);display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:9px 13px;cursor:pointer;font-size:13px;font-weight:700;line-height:1.2;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease}
.nah-sdp-dock-btn:hover,.nah-sdp-dock-btn.nah-sdp-active{background:var(--nah-sdp-accent)!important;color:#fff!important;transform:translateX(-2px);box-shadow:0 14px 36px rgba(15,118,110,.28)}
.nah-sdp-dock-btn svg{width:22px;height:22px;display:block;flex:0 0 22px;fill:currentColor!important}
.nah-sdp-collapsed .nah-sdp-dock-btn{width:48px;justify-content:center;padding:12px}
.nah-sdp-collapsed .nah-sdp-dock-btn span{display:none!important}
.nah-sdp-dock-btn[data-nah-sdp-tooltip]{position:relative}
.nah-sdp-collapsed .nah-sdp-dock-btn[data-nah-sdp-tooltip]:hover:before{content:attr(data-nah-sdp-tooltip);position:absolute;right:58px;top:50%;transform:translateY(-50%);white-space:nowrap;background:#0f172a;color:#fff;border-radius:10px;padding:7px 10px;font-size:12px;box-shadow:0 8px 22px rgba(15,23,42,.2)}
.nah-sdp-toggle{display:flex}
.nah-sdp-popover{position:absolute;right:58px;top:0;width:min(620px,calc(100vw - 96px));max-height:min(82vh,760px);overflow:auto;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;box-shadow:0 24px 70px rgba(15,23,42,.22);padding:18px;pointer-events:auto;color:#0f172a}
.nah-sdp-search-popover{width:min(520px,calc(100vw - 96px))}.nah-sdp-account-popover{width:min(420px,calc(100vw - 96px))}.nah-sdp-icd10-popover{width:min(760px,calc(100vw - 96px));padding:12px;background:#f8fafc}
.nah-sdp-title{font-size:18px;font-weight:800;margin:0 0 10px;color:#0f172a}.nah-sdp-note{font-size:13px;color:#64748b;line-height:1.55;margin-bottom:12px}
.nah-sdp-search-form{display:flex;gap:8px;align-items:center;background:#f8fafc;border:1px solid #dbe4ee;border-radius:16px;padding:8px}.nah-sdp-search-input{flex:1;border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;font-size:15px!important;line-height:1.45!important;color:#0f172a!important;min-height:34px!important;padding:5px 8px!important}.nah-sdp-search-submit{width:38px;height:38px;border:0!important;border-radius:12px;background:var(--nah-sdp-accent)!important;color:#fff!important;display:flex;align-items:center;justify-content:center;cursor:pointer}.nah-sdp-search-submit svg{width:20px;height:20px;fill:currentColor}
.nah-sdp-results{margin-top:12px}.nah-sdp-empty,.nah-sdp-loading,.nah-sdp-error{padding:12px;border-radius:14px;background:#f1f5f9;color:#475569;font-size:13px}.nah-sdp-error{background:#fef2f2;color:#b91c1c}.nah-sdp-result-list{display:grid;gap:8px}.nah-sdp-result{display:flex;gap:10px;padding:10px;border-radius:14px;background:#fff;border:1px solid #e2e8f0;color:#0f172a!important}.nah-sdp-result:hover{border-color:var(--nah-sdp-accent);box-shadow:0 8px 18px rgba(15,118,110,.12)}.nah-sdp-thumb{width:52px;height:52px;object-fit:cover;border-radius:10px;background:#e2e8f0}.nah-sdp-result-body{display:grid;gap:3px}.nah-sdp-result-body strong{font-size:14px;line-height:1.35}.nah-sdp-result-body small{font-size:12px;color:#64748b;line-height:1.4}.nah-sdp-result-body em{font-size:11px;color:#94a3b8;font-style:normal}.nah-sdp-all-results,.nah-sdp-action{display:inline-flex;align-items:center;justify-content:center;margin-top:8px;border-radius:12px;background:var(--nah-sdp-accent)!important;color:#fff!important;font-weight:800;font-size:12px;padding:10px 12px;text-decoration:none!important}
.nah-sdp-login-form,.nah-sdp-forgot-form,.nah-sdp-account-card{display:grid;gap:12px}.nah-sdp-login-form label,.nah-sdp-forgot-form label{display:grid;gap:5px;font-size:13px;font-weight:700;color:#334155}.nah-sdp-login-form input,.nah-sdp-forgot-form input{width:100%;border:1px solid #dbe4ee!important;border-radius:12px!important;background:#fff!important;padding:10px 12px!important;min-height:42px!important;font-size:14px!important;color:#0f172a!important}.nah-sdp-submit,.nah-sdp-back,.nah-sdp-forgot-link{border:0;border-radius:12px;padding:11px 14px;cursor:pointer;font-weight:800}.nah-sdp-submit{background:var(--nah-sdp-accent)!important;color:#fff!important}.nah-sdp-back,.nah-sdp-forgot-link{background:#f1f5f9!important;color:#0f172a!important}.nah-sdp-login-options{display:flex;align-items:center;justify-content:space-between;gap:10px}.nah-sdp-remember{display:flex!important;grid-template-columns:auto 1fr;align-items:center;gap:6px}.nah-sdp-remember input{width:auto!important;min-height:auto!important}.nah-sdp-signup,.nah-sdp-hotline,.nah-sdp-home-link,.nah-sdp-message{font-size:13px;line-height:1.5}.nah-sdp-signup{padding:10px;border-radius:12px;background:#ecfeff}.nah-sdp-signup a{font-weight:900;color:#0f766e!important}.nah-sdp-home-link{color:#0f766e!important;font-weight:800}.nah-sdp-user{font-size:16px;font-weight:800;color:#0f172a}.nah-sdp-actions{display:flex;flex-wrap:wrap;gap:8px}
.nah-sdp-standalone-search{max-width:760px;margin:0 auto}.nah-sdp-menu-search-item{display:flex!important;align-items:center}.nah-sdp-menu-search{min-width:280px}.nah-sdp-night-icon{display:block}.nah-sdp-night-btn svg{transition:transform .18s ease,opacity .18s ease}.nah-sdp-night-active .nah-sdp-night-btn svg{transform:scale(1.04)}html.nah-sdp-night-active body{background:var(--nah-sdp-night-bg,#0b1120)!important;color:var(--nah-sdp-night-text,#e5e7eb)!important}html.nah-sdp-night-active a{color:var(--nah-sdp-night-link,#5eead4)}html.nah-sdp-night-active .site,html.nah-sdp-night-active .content,html.nah-sdp-night-active article,html.nah-sdp-night-active main{background:var(--nah-sdp-night-bg,#0b1120)!important;color:var(--nah-sdp-night-text,#e5e7eb)!important}
@media (max-width:1199.98px){.nah-sdp-dock{top:auto!important;right:0!important;left:0!important;bottom:0!important;transform:none!important;display:grid;grid-template-columns:repeat(5,1fr);gap:0;background:#fff;border-top:1px solid rgba(15,23,42,.12);box-shadow:0 -10px 30px rgba(15,23,42,.16);padding:5px 4px calc(5px + env(safe-area-inset-bottom));align-items:stretch}.nah-sdp-dock:not(.nah-sdp-has-night){grid-template-columns:repeat(4,1fr)}.nah-sdp-dock:not(.nah-sdp-has-icd10){grid-template-columns:repeat(4,1fr)}.nah-sdp-dock:not(.nah-sdp-has-night):not(.nah-sdp-has-icd10){grid-template-columns:repeat(3,1fr)}.nah-sdp-toggle{display:none!important}.nah-sdp-collapsed .nah-sdp-dock-btn,.nah-sdp-dock-btn{width:auto!important;min-height:54px;border-radius:14px;background:transparent!important;box-shadow:none!important;justify-content:center!important;flex-direction:column;gap:3px;padding:5px 2px!important;font-size:11px!important}.nah-sdp-collapsed .nah-sdp-dock-btn span,.nah-sdp-dock-btn span{display:block!important;line-height:1.1}.nah-sdp-dock-btn:hover,.nah-sdp-dock-btn.nah-sdp-active{transform:none;background:#ecfdf5!important;color:var(--nah-sdp-accent)!important;box-shadow:none}.nah-sdp-dock-btn svg{width:21px;height:21px}.nah-sdp-night-btn{gap:4px!important}.nah-sdp-night-btn svg{width:22px!important;height:22px!important;flex:0 0 auto}.nah-sdp-night-btn span{white-space:nowrap!important}.nah-sdp-popover{position:fixed!important;left:8px!important;right:8px!important;bottom:calc(var(--nah-sdp-bar-h) + 8px + env(safe-area-inset-bottom))!important;top:auto!important;width:auto!important;max-height:calc(100vh - var(--nah-sdp-bar-h) - 28px - env(safe-area-inset-bottom))!important;border-radius:20px 20px 18px 18px;padding:14px}.nah-sdp-icd10-popover{padding:8px;background:#f8fafc}.nah-sdp-search-popover,.nah-sdp-account-popover{width:auto!important}.nah-sdp-menu-search-item{display:none!important}body{padding-bottom:calc(var(--nah-sdp-bar-h) + env(safe-area-inset-bottom))}.nah-sdp-collapsed .nah-sdp-dock-btn[data-nah-sdp-tooltip]:hover:before{display:none!important}}
@media (max-width:420px){.nah-sdp-dock-btn{font-size:10px!important}.nah-sdp-dock-btn svg{width:20px;height:20px}.nah-sdp-popover{left:6px!important;right:6px!important}.nah-sdp-icd10-popover{padding:6px}}

/* v1.3.6: Account form hard hidden-state fix; keeps previous cache/menu/Darkmode fixes. */
@media (min-width:1200px){
  .nah-sdp-menu-search-item{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    height:100%!important;
    min-height:0!important;
    margin:0 0 0 8px!important;
    padding:0!important;
    line-height:1!important;
    vertical-align:middle!important;
  }
  .nah-sdp-menu-search{
    width:min(320px,26vw)!important;
    max-width:320px!important;
    min-width:260px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    line-height:1!important;
    position:relative!important;
  }
  .nah-sdp-menu-search .nah-sdp-search-form{
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    margin:0!important;
    padding:0 4px 0 12px!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    border-radius:12px!important;
    box-shadow:none!important;
    line-height:1!important;
  }
  .nah-sdp-menu-search .nah-sdp-search-input{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    line-height:38px!important;
    padding:0 8px!important;
    margin:0!important;
    font-size:13px!important;
  }
  .nah-sdp-menu-search .nah-sdp-search-submit{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    flex:0 0 34px!important;
    margin:0!important;
    padding:0!important;
    border-radius:10px!important;
  }
  .nah-sdp-menu-search .nah-sdp-search-submit svg{
    width:17px!important;
    height:17px!important;
  }
}

/* v1.3.8: softer corners and cleaner account/search UI */
.nah-sdp-search-popover,.nah-sdp-account-popover{border-radius:26px!important}
.nah-sdp-login-form input,.nah-sdp-forgot-form input{border-radius:16px!important}
.nah-sdp-submit,.nah-sdp-back,.nah-sdp-forgot-link{border-radius:16px!important}
.nah-sdp-search-form{border-radius:18px!important;overflow:hidden!important}
.nah-sdp-search-input{border-radius:18px 0 0 18px!important}
.nah-sdp-search-submit{border-radius:0 18px 18px 0!important}
.nah-sdp-menu-search .nah-sdp-search-form{border-radius:18px!important;overflow:hidden!important}
.nah-sdp-menu-search .nah-sdp-search-input{border-radius:18px 0 0 18px!important}
.nah-sdp-menu-search .nah-sdp-search-submit{border-radius:0 18px 18px 0!important}
.nah-sdp-signup{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:6px;padding:12px 14px!important;border-radius:16px!important}
.nah-sdp-signup>span{display:block!important;font-weight:400!important;color:#334155!important;text-align:center!important}
.nah-sdp-signup a{display:inline-block!important;font-weight:900!important;text-transform:uppercase!important;text-align:center!important}
.nah-sdp-hotline{display:block!important;text-align:center!important;font-weight:800!important;color:#334155!important;margin-top:2px}
.nah-sdp-hotline a{font-weight:900!important;text-decoration:none!important}


/* v1.4.2: MagOne Theme Night Mode Compatibility
   MagOne uses many fixed light backgrounds/text colors (.m1-wrapper, .main-menu,
   .feed.widget, .post-body-inner, .main-sidebar). Static broad inversion made
   banners too dark and left some text low-contrast. These targeted rules are
   loaded after the base Dock CSS and override MagOne selectors directly. */
html.nah-sdp-night-active body,
html.nah-sdp-night-active body.m1,
html.nah-sdp-night-active body[class*="magone"]{
  background:#0b1220!important;
  color:#dbeafe!important;
  color-scheme:dark!important;
}

html.nah-sdp-night-active body .m1-wrapper,
html.nah-sdp-night-active body #content,
html.nah-sdp-night-active body #content>.content-inner,
html.nah-sdp-night-active body .content-inner,
html.nah-sdp-night-active body .content-template,
html.nah-sdp-night-active body .post-body,
html.nah-sdp-night-active body .post-body-inner,
html.nah-sdp-night-active body .main-sidebar,
html.nah-sdp-night-active body .main-sidebar .widget,
html.nah-sdp-night-active body .widget,
html.nah-sdp-night-active body .section,
html.nah-sdp-night-active body .solid-wrapper,
html.nah-sdp-night-active body .feed.widget .widget-content,
html.nah-sdp-night-active body .feed.widget.blogging .widget-content,
html.nah-sdp-night-active body .feed.widget.simple-one .item,
html.nah-sdp-night-active body .feed.widget.list .item,
html.nah-sdp-night-active body .feed.widget.ticker .widget-content,
html.nah-sdp-night-active body .feed.widget.three .item,
html.nah-sdp-night-active body .feed.widget.one .item,
html.nah-sdp-night-active body .feed.widget.two .item,
html.nah-sdp-night-active body .feed.widget.complex .item,
html.nah-sdp-night-active body .post-section,
html.nah-sdp-night-active body .comments,
html.nah-sdp-night-active body #comments,
html.nah-sdp-night-active body .comment,
html.nah-sdp-night-active body .page,
html.nah-sdp-night-active body .post,
html.nah-sdp-night-active body article{
  background:#101827!important;
  color:#dbeafe!important;
  border-color:rgba(148,163,184,.28)!important;
  box-shadow:none!important;
}

html.nah-sdp-night-active body .content-template,
html.nah-sdp-night-active body .post-body-inner{
  color:#e2e8f0!important;
  font-weight:400!important;
}

html.nah-sdp-night-active body .post-body-inner p,
html.nah-sdp-night-active body .post-body-inner li,
html.nah-sdp-night-active body .post-body-inner div,
html.nah-sdp-night-active body .content-template p,
html.nah-sdp-night-active body .content-template li,
html.nah-sdp-night-active body .content-template dd,
html.nah-sdp-night-active body .content-template dt,
html.nah-sdp-night-active body .item-snippet,
html.nah-sdp-night-active body .meta-item,
html.nah-sdp-night-active body a.post-meta,
html.nah-sdp-night-active body .post-breadcrumb,
html.nah-sdp-night-active body .post-breadcrumb>*{
  color:#cbd5e1!important;
}

html.nah-sdp-night-active body h1,
html.nah-sdp-night-active body h2,
html.nah-sdp-night-active body h3,
html.nah-sdp-night-active body h4,
html.nah-sdp-night-active body h5,
html.nah-sdp-night-active body h6,
html.nah-sdp-night-active body h1.post-title,
html.nah-sdp-night-active body .post-title,
html.nah-sdp-night-active body .post-sub-title,
html.nah-sdp-night-active body .feed-widget-header .widget-title,
html.nah-sdp-night-active body .feed-widget-header .widget-title a,
html.nah-sdp-night-active body .item-title,
html.nah-sdp-night-active body .item-title a,
html.nah-sdp-night-active body .feed.widget.blogging .item-title a,
html.nah-sdp-night-active body .feed.widget.simple-one .item-title a,
html.nah-sdp-night-active body .feed.widget.list .item-title a,
html.nah-sdp-night-active body .main-sidebar .feed.widget .feed-widget-header .widget-title a{
  color:#f8fafc!important;
  text-shadow:none!important;
}

html.nah-sdp-night-active body a:not(.nah-sdp-dock a):not(.nah-icd10-app a),
html.nah-sdp-night-active body .post-body-inner a,
html.nah-sdp-night-active body .content-template a{
  color:#67e8f9!important;
}
html.nah-sdp-night-active body a:hover:not(.nah-sdp-dock a):not(.nah-icd10-app a){
  color:#a7f3d0!important;
}

/* Header, main menu and submenu */
html.nah-sdp-night-active body #header,
html.nah-sdp-night-active body #header-section,
html.nah-sdp-night-active body .header-bg,
html.nah-sdp-night-active body #header-content,
html.nah-sdp-night-active body .main-menu,
html.nah-sdp-night-active body .top-menu,
html.nah-sdp-night-active body .top-bar,
html.nah-sdp-night-active body .main-menu.sticky-menu,
html.nah-sdp-night-active body .main-menu>ul.menu,
html.nah-sdp-night-active body .main-menu ul.sub-menu,
html.nah-sdp-night-active body .main-menu .menu-item-mega-label .menu-item-inner,
html.nah-sdp-night-active body .main-menu .menu-mega-content,
html.nah-sdp-night-active body .menu-item-inner,
html.nah-sdp-night-active body .mobile-menu{
  background:#0f1b2d!important;
  color:#e2e8f0!important;
  border-color:rgba(148,163,184,.28)!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body #header-content,
html.nah-sdp-night-active body #header-content span,
html.nah-sdp-night-active body #header-content a,
html.nah-sdp-night-active body .main-menu ul.menu li a,
html.nah-sdp-night-active body .main-menu ul.menu>li>a,
html.nah-sdp-night-active body .top-menu ul.menu li a,
html.nah-sdp-night-active body .top-menu ul.menu>li>a{
  color:#dbeafe!important;
}
html.nah-sdp-night-active body .main-menu ul.menu li:hover>a,
html.nah-sdp-night-active body .main-menu ul.menu>li.current-menu-item>a,
html.nah-sdp-night-active body .top-menu ul.menu li:hover>a{
  background:#1d4ed8!important;
  color:#fff!important;
}

/* MagOne search widgets and inline menu search */
html.nah-sdp-night-active body .search-form-wrapper,
html.nah-sdp-night-active body .widget form.search-form,
html.nah-sdp-night-active body .nah-sdp-menu-search .nah-sdp-search-form{
  background:#0b1220!important;
  color:#e2e8f0!important;
  border-color:rgba(148,163,184,.35)!important;
}
html.nah-sdp-night-active body input,
html.nah-sdp-night-active body textarea,
html.nah-sdp-night-active body select,
html.nah-sdp-night-active body .search-text,
html.nah-sdp-night-active body .widget input.search-text,
html.nah-sdp-night-active body .nah-sdp-menu-search .nah-sdp-search-input{
  background:#111c2f!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.4)!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body input::placeholder,
html.nah-sdp-night-active body textarea::placeholder{
  color:#94a3b8!important;
}

/* Tables and boxes inside medical content */
html.nah-sdp-night-active body .content-template table,
html.nah-sdp-night-active body .post-body-inner table,
html.nah-sdp-night-active body table,
html.nah-sdp-night-active body thead,
html.nah-sdp-night-active body tbody,
html.nah-sdp-night-active body tr,
html.nah-sdp-night-active body th,
html.nah-sdp-night-active body td{
  background:#0f1b2d!important;
  color:#e2e8f0!important;
  border-color:rgba(148,163,184,.30)!important;
}
html.nah-sdp-night-active body .content-template table thead,
html.nah-sdp-night-active body .post-body-inner table thead,
html.nah-sdp-night-active body th{
  background:#172338!important;
  color:#f8fafc!important;
}

/* Login/locked-content forms from site content, not Dock */
html.nah-sdp-night-active body #content form,
html.nah-sdp-night-active body .content-template form,
html.nah-sdp-night-active body .post-body-inner form,
html.nah-sdp-night-active body .login-form,
html.nah-sdp-night-active body .registration-form,
html.nah-sdp-night-active body [class*="login"]:not(.nah-sdp-dock):not(.nah-sdp-dock *){
  background:#101827!important;
  color:#e2e8f0!important;
  border-color:rgba(148,163,184,.30)!important;
}

/* Labels/tags: keep colored labels readable. */
html.nah-sdp-night-active body a.post-label .label-name,
html.nah-sdp-night-active body .feed.widget .item-labels a,
html.nah-sdp-night-active body .feed-widget-labels a,
html.nah-sdp-night-active body .post-label span.label-count-value{
  filter:none!important;
  color:#fff!important;
}
html.nah-sdp-night-active body .post-label span.label-count-value{
  background:#334155!important;
}
html.nah-sdp-night-active body .post-label span.label-count-arrow{
  border-right-color:#334155!important;
}

/* Preserve images/banners/medical figures. Previous dynamic mode over-darkened them. */
html.nah-sdp-night-active body img,
html.nah-sdp-night-active body picture,
html.nah-sdp-night-active body video,
html.nah-sdp-night-active body canvas,
html.nah-sdp-night-active body iframe,
html.nah-sdp-night-active body .item-thumbnail img,
html.nah-sdp-night-active body .blog-title img,
html.nah-sdp-night-active body .header-ads img,
html.nah-sdp-night-active body .post-body-inner img,
html.nah-sdp-night-active body .content-template img{
  filter:none!important;
  opacity:1!important;
}

/* Dock itself in MagOne night mode */
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-dock-btn,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-popover{
  background:#0f1b2d!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.28)!important;
}
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-dock-btn:hover,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-dock-btn.nah-sdp-active{
  background:var(--nah-sdp-accent)!important;
  color:#fff!important;
}

/* Explicit opt-out */
html.nah-sdp-night-active body .no-dark-mode,
html.nah-sdp-night-active body .exclude-dark-mode,
html.nah-sdp-night-active body [data-no-dark-mode],
html.nah-sdp-night-active body .no-dark-mode *,
html.nah-sdp-night-active body .exclude-dark-mode *,
html.nah-sdp-night-active body [data-no-dark-mode] *{
  filter:none!important;
}


/* v1.4.3: Compatibility layer for SachYHoc/YHocLamSang membership forms, ICD-10 SmartKit
   and MagOne custom button styles. This deliberately avoids image dimming. */

/* ------------------------------------------------------------
   1) SachYHoc / YHocLamSang Clinical Access - login/restricted/member UI
   ------------------------------------------------------------ */
html.nah-sdp-night-active body .syh-modern-login-wrap,
html.nah-sdp-night-active body .syh-medipharm-wrap,
html.nah-sdp-night-active body .syh-restricted-wrap,
html.nah-sdp-night-active body .syh-account-dashboard,
html.nah-sdp-night-active body .syh-payment-layout{
  background:transparent!important;
  color:#e6edf7!important;
}

html.nah-sdp-night-active body .syh-modern-login-shell,
html.nah-sdp-night-active body .syh-modern-login-card,
html.nah-sdp-night-active body .syh-card,
html.nah-sdp-night-active body .syh-register-card,
html.nah-sdp-night-active body .syh-payment-card,
html.nah-sdp-night-active body .syh-account-card,
html.nah-sdp-night-active body .syh-account-hero,
html.nah-sdp-night-active body .syh-account-mini,
html.nah-sdp-night-active body .syh-inline-login,
html.nah-sdp-night-active body .syh-login-card,
html.nah-sdp-night-active body .syh-modal-inner,
html.nah-sdp-night-active body .syh-success-dialog,
html.nah-sdp-night-active body .syh-content-list{
  background:#101827!important;
  background-image:none!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.32)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.26)!important;
}

/* Keep the branded side panel readable and distinct. */
html.nah-sdp-night-active body .syh-modern-login-side{
  background:linear-gradient(160deg,#083344 0%,#0f766e 100%)!important;
  color:#ecfeff!important;
}
html.nah-sdp-night-active body .syh-modern-login-side h1,
html.nah-sdp-night-active body .syh-modern-login-side h2,
html.nah-sdp-night-active body .syh-modern-login-side h3,
html.nah-sdp-night-active body .syh-modern-login-side p,
html.nah-sdp-night-active body .syh-modern-login-side li{
  color:#ecfeff!important;
}

html.nah-sdp-night-active body .syh-modern-login-head h1,
html.nah-sdp-night-active body .syh-modern-login-card h2,
html.nah-sdp-night-active body .syh-login-head h2,
html.nah-sdp-night-active body .syh-card h1,
html.nah-sdp-night-active body .syh-card h2,
html.nah-sdp-night-active body .syh-card h3,
html.nah-sdp-night-active body .syh-inline-login h3,
html.nah-sdp-night-active body .syh-account-card h1,
html.nah-sdp-night-active body .syh-account-card h2,
html.nah-sdp-night-active body .syh-account-card h3{
  color:#f8fafc!important;
}
html.nah-sdp-night-active body .syh-modern-login-head p,
html.nah-sdp-night-active body .syh-modern-login-card p,
html.nah-sdp-night-active body .syh-modern-note,
html.nah-sdp-night-active body .syh-muted,
html.nah-sdp-night-active body .syh-form small,
html.nah-sdp-night-active body .syh-qr-help,
html.nah-sdp-night-active body .syh-login-head p{
  color:#cbd5e1!important;
}

html.nah-sdp-night-active body .syh-modern-field span,
html.nah-sdp-night-active body .syh-modern-check,
html.nah-sdp-night-active body .syh-form label,
html.nah-sdp-night-active body .syh-inline-login label,
html.nah-sdp-night-active body .syh-login-form label{
  color:#e6edf7!important;
}
html.nah-sdp-night-active body .syh-modern-field input,
html.nah-sdp-night-active body .syh-modern-password-row input,
html.nah-sdp-night-active body .syh-form input,
html.nah-sdp-night-active body .syh-form select,
html.nah-sdp-night-active body .syh-inline-login input[type=text],
html.nah-sdp-night-active body .syh-inline-login input[type=password],
html.nah-sdp-night-active body .syh-login-form input[type=text],
html.nah-sdp-night-active body .syh-login-form input[type=password],
html.nah-sdp-night-active body .syh-payment-info input[readonly]{
  background:#111c2f!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.45)!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body .syh-modern-field input::placeholder,
html.nah-sdp-night-active body .syh-login-form input::placeholder{
  color:#94a3b8!important;
}
html.nah-sdp-night-active body .syh-modern-pass-toggle,
html.nah-sdp-night-active body .syh-toggle-password{
  background:#172338!important;
  color:#67e8f9!important;
  border-color:rgba(148,163,184,.42)!important;
}
html.nah-sdp-night-active body .syh-modern-footer-actions{
  border-top-color:rgba(148,163,184,.28)!important;
}

/* Alerts/status boxes stay semantic but are toned down for dark mode. */
html.nah-sdp-night-active body .syh-modern-alert,
html.nah-sdp-night-active body .syh-alert-error{
  background:#3b1118!important;
  color:#fecdd3!important;
  border-color:rgba(248,113,113,.45)!important;
}
html.nah-sdp-night-active body .syh-warning-note{
  background:#321c0b!important;
  color:#fed7aa!important;
  border-color:rgba(251,146,60,.45)!important;
}
html.nah-sdp-night-active body .syh-status,
html.nah-sdp-night-active body .syh-status-paid,
html.nah-sdp-night-active body .syh-success-note{
  background:#06291f!important;
  color:#bbf7d0!important;
  border-color:rgba(34,197,94,.45)!important;
}
html.nah-sdp-night-active body .syh-amount,
html.nah-sdp-night-active body .syh-price{
  color:#67e8f9!important;
}

/* QR/payment images must not be darkened. */
html.nah-sdp-night-active body .syh-qr-box,
html.nah-sdp-night-active body .syh-payment-qr,
html.nah-sdp-night-active body img.syh-payment-qr,
html.nah-sdp-night-active body .syh-no-copy-protection,
html.nah-sdp-night-active body .syh-no-copy-protection *{
  filter:none!important;
}

/* ------------------------------------------------------------
   2) Buttons and theme/custom CSS buttons
   ------------------------------------------------------------ */
html.nah-sdp-night-active body .syh-btn,
html.nah-sdp-night-active body .syh-modern-btn,
html.nah-sdp-night-active body .syh-account-btn,
html.nah-sdp-night-active body .button,
html.nah-sdp-night-active body button,
html.nah-sdp-night-active body input[type=button],
html.nah-sdp-night-active body input[type=submit],
html.nah-sdp-night-active body a.btn,
html.nah-sdp-night-active body .btn,
html.nah-sdp-night-active body .read-more,
html.nah-sdp-night-active body .readmore,
html.nah-sdp-night-active body .download,
html.nah-sdp-night-active body .download-btn,
html.nah-sdp-night-active body .post-readmore a,
html.nah-sdp-night-active body .more-link{
  border-color:rgba(148,163,184,.38)!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body .syh-btn-primary,
html.nah-sdp-night-active body .syh-modern-btn-primary,
html.nah-sdp-night-active body .syh-account-btn.primary,
html.nah-sdp-night-active body input[type=submit],
html.nah-sdp-night-active body .button.primary,
html.nah-sdp-night-active body .btn-primary,
html.nah-sdp-night-active body .download-btn,
html.nah-sdp-night-active body .read-more{
  background:#0f766e!important;
  color:#fff!important;
}
html.nah-sdp-night-active body .syh-btn-secondary,
html.nah-sdp-night-active body .syh-modern-btn-light,
html.nah-sdp-night-active body .syh-account-btn.light,
html.nah-sdp-night-active body .button.secondary,
html.nah-sdp-night-active body .btn-secondary{
  background:#334155!important;
  color:#e6edf7!important;
}

/* Tags/badges created by MagOne or Custom CSS */
html.nah-sdp-night-active body .label,
html.nah-sdp-night-active body .badge,
html.nah-sdp-night-active body .tag,
html.nah-sdp-night-active body .tags a,
html.nah-sdp-night-active body .post-label,
html.nah-sdp-night-active body .post-label a,
html.nah-sdp-night-active body .item-label,
html.nah-sdp-night-active body .item-labels a,
html.nah-sdp-night-active body .feed-widget-labels a,
html.nah-sdp-night-active body .label-name,
html.nah-sdp-night-active body .category-label{
  background:#0f766e!important;
  color:#fff!important;
  border-color:rgba(94,234,212,.32)!important;
  text-shadow:none!important;
}

/* ------------------------------------------------------------
   3) ICD-10 SmartKit in Dock / Web App
   ------------------------------------------------------------ */
html.nah-sdp-night-active body .nah-icd10-app{
  background:#07111f!important;
  color:#e6edf7!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-shell,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-panel,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-card,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-search,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-hero,
html.nah-sdp-night-active body .nah-icd10-app [class*="panel"],
html.nah-sdp-night-active body .nah-icd10-app [class*="card"]{
  background:#0f1b2d!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.32)!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body .nah-icd10-app input,
html.nah-sdp-night-active body .nah-icd10-app select,
html.nah-sdp-night-active body .nah-icd10-app textarea{
  background:#111c2f!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.45)!important;
}
html.nah-sdp-night-active body .nah-icd10-app input::placeholder,
html.nah-sdp-night-active body .nah-icd10-app textarea::placeholder{
  color:#94a3b8!important;
}
html.nah-sdp-night-active body .nah-icd10-app button,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-btn,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-chip,
html.nah-sdp-night-active body .nah-icd10-app [class*="chip"],
html.nah-sdp-night-active body .nah-icd10-app [class*="tab"],
html.nah-sdp-night-active body .nah-icd10-app [class*="btn"]{
  background:#172338!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.36)!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body .nah-icd10-app button:hover,
html.nah-sdp-night-active body .nah-icd10-app button.is-active,
html.nah-sdp-night-active body .nah-icd10-app .active,
html.nah-sdp-night-active body .nah-icd10-app [aria-selected=true],
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-chip.active{
  background:#2563eb!important;
  color:#fff!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-status-ok,
html.nah-sdp-night-active body .nah-icd10-app [class*="ok"],
html.nah-sdp-night-active body .nah-icd10-app [class*="primary-ok"]{
  background:#063b2d!important;
  color:#bbf7d0!important;
  border-color:rgba(34,197,94,.40)!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-status-warn,
html.nah-sdp-night-active body .nah-icd10-app [class*="warn"],
html.nah-sdp-night-active body .nah-icd10-app [class*="specific"]{
  background:#33240b!important;
  color:#fde68a!important;
  border-color:rgba(251,191,36,.42)!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-status-danger,
html.nah-sdp-night-active body .nah-icd10-app [class*="danger"],
html.nah-sdp-night-active body .nah-icd10-app [class*="cancel"],
html.nah-sdp-night-active body .nah-icd10-app [class*="not-primary"]{
  background:#3b1118!important;
  color:#fecdd3!important;
  border-color:rgba(248,113,113,.45)!important;
}
html.nah-sdp-night-active body .nah-icd10-app a{
  color:#67e8f9!important;
}

/* ------------------------------------------------------------
   4) Typography reinforcement for plugin UIs
   ------------------------------------------------------------ */
html.nah-sdp-night-active body .syh-modern-login-wrap *,
html.nah-sdp-night-active body .syh-medipharm-wrap *,
html.nah-sdp-night-active body .nah-icd10-app *{
  text-shadow:none!important;
}


/* v1.4.4: stronger MagOne + Custom CSS + SYH/YHLS + ICD-10 dark compatibility.
   This layer uses higher specificity than Theme Custom CSS rules with !important. */

/* =========================
   A. MagOne Custom CSS conflict fixes
   ========================= */
html.nah-sdp-night-active body .widget-title.feed-widget-title,
html.nah-sdp-night-active body h2.widget-title.feed-widget-title,
html.nah-sdp-night-active body h2.feed-widget-title,
html.nah-sdp-night-active body .feed.widget .widget-title.feed-widget-title{
  background:#172338!important;
  border-bottom-color:#0f766e!important;
  color:#e6edf7!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body .widget-title.feed-widget-title span,
html.nah-sdp-night-active body h2.feed-widget-title span,
html.nah-sdp-night-active body .feed.widget .widget-title.feed-widget-title span{
  color:#67e8f9!important;
  text-shadow:none!important;
}
html.nah-sdp-night-active body .feed.widget .thumbnail,
html.nah-sdp-night-active body .feed.widget .item-thumbnail,
html.nah-sdp-night-active body .feed.widget .item-thumbnail a,
html.nah-sdp-night-active body .post-thumbnail,
html.nah-sdp-night-active body .post-thumbnail a{
  background:#0f1b2d!important;
}

/* Load more button in Custom CSS uses gradient + !important; override for dark mode. */
html.nah-sdp-night-active body .feed-widget-pagination-loadmore .feed-widget-pagination-load-more-button,
html.nah-sdp-night-active body .feed-widget-pagination-loadmore button.feed-widget-pagination-load-more-button,
html.nah-sdp-night-active body a.feed-widget-pagination-load-more-button{
  background:#1d4ed8!important;
  background-image:linear-gradient(135deg,#0f766e,#2563eb)!important;
  color:#ffffff!important;
  border:1px solid rgba(125,211,252,.36)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.28)!important;
  text-shadow:none!important;
}
html.nah-sdp-night-active body .feed-widget-pagination-loadmore .feed-widget-pagination-load-more-button:hover{
  background-image:linear-gradient(135deg,#0d9488,#3b82f6)!important;
  box-shadow:0 10px 26px rgba(37,99,235,.32)!important;
}

/* MemberPress/preview excerpt custom CSS compatibility */
html.nah-sdp-night-active body .mepr-unauthorized-excerpt,
html.nah-sdp-night-active body .mepr-unauthorized-excerpt p,
html.nah-sdp-night-active body .mepr-unauthorized-excerpt li{
  color:#dbeafe!important;
}
html.nah-sdp-night-active body .mepr-unauthorized-excerpt h1,
html.nah-sdp-night-active body .mepr-unauthorized-excerpt h2,
html.nah-sdp-night-active body .mepr-unauthorized-excerpt h3,
html.nah-sdp-night-active body .mepr-unauthorized-excerpt h4,
html.nah-sdp-night-active body .mepr-unauthorized-excerpt h5,
html.nah-sdp-night-active body .mepr-unauthorized-excerpt h6{
  color:#f8fafc!important;
}
html.nah-sdp-night-active body .mepr-unauthorized-excerpt figcaption,
html.nah-sdp-night-active body .mepr-unauthorized-excerpt .wp-caption-text{
  color:#cbd5e1!important;
}

/* =========================
   B. SachYHoc/YHocLamSang gated content/login forms
   ========================= */
html.nah-sdp-night-active body .syh-medipharm-wrap.syh-restricted-wrap,
html.nah-sdp-night-active body .syh-restricted-wrap,
html.nah-sdp-night-active body .syh-restricted-wrap *{
  text-shadow:none!important;
}
html.nah-sdp-night-active body .syh-restricted-card,
html.nah-sdp-night-active body .syh-medipharm-wrap .syh-restricted-card{
  background:#101827!important;
  background-image:none!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.32)!important;
  box-shadow:0 22px 60px rgba(0,0,0,.30)!important;
}
html.nah-sdp-night-active body .syh-restricted-top{
  filter:saturate(.9) brightness(.9)!important;
}
html.nah-sdp-night-active body .syh-restricted-body,
html.nah-sdp-night-active body .syh-restricted-body p,
html.nah-sdp-night-active body .syh-restricted-help{
  color:#cbd5e1!important;
}
html.nah-sdp-night-active body .syh-restricted-body h3{
  color:#f8fafc!important;
}
html.nah-sdp-night-active body .syh-restricted-form,
html.nah-sdp-night-active body .syh-medipharm-wrap .syh-restricted-form{
  background:#0b1220!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.36)!important;
  box-shadow:0 14px 36px rgba(0,0,0,.24)!important;
}
html.nah-sdp-night-active body .syh-restricted-form label,
html.nah-sdp-night-active body .syh-restricted-form .syh-remember,
html.nah-sdp-night-active body .syh-restricted-options label{
  color:#e6edf7!important;
}
html.nah-sdp-night-active body .syh-restricted-form input[type=text],
html.nah-sdp-night-active body .syh-restricted-form input[type=password]{
  background:#111c2f!important;
  color:#f8fafc!important;
  border-color:rgba(148,163,184,.48)!important;
}
html.nah-sdp-night-active body .syh-restricted-form input[type=text]:focus,
html.nah-sdp-night-active body .syh-restricted-form input[type=password]:focus{
  background:#0f1b2d!important;
  border-color:#38bdf8!important;
  box-shadow:0 0 0 4px rgba(56,189,248,.15)!important;
}
html.nah-sdp-night-active body .syh-restricted-lost,
html.nah-sdp-night-active body .syh-modern-login-options a,
html.nah-sdp-night-active body .syh-modern-support,
html.nah-sdp-night-active body .syh-login-options a,
html.nah-sdp-night-active body .syh-login-support{
  color:#67e8f9!important;
}

/* Older/simple login card in SachYHoc plugin */
html.nah-sdp-night-active body .syh-login-card,
html.nah-sdp-night-active body .syh-login-page .syh-login-card{
  background:#101827!important;
  background-image:none!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.32)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.24)!important;
}
html.nah-sdp-night-active body .syh-login-head h2,
html.nah-sdp-night-active body .syh-login-card h2,
html.nah-sdp-night-active body .syh-login-card h3{
  color:#f8fafc!important;
}
html.nah-sdp-night-active body .syh-login-head p,
html.nah-sdp-night-active body .syh-login-note{
  color:#cbd5e1!important;
}
html.nah-sdp-night-active body .syh-login-form label,
html.nah-sdp-night-active body .syh-remember-login{
  color:#e6edf7!important;
}
html.nah-sdp-night-active body .syh-login-form input[type=text],
html.nah-sdp-night-active body .syh-login-form input[type=password]{
  background:#111c2f!important;
  color:#f8fafc!important;
  border-color:rgba(148,163,184,.48)!important;
}
html.nah-sdp-night-active body .syh-toggle-password{
  background:#172338!important;
  color:#67e8f9!important;
  border-color:rgba(148,163,184,.42)!important;
}
html.nah-sdp-night-active body .syh-login-footer{
  border-top-color:rgba(148,163,184,.28)!important;
}

/* Modern login: override internal inline <style> in member plugins */
html.nah-sdp-night-active body .syh-modern-login-wrap .syh-modern-login-shell,
html.nah-sdp-night-active body .syh-modern-login-wrap .syh-modern-login-card{
  background:#101827!important;
  background-image:none!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.32)!important;
}
html.nah-sdp-night-active body .syh-modern-login-wrap .syh-modern-login-head h1,
html.nah-sdp-night-active body .syh-modern-login-wrap .syh-modern-login-card h2{
  color:#f8fafc!important;
}
html.nah-sdp-night-active body .syh-modern-login-wrap .syh-modern-login-head p,
html.nah-sdp-night-active body .syh-modern-login-wrap .syh-modern-login-card p,
html.nah-sdp-night-active body .syh-modern-login-wrap .syh-modern-note{
  color:#cbd5e1!important;
}
html.nah-sdp-night-active body .syh-modern-login-wrap .syh-modern-field input{
  background:#111c2f!important;
  color:#f8fafc!important;
  border-color:rgba(148,163,184,.48)!important;
}

/* =========================
   C. ICD-10-VN-SmartKit exact selector overrides
   ========================= */
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app{
  --nah-ink:#e6edf7!important;
  --nah-muted:#cbd5e1!important;
  --nah-bg:#07111f!important;
  --nah-line:rgba(148,163,184,.32)!important;
  background:#07111f!important;
  color:#e6edf7!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-hero,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-searchbox,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-checker,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-check-card,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-guide-card,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-pl3-card,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-webapp-shell,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-tab-panel{
  background:#0f1b2d!important;
  background-image:none!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.32)!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-warning{
  background:#2a210e!important;
  border-color:rgba(251,191,36,.42)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-danger{
  background:#35111a!important;
  border-color:rgba(248,113,113,.45)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-ok,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-success{
  background:#06291f!important;
  border-color:rgba(34,197,94,.42)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-main-title,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-title,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-checker-title,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-check-card-title{
  color:#f8fafc!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-subtitle,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-hint,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-en,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-meta,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-note{
  color:#cbd5e1!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-stats span,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-code,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge{
  background:#172338!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.36)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app input,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app select,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app textarea,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-searchbox input{
  background:#111c2f!important;
  color:#f8fafc!important;
  border-color:rgba(148,163,184,.48)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app input::placeholder,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app textarea::placeholder{
  color:#94a3b8!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-filters button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-detail-filters button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-module-tabs button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-guide-tabs button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-view-toggle button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-actions button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-detail-toggle,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-loadmore{
  background:#172338!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.36)!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-filters button.is-active,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-module-tabs button.is-active,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-guide-tabs button.is-active,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-view-toggle button.is-active,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app button.is-active{
  background:#2563eb!important;
  color:#fff!important;
  border-color:#2563eb!important;
}

/* Semantic ICD badges */
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge-success{
  background:#063b2d!important;color:#bbf7d0!important;border-color:rgba(34,197,94,.40)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge-warning{
  background:#33240b!important;color:#fde68a!important;border-color:rgba(251,191,36,.42)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge-danger{
  background:#3b1118!important;color:#fecdd3!important;border-color:rgba(248,113,113,.45)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge-purple{
  background:#2e1065!important;color:#e9d5ff!important;border-color:rgba(168,85,247,.42)!important;
}

/* =========================
   D. Footer compatibility
   ========================= */
html.nah-sdp-night-active body footer,
html.nah-sdp-night-active body #footer,
html.nah-sdp-night-active body #footer-wrapper,
html.nah-sdp-night-active body .footer-wrapper,
html.nah-sdp-night-active body .footer,
html.nah-sdp-night-active body .site-footer,
html.nah-sdp-night-active body .footer-inner,
html.nah-sdp-night-active body .footer-area,
html.nah-sdp-night-active body .footer-widget,
html.nah-sdp-night-active body .footer .widget,
html.nah-sdp-night-active body #footer .widget,
html.nah-sdp-night-active body .footer-column,
html.nah-sdp-night-active body .footer-col{
  background:#0b1628!important;
  color:#dbeafe!important;
  border-color:rgba(148,163,184,.30)!important;
}
html.nah-sdp-night-active body footer h1,
html.nah-sdp-night-active body footer h2,
html.nah-sdp-night-active body footer h3,
html.nah-sdp-night-active body footer h4,
html.nah-sdp-night-active body #footer h1,
html.nah-sdp-night-active body #footer h2,
html.nah-sdp-night-active body #footer h3,
html.nah-sdp-night-active body #footer h4{
  color:#f8fafc!important;
}
html.nah-sdp-night-active body footer a,
html.nah-sdp-night-active body #footer a,
html.nah-sdp-night-active body .footer a{
  color:#67e8f9!important;
}
html.nah-sdp-night-active body footer p,
html.nah-sdp-night-active body #footer p,
html.nah-sdp-night-active body .footer p,
html.nah-sdp-night-active body .footer li,
html.nah-sdp-night-active body #footer li{
  color:#cbd5e1!important;
}
html.nah-sdp-night-active body footer .tagcloud a,
html.nah-sdp-night-active body #footer .tagcloud a,
html.nah-sdp-night-active body .footer .tagcloud a{
  background:#172338!important;
  color:#67e8f9!important;
  border-color:rgba(148,163,184,.32)!important;
}
html.nah-sdp-night-active body footer ins.adsbygoogle,
html.nah-sdp-night-active body #footer ins.adsbygoogle,
html.nah-sdp-night-active body .footer ins.adsbygoogle{
  background:#0b1628!important;
  border-color:rgba(148,163,184,.22)!important;
}

/* Keep actual footer images/logos readable. */
html.nah-sdp-night-active body footer img,
html.nah-sdp-night-active body #footer img,
html.nah-sdp-night-active body .footer img{
  filter:none!important;
  opacity:1!important;
}

/* =========================
   E. Preserve clinical images / equations / AdSense behavior
   ========================= */
html.nah-sdp-night-active body img.ql-img-displayed-equation,
html.nah-sdp-night-active body img.ql-img-inline-formula,
html.nah-sdp-night-active body img[src*="quicklatex.com"],
html.nah-sdp-night-active body .post-body-inner img,
html.nah-sdp-night-active body .entry-content img,
html.nah-sdp-night-active body .content-template img{
  filter:none!important;
}


/* v1.4.5: Search results layout hard-fix for MagOne menu + Custom CSS.
   MagOne menu containers and the user's global svg rule can squeeze dropdown results.
   This layer makes result panels independent from menu height and restores desktop two-column layout. */

/* Protect all Dock/Search SVG icons from global Custom CSS: svg { width:100%; height:auto; display:block; } */
.nah-sdp-dock svg,
.nah-sdp-standalone-search svg,
.nah-sdp-menu-search svg,
.nah-sdp-search-form svg,
.nah-sdp-search-submit svg,
.nah-sdp-dock-btn svg{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  min-height:20px!important;
  max-height:20px!important;
  display:block!important;
  flex:0 0 20px!important;
}
.nah-sdp-dock-btn svg{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  max-width:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  flex-basis:22px!important;
}

/* Result panel base */
.nah-sdp-results,
.nah-sdp-result-list,
.nah-sdp-result,
.nah-sdp-result *{
  box-sizing:border-box!important;
}
.nah-sdp-results{
  min-width:0!important;
  overflow:visible!important;
}
.nah-sdp-result-list{
  width:100%!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  align-items:stretch!important;
}
.nah-sdp-result{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  gap:10px!important;
  padding:10px!important;
  border-radius:14px!important;
  text-decoration:none!important;
  overflow:hidden!important;
  white-space:normal!important;
  line-height:1.35!important;
}
.nah-sdp-thumb{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  flex:0 0 52px!important;
  object-fit:cover!important;
  border-radius:10px!important;
  display:block!important;
}
.nah-sdp-result-body{
  min-width:0!important;
  width:auto!important;
  display:grid!important;
  gap:3px!important;
  white-space:normal!important;
}
.nah-sdp-result-body strong,
.nah-sdp-result-body small,
.nah-sdp-result-body em{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* Desktop: return to two-column result layout */
@media (min-width: 900px){
  .nah-sdp-search-popover{
    width:min(760px,calc(100vw - 112px))!important;
  }
  .nah-sdp-search-popover .nah-sdp-result-list,
  .nah-sdp-standalone-search:not(.nah-sdp-menu-search) .nah-sdp-result-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .nah-sdp-search-popover .nah-sdp-all-results,
  .nah-sdp-standalone-search:not(.nah-sdp-menu-search) .nah-sdp-all-results{
    grid-column:1/-1!important;
    justify-self:stretch!important;
  }
}

/* Menu search: dropdown must escape the menu item height/line-height */
@media (min-width: 1200px){
  .nah-sdp-menu-search-item{
    position:relative!important;
    overflow:visible!important;
    z-index:999990!important;
  }
  .nah-sdp-menu-search{
    position:relative!important;
    overflow:visible!important;
    z-index:999990!important;
    min-width:320px!important;
    width:320px!important;
    max-width:34vw!important;
    line-height:1!important;
  }
  .nah-sdp-menu-search .nah-sdp-search-form{
    position:relative!important;
    z-index:2!important;
    width:100%!important;
  }
  .nah-sdp-menu-search .nah-sdp-standalone-results{
    position:absolute!important;
    top:calc(100% + 10px)!important;
    right:0!important;
    left:auto!important;
    width:min(720px,calc(100vw - 32px))!important;
    min-width:560px!important;
    max-height:calc(100vh - 96px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    margin:0!important;
    padding:12px!important;
    background:#ffffff!important;
    color:#0f172a!important;
    border:1px solid #dbe4ee!important;
    border-radius:18px!important;
    box-shadow:0 22px 60px rgba(15,23,42,.24)!important;
    z-index:999999!important;
  }
  .nah-sdp-menu-search .nah-sdp-standalone-results:empty{
    display:none!important;
  }
  .nah-sdp-menu-search .nah-sdp-result-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .nah-sdp-menu-search .nah-sdp-result{
    min-height:74px!important;
    background:#fff!important;
    border-color:#e2e8f0!important;
    color:#0f172a!important;
  }
  .nah-sdp-menu-search .nah-sdp-result-body strong{
    font-size:13px!important;
    line-height:1.35!important;
  }
  .nah-sdp-menu-search .nah-sdp-result-body small{
    font-size:12px!important;
    line-height:1.35!important;
  }
  .nah-sdp-menu-search .nah-sdp-result-body em{
    font-size:11px!important;
  }
  .nah-sdp-menu-search .nah-sdp-thumb{
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    flex-basis:48px!important;
  }
  .nah-sdp-menu-search .nah-sdp-all-results{
    grid-column:1/-1!important;
    width:100%!important;
    justify-self:stretch!important;
    text-align:center!important;
    margin-top:2px!important;
  }
}

/* Mobile/tablet: keep one-column and avoid oversized dropdown in top menu if menu search is forced visible */
@media (max-width:1199.98px){
  .nah-sdp-search-popover .nah-sdp-result-list,
  .nah-sdp-standalone-search .nah-sdp-result-list,
  .nah-sdp-menu-search .nah-sdp-result-list{
    grid-template-columns:1fr!important;
  }
  .nah-sdp-menu-search .nah-sdp-standalone-results{
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-height:60vh!important;
    overflow:auto!important;
    padding:8px!important;
  }
}

/* Dark Mode for search dropdown/results */
html.nah-sdp-night-active body .nah-sdp-search-popover .nah-sdp-results,
html.nah-sdp-night-active body .nah-sdp-standalone-search .nah-sdp-results,
html.nah-sdp-night-active body .nah-sdp-menu-search .nah-sdp-standalone-results{
  background:#0f1b2d!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.32)!important;
}
html.nah-sdp-night-active body .nah-sdp-search-popover .nah-sdp-result,
html.nah-sdp-night-active body .nah-sdp-standalone-search .nah-sdp-result,
html.nah-sdp-night-active body .nah-sdp-menu-search .nah-sdp-result{
  background:#111c2f!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.32)!important;
}
html.nah-sdp-night-active body .nah-sdp-search-popover .nah-sdp-result:hover,
html.nah-sdp-night-active body .nah-sdp-standalone-search .nah-sdp-result:hover,
html.nah-sdp-night-active body .nah-sdp-menu-search .nah-sdp-result:hover{
  border-color:#38bdf8!important;
  box-shadow:0 8px 24px rgba(56,189,248,.16)!important;
}
html.nah-sdp-night-active body .nah-sdp-result-body strong{
  color:#f8fafc!important;
}
html.nah-sdp-night-active body .nah-sdp-result-body small{
  color:#cbd5e1!important;
}
html.nah-sdp-night-active body .nah-sdp-result-body em{
  color:#94a3b8!important;
}
html.nah-sdp-night-active body .nah-sdp-empty,
html.nah-sdp-night-active body .nah-sdp-loading{
  background:#111c2f!important;
  color:#cbd5e1!important;
  border:1px solid rgba(148,163,184,.24)!important;
}


/* v1.4.6: Dark-mode contrast fix for blue/inline-colored text in MagOne article content.
   Problem: many translated medical articles contain inline blue text or theme-custom blue links.
   On #0b1628 backgrounds, dark blue becomes almost invisible. */

html.nah-sdp-night-active body .entry-content,
html.nah-sdp-night-active body .post-content,
html.nah-sdp-night-active body .page-content,
html.nah-sdp-night-active body .single-content,
html.nah-sdp-night-active body .post-body,
html.nah-sdp-night-active body .post-body-inner,
html.nah-sdp-night-active body .content-template,
html.nah-sdp-night-active body article{
  color:#dbeafe!important;
}

/* General body text inside articles */
html.nah-sdp-night-active body .entry-content p,
html.nah-sdp-night-active body .post-content p,
html.nah-sdp-night-active body .page-content p,
html.nah-sdp-night-active body .single-content p,
html.nah-sdp-night-active body .post-body-inner p,
html.nah-sdp-night-active body .content-template p,
html.nah-sdp-night-active body article p,
html.nah-sdp-night-active body .entry-content li,
html.nah-sdp-night-active body .post-content li,
html.nah-sdp-night-active body .post-body-inner li,
html.nah-sdp-night-active body .content-template li,
html.nah-sdp-night-active body article li{
  color:#dbeafe!important;
}

/* Article links: force high-contrast cyan instead of dark blue. */
html.nah-sdp-night-active body .entry-content a,
html.nah-sdp-night-active body .post-content a,
html.nah-sdp-night-active body .page-content a,
html.nah-sdp-night-active body .single-content a,
html.nah-sdp-night-active body .post-body-inner a,
html.nah-sdp-night-active body .content-template a,
html.nah-sdp-night-active body article a,
html.nah-sdp-night-active body .breadcrumb a,
html.nah-sdp-night-active body .breadcrumbs a,
html.nah-sdp-night-active body .post-meta a,
html.nah-sdp-night-active body .td-post-source-tags a{
  color:#67e8f9!important;
  text-decoration:none!important;
  text-underline-offset:3px!important;
  text-shadow:none!important;
}
html.nah-sdp-night-active body .entry-content a:hover,
html.nah-sdp-night-active body .post-content a:hover,
html.nah-sdp-night-active body .post-body-inner a:hover,
html.nah-sdp-night-active body .content-template a:hover,
html.nah-sdp-night-active body article a:hover{
  color:#a7f3d0!important;
  text-decoration:underline!important;
}

/* Inline-colored spans/divs/headings in articles: neutralize hard-coded dark blues. */
html.nah-sdp-night-active body .entry-content [style*="color"],
html.nah-sdp-night-active body .post-content [style*="color"],
html.nah-sdp-night-active body .page-content [style*="color"],
html.nah-sdp-night-active body .single-content [style*="color"],
html.nah-sdp-night-active body .post-body-inner [style*="color"],
html.nah-sdp-night-active body .content-template [style*="color"],
html.nah-sdp-night-active body article [style*="color"]{
  color:#dbeafe!important;
  text-shadow:none!important;
}

/* Preserve links even when they also have inline color. */
html.nah-sdp-night-active body .entry-content a[style*="color"],
html.nah-sdp-night-active body .post-content a[style*="color"],
html.nah-sdp-night-active body .page-content a[style*="color"],
html.nah-sdp-night-active body .single-content a[style*="color"],
html.nah-sdp-night-active body .post-body-inner a[style*="color"],
html.nah-sdp-night-active body .content-template a[style*="color"],
html.nah-sdp-night-active body article a[style*="color"]{
  color:#67e8f9!important;
}

/* Blue headings/section titles in article body should become bright but not neon. */
html.nah-sdp-night-active body .entry-content h1,
html.nah-sdp-night-active body .entry-content h2,
html.nah-sdp-night-active body .entry-content h3,
html.nah-sdp-night-active body .entry-content h4,
html.nah-sdp-night-active body .entry-content h5,
html.nah-sdp-night-active body .entry-content h6,
html.nah-sdp-night-active body .post-content h1,
html.nah-sdp-night-active body .post-content h2,
html.nah-sdp-night-active body .post-content h3,
html.nah-sdp-night-active body .post-content h4,
html.nah-sdp-night-active body .post-content h5,
html.nah-sdp-night-active body .post-content h6,
html.nah-sdp-night-active body .post-body-inner h1,
html.nah-sdp-night-active body .post-body-inner h2,
html.nah-sdp-night-active body .post-body-inner h3,
html.nah-sdp-night-active body .post-body-inner h4,
html.nah-sdp-night-active body .post-body-inner h5,
html.nah-sdp-night-active body .post-body-inner h6,
html.nah-sdp-night-active body .content-template h1,
html.nah-sdp-night-active body .content-template h2,
html.nah-sdp-night-active body .content-template h3,
html.nah-sdp-night-active body .content-template h4,
html.nah-sdp-night-active body .content-template h5,
html.nah-sdp-night-active body .content-template h6,
html.nah-sdp-night-active body article h1,
html.nah-sdp-night-active body article h2,
html.nah-sdp-night-active body article h3,
html.nah-sdp-night-active body article h4,
html.nah-sdp-night-active body article h5,
html.nah-sdp-night-active body article h6{
  color:#93c5fd!important;
  text-shadow:none!important;
}

/* Common MagOne/translated-book title blocks that often use dark blue. */
html.nah-sdp-night-active body .post-title,
html.nah-sdp-night-active body .entry-title,
html.nah-sdp-night-active body .item-title,
html.nah-sdp-night-active body .item-title a,
html.nah-sdp-night-active body .post-body-inner strong,
html.nah-sdp-night-active body .content-template strong,
html.nah-sdp-night-active body article strong{
  color:#f8fafc!important;
}

/* Post source/tag/category links remain cyan and readable. */
html.nah-sdp-night-active body .post-label a,
html.nah-sdp-night-active body .post-label span,
html.nah-sdp-night-active body .feed.widget .item-labels a,
html.nah-sdp-night-active body .feed-widget-labels a,
html.nah-sdp-night-active body .tags a,
html.nah-sdp-night-active body .tagcloud a{
  color:#ffffff!important;
}

/* If article contains blue text inside centered title blocks, give it enough contrast. */
html.nah-sdp-night-active body .post-body-inner center,
html.nah-sdp-night-active body .content-template center,
html.nah-sdp-night-active body article center{
  color:#dbeafe!important;
}
html.nah-sdp-night-active body .post-body-inner center [style*="color"],
html.nah-sdp-night-active body .content-template center [style*="color"],
html.nah-sdp-night-active body article center [style*="color"]{
  color:#93c5fd!important;
}

/* Do not recolor icons or clinical images. */
html.nah-sdp-night-active body .entry-content img,
html.nah-sdp-night-active body .post-content img,
html.nah-sdp-night-active body .post-body-inner img,
html.nah-sdp-night-active body .content-template img,
html.nah-sdp-night-active body article img,
html.nah-sdp-night-active body .entry-content svg,
html.nah-sdp-night-active body .post-content svg,
html.nah-sdp-night-active body .post-body-inner svg,
html.nah-sdp-night-active body .content-template svg,
html.nah-sdp-night-active body article svg{
  filter:none!important;
}


/* v1.4.7: Compact search dropdown + ICD-10 card dark mode + related posts/loadmore/pagination. */

/* A. Compact search result: thumbnail + title + category/date only. */
.nah-sdp-result-list{
  gap:10px!important;
}
.nah-sdp-result{
  min-height:74px!important;
  padding:10px!important;
  align-items:center!important;
}
.nah-sdp-result-body{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:5px!important;
}
.nah-sdp-result-body strong{
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.35!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.nah-sdp-result-body small{
  display:none!important;
}
.nah-sdp-result-body em{
  font-size:11px!important;
  line-height:1.25!important;
  font-style:normal!important;
  color:#64748b!important;
}
@media (min-width:1200px){
  .nah-sdp-menu-search .nah-sdp-result{
    min-height:72px!important;
  }
  .nah-sdp-menu-search .nah-sdp-result-body strong{
    font-size:13px!important;
    -webkit-line-clamp:2!important;
  }
  .nah-sdp-menu-search .nah-sdp-result-body em{
    font-size:10.5px!important;
  }
}
html.nah-sdp-night-active body .nah-sdp-result-body em{
  color:#94a3b8!important;
}

/* B. ICD-10 SmartKit: stronger card dark mode for individual disease code cards. */
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-results-wrap,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-results,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-layout,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-yhct-grid,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-pl3-grid,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-guide-grid{
  background:transparent!important;
  color:#e6edf7!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card:not(.nah-icd10-card-warning):not(.nah-icd10-card-danger):not(.nah-icd10-card-ok):not(.nah-icd10-card-success),
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-pl3-card,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-guide-card,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-check-card{
  background:#101827!important;
  background-image:none!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.34)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.22)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-ok,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-success{
  background:#052e24!important;
  background-image:none!important;
  border-color:rgba(34,197,94,.48)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-warning{
  background:#2b220d!important;
  background-image:none!important;
  border-color:rgba(251,191,36,.48)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-danger{
  background:#35111a!important;
  background-image:none!important;
  border-color:rgba(248,113,113,.48)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-message,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-primary-note,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-suggestion,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-suggestions,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app details,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app summary{
  background:#172338!important;
  background-image:none!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.34)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-primary-note{
  background:#0f172a!important;
  color:#dbeafe!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-ok .nah-icd10-message,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-success .nah-icd10-message{
  background:#063b2d!important;
  color:#bbf7d0!important;
  border-color:rgba(34,197,94,.42)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-warning .nah-icd10-message{
  background:#33240b!important;
  color:#fde68a!important;
  border-color:rgba(251,191,36,.42)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-danger .nah-icd10-message{
  background:#3b1118!important;
  color:#fecdd3!important;
  border-color:rgba(248,113,113,.45)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-code-row,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-suggestion-row,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-meta-row{
  background:transparent!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.24)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-meta span,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card .tag,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card [class*="tag"],
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card [class*="pill"]{
  background:#172338!important;
  color:#dbeafe!important;
  border-color:rgba(148,163,184,.32)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-title,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card strong{
  color:#f8fafc!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card p,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card small,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card .nah-icd10-en,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card .nah-icd10-note{
  color:#cbd5e1!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-actions button{
  background:#172338!important;
  color:#e6edf7!important;
  border:1px solid rgba(148,163,184,.36)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-actions button:hover{
  background:#2563eb!important;
  color:#fff!important;
}

/* C. Related posts / suggestions under posts in MagOne. */
html.nah-sdp-night-active body .related-posts,
html.nah-sdp-night-active body .related-post,
html.nah-sdp-night-active body .related-posts-widget,
html.nah-sdp-night-active body .post-related,
html.nah-sdp-night-active body .post-related-content,
html.nah-sdp-night-active body .post-nav-related,
html.nah-sdp-night-active body .related-wrapper,
html.nah-sdp-night-active body .related-items,
html.nah-sdp-night-active body .related-post-container,
html.nah-sdp-night-active body .you-may-also-like,
html.nah-sdp-night-active body .recommended-posts,
html.nah-sdp-night-active body .recommended-post,
html.nah-sdp-night-active body .recommend-posts,
html.nah-sdp-night-active body .recommend,
html.nah-sdp-night-active body .suggestion-posts,
html.nah-sdp-night-active body .suggestion,
html.nah-sdp-night-active body .feed.widget.simple-one,
html.nah-sdp-night-active body .feed.widget.grid-one,
html.nah-sdp-night-active body .feed.widget.grid-two,
html.nah-sdp-night-active body .feed.widget.grid-three{
  background:#0b1628!important;
  background-image:none!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.28)!important;
}
html.nah-sdp-night-active body .related-posts .widget-title,
html.nah-sdp-night-active body .related-posts h2,
html.nah-sdp-night-active body .related-posts h3,
html.nah-sdp-night-active body .post-related h2,
html.nah-sdp-night-active body .post-related h3,
html.nah-sdp-night-active body .recommended-posts h2,
html.nah-sdp-night-active body .recommended-posts h3,
html.nah-sdp-night-active body .feed.widget.simple-one .widget-title,
html.nah-sdp-night-active body .feed.widget.grid-one .widget-title{
  background:#172338!important;
  color:#67e8f9!important;
  border-bottom-color:#0f766e!important;
}
html.nah-sdp-night-active body .related-posts a,
html.nah-sdp-night-active body .related-post a,
html.nah-sdp-night-active body .post-related a,
html.nah-sdp-night-active body .recommended-posts a,
html.nah-sdp-night-active body .feed.widget.simple-one .item-title a,
html.nah-sdp-night-active body .feed.widget.grid-one .item-title a,
html.nah-sdp-night-active body .feed.widget.grid-two .item-title a,
html.nah-sdp-night-active body .feed.widget.grid-three .item-title a{
  color:#67e8f9!important;
  text-shadow:none!important;
}
html.nah-sdp-night-active body .related-posts a:hover,
html.nah-sdp-night-active body .post-related a:hover,
html.nah-sdp-night-active body .recommended-posts a:hover{
  color:#a7f3d0!important;
}

/* D. Load more and pagination in dark mode. */
html.nah-sdp-night-active body .feed-widget-pagination,
html.nah-sdp-night-active body .feed-widget-pagination-loadmore,
html.nah-sdp-night-active body .blog-pager,
html.nah-sdp-night-active body .pagination,
html.nah-sdp-night-active body .nav-links,
html.nah-sdp-night-active body .page-numbers,
html.nah-sdp-night-active body .post-pagination,
html.nah-sdp-night-active body .wp-pagenavi,
html.nah-sdp-night-active body .paging-navigation{
  background:#0f766e!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.28)!important;
}
html.nah-sdp-night-active body .feed-widget-pagination-loadmore .feed-widget-pagination-load-more-button,
html.nah-sdp-night-active body .feed-widget-pagination-load-more-button,
html.nah-sdp-night-active body .load-more,
html.nah-sdp-night-active body .loadmore,
html.nah-sdp-night-active body .load_more,
html.nah-sdp-night-active body a.load-more,
html.nah-sdp-night-active body button.load-more{
  background:#2563eb!important;
  background-image:linear-gradient(135deg,#0f766e,#2563eb)!important;
  color:#ffffff!important;
  border:1px solid rgba(125,211,252,.42)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.26)!important;
  text-shadow:none!important;
}
html.nah-sdp-night-active body .pagination a,
html.nah-sdp-night-active body .pagination span,
html.nah-sdp-night-active body .nav-links a,
html.nah-sdp-night-active body .nav-links span,
html.nah-sdp-night-active body .page-numbers,
html.nah-sdp-night-active body .wp-pagenavi a,
html.nah-sdp-night-active body .wp-pagenavi span,
html.nah-sdp-night-active body .feed-widget-pagination a,
html.nah-sdp-night-active body .feed-widget-pagination span{
  background:#172338!important;
  color:#e6edf7!important;
  border-color:rgba(148,163,184,.36)!important;
}
html.nah-sdp-night-active body .pagination .current,
html.nah-sdp-night-active body .nav-links .current,
html.nah-sdp-night-active body .page-numbers.current,
html.nah-sdp-night-active body .wp-pagenavi .current,
html.nah-sdp-night-active body .feed-widget-pagination .current{
  background:#2563eb!important;
  color:#fff!important;
  border-color:#2563eb!important;
}


/* v1.4.8: Neutral dark palette refinement.
   Remove teal/green container fills in Night Mode. Keep accent only for active/semantic emphasis. */

html.nah-sdp-night-active body{
  --nah-night-bg:#0b1220;
  --nah-night-surface:#111827;
  --nah-night-surface-2:#172033;
  --nah-night-surface-3:#1e293b;
  --nah-night-border:rgba(148,163,184,.30);
  --nah-night-text:#e5edf7;
  --nah-night-muted:#b6c2d2;
  --nah-night-link:#67e8f9;
  --nah-night-accent:#2563eb;
}

/* A. MagOne feed/widget containers: avoid large green/teal strips. */
html.nah-sdp-night-active body .feed.widget,
html.nah-sdp-night-active body .feed.widget.simple-one,
html.nah-sdp-night-active body .feed.widget.grid-one,
html.nah-sdp-night-active body .feed.widget.grid-two,
html.nah-sdp-night-active body .feed.widget.grid-three,
html.nah-sdp-night-active body .feed-widget,
html.nah-sdp-night-active body .feed-widget-content,
html.nah-sdp-night-active body .widget-content,
html.nah-sdp-night-active body .widget-inner,
html.nah-sdp-night-active body .section,
html.nah-sdp-night-active body .section-inner,
html.nah-sdp-night-active body .magone-section,
html.nah-sdp-night-active body .td-block-span12,
html.nah-sdp-night-active body .td-block-row,
html.nah-sdp-night-active body .blog-posts,
html.nah-sdp-night-active body .items,
html.nah-sdp-night-active body .items-wrapper{
  background:#0b1220!important;
  background-image:none!important;
  color:var(--nah-night-text)!important;
  border-color:var(--nah-night-border)!important;
}

/* Wide heading bars behind widget title should be dark, not teal. */
html.nah-sdp-night-active body .feed.widget .widget-title,
html.nah-sdp-night-active body .feed.widget .feed-widget-title,
html.nah-sdp-night-active body .widget-title.feed-widget-title,
html.nah-sdp-night-active body h2.widget-title.feed-widget-title,
html.nah-sdp-night-active body h2.feed-widget-title,
html.nah-sdp-night-active body .related-posts .widget-title,
html.nah-sdp-night-active body .recommended-posts .widget-title{
  background:#172033!important;
  background-image:none!important;
  color:#eaf2ff!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-bottom:3px solid #334155!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body .feed.widget .widget-title span,
html.nah-sdp-night-active body .feed.widget .feed-widget-title span,
html.nah-sdp-night-active body .widget-title.feed-widget-title span,
html.nah-sdp-night-active body h2.feed-widget-title span{
  color:#93c5fd!important;
}

/* Some MagOne builds use pseudo/inner title bars; neutralize teal backgrounds. */
html.nah-sdp-night-active body .feed.widget .widget-title:before,
html.nah-sdp-night-active body .feed.widget .widget-title:after,
html.nah-sdp-night-active body .widget-title.feed-widget-title:before,
html.nah-sdp-night-active body .widget-title.feed-widget-title:after{
  background:#334155!important;
  border-color:#334155!important;
}

/* B. Pagination and Load More: neutral dark containers + blue active action only. */
html.nah-sdp-night-active body .feed-widget-pagination,
html.nah-sdp-night-active body .feed-widget-pagination-loadmore,
html.nah-sdp-night-active body .blog-pager,
html.nah-sdp-night-active body .pagination,
html.nah-sdp-night-active body .nav-links,
html.nah-sdp-night-active body .post-pagination,
html.nah-sdp-night-active body .wp-pagenavi,
html.nah-sdp-night-active body .paging-navigation,
html.nah-sdp-night-active body .pager,
html.nah-sdp-night-active body .page-nav{
  background:#111827!important;
  background-image:none!important;
  color:var(--nah-night-muted)!important;
  border:1px solid rgba(148,163,184,.22)!important;
  box-shadow:none!important;
}

html.nah-sdp-night-active body .feed-widget-pagination-loadmore .feed-widget-pagination-load-more-button,
html.nah-sdp-night-active body .feed-widget-pagination-load-more-button,
html.nah-sdp-night-active body .load-more,
html.nah-sdp-night-active body .loadmore,
html.nah-sdp-night-active body .load_more,
html.nah-sdp-night-active body a.load-more,
html.nah-sdp-night-active body button.load-more,
html.nah-sdp-night-active body .pagination a,
html.nah-sdp-night-active body .pagination span,
html.nah-sdp-night-active body .nav-links a,
html.nah-sdp-night-active body .nav-links span,
html.nah-sdp-night-active body .page-numbers,
html.nah-sdp-night-active body .wp-pagenavi a,
html.nah-sdp-night-active body .wp-pagenavi span,
html.nah-sdp-night-active body .feed-widget-pagination a,
html.nah-sdp-night-active body .feed-widget-pagination span{
  background:#172033!important;
  background-image:none!important;
  color:#dbeafe!important;
  border:1px solid rgba(148,163,184,.30)!important;
  box-shadow:none!important;
  text-shadow:none!important;
}

html.nah-sdp-night-active body .feed-widget-pagination-loadmore .feed-widget-pagination-load-more-button{
  width:100%!important;
  color:#e5edf7!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
}

html.nah-sdp-night-active body .feed-widget-pagination-loadmore .feed-widget-pagination-load-more-button:hover,
html.nah-sdp-night-active body .feed-widget-pagination-load-more-button:hover,
html.nah-sdp-night-active body .load-more:hover,
html.nah-sdp-night-active body .loadmore:hover,
html.nah-sdp-night-active body .pagination a:hover,
html.nah-sdp-night-active body .nav-links a:hover,
html.nah-sdp-night-active body .wp-pagenavi a:hover{
  background:#1e293b!important;
  color:#ffffff!important;
  border-color:#60a5fa!important;
}

html.nah-sdp-night-active body .pagination .current,
html.nah-sdp-night-active body .nav-links .current,
html.nah-sdp-night-active body .page-numbers.current,
html.nah-sdp-night-active body .wp-pagenavi .current,
html.nah-sdp-night-active body .feed-widget-pagination .current,
html.nah-sdp-night-active body .feed-widget-pagination span.current{
  background:#2563eb!important;
  color:#ffffff!important;
  border-color:#2563eb!important;
}

/* C. Related posts block: neutral dark surface. */
html.nah-sdp-night-active body .related-posts,
html.nah-sdp-night-active body .related-post,
html.nah-sdp-night-active body .post-related,
html.nah-sdp-night-active body .post-related-content,
html.nah-sdp-night-active body .recommended-posts,
html.nah-sdp-night-active body .recommended-post,
html.nah-sdp-night-active body .you-may-also-like,
html.nah-sdp-night-active body .suggestion-posts,
html.nah-sdp-night-active body .suggestion{
  background:#0b1220!important;
  background-image:none!important;
  color:var(--nah-night-text)!important;
  border-color:var(--nah-night-border)!important;
}

/* D. ICD-10 cards: use neutral gray/dark surfaces; semantic color moves to border/badge only. */
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app{
  --nah-ink:#e5edf7!important;
  --nah-muted:#b6c2d2!important;
  --nah-bg:#0b1220!important;
  --nah-line:rgba(148,163,184,.30)!important;
  background:#0b1220!important;
  color:#e5edf7!important;
}

html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-hero,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-searchbox,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-checker,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-tab-panel,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-ok,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-success,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-warning,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-danger,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-check-card,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-pl3-card,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-guide-card{
  background:#111827!important;
  background-image:none!important;
  color:#e5edf7!important;
  border-color:rgba(148,163,184,.32)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.22)!important;
}

/* semantic cards: no green/yellow/red filled panels; only subtle border and left inset. */
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-ok,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-success{
  border-color:rgba(34,197,94,.46)!important;
  box-shadow:inset 3px 0 0 rgba(34,197,94,.70),0 12px 30px rgba(0,0,0,.22)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-warning{
  border-color:rgba(251,191,36,.48)!important;
  box-shadow:inset 3px 0 0 rgba(251,191,36,.70),0 12px 30px rgba(0,0,0,.22)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-danger{
  border-color:rgba(248,113,113,.48)!important;
  box-shadow:inset 3px 0 0 rgba(248,113,113,.70),0 12px 30px rgba(0,0,0,.22)!important;
}

html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-message,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-primary-note,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-suggestion,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-suggestions,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app details,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app summary{
  background:#172033!important;
  background-image:none!important;
  color:#dbeafe!important;
  border-color:rgba(148,163,184,.30)!important;
}

/* Status messages: dark neutral with small semantic accent, not light/green backgrounds. */
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-ok .nah-icd10-message,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-success .nah-icd10-message{
  background:#172033!important;
  color:#dbeafe!important;
  border-color:rgba(34,197,94,.36)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-warning .nah-icd10-message{
  background:#172033!important;
  color:#dbeafe!important;
  border-color:rgba(251,191,36,.36)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card-danger .nah-icd10-message{
  background:#172033!important;
  color:#dbeafe!important;
  border-color:rgba(248,113,113,.36)!important;
}

/* ICD code and chips */
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-code,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-meta span,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card [class*="tag"],
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-card [class*="pill"]{
  background:#1e293b!important;
  color:#e5edf7!important;
  border-color:rgba(148,163,184,.32)!important;
}

html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge-success{
  background:#14352b!important;
  color:#bbf7d0!important;
  border-color:rgba(34,197,94,.38)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge-warning{
  background:#352a13!important;
  color:#fde68a!important;
  border-color:rgba(251,191,36,.38)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge-danger{
  background:#371820!important;
  color:#fecdd3!important;
  border-color:rgba(248,113,113,.38)!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-badge-purple{
  background:#261b3d!important;
  color:#e9d5ff!important;
  border-color:rgba(168,85,247,.36)!important;
}

/* ICD action/filter buttons: neutral dark; active remains blue. */
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-filters button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-detail-filters button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-module-tabs button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-guide-tabs button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-view-toggle button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-actions button,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-detail-toggle,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-loadmore{
  background:#172033!important;
  color:#e5edf7!important;
  border:1px solid rgba(148,163,184,.32)!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-filters button:hover,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-detail-filters button:hover,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-actions button:hover{
  background:#1e293b!important;
  border-color:#60a5fa!important;
}
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-filters button.is-active,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-module-tabs button.is-active,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-guide-tabs button.is-active,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app .nah-icd10-view-toggle button.is-active,
html.nah-sdp-night-active body .nah-icd10-app.nah-icd10-app button.is-active{
  background:#2563eb!important;
  color:#fff!important;
  border-color:#2563eb!important;
}


/* v1.4.9: Bottom bar in dark mode should feel like one continuous strip on mobile/tablet */
@media (max-width:1199.98px){
  html.nah-sdp-night-active .nah-sdp-dock{
    left:0!important;
    right:0!important;
    bottom:0!important;
    gap:0!important;
    padding:0 0 calc(env(safe-area-inset-bottom) + 0px)!important;
    background:#0b1220!important;
    background-image:none!important;
    border-top:1px solid rgba(148,163,184,.22)!important;
    box-shadow:0 -10px 28px rgba(2,6,23,.42)!important;
    border-radius:18px 18px 0 0!important;
    overflow:hidden!important;
  }

  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-dock-btn{
    min-height:60px!important;
    margin:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border:none!important;
    border-left:1px solid rgba(148,163,184,.14)!important;
    color:#e5edf7!important;
    position:relative!important;
  }

  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-dock-btn:first-of-type{
    border-left:none!important;
  }

  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-dock-btn:hover,
  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-dock-btn.nah-sdp-active{
    background:rgba(37,99,235,.16)!important;
    color:#ffffff!important;
    box-shadow:none!important;
  }

  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-dock-btn.nah-sdp-active::before,
  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-dock-btn:hover::before{
    content:"";
    position:absolute;
    left:12px;
    right:12px;
    top:0;
    height:3px;
    border-radius:0 0 999px 999px;
    background:#60a5fa;
  }

  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-night-btn.nah-sdp-active,
  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-night-btn:hover{
    background:rgba(13,148,136,.14)!important;
    color:#ecfeff!important;
  }

  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-night-btn.nah-sdp-active::before,
  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-night-btn:hover::before{
    background:#2dd4bf!important;
  }
}

@media (max-width:420px){
  html.nah-sdp-night-active .nah-sdp-dock{
    border-radius:16px 16px 0 0!important;
  }
  html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-dock-btn{
    min-height:58px!important;
  }
}


/* v1.5.0: Account form text contrast + MagOne mobile Main Menu Dark Mode */

/* A. Dock account/login popover: stronger label/text contrast in Darkmode */
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-card,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-login-form,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-forgot-form{
  color:#e5edf7!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover .nah-sdp-title,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover h1,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover h2,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover h3{
  color:#f8fafc!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-login-form label,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-forgot-form label,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-remember,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-remember span,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-message,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-hotline,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-signup > span{
  color:#dbeafe!important;
  opacity:1!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-login-form input,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-forgot-form input{
  background:#111c2f!important;
  color:#f8fafc!important;
  border-color:rgba(148,163,184,.48)!important;
  box-shadow:none!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-login-form input::placeholder,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-forgot-form input::placeholder{
  color:#94a3b8!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-forgot-link{
  background:#f8fafc!important;
  color:#0f172a!important;
  border-color:rgba(148,163,184,.30)!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-submit{
  background:#0f766e!important;
  color:#ffffff!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-signup{
  background:#e8ffff!important;
  color:#0f172a!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-signup > span{
  color:#0f172a!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-signup a{
  color:#0f766e!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-hotline a{
  color:#67e8f9!important;
  font-weight:900!important;
}

html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-home-link{
  color:#2dd4bf!important;
}

/* B. SachYHoc/YHocLamSang plugin login forms */
html.nah-sdp-night-active body .syh-modern-login-card label,
html.nah-sdp-night-active body .syh-modern-login-card .syh-modern-field span,
html.nah-sdp-night-active body .syh-modern-login-card .syh-modern-check,
html.nah-sdp-night-active body .syh-login-card label,
html.nah-sdp-night-active body .syh-login-form label,
html.nah-sdp-night-active body .syh-restricted-form label,
html.nah-sdp-night-active body .syh-restricted-options label{
  color:#e5edf7!important;
  opacity:1!important;
}

/* C. MagOne mobile Main Menu / collapsed menu in Darkmode */
@media (max-width:1199.98px){
  html.nah-sdp-night-active body .main-menu,
  html.nah-sdp-night-active body .mobile-menu,
  html.nah-sdp-night-active body .nav-menu,
  html.nah-sdp-night-active body .menu-wrap,
  html.nah-sdp-night-active body .menu-wrapper,
  html.nah-sdp-night-active body .menu-container,
  html.nah-sdp-night-active body .main-nav,
  html.nah-sdp-night-active body #main-menu,
  html.nah-sdp-night-active body #mobile-menu,
  html.nah-sdp-night-active body .m1-menu,
  html.nah-sdp-night-active body .slicknav_menu,
  html.nah-sdp-night-active body .slicknav_nav{
    background:#0f172a!important;
    background-image:none!important;
    color:#e5edf7!important;
    border-color:rgba(148,163,184,.28)!important;
    box-shadow:none!important;
    text-shadow:none!important;
  }

  html.nah-sdp-night-active body .main-menu ul,
  html.nah-sdp-night-active body .mobile-menu ul,
  html.nah-sdp-night-active body .nav-menu ul,
  html.nah-sdp-night-active body .menu ul,
  html.nah-sdp-night-active body nav ul.menu,
  html.nah-sdp-night-active body #main-menu ul,
  html.nah-sdp-night-active body #mobile-menu ul,
  html.nah-sdp-night-active body .m1-menu ul,
  html.nah-sdp-night-active body .slicknav_nav ul{
    background:#111827!important;
    background-image:none!important;
    color:#e5edf7!important;
    border-color:rgba(148,163,184,.26)!important;
  }

  html.nah-sdp-night-active body .main-menu li,
  html.nah-sdp-night-active body .mobile-menu li,
  html.nah-sdp-night-active body .nav-menu li,
  html.nah-sdp-night-active body .menu li,
  html.nah-sdp-night-active body nav .menu > li,
  html.nah-sdp-night-active body #main-menu li,
  html.nah-sdp-night-active body #mobile-menu li,
  html.nah-sdp-night-active body .m1-menu li,
  html.nah-sdp-night-active body .slicknav_nav li{
    background:#111827!important;
    background-image:none!important;
    color:#e5edf7!important;
    border-color:rgba(148,163,184,.22)!important;
  }

  html.nah-sdp-night-active body .main-menu li a,
  html.nah-sdp-night-active body .mobile-menu li a,
  html.nah-sdp-night-active body .nav-menu li a,
  html.nah-sdp-night-active body .menu li a,
  html.nah-sdp-night-active body nav .menu > li > a,
  html.nah-sdp-night-active body #main-menu li a,
  html.nah-sdp-night-active body #mobile-menu li a,
  html.nah-sdp-night-active body .m1-menu li a,
  html.nah-sdp-night-active body .slicknav_nav li a,
  html.nah-sdp-night-active body .slicknav_nav a{
    display:block!important;
    background:#111827!important;
    background-image:none!important;
    color:#e5edf7!important;
    border-color:rgba(148,163,184,.22)!important;
    text-shadow:none!important;
  }

  html.nah-sdp-night-active body .main-menu li a:hover,
  html.nah-sdp-night-active body .mobile-menu li a:hover,
  html.nah-sdp-night-active body .nav-menu li a:hover,
  html.nah-sdp-night-active body .menu li a:hover,
  html.nah-sdp-night-active body #main-menu li a:hover,
  html.nah-sdp-night-active body #mobile-menu li a:hover,
  html.nah-sdp-night-active body .m1-menu li a:hover,
  html.nah-sdp-night-active body .slicknav_nav li a:hover{
    background:#172033!important;
    color:#67e8f9!important;
  }

  html.nah-sdp-night-active body .main-menu .current-menu-item > a,
  html.nah-sdp-night-active body .mobile-menu .current-menu-item > a,
  html.nah-sdp-night-active body .nav-menu .current-menu-item > a,
  html.nah-sdp-night-active body .menu .current-menu-item > a,
  html.nah-sdp-night-active body #main-menu .current-menu-item > a,
  html.nah-sdp-night-active body #mobile-menu .current-menu-item > a,
  html.nah-sdp-night-active body .m1-menu .current-menu-item > a,
  html.nah-sdp-night-active body .slicknav_nav .current-menu-item > a{
    background:#1e293b!important;
    color:#67e8f9!important;
  }

  html.nah-sdp-night-active body .sub-menu,
  html.nah-sdp-night-active body .children,
  html.nah-sdp-night-active body .dropdown-menu,
  html.nah-sdp-night-active body .main-menu .sub-menu,
  html.nah-sdp-night-active body .mobile-menu .sub-menu,
  html.nah-sdp-night-active body .menu .sub-menu,
  html.nah-sdp-night-active body #main-menu .sub-menu,
  html.nah-sdp-night-active body #mobile-menu .sub-menu{
    background:#0b1220!important;
    color:#e5edf7!important;
    border-color:rgba(148,163,184,.24)!important;
  }

  html.nah-sdp-night-active body .menu-toggle,
  html.nah-sdp-night-active body .mobile-menu-toggle,
  html.nah-sdp-night-active body .hamburger,
  html.nah-sdp-night-active body .slicknav_btn,
  html.nah-sdp-night-active body .slicknav_menutxt,
  html.nah-sdp-night-active body .slicknav_icon,
  html.nah-sdp-night-active body .slicknav_arrow{
    color:#e5edf7!important;
    background:transparent!important;
    border-color:rgba(148,163,184,.26)!important;
  }

  html.nah-sdp-night-active body .slicknav_icon-bar,
  html.nah-sdp-night-active body .hamburger span,
  html.nah-sdp-night-active body .menu-toggle span{
    background:#67e8f9!important;
  }
}


/* v1.5.1: Account name contrast + ICD-10 header/wrapper refinement */

/* A. Account popover: logged-in user name must remain readable in Darkmode */
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover .nah-sdp-user,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover .nah-sdp-account-card .nah-sdp-user,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover strong,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover b{
  color:#f8fafc!important;
  opacity:1!important;
  text-shadow:none!important;
}
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover .nah-sdp-title{
  color:#f8fafc!important;
}
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover .nah-sdp-action,
html.nah-sdp-night-active .nah-sdp-dock .nah-sdp-account-popover .nah-sdp-actions a{
  background:#0f766e!important;
  color:#ffffff!important;
  border-color:rgba(94,234,212,.28)!important;
}

/* B. ICD-10 app wrapper: make the whole lookup block feel like one rounded module */
.nah-sdp-icd10-popover .nah-icd10-app,
.nah-icd10-app{
  border-radius:26px!important;
}
.nah-sdp-icd10-popover .nah-icd10-app{
  overflow:hidden!important;
}
.nah-icd10-app .nah-icd10-webapp-shell,
.nah-icd10-app .nah-icd10-shell,
.nah-icd10-app .nah-icd10-main,
.nah-icd10-app .nah-icd10-wrapper{
  border-radius:26px!important;
}
html.nah-sdp-night-active body .nah-icd10-app{
  background:#0b1220!important;
  border:1px solid rgba(148,163,184,.26)!important;
  border-radius:26px!important;
  box-shadow:0 20px 60px rgba(0,0,0,.24)!important;
}
html.nah-sdp-night-active .nah-sdp-icd10-popover{
  background:#0b1220!important;
  border-color:rgba(148,163,184,.26)!important;
  border-radius:26px!important;
  overflow:hidden!important;
}

/* C. ICD-10 header / intro area: version, author, email, phone, stats */
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-hero,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-header,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-intro,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-brand,
html.nah-sdp-night-active body .nah-icd10-app [class*="hero"],
html.nah-sdp-night-active body .nah-icd10-app [class*="header"],
html.nah-sdp-night-active body .nah-icd10-app [class*="intro"]{
  background:#111827!important;
  background-image:none!important;
  color:#e5edf7!important;
  border-color:rgba(148,163,184,.30)!important;
  box-shadow:none!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-hero h1,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-hero h2,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-header h1,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-header h2,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-brand-title,
html.nah-sdp-night-active body .nah-icd10-app [class*="title"]{
  color:#f8fafc!important;
  text-shadow:none!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-hero p,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-header p,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-subtitle,
html.nah-sdp-night-active body .nah-icd10-app [class*="subtitle"],
html.nah-sdp-night-active body .nah-icd10-app [class*="desc"]{
  color:#dbeafe!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-hero a,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-header a{
  color:#67e8f9!important;
}

/* Small info chips in header: version, author, email, Zalo */
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-hero .nah-icd10-chip,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-header .nah-icd10-chip,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-meta-chip,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-info-chip,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-author,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-version,
html.nah-sdp-night-active body .nah-icd10-app [class*="author"],
html.nah-sdp-night-active body .nah-icd10-app [class*="version"],
html.nah-sdp-night-active body .nah-icd10-app [class*="contact"],
html.nah-sdp-night-active body .nah-icd10-app [class*="zalo"]{
  background:#1e293b!important;
  color:#e5edf7!important;
  border:1px solid rgba(148,163,184,.36)!important;
  text-shadow:none!important;
}
html.nah-sdp-night-active body .nah-icd10-app [class*="author"] strong,
html.nah-sdp-night-active body .nah-icd10-app [class*="version"] strong,
html.nah-sdp-night-active body .nah-icd10-app [class*="contact"] strong,
html.nah-sdp-night-active body .nah-icd10-app [class*="zalo"] strong{
  color:#ffffff!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-hero .nah-icd10-stats,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-header .nah-icd10-stats,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stat,
html.nah-sdp-night-active body .nah-icd10-app [class*="stat"]{
  background:#172033!important;
  color:#e5edf7!important;
  border-color:rgba(148,163,184,.34)!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stat strong,
html.nah-sdp-night-active body .nah-icd10-app [class*="stat"] strong{
  color:#f8fafc!important;
}


/* v1.5.2: ICD-10 wrapper visibility in light mode + stats contrast in Darkmode */

/* Light mode: wrapper must be visible, not only apparent in dark mode */
body:not(.nah-sdp-night-active) .nah-icd10-app,
html:not(.nah-sdp-night-active) body .nah-icd10-app{
  border:1px solid #bfdbfe!important;
  border-radius:28px!important;
  background:rgba(255,255,255,.62)!important;
  box-shadow:
    0 22px 70px rgba(37,99,235,.10),
    inset 0 1px 0 rgba(255,255,255,.74)!important;
  overflow:hidden!important;
}
body:not(.nah-sdp-night-active) .nah-icd10-app .nah-icd10-hero{
  border-color:#c7dfff!important;
}
body:not(.nah-sdp-night-active) .nah-icd10-app .nah-icd10-searchbox,
body:not(.nah-sdp-night-active) .nah-icd10-app .nah-icd10-results-wrap,
body:not(.nah-sdp-night-active) .nah-icd10-app .nah-icd10-checker{
  border-color:#d7e8ff!important;
}

/* Darkmode: stats numbers/labels in header must be readable */
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stats,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-hero-side .nah-icd10-stats{
  color:#e5edf7!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stats span,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stat,
html.nah-sdp-night-active body .nah-icd10-app [class*="stat"]{
  background:#172033!important;
  color:#e5edf7!important;
  border-color:rgba(148,163,184,.38)!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stats b,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stats strong,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stat b,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stat strong,
html.nah-sdp-night-active body .nah-icd10-app [class*="stat"] b,
html.nah-sdp-night-active body .nah-icd10-app [class*="stat"] strong{
  color:#f8fafc!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stats small,
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-stat small,
html.nah-sdp-night-active body .nah-icd10-app [class*="stat"] small{
  color:#cbd5e1!important;
}

/* Darkmode: release meta chips */
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-release-meta span{
  background:#1e293b!important;
  color:#e5edf7!important;
  border-color:rgba(148,163,184,.38)!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-release-meta strong{
  color:#ffffff!important;
}
html.nah-sdp-night-active body .nah-icd10-app .nah-icd10-release-meta a{
  color:#67e8f9!important;
}


/* v1.5.3: Account usage statistics Darkmode fix.
   Fixes invisible numbers in: Tài khoản → Thống kê sử dụng.
   Shared by YHocLamSang Clinical Access and SachYHoc Medipharm Membership. */

html.nah-sdp-night-active body .syh-account-card .syh-stat-grid,
body.nah-sdp-night-active .syh-account-card .syh-stat-grid,
html[data-nah-sdp-night="1"] body .syh-account-card .syh-stat-grid{
  background:transparent!important;
  color:#e5edf7!important;
}

html.nah-sdp-night-active body .syh-account-card .syh-stat-card,
body.nah-sdp-night-active .syh-account-card .syh-stat-card,
html[data-nah-sdp-night="1"] body .syh-account-card .syh-stat-card{
  background:#111827!important;
  background-image:none!important;
  color:#e5edf7!important;
  border:1px solid rgba(148,163,184,.34)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.22)!important;
  opacity:1!important;
}

html.nah-sdp-night-active body .syh-account-card .syh-stat-card span,
body.nah-sdp-night-active .syh-account-card .syh-stat-card span,
html[data-nah-sdp-night="1"] body .syh-account-card .syh-stat-card span{
  color:#cbd5e1!important;
  opacity:1!important;
  text-shadow:none!important;
}

html.nah-sdp-night-active body .syh-account-card .syh-stat-card strong,
body.nah-sdp-night-active .syh-account-card .syh-stat-card strong,
html[data-nah-sdp-night="1"] body .syh-account-card .syh-stat-card strong{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  color:#67e8f9!important;
  text-shadow:none!important;
  -webkit-text-fill-color:#67e8f9!important;
  background:transparent!important;
  font-weight:900!important;
}

/* Stronger override for inline font-size values used by “Lần đăng nhập gần nhất”. */
html.nah-sdp-night-active body .syh-account-card .syh-stat-card strong[style],
body.nah-sdp-night-active .syh-account-card .syh-stat-card strong[style],
html[data-nah-sdp-night="1"] body .syh-account-card .syh-stat-card strong[style]{
  color:#67e8f9!important;
  -webkit-text-fill-color:#67e8f9!important;
}

/* Related recent-view stats in the same card. */
html.nah-sdp-night-active body .syh-account-card .syh-content-list,
html.nah-sdp-night-active body .syh-account-card .syh-content-list li,
body.nah-sdp-night-active .syh-account-card .syh-content-list,
body.nah-sdp-night-active .syh-account-card .syh-content-list li{
  color:#dbeafe!important;
}

html.nah-sdp-night-active body .syh-account-card .syh-content-list a,
body.nah-sdp-night-active .syh-account-card .syh-content-list a,
html[data-nah-sdp-night="1"] body .syh-account-card .syh-content-list a{
  color:#67e8f9!important;
  text-shadow:none!important;
}
