:root {
    --mdrx-primary: #0f6cbd;
    --mdrx-primary-dark: #075985;
    --mdrx-primary-hover: #0b5aa0;
    --mdrx-teal: #0f9f93;
    --mdrx-teal-dark: #0f766e;
    --mdrx-navy: #0b1f33;
    --mdrx-text: #0f172a;
    --mdrx-muted: #64748b;
    --mdrx-bg: #f5fafc;
    --mdrx-soft: #edf7fa;
    --mdrx-surface: #ffffff;
    --mdrx-border: #d8e6ed;
    --mdrx-success: #15803d;
    --mdrx-warning: #d97706;
    --mdrx-danger: #dc2626;

    /* Compatibility with inherited CP component variables */
    --cp-primary: var(--mdrx-primary);
    --cp-primary-dark: var(--mdrx-primary-dark);
    --cp-secondary: var(--mdrx-teal);
    --cp-text: var(--mdrx-text);
    --cp-muted: var(--mdrx-muted);
    --cp-border: var(--mdrx-border);

    --cp11-primary: var(--mdrx-primary);
    --cp11-primary-dark: var(--mdrx-primary-dark);
    --cp11-text: var(--mdrx-text);
    --cp11-muted: var(--mdrx-muted);
    --cp11-line: var(--mdrx-border);
}

html,
body {
    background: var(--mdrx-bg) !important;
    color: var(--mdrx-text);
}

a {
    color: var(--mdrx-primary);
}

a:hover,
a:focus {
    color: var(--mdrx-primary-dark);
}

.btn-primary,
.cp-btn-primary,
.cp11-add-cart,
.cp-add-cart,
button[type="submit"] {
    background: linear-gradient(
        135deg,
        var(--mdrx-primary),
        var(--mdrx-teal)
    ) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-primary:hover,
.cp-btn-primary:hover,
.cp11-add-cart:hover,
.cp-add-cart:hover,
button[type="submit"]:hover {
    background: linear-gradient(
        135deg,
        var(--mdrx-primary-dark),
        var(--mdrx-teal-dark)
    ) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--mdrx-primary) !important;
    box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.12) !important;
    outline: none !important;
}

.card,
.cp-card,
.cp11-product-card,
.cp-dashboard-card,
.cp-stat-card {
    border-color: var(--mdrx-border) !important;
    box-shadow: 0 12px 30px rgba(15, 108, 189, 0.08) !important;
}

.cp11-product-card__image {
    background: linear-gradient(
        180deg,
        #ffffff,
        var(--mdrx-soft)
    ) !important;
}

.cp11-product-card__image.has-no-image::after {
    content: "MDRx" !important;
    color: var(--mdrx-primary) !important;
}

.cp11-price-row strong,
.cp-price,
.cp-dashboard-eyebrow,
.cp-kicker,
.cp-safe-eyebrow,
.cp-rbac-kicker {
    color: var(--mdrx-primary) !important;
}

.cp11-promo-card {
    background:
        radial-gradient(
            circle at 88% 50%,
            #ccebea 0,
            #edf8fa 32%,
            #ffffff 76%
        ) !important;
    border-color: var(--mdrx-border) !important;
    box-shadow: 0 12px 30px rgba(15, 108, 189, 0.08) !important;
}

.cp11-promo-card::after {
    color: var(--mdrx-teal) !important;
}

.site-header,
.cp-header,
.cp11-header,
.cp-admin-topbar,
header {
    border-bottom-color: var(--mdrx-border) !important;
}

.cp-sidebar,
.admin-sidebar {
    background: var(--mdrx-navy) !important;
}

.cp-sidebar a,
.admin-sidebar a {
    color: #cbd5e1 !important;
}

.cp-sidebar a:hover,
.cp-sidebar a.active,
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(15, 108, 189, 0.24) !important;
    color: #fff !important;
}

