/* ============================================================================
   mdxhealth Physician Portal — redesign overrides + new design system
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* ============================================================
   0) Typography — Inter everywhere
   ============================================================ */
body.mdx-new-shell,
body.mdx-auth-page,
body.mdx-new-shell .mdx-sidebar,
body.mdx-new-shell .mdx-topbar,
body.mdx-new-shell .mdx-content,
body.mdx-new-shell .mdx-tile,
body.mdx-new-shell .mdx-tile *,
body.mdx-new-shell .mdx-tab,
body.mdx-new-shell .mdx-btn-advanced,
body.mdx-new-shell h1,
body.mdx-new-shell h2,
body.mdx-new-shell h3,
body.mdx-new-shell h4,
body.mdx-new-shell h5,
body.mdx-new-shell h6,
body.mdx-new-shell p,
body.mdx-new-shell input,
body.mdx-new-shell button,
body.mdx-new-shell select,
body.mdx-new-shell table,
body.mdx-auth-page .mdx-auth-card,
body.mdx-auth-page .mdx-auth-card * {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
}


    /* ============================================================
   1) Shell + base
   ============================================================ */
    body.mdx-new-shell .m-header,
    body.mdx-new-shell footer.m-footer,
    body.mdx-new-shell .m-footer {
        display: none !important;
    }

body.mdx-new-shell {
    margin: 0;
    background: #F8FAFB;
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
}

.mdx-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}


/* ============================================================
   2) Sidebar
   ============================================================ */
.mdx-sidebar {
    width: 232px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    transition: width 0.18s ease;
}

.mdx-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px 20px 20px;
    gap: 8px;
}
 
 
.mdx-sidebar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

    .mdx-sidebar__logo:hover {
        text-decoration: none;
    }

    .mdx-sidebar__logo img {
        height: 28px;
        width: auto;
    }

.mdx-sidebar__logo-text {
    font-weight: 700;
    font-size: 20px;
    color: #00BDCD;
    letter-spacing: -0.6px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mdx-sidebar__toggle {
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

    .mdx-sidebar__toggle:hover {
        background: #F4F6F9;
        color: #1F2937;
    }

.mdx-sidebar__nav {
    flex: 1;
    padding: 4px 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mdx-sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #1F2937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    position: relative;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
}

    .mdx-sidebar__item:hover {
        background: #F4F6F9;
        color: #1F2937;
        text-decoration: none;
    }

.mdx-sidebar__item--active,
.mdx-sidebar__item--active:hover {
    background: #00BDCD;
    color: #fff !important;
}

    .mdx-sidebar__item--active i {
        color: #fff !important;
    }

.mdx-sidebar__item i {
    font-size: 16px;
    color: #6B7280;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.mdx-sidebar__chevron {
    margin-left: auto;
    font-size: 11px !important;
    transition: transform 0.2s ease;
}

.mdx-sidebar__item--open .mdx-sidebar__chevron {
    transform: rotate(180deg);
}

.mdx-sidebar__badge {
    margin-left: auto;
    background: #E5252A;
    color: #fff;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.mdx-sidebar__submenu {
    margin-left: 18px;
    margin-top: 2px;
    margin-bottom: 4px;
    display: none;
    padding-left: 12px;
    border-left: 1px solid #E5E7EB;
}

    .mdx-sidebar__submenu .mdx-sidebar__item {
        font-size: 13px;
        padding: 7px 12px;
    }

.mdx-sidebar__logout {
    border-top: 1px solid #E5E7EB;
    margin-top: auto;
    padding: 12px;
}

    .mdx-sidebar__logout #mdxLogoutForm {
        margin: 0;
        padding: 0;
    }

.mdx-sidebar__item--logout {
    color: #6B7280;
}

    .mdx-sidebar__item--logout:hover {
        background: #FEE2E2;
        color: #E5252A;
    }


/* --- Collapsed sidebar --- */
body.mdx-sidebar-collapsed .mdx-sidebar {
    width: 72px;
}

body.mdx-sidebar-collapsed .mdx-sidebar__logo-text,
body.mdx-sidebar-collapsed .mdx-sidebar__logo img,
body.mdx-sidebar-collapsed .mdx-sidebar__item span,
body.mdx-sidebar-collapsed .mdx-sidebar__chevron,
body.mdx-sidebar-collapsed .mdx-sidebar__badge {
    display: none !important;
}

body.mdx-sidebar-collapsed .mdx-sidebar__header {
    padding: 4px 12px 20px 12px;
    justify-content: center;
}

body.mdx-sidebar-collapsed .mdx-sidebar__logo {
    flex: 0;
}

body.mdx-sidebar-collapsed .mdx-sidebar__item {
    justify-content: center;
    padding: 10px 0;
}

    body.mdx-sidebar-collapsed .mdx-sidebar__item i {
        margin: 0;
    }

body.mdx-sidebar-collapsed .mdx-sidebar__submenu {
    display: none !important;
}

body.mdx-sidebar-collapsed .mdx-topbar {
    left: 72px;
}


/* ============================================================
   3) Topbar
   ============================================================ */
.mdx-topbar {
    position: fixed;
    top: 0;
    left: 232px;
    right: 0;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 32px;
    gap: 16px;
    transition: left 0.18s ease;
}

.mdx-topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}


/* ============================================================
   4) Main content
   ============================================================ */
.mdx-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mdx-content {
    padding: 88px 32px 32px 32px;
    flex: 1;
    color: #111827;
}

@media (max-width: 900px) {
    .mdx-shell {
        flex-direction: column;
    }

    .mdx-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .mdx-topbar {
        left: 0;
    }

    .mdx-content {
        padding: 88px 16px 16px 16px;
    }
}


/* ============================================================
   5) Auth card
   ============================================================ */
body.mdx-auth-page {
    background-color: #EBEFF8 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin: 0;
}

.mdx-auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 48px 40px 40px 40px;
}

.mdx-auth-card__logo {
    text-align: center;
    margin-bottom: 32px;
}

    .mdx-auth-card__logo img {
        height: 40px;
        width: auto;
    }

    .mdx-auth-card__logo a {
        text-decoration: none;
    }

.mdx-auth-card__wordmark {
    display: inline-block;
    font-weight: 700;
    font-size: 30px;
    color: #00BDCD;
    letter-spacing: -0.8px;
    text-decoration: none;
}

/* Intro block — used by forgot-password + confirmation */
.mdx-auth-card__intro {
    margin-bottom: 24px;
}

.mdx-auth-card__intro--centered {
    text-align: center;
}

.mdx-auth-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
    text-align: center;
}

.mdx-auth-card__subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.mdx-auth-card__icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #E2F4F7;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    color: #00708A;
    font-size: 28px;
}

.mdx-auth-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 6px;
}

.mdx-auth-card .form-control {
    background: #F4F6F9;
    border: 1px solid transparent;
    height: 44px;
    border-radius: 8px;
}

    .mdx-auth-card .form-control:focus {
        background: #fff;
        border-color: #00BDCD;
        box-shadow: 0 0 0 3px rgba(0, 189, 205, 0.12);
    }

.mdx-auth-card__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin: 12px 0 24px 0;
}

.mdx-auth-card__link {
    font-size: 13px;
    color: #00708A;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .mdx-auth-card__link:hover {
        color: #004D5E;
        text-decoration: underline;
    }

/* "Back to login" link below the form */
.mdx-auth-card__back {
    margin-top: 20px;
    text-align: center;
}

.mdx-auth-card__submit {
    width: 100%;
    background: #00BDCD;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .mdx-auth-card__submit:hover {
        background: #00A8B6;
    }


/* ============================================================
   6) Test tile hover + CTA hover
   ============================================================ */
.mdx-tile {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none !important;
}

    .mdx-tile:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
        border-bottom: none !important;
    }

    .mdx-tile .menu-item-action {
        all: unset;
        color: #EE8B3F;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
    }

    .mdx-tile a.mdx-tile__cta:hover {
        background: rgba(238, 139, 63, 0.12) !important;
        border-color: rgba(238, 139, 63, 0.6) !important;
        color: #D67428 !important;
        text-decoration: none !important;
    }


