/* Forced Grey Background — applies ONLY to non-LCT themes.
   A Llamachant/LCT theme puts an "lct-*" class on <body> (e.g. lct-sf). Every rule below is guarded with
   body:not([class*="lct-"]) so when ANY lct-* theme is active these overrides are skipped and the header,
   sidebar, etc. use the theme's own background. Under stock Fluent (no lct-* class) the gray applies as before. */

body:not([class*="lct-"]) .header,
body:not([class*="lct-"]) .dxbl-accordion-item-text-container,
body:not([class*="lct-"]) div.xaf-sidebar,
body:not([class*="lct-"]) .dxbl-accordion-group-header,
body:not([class*="lct-"]) .dxbl-accordion-item {
    background-color: #252626 !important;
    color: white !important;
}

body:not([class*="lct-"]) .dxbl-accordion-group-header::before {
    background-color: #252626 !important;
}

/* Override when active */
body:not([class*="lct-"]) .dxbl-active .dxbl-accordion-item-text-container {
    background-color: revert !important;
    color: var(--dx-color-primary) !important;
}

body:not([class*="lct-"]) .dxbl-accordion-item-text-container:hover {
    background: inherit !important;
}

body:not([class*="lct-"]) .dxbl-accordion-group-header,
body:not([class*="lct-"]) .dxbl-accordion-item {
    border: none !important;
}

body:not([class*="lct-"]) .dxbl-accordion-filter {
    border: none !important;
}

body:not([class*="lct-"]) .dxbl-accordion .dxbl-accordion-filter .dxbl-navigation-filter.dxbl-text-edit {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    --dxbl-text-edit-bg: rgba(255, 255, 255, 0.05);
    --dxbl-text-edit-border-color: rgba(255, 255, 255, 0.15);
    --dxbl-text-edit-border-hovered-color: rgba(255, 255, 255, 0.25);
    --dxbl-text-edit-underline-color: transparent;
    --dxbl-text-edit-underline-focused-color: var(--dx-color-primary);
    --dxbl-text-edit-underline-hovered-color: transparent;
}

body:not([class*="lct-"]) .dxbl-accordion .dxbl-accordion-filter .dxbl-navigation-filter.dxbl-text-edit::after {
    display: none !important;
}

body:not([class*="lct-"]) .dxbl-accordion {
    --dxbl-accordion-group-header-border-radius: 0px !important;
}

body:not([class*="lct-"]) .dxbl-accordion-item .dxbl-active {
    background-color: #3b3b3b !important;
}

body:not([class*="lct-"]) .sidebar .nav-pills .nav-link:hover,
body:not([class*="lct-"]) .sidebar .nav-pills .nav-link::selection,
body:not([class*="lct-"]) .nav-pills .nav-item:not(.show) > .nav-link:not(.active):focus {
    background-color: var(--dx-color-primary) !important;
}

body:not([class*="lct-"]) .dxbs-grid-group-row {
    font-weight: bold;
    font-size: 0.90em;
    opacity: 0.5;
}

body:not([class*="lct-"]) div.sidebar div.xaf-flex-auto {
    padding-bottom: 10px;
}

body:not([class*="lct-"]) .xaf-nav-link {
    text-decoration: none !important;
}

body:not([class*="lct-"]) .dxbl-navigation-filter .dxbl-text-edit-input {
    color: rgb(200,200,200) !important;
}

body:not([class*="lct-"]) #logon-template-component > div.logon-template-header.card.card-header {
    background-color: #252626 !important;
    color: white !important;
}

body:not([class*="lct-"]) #logon-template-component > div.logon-template-header.card.card-header > div {
    margin-left: 30px;
}
/*End Forced Grey*/