.site-footer,
.cp-footer,
.cp11-footer {
    background: var(--mdrx-navy) !important;
    color: #cbd5e1 !important;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.cp-footer h1,
.cp-footer h2,
.cp-footer h3,
.cp-footer h4,
.cp-footer h5 {
    color: #fff !important;
}

.site-footer a,
.cp-footer a {
    color: #cbd5e1 !important;
}

.site-footer a:hover,
.cp-footer a:hover {
    color: #5eead4 !important;
}

.pill,
.cp-pill,
.badge-primary {
    background: rgba(15, 108, 189, 0.12) !important;
    border-color: rgba(15, 108, 189, 0.2) !important;
    color: var(--mdrx-primary-dark) !important;
}

/* =========================================================
   MDRx Admin Sidebar — Clean Light Mode
   ========================================================= */

body:not(.dark) .cp-sidebar,
body:not(.dark) .admin-sidebar,
html:not([data-theme="dark"]) .cp-sidebar,
html:not([data-theme="dark"]) .admin-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #d8e6ed !important;
    box-shadow: 8px 0 28px rgba(15, 108, 189, 0.06) !important;
}

/* Brand area */
body:not(.dark) .cp-sidebar .cp-brand,
body:not(.dark) .admin-sidebar .cp-brand,
html:not([data-theme="dark"]) .cp-sidebar .cp-brand,
html:not([data-theme="dark"]) .admin-sidebar .cp-brand {
    border-bottom: 1px solid #d8e6ed !important;
}

body:not(.dark) .cp-sidebar .cp-brand-word strong,
body:not(.dark) .admin-sidebar .cp-brand-word strong,
html:not([data-theme="dark"]) .cp-sidebar .cp-brand-word strong,
html:not([data-theme="dark"]) .admin-sidebar .cp-brand-word strong {
    color: #0f172a !important;
}

body:not(.dark) .cp-sidebar .cp-brand-word small,
body:not(.dark) .admin-sidebar .cp-brand-word small,
html:not([data-theme="dark"]) .cp-sidebar .cp-brand-word small,
html:not([data-theme="dark"]) .admin-sidebar .cp-brand-word small {
    color: #64748b !important;
}

/* Main navigation text */
body:not(.dark) .cp-sidebar a,
body:not(.dark) .admin-sidebar a,
html:not([data-theme="dark"]) .cp-sidebar a,
html:not([data-theme="dark"]) .admin-sidebar a {
    color: #475569 !important;
    background: transparent !important;
}

/* Icons */
body:not(.dark) .cp-sidebar a svg,
body:not(.dark) .admin-sidebar a svg,
html:not([data-theme="dark"]) .cp-sidebar a svg,
html:not([data-theme="dark"]) .admin-sidebar a svg {
    color: #64748b !important;
    stroke: currentColor !important;
}

/* Hover */
body:not(.dark) .cp-sidebar a:hover,
body:not(.dark) .admin-sidebar a:hover,
html:not([data-theme="dark"]) .cp-sidebar a:hover,
html:not([data-theme="dark"]) .admin-sidebar a:hover {
    background: #eef7fa !important;
    color: #0f6cbd !important;
}

/* Active menu */
body:not(.dark) .cp-sidebar a.active,
body:not(.dark) .admin-sidebar a.active,
body:not(.dark) .cp-sidebar .active > a,
body:not(.dark) .admin-sidebar .active > a,
html:not([data-theme="dark"]) .cp-sidebar a.active,
html:not([data-theme="dark"]) .admin-sidebar a.active,
html:not([data-theme="dark"]) .cp-sidebar .active > a,
html:not([data-theme="dark"]) .admin-sidebar .active > a {
    background: linear-gradient(
        90deg,
        #e8f4fb 0%,
        #f3fbfc 100%
    ) !important;
    color: #075985 !important;
    border-left: 3px solid #0f6cbd !important;
    box-shadow: none !important;
}

/* Active icons */
body:not(.dark) .cp-sidebar a.active svg,
body:not(.dark) .admin-sidebar a.active svg,
body:not(.dark) .cp-sidebar .active > a svg,
body:not(.dark) .admin-sidebar .active > a svg,
html:not([data-theme="dark"]) .cp-sidebar a.active svg,
html:not([data-theme="dark"]) .admin-sidebar a.active svg {
    color: #0f6cbd !important;
}