/* ============================================================
   7) Orders header + toolbar row (tabs + Advanced Search)
   ============================================================ */
.mdx-orders {
    background: transparent;
}

.mdx-orders__header {
    margin-bottom: 16px;
}

    .mdx-orders__header .notification-container {
        display: none;
    }

.mdx-orders__toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mdx-tabs.tabs {
    display: inline-flex !important;
    gap: 8px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow-x: auto;
}


/* ============================================================
   8) Filter tabs
   ============================================================ */
.mdx-tab {
    background: #fff;
    border: 1px solid #E5E7EB;
    padding: 8px 14px;
    border-radius: 8px;
    color: #6B7280;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: inherit;
}

    .mdx-tab i {
        font-size: 12px;
        color: #6B7280;
    }

    .mdx-tab:hover {
        color: #111827;
        border-color: #D1D5DB;
    }

    .mdx-tab.active {
        background: #EE8B3F !important;
        color: #fff !important;
        border-color: #D67428 !important;
        box-shadow: 0 1px 3px rgba(238, 139, 63, 0.3) !important;
    }

        .mdx-tab.active i {
            color: #fff !important;
        }

.mdx-tab__badge {
    display: inline-block;
    background: #E5252A;
    color: #fff;
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 10px;
    line-height: 1.2;
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}

.mdx-tab.active .mdx-tab__badge {
    background: #fff;
    color: #EE8B3F;
}


/* ============================================================
   9) Advanced Search button
   ============================================================ */
.mdx-btn-advanced {
    background: #00BDCD;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
    font-family: inherit;
}

    .mdx-btn-advanced i {
        font-size: 13px;
    }

    .mdx-btn-advanced:hover,
    .mdx-btn-advanced:focus {
        background: #00A8B6;
        color: #fff;
        text-decoration: none;
    }


/* ============================================================
   10) Table portlet
   ============================================================ */
.m-portlet.m-portlet--tabs.m-portlet--primary.m-portlet--head-solid-bg {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

.m-portlet__body {
    background-color: #fff !important;
    border: 1px solid #EEF0F4 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    padding: 20px !important;
    position: relative;
}


/* ============================================================
   11) DataTables toolbar 
   ============================================================ */

.dataTables_wrapper {
    position: relative;
    padding-top: 0;
}

.toolbar, .toolbar2, .toolbar3 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding: 0 240px 16px 0 !important; /* right padding reserves space for the absolute search box */
    font-size: 0 !important; /* hides the legacy "All Orders" text */
    color: transparent !important;
    min-height: 38px;
    font-family: 'Inter', sans-serif !important;
}

    .toolbar > *, .toolbar2 > *, .toolbar3 > * {
        font-size: 13px !important; /* restore on children */
        color: #1F2937 !important;
        font-weight: 500;
    }

    /* Funnel filter button */
    .toolbar .icon-wrapper,
    .toolbar2 .icon-wrapper,
    .toolbar3 .icon-wrapper {
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        background: #fff !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 8px !important;
        width: 38px !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #6B7280 !important;
        cursor: pointer;
        transition: border-color 0.15s ease, background 0.15s ease;
    }

        .toolbar .icon-wrapper:hover,
        .toolbar2 .icon-wrapper:hover,
        .toolbar3 .icon-wrapper:hover {
            border-color: #00BDCD !important;
            color: #00BDCD !important;
        }

        .toolbar .icon-wrapper i,
        .toolbar2 .icon-wrapper i,
        .toolbar3 .icon-wrapper i {
            font-size: 14px !important;
            color: inherit !important;
        }

        .toolbar .icon-wrapper.active-filter,
        .toolbar2 .icon-wrapper.active-filter,
        .toolbar3 .icon-wrapper.active-filter {
            border-color: #00BDCD !important;
            color: #00BDCD !important;
            background: #E2F4F7 !important;
        }

    /* Sort dropdown wrapper */
    .toolbar .sort-with-icon,
    .toolbar2 .sort-with-icon,
    .toolbar3 .sort-with-icon {
        position: static !important;
        right: auto !important;
        top: auto !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        height: 38px !important;
        background: #fff !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 8px !important;
        padding: 0 4px 0 10px !important;
        color: #1F2937 !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        gap: 6px;
    }

        .toolbar .sort-with-icon .icon-border,
        .toolbar2 .sort-with-icon .icon-border,
        .toolbar3 .sort-with-icon .icon-border {
            border: none !important;
            background: transparent !important;
            width: auto !important;
            height: auto !important;
            margin: 0 !important;
            padding: 0 !important;
            color: #6B7280 !important;
        }

    .toolbar #sortDropdown,
    .toolbar2 #sortDropdown2,
    .toolbar3 #sortDropdown3,
    .toolbar select,
    .toolbar2 select,
    .toolbar3 select {
        border: none !important;
        background: transparent !important;
        height: 36px !important;
        padding: 0 4px !important;
        margin: 0 !important;
        font-size: 13px !important;
        color: #1F2937 !important;
        cursor: pointer;
        outline: none;
        box-shadow: none !important;
        width: auto !important;
        min-width: 90px;
    }

    /* Date picker wrapper */
    .toolbar #datepickerWrapper,
    .toolbar2 #datepickerWrapper2,
    .toolbar3 #datepickerWrapper3 {
        position: static !important;
        right: auto !important;
        top: auto !important;
        margin: 0 !important;
        height: 38px !important;
        width: auto !important;
        min-width: 175px;
        padding: 0 12px !important;
        background: #fff !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px;
    }

        .toolbar #datepickerWrapper .input-group,
        .toolbar2 #datepickerWrapper2 .input-group,
        .toolbar3 #datepickerWrapper3 .input-group {
            background: transparent !important;
            border: none !important;
            width: 100%;
            height: 100%;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 0 !important;
        }

    .toolbar .input-group-text,
    .toolbar2 .input-group-text,
    .toolbar3 .input-group-text {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        color: #6B7280 !important;
    }

    .toolbar #customDatepicker,
    .toolbar2 #customDatepicker2,
    .toolbar3 #customDatepicker3 {
        margin: 0 !important;
        width: 100px !important;
        padding: 0 !important;
        border: none !important;
        font-size: 13px !important;
        background: transparent !important;
        color: #1F2937 !important;
        outline: none;
    }

        .toolbar #customDatepicker::placeholder,
        .toolbar2 #customDatepicker2::placeholder,
        .toolbar3 #customDatepicker3::placeholder {
            color: #9CA3AF;
            font-size: 13px !important;
        }

/* Search filter — absolute-positioned to the toolbar row's right */
.dataTables_filter {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    z-index: 5;
}

    .dataTables_filter label {
        margin: 0 !important;
        font-size: 0 !important;
        color: transparent !important;
        position: relative;
        display: inline-block;
    }

        .dataTables_filter label::before {
            content: "\f002";
            font-family: "Font Awesome 6 Free", "FontAwesome";
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 14px;
            transform: translateY(-50%);
            color: #9CA3AF;
            font-size: 13px;
            z-index: 1;
            pointer-events: none;
        }

    .dataTables_filter input[type="search"],
    .dataTables_filter input {
        width: 220px !important;
        height: 38px !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 8px !important;
        padding: 0 14px 0 38px !important;
        font-size: 13px !important;
        background: #fff !important;
        color: #1F2937 !important;
        transform: none !important;
        line-height: 38px !important;
        box-shadow: none !important;
        outline: none;
        transition: border-color 0.15s ease;
    }

        .dataTables_filter input:focus {
            border-color: #00BDCD !important;
            outline: none !important;
            box-shadow: 0 0 0 3px rgba(0, 189, 205, 0.12) !important;
        }

.search-icon {
    display: none !important;
}

/* Account dropdown menu inside the funnel */
.toolbar .dropdown-menu,
.toolbar2 .dropdown-menu,
.toolbar3 .dropdown-menu {
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 6px;
}

