/* ════════════════════════════════════════════════════════════════
   EDUCATED — Shell XAF : SIDEBAR (navigation gauche)
   Cible les classes dxbl-accordion + xaf-nav de la navigation XAF.
   Palette : indigo. Police : Geist.
   ════════════════════════════════════════════════════════════════ */


/* ╔══════════════════════════════════════════════════════════════╗
   ║  TOKENS                                                       ║
   ╚══════════════════════════════════════════════════════════════╝ */

.xaf-sidebar {
 /*   --brand: #5351FB;
    --brand-2: #342484;
    --brand-soft: #EFEEFF;
    --accent: #FF6A2A;
    --surface-1: #FFFFFF;
    --surface-2: #F9FAFC;
    --surface-3: #F1F3F7;
    --ink-0: #0F1115;
    --ink-1: #1F2330;
    --ink-2: #4B5160;
    --ink-3: #858B99;
    --ink-4: #B5BBC7;
    --line: #ECEDF1;
    --line-2: #E3E5EA;*/
}


/* ╔══════════════════════════════════════════════════════════════╗
   ║  CONTENEUR                                                    ║
   ╚══════════════════════════════════════════════════════════════╝ */

.xaf-sidebar {
    background: var(--surface-1) !important;
    border-right: 1px solid var(--line) !important;
    font-family: "Geist", "Public Sans", system-ui, -apple-system, sans-serif !important;
    display: flex !important;
    flex-direction: column !important;
    border-top: 0 !important;
}
    .xaf-sidebar::before,
    .xaf-sidebar::after {
        display: none !important;
    }
    .xaf-sidebar * {
        font-family: "Geist", "Public Sans", system-ui, -apple-system, sans-serif !important;
    }


    /* ╔══════════════════════════════════════════════════════════════╗
   ║  FILTRE (champ "Filter...")                                   ║
   ╚══════════════════════════════════════════════════════════════╝ */

    .xaf-sidebar .dxbl-navigation-filter {
        border: 1px solid var(--line) !important;
        border-radius: 8px !important;
        background: var(--surface-2) !important;
        margin: 8px !important;
    }

        .xaf-sidebar .dxbl-navigation-filter:focus-within {
            border-color: var(--brand) !important;
            box-shadow: 0 0 0 3px var(--brand-soft) !important;
            background: var(--surface-1) !important;
        }

        .xaf-sidebar .dxbl-navigation-filter .dxbl-text-edit-input {
            font-size: 12.5px !important;
            color: var(--ink-1) !important;
        }


    /* ╔══════════════════════════════════════════════════════════════╗
   ║  TITRE "ESPACE DE TRAVAIL"                                    ║
   ╚══════════════════════════════════════════════════════════════╝ */

    .xaf-sidebar .dxbl-accordion-filter::after {
        content: "ESPACE DE TRAVAIL";
        display: block;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.09em;
        color: var(--ink-4);
        padding: 14px 14px 4px;
        text-transform: uppercase;
    }


    /* ╔══════════════════════════════════════════════════════════════╗
   ║  GROUPES DE 1er NIVEAU (Stock, Vente, Achat...)               ║
   ╚══════════════════════════════════════════════════════════════╝ */

    .xaf-sidebar .dxbl-accordion-group-header {
        border-radius: 8px !important;
        margin: 1px 6px !important;
        min-height: 38px !important;
        transition: background 120ms !important;
    }

        .xaf-sidebar .dxbl-accordion-group-header:hover {
            background: var(--surface-2) !important;
        }

    .xaf-sidebar .dxbl-accordion-group.expanded > .dxbl-accordion-group-header {
        background: var(--surface-2) !important;
    }


    /* ╔══════════════════════════════════════════════════════════════╗
   ║  TEXTE & ICÔNES DES ITEMS                                     ║
   ╚══════════════════════════════════════════════════════════════╝ */

    .xaf-sidebar .xaf-nav-link span {
        font-size: 12.5px !important;
        font-weight: 500 !important;
        color: var(--ink-1) !important;
        letter-spacing: -.005em !important;
    }

    /* Icônes V6 (SVG inline recolorés par module, posés par educated-sidebar-icons.js) */
    .xaf-sidebar .educated-nav-ico {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
    }

        .xaf-sidebar .educated-nav-ico svg {
            width: 16px;
            height: 16px;
        }

        .xaf-sidebar .educated-nav-ico.tint-violet {
            background: var(--brand-soft);
            color: #6D5BFE;
        }

        .xaf-sidebar .educated-nav-ico.tint-blue {
            background: #DCEAFE;
            color: #2563EB;
        }

        .xaf-sidebar .educated-nav-ico.tint-teal {
            background: #CFF5F0;
            color: #0D9488;
        }

        .xaf-sidebar .educated-nav-ico.tint-emerald {
            background: #D0F4E2;
            color: #059669;
        }

        .xaf-sidebar .educated-nav-ico.tint-amber {
            background: #FBE9CC;
            color: #B45309;
        }

        .xaf-sidebar .educated-nav-ico.tint-rose {
            background: #FCDCE5;
            color: #E11D48;
        }

        .xaf-sidebar .educated-nav-ico.tint-slate {
            background: #E2E5EB;
            color: #475569;
        }


    /* ╔══════════════════════════════════════════════════════════════╗
   ║  ITEMS ENFANTS (Monitoring, Dashboards, Etats...)            ║
   ╚══════════════════════════════════════════════════════════════╝ */

    .xaf-sidebar .dxbl-accordion-item .dxbl-accordion-item-content {
        border-radius: 7px !important;
        margin: 1px 6px !important;
        min-height: 34px !important;
        transition: background 120ms !important;
    }

    .xaf-sidebar .clickable-xaf-nav-item .dxbl-accordion-item-content:hover {
        background: var(--surface-2) !important;
    }


    /* ╔══════════════════════════════════════════════════════════════╗
   ║  ITEM ACTIF / SÉLECTIONNÉ                                     ║
   ║  DOM : .dxbl-accordion-item.dxbl-active                       ║
   ║      + a.dxbl-accordion-item-content.dxbl-active              ║
   ╚══════════════════════════════════════════════════════════════╝ */

    .xaf-sidebar .dxbl-accordion-item.dxbl-active > .dxbl-accordion-item-content,
    .xaf-sidebar .dxbl-accordion-item-content.dxbl-active,
    .xaf-sidebar .dxbl-accordion-item-content[aria-selected="true"] {
        background: var(--brand-soft) !important;
        position: relative;
    }

        /* Texte de l'item actif en couleur brand */
        .xaf-sidebar .dxbl-accordion-item.dxbl-active .xaf-nav-link span,
        .xaf-sidebar .dxbl-accordion-item-content.dxbl-active .xaf-nav-link span,
        .xaf-sidebar .dxbl-accordion-item-content[aria-selected="true"] .xaf-nav-link span {
            color: var(--brand) !important;
            font-weight: 600 !important;
        }

        /* Barre latérale indigo à gauche de l'item actif */
        .xaf-sidebar .dxbl-accordion-item.dxbl-active > .dxbl-accordion-item-content::before,
        .xaf-sidebar .dxbl-accordion-item-content.dxbl-active::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 18px;
            background: var(--brand);
            border-radius: 0 3px 3px 0;
        }


    /* ╔══════════════════════════════════════════════════════════════╗
   ║  CHEVRONS                                                     ║
   ╚══════════════════════════════════════════════════════════════╝ */

    .xaf-sidebar .dxbl-group-expand-btn svg,
    .xaf-sidebar .dxbl-group-expand-btn .dxbl-image {
        color: var(--ink-3) !important;
        width: 14px !important;
        height: 14px !important;
    }


    /* ╔══════════════════════════════════════════════════════════════╗
   ║  SCROLLBAR                                                    ║
   ╚══════════════════════════════════════════════════════════════╝ */

    .xaf-sidebar .dxbl-scroll-viewer-scroll-thumb {
        background: var(--line-2) !important;
        border-radius: 3px !important;
    }


    /* ╔══════════════════════════════════════════════════════════════╗
   ║  FOOTER (AcurBusiness / Version)                              ║
   ║  Restructuré par educated-sidebar-footer.js en .ab-name      ║
   ║  + .ab-version                                                ║
   ╚══════════════════════════════════════════════════════════════╝ */

    .xaf-sidebar .about-info {
        margin-top: auto;
        padding: 14px 16px !important;
        border-top: 1px solid var(--line);
        background: var(--surface-1);
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .xaf-sidebar .about-info .ab-name {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-weight: 600;
            color: var(--ink-1);
            letter-spacing: -.005em;
        }

            .xaf-sidebar .about-info .ab-name::before {
                content: "";
                width: 7px;
                height: 7px;
                border-radius: 2px;
                background: var(--gradient-brand);
                flex: none;
            }

        .xaf-sidebar .about-info .ab-version {
            font-size: 10.5px;
            color: var(--ink-3);
            font-weight: 400;
            padding-left: 15px;
            font-variant-numeric: tabular-nums;
        }
    /* ─── SIDEBAR : blanche pleine, pas de bordure haute ─── */
    .xaf-sidebar,
    .xaf-sidebar.sidebar,
    .xaf-flex-auto.overflow-hidden > .xaf-sidebar {
        border-top: 0 !important;
        background: #FFFFFF !important;
    }
.dxbl-theme-fluent .main-ribbon-template.app {
    background-color: #FFFFFF;
    color: var(--dxds-color-content-neutral-default-rest);
}