/* Section labels and arrows */
body:not(.dark) .cp-sidebar .cp-menu-group-title,
body:not(.dark) .admin-sidebar .cp-menu-group-title,
body:not(.dark) .cp-sidebar .cp-menu-arrow,
body:not(.dark) .admin-sidebar .cp-menu-arrow,
html:not([data-theme="dark"]) .cp-sidebar .cp-menu-group-title,
html:not([data-theme="dark"]) .admin-sidebar .cp-menu-group-title {
    color: #64748b !important;
}

/* Scrollbar */
body:not(.dark) .cp-sidebar::-webkit-scrollbar-thumb,
body:not(.dark) .admin-sidebar::-webkit-scrollbar-thumb,
html:not([data-theme="dark"]) .cp-sidebar::-webkit-scrollbar-thumb,
html:not([data-theme="dark"]) .admin-sidebar::-webkit-scrollbar-thumb {
    background: #cbdde6 !important;
    border-radius: 20px;
}

/* Preserve proper dark sidebar */
body.dark .cp-sidebar,
body.dark .admin-sidebar,
html[data-theme="dark"] .cp-sidebar,
html[data-theme="dark"] .admin-sidebar {
    background: #0b1f33 !important;
    border-right-color: rgba(255,255,255,0.08) !important;
}


/* =========================================================
   MDRx Sidebar — Improve inactive menu visibility
   ========================================================= */