.toolbar .dropdown-item,
.toolbar2 .dropdown-item,
.toolbar3 .dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1F2937;
}

    .toolbar .dropdown-item:hover,
    .toolbar2 .dropdown-item:hover,
    .toolbar3 .dropdown-item:hover {
        background: #F4F6F9;
    }


/* ============================================================
   12) DataTable rows + headers
   ============================================================ */
.dataTables_wrapper table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
    width: 100% !important;
    border: none !important;
}

    .dataTables_wrapper table.dataTable thead th {
        border: none !important;
        border-bottom: 1px solid #E5E7EB !important;
        background: transparent !important;
        color: #6B7280 !important;
        font-weight: 600 !important;
        font-size: 12px !important;
        padding: 12px 12px !important;
        text-align: left !important;
    }

    .dataTables_wrapper table.dataTable tbody td {
        border: none !important;
        border-bottom: 1px solid #F3F4F6 !important;
        padding: 14px 12px !important;
        font-size: 13px !important;
        color: #1F2937 !important;
        background: #fff !important;
    }

    .dataTables_wrapper table.dataTable tbody tr:hover td {
        background: #F9FAFB !important;
    }

.dataTables_wrapper .bottom-area {
    padding-top: 16px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
}

.dataTables_wrapper .dataTables_length {
    margin: 0 !important;
    font-size: 13px;
    color: #6B7280;
}

    .dataTables_wrapper .dataTables_length select {
        height: 32px !important;
        border-radius: 6px;
        border: 1px solid #E5E7EB !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        width: auto !important;
        background: #fff !important;
        margin: 0 6px !important;
    }

.dataTables_wrapper .dataTables_paginate {
    margin: 0 !important;
}

.dataTables_wrapper .paginate_button .page-link {
    color: #6B7280 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    background: transparent !important;
    border: none !important;
    margin: 0 2px !important;
}

.dataTables_wrapper .page-item.active .page-link {
    background: #00BDCD !important;
    color: #fff !important;
}

.dataTables_wrapper .paginate_button:hover .page-link {
    background: #F4F6F9 !important;
    color: #1F2937 !important;
}


/* ============================================================
   13) Safety overrides
   ============================================================ */
dialog:not([open]) {
    display: none !important;
}

body.mdx-auth-page #alertzsystem {
    display: none !important;
}

.mdx-ai-banner.alert,
.mdx-ai-banner.alert-primary {
    color: #1F2937 !important;
    background-color: #E2F4F7 !important;
    border-color: transparent !important;
}


/* ----------------------------------------------------------------------------
   Grey-out viewed report rows
   Triggered by rowCallback in initAllOrdersTable + initReportedTable
   ---------------------------------------------------------------------------- */
table.dataTable tbody tr.mdx-row-viewed td,
table.dataTable tbody tr.mdx-row-viewed td * {
    color: #9CA3AF !important;
}

table.dataTable tbody tr.mdx-row-viewed:hover td {
    background: #F9FAFB !important;
}
/* Keep interactive controls clickable-looking even when row is greyed */
table.dataTable tbody tr.mdx-row-viewed td .new-icon,
table.dataTable tbody tr.mdx-row-viewed td a,
table.dataTable tbody tr.mdx-row-viewed td button {
    opacity: 0.85;
}

table.dataTable tbody tr.mdx-row-viewed td input[type="checkbox"] {
    opacity: 0.85;
}

/* ----------------------------------------------------------------------------
   "Unviewed Only" toggle button injected into Reports tab toolbar
   ---------------------------------------------------------------------------- */
.mdx-filter-unviewed {
    height: 38px;
    padding: 0 14px;
    margin-left: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

    .mdx-filter-unviewed i {
        font-size: 13px;
    }

    .mdx-filter-unviewed:hover {
        border-color: #00BDCD;
        color: #00BDCD;
    }

    .mdx-filter-unviewed.active {
        background: #00BDCD;
        color: #fff;
        border-color: #00BDCD;
    }

        .mdx-filter-unviewed.active:hover {
            background: #00A8B6;
            border-color: #00A8B6;
            color: #fff;
        }

/* ----------------------------------------------------------------------------
Shared modal restyle (.mdx-modal on outer .modal element)
   Only applies to NEW modals (m_modal_moredetails, m_modal_advancedsearch).
   Existing m_modal_1..m_modal_19 use Bootstrap defaults — untouched.
   ---------------------------------------------------------------------------- */
.mdx-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.mdx-modal .mdx-modal__header {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #E5E7EB;
    background: #fff;
}

.mdx-modal .mdx-modal__title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    font-family: inherit;
}

.mdx-modal .mdx-modal__close {
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
    margin-left: 12px;
    transition: all 0.15s ease;
}

    .mdx-modal .mdx-modal__close:hover {
        background: #F4F6F9;
        color: #1F2937;
    }

.mdx-modal .mdx-modal__body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
}

.mdx-modal .mdx-modal__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #E5E7EB;
    background: #fff;
}
    /* Tame Bootstrap btn defaults inside our redesigned modals */
    .mdx-modal .mdx-modal__footer .btn {
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
    }

    .mdx-modal .mdx-modal__footer .btn-primary {
        background: #00BDCD;
        border-color: #00BDCD;
        color: #fff;
    }

        .mdx-modal .mdx-modal__footer .btn-primary:hover {
            background: #00A8B6;
            border-color: #00A8B6;
        }

    .mdx-modal .mdx-modal__footer .btn-secondary {
        background: #fff;
        border: 1px solid #E5E7EB;
        color: #4F616A;
    }

        .mdx-modal .mdx-modal__footer .btn-secondary:hover {
            background: #F4F6F9;
            border-color: #D1D5DB;
        }

/* ----------------------------------------------------------------------------
    More Details modal body
   format/format2/format3 in _Layout.cshtml return inline <table> with
   labels in row 1, values in row 2. We restyle that to read cleanly.
   ---------------------------------------------------------------------------- */
.mdx-md-body {
    font-size: 13px;
    color: #1F2937;
}

    .mdx-md-body table {
        width: 100% !important;
        border-collapse: collapse;
        padding-left: 0 !important;
        margin: 0;
    }

        .mdx-md-body table tr td {
            padding: 12px 14px !important;
            border-bottom: 1px solid #F3F4F6;
            vertical-align: top;
            font-size: 13px;
            color: #1F2937;
            line-height: 1.4;
        }

        .mdx-md-body table tr:last-child td {
            border-bottom: none;
        }
        /* Row 1 (labels) — make them small, uppercase, muted */
        .mdx-md-body table tr:first-child td {
            background: #F9FAFB;
            padding-top: 10px !important;
            padding-bottom: 10px !important;
        }

            .mdx-md-body table tr:first-child td strong {
                color: #6B7280;
                font-weight: 600;
                font-size: 11px;
                text-transform: uppercase;
                letter-spacing: 0.4px;
                display: block;
            }

/* ----------------------------------------------------------------------------
    Advanced Search form grid (2-column responsive)
   ---------------------------------------------------------------------------- */
.mdx-asearch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mdx-asearch-field {
    display: flex;
    flex-direction: column;
}

.mdx-asearch-field--full {
    grid-column: 1 / -1;
}

.mdx-asearch-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 6px;
    line-height: 1.3;
}

.mdx-asearch-field input,
.mdx-asearch-field select {
    height: 38px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 13px;
    background: #fff;
    color: #1F2937;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .mdx-asearch-field input:focus,
    .mdx-asearch-field select:focus {
        outline: none;
        border-color: #00BDCD;
        box-shadow: 0 0 0 3px rgba(0, 189, 205, 0.12);
    }

    .mdx-asearch-field input::placeholder {
        color: #9CA3AF;
    }

.mdx-asearch-daterange {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 575px) {
    .mdx-asearch-grid {
        grid-template-columns: 1fr;
    }

    .mdx-asearch-daterange {
        grid-template-columns: 1fr;
    }
}


/* -----------------------------------------------------------------------------
    "Already ordered for this patient? Reorder here" CTA
   Placed at top-right of the new Resolve order form (Resolvemdx.cshtml).
   Hidden when the user is already on a reorder (controlled by Razor).
   ----------------------------------------------------------------------------- */
.mdx-reorder-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    color: #00708A;
    border: 2px solid #00BDCD;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}

    .mdx-reorder-cta:hover,
    .mdx-reorder-cta:focus {
        background: #00BDCD;
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-1px);
    }

    .mdx-reorder-cta i {
        font-size: 11px;
    }

.mdx-reorder-helper {
    font-size: 12px;
    color: #6B7280;
    margin-top: 8px;
    line-height: 1.5;
    text-align: right;
    max-width: 320px;
    margin-left: auto;
}

/* -----------------------------------------------------------------------------
   Reorder modal "No" button (outline-teal style)
   The "Yes" button uses the existing .btn-primary (teal fill).
   ----------------------------------------------------------------------------- */
.mdx-modal .mdx-modal__footer .btn.mdx-reorder-no {
    background: #ffffff;
    border: 1px solid #00BDCD;
    color: #00708A;
    font-weight: 600;
}

    .mdx-modal .mdx-modal__footer .btn.mdx-reorder-no:hover,
    .mdx-modal .mdx-modal__footer .btn.mdx-reorder-no:focus {
        background: #E2F4F7;
        color: #00708A;
        border-color: #00708A;
    }

/* -----------------------------------------------------------------------------
  "On Hold" hyperlink in the Orders on Hold table (#table3)
   The HoldStatus column renders as a clickable link that opens the chat.
   ----------------------------------------------------------------------------- */
.mdx-hold-chat-link {
    color: #00708A !important;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.15s ease;
}

    .mdx-hold-chat-link:hover,
    .mdx-hold-chat-link:focus {
        color: #E5252A !important;
        text-decoration: underline;
    }


/* Confirm - teal */
.mdx-tile--confirm .mdx-tile-btn {
    background: #FFFFFF;
    color: #00708A;
    border: 1.5px solid #00BDCD;
}

    .mdx-tile--confirm .mdx-tile-btn:hover {
        background: #E2F4F7;
        color: #00708A;
    }

/* GPS - green */
.mdx-tile--gps .mdx-tile-btn {
    background: #FFFFFF;
    color: #15803D;
    border: 1.5px solid #22C55E;
}

    .mdx-tile--gps .mdx-tile-btn:hover {
        background: #DCFCE7;
        color: #15803D;
    }

/* Resolve - copper/orange */
.mdx-tile--resolve .mdx-tile-btn {
    background: #FFFFFF;
    color: #B85A1E;
    border: 1.5px solid #CE8F5A;
}

    .mdx-tile--resolve .mdx-tile-btn:hover {
        background: #FEF3E7;
        color: #B85A1E;
    }

/* ExoDx - blue */
.mdx-tile--exo .mdx-tile-btn {
    background: #FFFFFF;
    color: #1E40AF;
    border: 1.5px solid #3B82F6;
}

    .mdx-tile--exo .mdx-tile-btn:hover {
        background: #DBEAFE;
        color: #1E40AF;
    }
/* ============================================================
   DataTables toolbar - sort dropdown overflow + search icon position
   ============================================================ */

/* Allow the sort dropdown to overflow its container without being clipped */
.mdx-orders .m-portlet,
.mdx-orders .m-portlet__body,
.mdx-orders__toolbar,
div[class*="toolbar"] {
    overflow: visible !important;
}

/* Force sort menu to render BELOW the button, not above, and sit on top */
.sort-with-icon {
    position: relative;
}

    .sort-with-icon .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        bottom: auto !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        margin-top: 6px !important;
        z-index: 1050 !important;
        max-height: 320px;
        overflow-y: auto;
        min-width: 240px;
        background: #FFFFFF;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        padding: 6px 0;
    }

        .sort-with-icon .dropdown-menu .dropdown-item {
            padding: 8px 14px;
            font-size: 13px;
            color: #1F2937;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            transition: background 0.1s ease;
        }

            .sort-with-icon .dropdown-menu .dropdown-item:hover,
            .sort-with-icon .dropdown-menu .dropdown-item:focus {
                background: #F3F4F6;
                color: #1F2937;
                text-decoration: none;
            }

/* ============================================================
   Search input - position icon inside on the left with padding
   ============================================================ */
 
.mdx-orders div.dataTables_filter,
.mdx-content div.dataTables_filter,
div.dataTables_filter {
    position: relative !important;
}

    .mdx-orders div.dataTables_filter .icon-wrapper,
    .mdx-content div.dataTables_filter .icon-wrapper,
    div.dataTables_filter .icon-wrapper {
        position: absolute !important;
        left: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10;
        color: #9CA3AF;
        line-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none;
    }

        .mdx-orders div.dataTables_filter .icon-wrapper .search-icon,
        .mdx-content div.dataTables_filter .icon-wrapper .search-icon,
        div.dataTables_filter .icon-wrapper .search-icon {
            pointer-events: auto;
            cursor: pointer;
            font-size: 14px;
            color: #9CA3AF;
        }

    /* Force left padding on ANY input inside the filter, with maximum specificity */
    .mdx-orders div.dataTables_filter input,
    .mdx-orders div.dataTables_filter input[type="search"],
    .mdx-orders div.dataTables_filter input.form-control,
    .mdx-orders div.dataTables_filter label input,
    .mdx-content div.dataTables_filter input,
    div.dataTables_filter input,
    div.dataTables_filter input[type="search"],
    div.dataTables_filter input.form-control,
    div.dataTables_filter label input {
        padding-left: 40px !important;
        padding-right: 14px !important;
    }

/* ============================================================
   Report Viewed checkbox 
   The .chkact checkbox in the Report Viewed column. Style as a
   teal-filled box with white check when checked, regardless of
   whether it's bare or wrapped in a Metronic .m-checkbox label.
   ============================================================ */
/* ============================================================
   Checkbox styling - Report Viewed (.chkact) + 
   AI Patient Discussion Guide (.ai-guide-order-checkbox)
   
   Handles BOTH input patterns:
   1. Bare <input> (AI guide)
   2. <label.m-checkbox><input/><span/></label> (Report Viewed)
   ============================================================ */

 

input[type="checkbox"].chkact,
input[type="checkbox"].ai-guide-order-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid #D1D5DB;
    border-radius: 4px;
    background: #FFFFFF;
    cursor: pointer;
    position: relative;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    transition: all 0.15s ease;
    opacity: 1;
}

    input[type="checkbox"].chkact:hover,
    input[type="checkbox"].ai-guide-order-checkbox:hover {
        border-color: #00BDCD;
    }

    input[type="checkbox"].chkact:checked,
    input[type="checkbox"].ai-guide-order-checkbox:checked {
        background: #00BDCD;
        border-color: #00BDCD;
    }

        input[type="checkbox"].chkact:checked::after,
        input[type="checkbox"].ai-guide-order-checkbox:checked::after {
            content: '';
            position: absolute;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 11px;
            border: solid #FFFFFF;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

    input[type="checkbox"].chkact:disabled,
    input[type="checkbox"].ai-guide-order-checkbox:disabled {
        background: #F3F4F6;
        border-color: #D1D5DB;
        cursor: not-allowed;
        opacity: 0.5;
    }

/* When .chkact is wrapped in Metronic's .m-checkbox label with a sibling
   <span>, Metronic hides the input. Style the span to look like our box. */
.m-checkbox > input[type="checkbox"].chkact ~ span {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border: 1.5px solid #D1D5DB !important;
    border-radius: 4px !important;
    background: #FFFFFF !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transition: all 0.15s ease;
}

.m-checkbox:hover > input[type="checkbox"].chkact ~ span {
    border-color: #00BDCD !important;
}

.m-checkbox > input[type="checkbox"].chkact:checked ~ span {
    background: #00BDCD !important;
    border-color: #00BDCD !important;
}

    .m-checkbox > input[type="checkbox"].chkact:checked ~ span::after {
        content: '' !important;
        position: absolute !important;
        left: 6px !important;
        top: 2px !important;
        width: 5px !important;
        height: 11px !important;
        border: solid #FFFFFF !important;
        border-width: 0 2px 2px 0 !important;
        transform: rotate(45deg) !important;
        margin: 0 !important;
        background: transparent !important;
    }

.m-checkbox:has(> input.chkact) {
    padding-left: 0 !important;
    min-height: 20px !important;
    display: inline-block !important;
    line-height: 1 !important;
    margin: 0 !important;
    cursor: pointer;
}
/* ============================================================
   Sidebar - fixed to viewport, content offset to make room
   ============================================================ */
.mdx-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 100;
}