.cp-sidebar a,
.admin-sidebar a,
.cp-sidebar button,
.admin-sidebar button,
.cp-sidebar .cp-menu-item,
.admin-sidebar .cp-menu-item,
.cp-sidebar .cp-menu-label,
.admin-sidebar .cp-menu-label {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

/* Parent menu headings */
.cp-sidebar .cp-menu-parent,
.admin-sidebar .cp-menu-parent,
.cp-sidebar .cp-nav-parent,
.admin-sidebar .cp-nav-parent,
.cp-sidebar .menu-parent,
.admin-sidebar .menu-parent {
    color: #dbe7f0 !important;
    font-weight: 700 !important;
}

/* Icons and arrows */
.cp-sidebar svg,
.admin-sidebar svg,
.cp-sidebar i,
.admin-sidebar i,
.cp-sidebar .cp-menu-arrow,
.admin-sidebar .cp-menu-arrow {
    color: #94aeca !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

/* Hover state */
.cp-sidebar a:hover,
.admin-sidebar a:hover,
.cp-sidebar button:hover,
.admin-sidebar button:hover {
    background: rgba(15, 108, 189, 0.18) !important;
    color: #ffffff !important;
}

.cp-sidebar a:hover svg,
.admin-sidebar a:hover svg,
.cp-sidebar button:hover svg,
.admin-sidebar button:hover svg {
    color: #5eead4 !important;
}

/* Current/active menu */
.cp-sidebar a.active,
.admin-sidebar a.active,
.cp-sidebar .active > a,
.admin-sidebar .active > a {
    background: #103f65 !important;
    color: #ffffff !important;
    border-left: 4px solid #14b8a6 !important;
}

.cp-sidebar a.active svg,
.admin-sidebar a.active svg,
.cp-sidebar .active > a svg,
.admin-sidebar .active > a svg {
    color: #5eead4 !important;
}

/* Sidebar section divider */
.cp-sidebar hr,
.admin-sidebar hr,
.cp-sidebar .cp-brand,
.admin-sidebar .cp-brand {
    border-color: rgba(203, 213, 225, 0.32) !important;
}

/* MDRx brand icon */
.cp-sidebar .cp-brand-logo,
.admin-sidebar .cp-brand-logo {
    background: linear-gradient(135deg, #0f6cbd, #0f9f93) !important;
    color: #ffffff !important;
}


/* =========================================================
   MDRx Sidebar — Improve inactive menu visibility
   ========================================================= */

.cp-sidebar a,
.admin-sidebar a,
.cp-sidebar button,
.admin-sidebar button,
.cp-sidebar .cp-menu-item,
.admin-sidebar .cp-menu-item,
.cp-sidebar .cp-menu-label,
.admin-sidebar .cp-menu-label {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

/* Parent menu headings */
.cp-sidebar .cp-menu-parent,
.admin-sidebar .cp-menu-parent,
.cp-sidebar .cp-nav-parent,
.admin-sidebar .cp-nav-parent,
.cp-sidebar .menu-parent,
.admin-sidebar .menu-parent {
    color: #dbe7f0 !important;
    font-weight: 700 !important;
}

/* Icons and arrows */
.cp-sidebar svg,
.admin-sidebar svg,
.cp-sidebar i,
.admin-sidebar i,
.cp-sidebar .cp-menu-arrow,
.admin-sidebar .cp-menu-arrow {
    color: #94aeca !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

/* Hover state */
.cp-sidebar a:hover,
.admin-sidebar a:hover,
.cp-sidebar button:hover,
.admin-sidebar button:hover {
    background: rgba(15, 108, 189, 0.18) !important;
    color: #ffffff !important;
}

.cp-sidebar a:hover svg,
.admin-sidebar a:hover svg,
.cp-sidebar button:hover svg,
.admin-sidebar button:hover svg {
    color: #5eead4 !important;
}

/* Current/active menu */
.cp-sidebar a.active,
.admin-sidebar a.active,
.cp-sidebar .active > a,
.admin-sidebar .active > a {
    background: #103f65 !important;
    color: #ffffff !important;
    border-left: 4px solid #14b8a6 !important;
}

.cp-sidebar a.active svg,
.admin-sidebar a.active svg,
.cp-sidebar .active > a svg,
.admin-sidebar .active > a svg {
    color: #5eead4 !important;
}

/* Sidebar section divider */
.cp-sidebar hr,
.admin-sidebar hr,
.cp-sidebar .cp-brand,
.admin-sidebar .cp-brand {
    border-color: rgba(203, 213, 225, 0.32) !important;
}

/* MDRx brand icon */
.cp-sidebar .cp-brand-logo,
.admin-sidebar .cp-brand-logo {
    background: linear-gradient(135deg, #0f6cbd, #0f9f93) !important;
    color: #ffffff !important;
}


/* =========================================================
   MDRx Admin Sidebar — Final Contrast Fix
   ========================================================= */

.cp-sidebar {
    background: #0b2239 !important;
}

/* Every sidebar row */
.cp-sidebar nav a,
.cp-sidebar nav button,
.cp-sidebar [class*="menu"] > a,
.cp-sidebar [class*="menu"] > button,
.cp-sidebar [class*="nav"] > a,
.cp-sidebar [class*="nav"] > button {
    opacity: 1 !important;
}

/* All visible text inside sidebar links and buttons */
.cp-sidebar a,
.cp-sidebar button,
.cp-sidebar a span,
.cp-sidebar button span,
.cp-sidebar a strong,
.cp-sidebar button strong,
.cp-sidebar [class*="label"],
.cp-sidebar [class*="title"],
.cp-sidebar [class*="text"] {
    color: #d7e3ec !important;
    opacity: 1 !important;
}

/* Parent menus: Commerce, Product Setup, Operations, etc. */
.cp-sidebar button,
.cp-sidebar [aria-expanded],
.cp-sidebar [class*="group"] > a,
.cp-sidebar [class*="group"] > button,
.cp-sidebar [class*="parent"] > a,
.cp-sidebar [class*="parent"] > button {
    color: #d7e3ec !important;
    font-weight: 700 !important;
}

/* Icons */
.cp-sidebar svg,
.cp-sidebar i,
.cp-sidebar [class*="icon"] {
    color: #9fb6c8 !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

/* Chevron and arrows */
.cp-sidebar [class*="arrow"],
.cp-sidebar [class*="chevron"],
.cp-sidebar button svg:last-child {
    color: #9fb6c8 !important;
    opacity: 1 !important;
}

/* Hover */
.cp-sidebar a:hover,
.cp-sidebar button:hover {
    background: rgba(15, 108, 189, 0.22) !important;
    color: #ffffff !important;
}

.cp-sidebar a:hover span,
.cp-sidebar button:hover span,
.cp-sidebar a:hover strong,
.cp-sidebar button:hover strong,
.cp-sidebar a:hover svg,
.cp-sidebar button:hover svg {
    color: #ffffff !important;
}

/* Active item */
.cp-sidebar a.active,
.cp-sidebar .active > a,
.cp-sidebar [aria-current="page"] {
    background: #123f65 !important;
    color: #ffffff !important;
    border-left: 4px solid #14b8a6 !important;
    box-shadow: none !important;
}

.cp-sidebar a.active span,
.cp-sidebar .active > a span,
.cp-sidebar [aria-current="page"] span,
.cp-sidebar a.active svg,
.cp-sidebar .active > a svg,
.cp-sidebar [aria-current="page"] svg {
    color: #ffffff !important;
}

/* Dashboard parent heading */
.cp-sidebar > nav > ul > li > button,
.cp-sidebar > nav > ul > li > a {
    color: #d7e3ec !important;
}

/* Disabled or muted inherited styles */
.cp-sidebar .text-muted,
.cp-sidebar .muted,
.cp-sidebar [class*="muted"] {
    color: #a9becd !important;
    opacity: 1 !important;
}

/* Brand name */
.cp-sidebar .cp-brand-word strong {
    color: #ffffff !important;
}

.cp-sidebar .cp-brand-word small {
    color: #9fb6c8 !important;
}

/* =========================================================
   MDRx Admin Sidebar — Final Light/Dark Theme Correction
   ========================================================= */

/* Light mode sidebar */
html:not(.dark) .cp-sidebar,
html:not([data-theme="dark"]) .cp-sidebar,
body:not(.dark) .cp-sidebar {
    background: #f8fbfd !important;
    border-right: 1px solid #d8e6ed !important;
    box-shadow: 6px 0 24px rgba(15, 108, 189, 0.05) !important;
}

/* Brand block */
html:not(.dark) .cp-sidebar .cp-brand,
html:not([data-theme="dark"]) .cp-sidebar .cp-brand,
body:not(.dark) .cp-sidebar .cp-brand {
    border-bottom-color: #d8e6ed !important;
}

html:not(.dark) .cp-sidebar .cp-brand-word strong,
html:not([data-theme="dark"]) .cp-sidebar .cp-brand-word strong,
body:not(.dark) .cp-sidebar .cp-brand-word strong {
    color: #0f172a !important;
}

html:not(.dark) .cp-sidebar .cp-brand-word small,
html:not([data-theme="dark"]) .cp-sidebar .cp-brand-word small,
body:not(.dark) .cp-sidebar .cp-brand-word small {
    color: #64748b !important;
}

/* MDRx badge */
.cp-sidebar .cp-brand-logo-text {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 17px !important;
    background: linear-gradient(135deg, #0f6cbd, #0f9f93) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    box-shadow: 0 10px 24px rgba(15, 108, 189, 0.22) !important;
}

/* Parent navigation rows */
html:not(.dark) .cp-sidebar .cp-nav-toggle,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-toggle,
body:not(.dark) .cp-sidebar .cp-nav-toggle {
    color: #475569 !important;
    background: transparent !important;
    opacity: 1 !important;
}

/* Parent labels */
html:not(.dark) .cp-sidebar .cp-nav-toggle-label,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-toggle-label,
body:not(.dark) .cp-sidebar .cp-nav-toggle-label {
    color: #475569 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* Parent icons and chevrons */
html:not(.dark) .cp-sidebar .cp-nav-toggle svg,
html:not(.dark) .cp-sidebar .cp-nav-chevron,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-toggle svg,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-chevron,
body:not(.dark) .cp-sidebar .cp-nav-toggle svg,
body:not(.dark) .cp-sidebar .cp-nav-chevron {
    color: #7893a8 !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

/* Child navigation links */
html:not(.dark) .cp-sidebar .cp-nav-link,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link,
body:not(.dark) .cp-sidebar .cp-nav-link {
    color: #475569 !important;
    background: transparent !important;
    opacity: 1 !important;
    border-left: 3px solid transparent !important;
}

/* All text inside child links */
html:not(.dark) .cp-sidebar .cp-nav-link span,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link span,
body:not(.dark) .cp-sidebar .cp-nav-link span {
    color: inherit !important;
    opacity: 1 !important;
}

/* Hover */
html:not(.dark) .cp-sidebar .cp-nav-toggle:hover,
html:not(.dark) .cp-sidebar .cp-nav-link:hover,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-toggle:hover,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link:hover,
body:not(.dark) .cp-sidebar .cp-nav-toggle:hover,
body:not(.dark) .cp-sidebar .cp-nav-link:hover {
    background: #edf6fb !important;
    color: #0f6cbd !important;
}

/* Active child item */
html:not(.dark) .cp-sidebar .cp-nav-link.active,
html:not(.dark) .cp-sidebar .cp-nav-link[aria-current="page"],
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link.active,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link[aria-current="page"],
body:not(.dark) .cp-sidebar .cp-nav-link.active,
body:not(.dark) .cp-sidebar .cp-nav-link[aria-current="page"] {
    background: linear-gradient(90deg, #e4f2fa, #f1f9fb) !important;
    color: #075985 !important;
    border-left: 3px solid #0f6cbd !important;
    box-shadow: none !important;
    font-weight: 800 !important;
}

/* Active indicator */
html:not(.dark) .cp-sidebar .cp-nav-link.active::before,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link.active::before,
body:not(.dark) .cp-sidebar .cp-nav-link.active::before {
    background: #0f9f93 !important;
}

/* Dashboard parent when expanded */
html:not(.dark) .cp-sidebar .cp-nav-section.is-open > .cp-nav-toggle,
html:not(.dark) .cp-sidebar .cp-nav-section.open > .cp-nav-toggle,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-section.is-open > .cp-nav-toggle,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-section.open > .cp-nav-toggle,
body:not(.dark) .cp-sidebar .cp-nav-section.is-open > .cp-nav-toggle,
body:not(.dark) .cp-sidebar .cp-nav-section.open > .cp-nav-toggle {
    color: #0f6cbd !important;
}

/* Light scrollbar */
html:not(.dark) .cp-sidebar::-webkit-scrollbar-thumb,
html:not([data-theme="dark"]) .cp-sidebar::-webkit-scrollbar-thumb,
body:not(.dark) .cp-sidebar::-webkit-scrollbar-thumb {
    background: #bfd3de !important;
}

/* Preserve dark mode */
html.dark .cp-sidebar,
html[data-theme="dark"] .cp-sidebar,
body.dark .cp-sidebar {
    background: #0b2239 !important;
    border-right-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .cp-sidebar .cp-nav-toggle-label,
html.dark .cp-sidebar .cp-nav-link,
html[data-theme="dark"] .cp-sidebar .cp-nav-toggle-label,
html[data-theme="dark"] .cp-sidebar .cp-nav-link,
body.dark .cp-sidebar .cp-nav-toggle-label,
body.dark .cp-sidebar .cp-nav-link {
    color: #d5e2eb !important;
    opacity: 1 !important;
}


/* MDRx admin light sidebar — definitive contrast fix */
html:not([data-theme="dark"]) .cp-sidebar {
    background: #ffffff !important;
}

html:not([data-theme="dark"]) .cp-sidebar .cp-nav-toggle,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-toggle-label,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link {
    color: #334155 !important;
    opacity: 1 !important;
}

html:not([data-theme="dark"]) .cp-sidebar .cp-nav-toggle svg,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link svg,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-chevron {
    color: #64748b !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

html:not([data-theme="dark"]) .cp-sidebar .cp-nav-toggle:hover,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link:hover {
    background: #eef7fb !important;
    color: #0f6cbd !important;
}

html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link.active,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link[aria-current="page"] {
    background: #e6f3fa !important;
    color: #075985 !important;
    border-left: 3px solid #0f6cbd !important;
    font-weight: 800 !important;
}

html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link.active span,
html:not([data-theme="dark"]) .cp-sidebar .cp-nav-link[aria-current="page"] span {
    color: #075985 !important;
}

html:not([data-theme="dark"]) .cp-sidebar .cp-brand-word strong {
    color: #0f172a !important;
}

html:not([data-theme="dark"]) .cp-sidebar .cp-brand-word small {
    color: #64748b !important;
}