/* Main content area gets pushed right to make room for the fixed sidebar */
.mdx-main {
    margin-left: 240px !important;
    transition: margin-left 0.2s ease;
    min-height: 100vh;
}

/* When the user collapses the sidebar, content slides left to follow */
body.mdx-sidebar-collapsed .mdx-main {
    margin-left: 72px !important;
}

/* Custom scrollbar inside the sidebar (only shows when nav overflows) */
.mdx-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mdx-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 3px;
}

.mdx-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
body.mdx-new-shell .mdx-content section.mdx-test-menu .mdx-tile.mdx-tile--gps a.mdx-tile__cta:hover {
    color: #15803D !important;
    background: rgba(34, 197, 94, 0.18) !important;
    border-color: #22C55E !important;
}

body.mdx-new-shell .mdx-content section.mdx-test-menu .mdx-tile.mdx-tile--confirm a.mdx-tile__cta:hover {
    color: #00708A !important;
    background: rgba(0, 189, 205, 0.18) !important;
    border-color: #00BDCD !important;
}

body.mdx-new-shell .mdx-content section.mdx-test-menu .mdx-tile.mdx-tile--resolve a.mdx-tile__cta:hover {
    color: #B85A1E !important;
    background: rgba(206, 143, 90, 0.22) !important;
    border-color: #CE8F5A !important;
}

body.mdx-new-shell .mdx-content section.mdx-test-menu .mdx-tile.mdx-tile--exo a.mdx-tile__cta:hover {
    color: #1E40AF !important;
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: #3B82F6 !important;
}

/* ============================================================
   DataTables column header sort indicators
   ============================================================ */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    position: relative !important;
    cursor: pointer;
    padding-right: 24px !important;
    background-image: none !important;
    user-select: none;
}

    /* Inactive state - faint up/down chevrons */
    table.dataTable thead th.sorting::after {
        content: '';
        position: absolute;
        right: 8px;
        top: 50%;
        width: 10px;
        height: 14px;
        transform: translateY(-50%);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14' fill='none'%3E%3Cpath d='M5 1L9 5M5 1L1 5M5 13L9 9M5 13L1 9' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.6;
    }

    /* Active ascending - solid teal up arrow */
    table.dataTable thead th.sorting_asc::after {
        content: '';
        position: absolute;
        right: 8px;
        top: 50%;
        width: 10px;
        height: 14px;
        transform: translateY(-50%);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14' fill='none'%3E%3Cpath d='M5 1L9 6M5 1L1 6' stroke='%2300708A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
    }

    /* Active descending - solid teal down arrow */
    table.dataTable thead th.sorting_desc::after {
        content: '';
        position: absolute;
        right: 8px;
        top: 50%;
        width: 10px;
        height: 14px;
        transform: translateY(-50%);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14' fill='none'%3E%3Cpath d='M5 13L9 8M5 13L1 8' stroke='%2300708A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
    }

/* Highlight the sorted column header background slightly */
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    color: #00708A !important;
    background-color: #F9FCFD !important;
}

/* Hover state on sortable column */
table.dataTable thead th.sorting:hover::after {
    opacity: 1;
}
/* Hide DataTables 1.13.7+ built-in sort indicator span - 
   we render our own via th::after */
table.dataTable thead th span.dt-column-order,
table.dataTable thead th .dt-column-order {
    display: none !important;
}
table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_desc::before,
table.dataTable thead th.sorting_asc_disabled::before,
table.dataTable thead th.sorting_desc_disabled::before {
    display: none !important;
    content: none !important;
    background-image: none !important;
}
/* DataTables with scrollY creates a hidden header inside the scroll body
   for column-width sizing. Hide its sort indicators completely so they
   don't render as a visible second row of chevrons. */
div.dataTables_scrollBody table.dataTable thead th::before,
div.dataTables_scrollBody table.dataTable thead th::after,
div.dataTables_scrollBody table.dataTable thead th .dt-column-order {
    display: none !important;
    content: none !important;
}

/* Belt-and-suspenders: also force the entire scroll-body thead invisible.
   It's only there for column-width sizing, not visual rendering. */
div.dataTables_scrollBody table.dataTable thead {
    visibility: hidden !important;
}

    div.dataTables_scrollBody table.dataTable thead th,
    div.dataTables_scrollBody table.dataTable thead tr {
        visibility: hidden !important;
        height: 0 !important;
        line-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
/* ============================================================
   TAT column "On Hold" hyperlink 
   The combined class .mdx-hold-chat-link.mdx-tat-hold-link
   overrides the teal Batch C styling with a true blue link.
   ============================================================ */
.mdx-tat-hold-link {
    color: #2563EB !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    cursor: pointer;
    font-weight: 500;
}

    .mdx-tat-hold-link:hover,
    .mdx-tat-hold-link:focus {
        color: #1D4ED8 !important;
        text-decoration: underline !important;
    }

/* ============================================================
   Orders Overview tabs - consistent active state across all 4
   ============================================================ */
.mdx-tabs .mdx-tab,
.mdx-tabs .tab-button {
    background: #FFFFFF;
    color: #4F616A;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 9px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

    .mdx-tabs .mdx-tab:hover,
    .mdx-tabs .tab-button:hover {
        background: #F9FAFB;
        color: #1F2937;
        border-color: #D1D5DB;
    }

    /* Active state - orange across all four tabs */
    .mdx-tabs .mdx-tab.active,
    .mdx-tabs .tab-button.active,
    .mdx-tabs .mdx-tab.active:hover,
    .mdx-tabs .tab-button.active:hover {
        background: #EE8B3F !important;
        color: #FFFFFF !important;
        border-color: #EE8B3F !important;
        box-shadow: 0 1px 2px rgba(238, 139, 63, 0.2);
    }

        .mdx-tabs .mdx-tab.active i,
        .mdx-tabs .tab-button.active i {
            color: #FFFFFF !important;
        }


/* ============================================================
   DataTables column widths - show full content, scroll if needed
   Tables that overflow horizontally get a scrollbar at the bottom
   so content is never clipped or spilling between columns.
   ============================================================ */

/* Let the table size to its content - allow it to be wider than container */
table.dataTable {
    width: 100% !important;
    table-layout: auto;
}

    table.dataTable thead th,
    table.dataTable tbody td {
        white-space: nowrap;
        padding: 10px 14px !important;
        vertical-align: middle !important;
    }

/* Allow horizontal scroll on the DataTable wrapper so wide tables work */
.dataTables_wrapper {
    overflow-x: auto;
}

.dataTables_scrollHead,
.dataTables_scrollBody {
    overflow-x: visible !important;
}

/* Specific column hints (per-column-index control) */

/* Test Type - first column, short */
table.dataTable thead th:nth-child(1),
table.dataTable tbody td:nth-child(1) {
    min-width: 100px;
}

/* Patient Name column - moderate width */
table.dataTable thead th:nth-child(3),
table.dataTable tbody td:nth-child(3) {
    min-width: 130px;
}

/* Physician column - common to wrap, give it room */
table.dataTable#table1 thead th:nth-child(5),
table.dataTable#table1 tbody td:nth-child(5),
table.dataTable#table2 thead th:nth-child(5),
table.dataTable#table2 tbody td:nth-child(5),
table.dataTable#table3 thead th:nth-child(4),
table.dataTable#table3 tbody td:nth-child(4) {
    min-width: 150px;
}

/* Report (PDF icon) - narrow icon column */
table.dataTable td a[href*="/Orders/Report/"],
table.dataTable td a[href*="/Orders/AIReport/"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Report Viewed + AI Guide checkbox columns - center the checkbox */
table.dataTable td:has(input.chkact),
table.dataTable td:has(input.ai-guide-order-checkbox),
table.dataTable td:has(.m-checkbox > input.chkact) {
    text-align: center;
}

/* "Generate AI Patient Discussion Guide" and "AI Patient Discussion Guide"
   header text is long - give those columns room */
table.dataTable thead th {
    line-height: 1.3;
    max-width: none;
}

/* More Details button column - keep button visible */
table.dataTable td.details-control {
    text-align: center;
    min-width: 110px;
}

/* Estimated Turnaround Time column - "On Hold" link or "X days" */
table.dataTable#table1 thead th:nth-child(7),
table.dataTable#table1 tbody td:nth-child(7) {
    min-width: 110px;
    text-align: center;
}

/* ============================================================
   Sort dropdown 
   ============================================================ */
div.toolbar .sort-with-icon,
div.toolbar2 .sort-with-icon,
div.toolbar3 .sort-with-icon {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    overflow: visible;
    margin: 0 8px;
    height: 38px;
}

    div.toolbar .sort-with-icon .icon-border,
    div.toolbar2 .sort-with-icon .icon-border,
    div.toolbar3 .sort-with-icon .icon-border {
        background: transparent;
        border: none;
        color: #4F616A;
        padding: 0 8px 0 12px;
        display: inline-flex;
        align-items: center;
        border-right: 1px solid #E5E7EB;
        height: 100%;
    }

    div.toolbar .sort-with-icon .dropdown,
    div.toolbar2 .sort-with-icon .dropdown,
    div.toolbar3 .sort-with-icon .dropdown {
        display: inline-flex;
        align-items: center;
        height: 100%;
    }

    div.toolbar .sort-with-icon #sortDropdown,
    div.toolbar2 .sort-with-icon #sortDropdown,
    div.toolbar3 .sort-with-icon #sortDropdown,
    div.toolbar .sort-with-icon .btn.btn-secondary,
    div.toolbar2 .sort-with-icon .btn.btn-secondary,
    div.toolbar3 .sort-with-icon .btn.btn-secondary {
        background: transparent !important;
        border: none !important;
        color: #4F616A !important;
        padding: 0 14px 0 8px !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        height: 100% !important;
        display: inline-flex !important;
        align-items: center;
        box-shadow: none !important;
    }

        div.toolbar .sort-with-icon #sortDropdown:hover,
        div.toolbar2 .sort-with-icon #sortDropdown:hover,
        div.toolbar3 .sort-with-icon #sortDropdown:hover,
        div.toolbar .sort-with-icon .btn.btn-secondary:hover,
        div.toolbar2 .sort-with-icon .btn.btn-secondary:hover,
        div.toolbar3 .sort-with-icon .btn.btn-secondary:hover {
            background: #F3F4F6 !important;
            color: #1F2937 !important;
        }

    /* Active state when sort is applied */
    div.toolbar .sort-with-icon .active-sort-button,
    div.toolbar2 .sort-with-icon .active-sort-button,
    div.toolbar3 .sort-with-icon .active-sort-button {
        color: #00708A !important;
        font-weight: 600 !important;
    }

    div.toolbar .sort-with-icon .highlighted-icon2,
    div.toolbar2 .sort-with-icon .highlighted-icon2,
    div.toolbar3 .sort-with-icon .highlighted-icon2 {
        color: #00708A !important;
    }


table.dataTable {
    width: 100% !important;
    table-layout: fixed;
}

    table.dataTable thead th,
    table.dataTable tbody td {
        white-space: normal !important; /* allow wrapping */
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 10px 14px !important;
        vertical-align: middle !important;
        line-height: 1.4;
    }

    /* Header text wraps too so long labels like "Generate AI Patient
   Discussion Guide" don't push their column too wide */
    table.dataTable thead th {
        line-height: 1.3;
        font-weight: 600;
    }

/* Remove the horizontal scroll - tables fit within their wrapper */
.dataTables_wrapper {
    overflow-x: visible;
}

.dataTables_scrollHead,
.dataTables_scrollBody {
    overflow-x: visible !important;
}

/* ---------- Column width hints (percentage-based with table-layout: fixed) ---------- */

/* All Orders (#table1) - 13 columns total */
table.dataTable#table1 thead th:nth-child(1),
table.dataTable#table1 tbody td:nth-child(1) {
    width: 7%;
}
/* Test Type */
table.dataTable#table1 thead th:nth-child(2),
table.dataTable#table1 tbody td:nth-child(2) {
    width: 7%;
}
/* Order Date */
table.dataTable#table1 thead th:nth-child(3),
table.dataTable#table1 tbody td:nth-child(3) {
    width: 9%;
}
/* Patient Name */
table.dataTable#table1 thead th:nth-child(4),
table.dataTable#table1 tbody td:nth-child(4) {
    width: 8%;
}
/* DOB */
table.dataTable#table1 thead th:nth-child(5),
table.dataTable#table1 tbody td:nth-child(5) {
    width: 11%;
}
/* Physician */
table.dataTable#table1 thead th:nth-child(6),
table.dataTable#table1 tbody td:nth-child(6) {
    width: 8%;
}
/* Specimen Received */
table.dataTable#table1 thead th:nth-child(7),
table.dataTable#table1 tbody td:nth-child(7) {
    width: 8%;
    text-align: center;
}
/* Estimated TAT */
table.dataTable#table1 thead th:nth-child(8),
table.dataTable#table1 tbody td:nth-child(8) {
    width: 8%;
}
/* Reported Date */
table.dataTable#table1 thead th:nth-child(9),
table.dataTable#table1 tbody td:nth-child(9) {
    width: 5%;
    text-align: center;
}
/* Report */
table.dataTable#table1 thead th:nth-child(10),
table.dataTable#table1 tbody td:nth-child(10) {
    width: 7%;
    text-align: center;
}
/* Report Viewed */
table.dataTable#table1 thead th:nth-child(11),
table.dataTable#table1 tbody td:nth-child(11) {
    width: 9%;
    text-align: center;
}
/* Generate AI Guide */
table.dataTable#table1 thead th:nth-child(12),
table.dataTable#table1 tbody td:nth-child(12) {
    width: 6%;
    text-align: center;
}
/* AI Guide PDF */
table.dataTable#table1 thead th:nth-child(13),
table.dataTable#table1 tbody td:nth-child(13) {
    width: 7%;
    text-align: center;
}
/* More Details */

/* Results (#table2) - 12 columns */
table.dataTable#table2 thead th:nth-child(1),
table.dataTable#table2 tbody td:nth-child(1) {
    width: 8%;
}
/* Test Type */
table.dataTable#table2 thead th:nth-child(2),
table.dataTable#table2 tbody td:nth-child(2) {
    width: 8%;
}
/* Order Date */
table.dataTable#table2 thead th:nth-child(3),
table.dataTable#table2 tbody td:nth-child(3) {
    width: 10%;
}
/* Patient Name */
table.dataTable#table2 thead th:nth-child(4),
table.dataTable#table2 tbody td:nth-child(4) {
    width: 8%;
}
/* DOB */
table.dataTable#table2 thead th:nth-child(5),
table.dataTable#table2 tbody td:nth-child(5) {
    width: 12%;
}
/* Physician */
table.dataTable#table2 thead th:nth-child(6),
table.dataTable#table2 tbody td:nth-child(6) {
    width: 8%;
}
/* Reported Date */
table.dataTable#table2 thead th:nth-child(7),
table.dataTable#table2 tbody td:nth-child(7) {
    width: 9%;
}
/* Reported As */
table.dataTable#table2 thead th:nth-child(8),
table.dataTable#table2 tbody td:nth-child(8) {
    width: 5%;
    text-align: center;
}
/* Report */
table.dataTable#table2 thead th:nth-child(9),
table.dataTable#table2 tbody td:nth-child(9) {
    width: 7%;
    text-align: center;
}
/* Report Viewed */
table.dataTable#table2 thead th:nth-child(10),
table.dataTable#table2 tbody td:nth-child(10) {
    width: 11%;
}
/* Practice Name */
table.dataTable#table2 thead th:nth-child(11),
table.dataTable#table2 tbody td:nth-child(11) {
    width: 7%;
    text-align: center;
}
/* AI Guide PDF */
table.dataTable#table2 thead th:nth-child(12),
table.dataTable#table2 tbody td:nth-child(12) {
    width: 7%;
    text-align: center;
}
/* More Details */

/* On Hold (#table3) - 8 columns */
table.dataTable#table3 thead th:nth-child(1),
table.dataTable#table3 tbody td:nth-child(1) {
    width: 11%;
}
/* Test Type */
table.dataTable#table3 thead th:nth-child(2),
table.dataTable#table3 tbody td:nth-child(2) {
    width: 13%;
}
/* Patient Name */
table.dataTable#table3 thead th:nth-child(3),
table.dataTable#table3 tbody td:nth-child(3) {
    width: 11%;
}
/* DOB */
table.dataTable#table3 thead th:nth-child(4),
table.dataTable#table3 tbody td:nth-child(4) {
    width: 15%;
}
/* Physician */
table.dataTable#table3 thead th:nth-child(5),
table.dataTable#table3 tbody td:nth-child(5) {
    width: 11%;
}
/* Hold Date */
table.dataTable#table3 thead th:nth-child(6),
table.dataTable#table3 tbody td:nth-child(6) {
    width: 13%;
}
/* Hold Status */
table.dataTable#table3 thead th:nth-child(7),
table.dataTable#table3 tbody td:nth-child(7) {
    width: 14%;
}
/* Action Needed */
table.dataTable#table3 thead th:nth-child(8),
table.dataTable#table3 tbody td:nth-child(8) {
    width: 12%;
    text-align: center;
}
/* More Details */

/* Sort indicator stays clean even with wrapped text */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    padding-right: 24px !important;
}
/* ============================================================
   Suppress the scroll-head horizontal scrollbar.
   DataTables with scrollY creates a separate <thead> inside
   .dataTables_scrollHead. Force it to obey the same fixed
   layout + width as the main table so no overflow happens.
   ============================================================ */
.dataTables_scrollHead,
.dataTables_scrollHeadInner,
.dataTables_scrollBody {
    overflow-x: hidden !important;
    width: 100% !important;
}

.dataTables_scrollHeadInner {
    box-sizing: border-box !important;
    padding-right: 0 !important;
}

    .dataTables_scrollHeadInner table,
    .dataTables_scrollBody table.dataTable {
        table-layout: fixed !important;
        width: 100% !important;
        margin: 0 !important;
    }

/* Override any inline width DataTables tries to set on the cloned
   thead's th elements - let our percentage widths win */
.dataTables_scrollHead table thead th[style*="width"] {
    width: auto !important;
}


/* Force fixed layout on every table inside the three wrappers */
#table1_wrapper table,
#table2_wrapper table,
#table3_wrapper table {
    table-layout: fixed !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Constrain all DataTables scroll containers to wrapper width.
   This kills the runaway-width issue where the cloned thead
   gets wider than the body. */
#table1_wrapper .dataTables_scrollHead,
#table1_wrapper .dataTables_scrollHeadInner,
#table1_wrapper .dataTables_scrollBody,
#table2_wrapper .dataTables_scrollHead,
#table2_wrapper .dataTables_scrollHeadInner,
#table2_wrapper .dataTables_scrollBody,
#table3_wrapper .dataTables_scrollHead,
#table3_wrapper .dataTables_scrollHeadInner,
#table3_wrapper .dataTables_scrollBody {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Strip the inline widths DataTables computes on each th/td -
   we want our percentages to win, not its pixel measurements */
#table1_wrapper th, #table1_wrapper td,
#table2_wrapper th, #table2_wrapper td,
#table3_wrapper th, #table3_wrapper td {
    box-sizing: border-box !important;
}

    /* ===== ALL ORDERS (#table1) - 13 columns ===== */
    #table1_wrapper th:nth-child(1), #table1_wrapper td:nth-child(1) {
        width: 7% !important;
    }

    #table1_wrapper th:nth-child(2), #table1_wrapper td:nth-child(2) {
        width: 8% !important;
    }

    #table1_wrapper th:nth-child(3), #table1_wrapper td:nth-child(3) {
        width: 9% !important;
    }

    #table1_wrapper th:nth-child(4), #table1_wrapper td:nth-child(4) {
        width: 5% !important;
    }

    #table1_wrapper th:nth-child(5), #table1_wrapper td:nth-child(5) {
        width: 11% !important;
    }

    #table1_wrapper th:nth-child(6), #table1_wrapper td:nth-child(6) {
        width: 9% !important;
    }

    #table1_wrapper th:nth-child(7), #table1_wrapper td:nth-child(7) {
        width: 7% !important;
        text-align: center !important;
    }

    #table1_wrapper th:nth-child(8), #table1_wrapper td:nth-child(8) {
        width: 9% !important;
    }

    #table1_wrapper th:nth-child(9), #table1_wrapper td:nth-child(9) {
        width: 6% !important;
        text-align: center !important;
    }

    #table1_wrapper th:nth-child(10), #table1_wrapper td:nth-child(10) {
        width: 7% !important;
        text-align: center !important;
    }

    #table1_wrapper th:nth-child(11), #table1_wrapper td:nth-child(11) {
        width: 8% !important;
        text-align: center !important;
    }

    #table1_wrapper th:nth-child(12), #table1_wrapper td:nth-child(12) {
        width: 7% !important;
        text-align: center !important;
    }

    #table1_wrapper th:nth-child(13), #table1_wrapper td:nth-child(13) {
        width: 8% !important;
        text-align: center !important;
    }
    /* Total: 100% */

    /* ===== RESULTS (#table2) - 12 columns ===== */
    #table2_wrapper th:nth-child(1), #table2_wrapper td:nth-child(1) {
        width: 7% !important;
    }

    #table2_wrapper th:nth-child(2), #table2_wrapper td:nth-child(2) {
        width: 7% !important;
    }

    #table2_wrapper th:nth-child(3), #table2_wrapper td:nth-child(3) {
        width: 9% !important;
    }

    #table2_wrapper th:nth-child(4), #table2_wrapper td:nth-child(4) {
        width: 7% !important;
    }

    #table2_wrapper th:nth-child(5), #table2_wrapper td:nth-child(5) {
        width: 11% !important;
    }

    #table2_wrapper th:nth-child(6), #table2_wrapper td:nth-child(6) {
        width: 8% !important;
    }

    #table2_wrapper th:nth-child(7), #table2_wrapper td:nth-child(7) {
        width: 8% !important;
        text-align: center !important;
    }

    #table2_wrapper th:nth-child(8), #table2_wrapper td:nth-child(8) {
        width: 7% !important;
        text-align: center !important;
    }

    #table2_wrapper th:nth-child(9), #table2_wrapper td:nth-child(9) {
        width: 7% !important;
        text-align: center !important;
    }

    #table2_wrapper th:nth-child(10), #table2_wrapper td:nth-child(10) {
        width: 12% !important;
    }

    #table2_wrapper th:nth-child(11), #table2_wrapper td:nth-child(11) {
        width: 7% !important;
        text-align: center !important;
    }

    #table2_wrapper th:nth-child(12), #table2_wrapper td:nth-child(12) {
        width: 10% !important;
        text-align: center !important;
    }
    /* Total: 100% */

    /* ===== ON HOLD (#table3) - 8 columns ===== */
    #table3_wrapper th:nth-child(1), #table3_wrapper td:nth-child(1) {
        width: 11% !important;
    }

    #table3_wrapper th:nth-child(2), #table3_wrapper td:nth-child(2) {
        width: 13% !important;
    }

    #table3_wrapper th:nth-child(3), #table3_wrapper td:nth-child(3) {
        width: 10% !important;
    }

    #table3_wrapper th:nth-child(4), #table3_wrapper td:nth-child(4) {
        width: 14% !important;
    }

    #table3_wrapper th:nth-child(5), #table3_wrapper td:nth-child(5) {
        width: 11% !important;
    }

    #table3_wrapper th:nth-child(6), #table3_wrapper td:nth-child(6) {
        width: 14% !important;
        text-align: center !important;
    }

    #table3_wrapper th:nth-child(7), #table3_wrapper td:nth-child(7) {
        width: 15% !important;
    }

    #table3_wrapper th:nth-child(8), #table3_wrapper td:nth-child(8) {
        width: 12% !important;
        text-align: center !important;
    }
/* Total: 100% */
/* ============================================================
   Constrain DataTables to never spill outside the portlet card
   ============================================================ */

/* Force the portlet body to be the clipping boundary */
.mdx-orders .m-portlet__body {
    overflow: hidden !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* The wrapper inside must also respect its parent's width */
.mdx-orders .dataTables_wrapper,
#table1_wrapper,
#table2_wrapper,
#table3_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

    /* Hard-cap every table to its wrapper's width.
   With table-layout:fixed + min-width:0 on cells, content
   wraps inside cells instead of pushing the table wider. */
    #table1_wrapper table.dataTable,
    #table2_wrapper table.dataTable,
    #table3_wrapper table.dataTable {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    /* Critical: min-width:0 lets cells shrink below their content's
   natural size, forcing wrap instead of overflow. Without this,
   long unbroken words push the column wider regardless of % rules. */
    #table1_wrapper th, #table1_wrapper td,
    #table2_wrapper th, #table2_wrapper td,
    #table3_wrapper th, #table3_wrapper td {
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
/* ============================================================
   Funnel filter button (#accountname, etc.) — kill the
   persistent dark border from Metronic's .m-tabs__link.
   The button is created by buildAccountFilter() and has
   classes 'nav-link m-tabs__link dropdown-toggle' which all
   contribute to the dark focus/active state.
   ============================================================ */
#accountname,
#accountname2,
#accountname3,
button#accountname.dropdown-toggle,
button#accountname2.dropdown-toggle,
button#accountname3.dropdown-toggle {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    outline: none !important;
    box-shadow: none !important;
    color: #6B7280 !important;
    width: 42px !important;
    height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: border-color 0.15s ease, color 0.15s ease;
}

    /* Every interactive state - same clean look, just border-color hint */
    #accountname:hover,
    #accountname2:hover,
    #accountname3:hover,
    #accountname:focus,
    #accountname2:focus,
    #accountname3:focus,
    #accountname:active,
    #accountname2:active,
    #accountname3:active,
    #accountname.show,
    #accountname2.show,
    #accountname3.show,
    #accountname[aria-expanded="true"],
    #accountname2[aria-expanded="true"],
    #accountname3[aria-expanded="true"] {
        background: #FFFFFF !important;
        border-color: #00BDCD !important;
        color: #00BDCD !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Filter icon inside the button */
    #accountname i,
    #accountname2 i,
    #accountname3 i {
        color: inherit !important;
        font-size: 13px !important;
        margin: 0 !important;
    }

    /* Kill the dropdown-toggle caret arrow Bootstrap adds */
    #accountname::after,
    #accountname2::after,
    #accountname3::after,
    #accountname.dropdown-toggle::after,
    #accountname2.dropdown-toggle::after,
    #accountname3.dropdown-toggle::after {
        display: none !important;
        content: none !important;
    }


body .modal:not(.mdx-modal) .modal-footer .btn,
body .modal:not(.mdx-modal) .modal-footer .btn-primary,
body .modal:not(.mdx-modal) .modal-footer .btn-secondary,
body .modal:not(.mdx-modal) .modal-footer button[type="button"],
body .modal:not(.mdx-modal) .modal-footer button[type="submit"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    min-width: 80px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin: 0 4px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

/* Primary button - teal (matches design tokens) */
body .modal:not(.mdx-modal) .modal-footer .btn-primary,
body .modal:not(.mdx-modal) .modal-footer button.btn-primary {
    background-color: #00BDCD !important;
    color: #FFFFFF !important;
    border: 1px solid #00BDCD !important;
}

    body .modal:not(.mdx-modal) .modal-footer .btn-primary:hover,
    body .modal:not(.mdx-modal) .modal-footer button.btn-primary:hover {
        background-color: #00708A !important;
        border-color: #00708A !important;
        color: #FFFFFF !important;
    }

/* Secondary button - white with gray text/border */
body .modal:not(.mdx-modal) .modal-footer .btn-secondary,
body .modal:not(.mdx-modal) .modal-footer button.btn-secondary {
    background-color: #FFFFFF !important;
    color: #4F616A !important;
    border: 1px solid #D1D5DB !important;
}

    body .modal:not(.mdx-modal) .modal-footer .btn-secondary:hover,
    body .modal:not(.mdx-modal) .modal-footer button.btn-secondary:hover {
        background-color: #F3F4F6 !important;
        border-color: #9CA3AF !important;
        color: #1F2937 !important;
    }

/* Disabled state */
body .modal:not(.mdx-modal) .modal-footer .btn:disabled,
body .modal:not(.mdx-modal) .modal-footer .btn[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Modal footer layout: ensure buttons sit on the right with proper spacing */
body .modal:not(.mdx-modal) .modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 14px 20px !important;
    border-top: 1px solid #E5E7EB !important;
}

    /* Allow plain text (the "Would you like to edit or submit..." prompt
       above the buttons in m_modal_4 etc.) to take full width */
    body .modal:not(.mdx-modal) .modal-footer > br {
        flex-basis: 100% !important;
        height: 0 !important;
    }
html body .mdx-shell .mdx-sidebar {
    padding-top: 0 !important;
}

    html body .mdx-shell .mdx-sidebar .mdx-sidebar__header {
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding: 0 16px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid #E5E7EB !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    /* Add a little breathing room above the first nav item now that
   the sidebar itself has no top padding */
    html body .mdx-shell .mdx-sidebar .mdx-sidebar__nav {
        padding-top: 8px !important;
    }

html body .mdx-shell .mdx-sidebar {
    background: #F6F7F8 !important;
}
    html body .mdx-shell .mdx-sidebar .mdx-sidebar__header {
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding: 0 16px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        border-bottom: none !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

html body .mdx-shell .mdx-sidebar {
    width: 280px !important;
}

html body .mdx-shell .mdx-topbar {
    left: 280px !important;
}

html body .mdx-shell .mdx-main {
    margin-left: 280px !important;
}

html body .mdx-shell .mdx-sidebar__submenu a {
    white-space: normal !important;
    line-height: 1.3;
}
#Microsoft_Omnichannel_LCWidget,
[id^="Microsoft_Omnichannel_LCWidget"],
[id^="oc-lcw"],
[id*="lcw-anchor"],
[id*="lcw-fab"],
[id*="lcw-FAB"],
[class*="lcw-FAB"],
[class*="lcw-anchor"],
[data-test-id="lcw-anchor"],
iframe[id*="oc-lcw"],
iframe[title*="chat" i],
iframe[title*="Chat"],
div[role="button"][aria-label*="chat" i] {
    bottom: 110px !important;
    right: 24px !important;
}

/* If the chat OPENS into a panel, the panel iframe should also raise so it
   doesn't visually attach to the lifted FAB awkwardly */
iframe[id*="oc-lcw-widget"],
iframe[id^="Microsoft_Omnichannel_LCWidget_iframe"] {
    bottom: 110px !important;
}
 