/*
 * sidebar.css — bara laterală (#sidebar): antet compact, căutare în meniu („/”), mod restrâns pe desktop, contul jos.
 * Logica: public/js/sidebarShell.js. Schița aprobată: docs/designapp/README.md (lotul 1: fără SVG, fără „Fixate”,
 * fără regrupare / redenumiri — etichetele meniului rămân exact cele din index.html).
 *
 * Namespace .mlsb-* (NU .sb-*: îl folosește bannerul SaaS, public/js/saas/saasBanner.js).
 * ATENȚIE la light-theme.css (încărcat mereu, ÎNAINTEA acestui fișier):
 *   - `[class*="panel|section|card"]` scot bordura, `[class*="close"]` restilizează ⇒ nicio clasă de aici nu le conține;
 *   - `*, *::before, *::after { border-color: … !important }` ⇒ border-color care contează e scris cu !important;
 *   - `button { border-radius; font-weight … !important }`, `input { padding; border; background … !important }`
 *     ⇒ regulile butoanelor / câmpului sunt scrise cu !important și cu specificitate de id.
 * Ascunderea după permisiuni rămâne EXCLUSIV `.hidden` / style.display (app.js etc.); aici doar clasele proprii
 * `.mlsb-miss` (căutare) și `.mlsb-rail` (bara restrânsă).
 * Telefonul (≤ 768 px) nu e atins: bara laterală e ascunsă acolo (bara de jos + panourile), iar modul restrâns
 * are reguli DOAR în @media (min-width: 769px).
 */

:root {
    --mlsb-ink: var(--gray-900, #0f172a);
    --mlsb-muted: var(--gray-500, #64748b);
    --mlsb-line: var(--gray-200, #e2e8f0);
    --mlsb-soft: var(--gray-100, #f1f5f9);
    --mlsb-accent: #2563eb;
    --mlsb-speed: .18s;
}
@media (prefers-reduced-motion: reduce) {
    :root { --mlsb-speed: 0s; }
}

/* ───────────── tenta discretă a grupurilor principale ─────────────
 * Doar grupul DESCHIS își arată culoarea: bara verticală din stânga antetului + un voal foarte slab. Textul antetului
 * rămâne cel din light-theme.css (contrast neschimbat). Clasele grupurilor sunt cele existente din index.html.
 * ERP-ul primește degradeul brandului; domeniile lui au culorile proprii în erp-nav.css (--erp-dom-*). */
#sidebar .nav-group { --mlsb-grp: #2563eb; --mlsb-grp-tint: rgba(37, 99, 235, .08); }
#sidebar .nav-group.call-manager-group  { --mlsb-grp: #0891b2; --mlsb-grp-tint: rgba(8, 145, 178, .09); }
#sidebar .nav-group.whatsapp-module     { --mlsb-grp: #16a34a; --mlsb-grp-tint: rgba(22, 163, 74, .09); }
#sidebar .nav-group.email-agent-module  { --mlsb-grp: #ea580c; --mlsb-grp-tint: rgba(234, 88, 12, .08); }
#sidebar .nav-group.webinar-module      { --mlsb-grp: #e11d48; --mlsb-grp-tint: rgba(225, 29, 72, .08); }
#sidebar .nav-group.crm-module          { --mlsb-grp: #7c3aed; --mlsb-grp-tint: rgba(124, 58, 237, .08); }
#sidebar .nav-group.erp-module          { --mlsb-grp: #1e63ea; --mlsb-grp-tint: rgba(30, 99, 234, .08); }
#sidebar .nav-group.medical-module      { --mlsb-grp: #0d9488; --mlsb-grp-tint: rgba(13, 148, 136, .09); }
#sidebar .nav-group.restaurant-module   { --mlsb-grp: #d97706; --mlsb-grp-tint: rgba(217, 119, 6, .09); }
#sidebar .nav-group.admin-only          { --mlsb-grp: #475569; --mlsb-grp-tint: rgba(71, 85, 105, .08); }
#sidebar .nav-group.expanded > .nav-group-header {
    border-left-color: var(--mlsb-grp) !important;
    background: linear-gradient(90deg, var(--mlsb-grp-tint) 0%, rgba(255, 255, 255, 0) 85%), #ffffff !important;
    transition: background .15s ease, border-color .15s ease;
}
#sidebar .nav-group.erp-module.expanded > .nav-group-header {
    background: linear-gradient(90deg, rgba(30, 99, 234, .09) 0%, rgba(122, 41, 214, .05) 60%, rgba(255, 255, 255, 0) 100%), #ffffff !important;
}

/* ───────────── bara de jos (telefon): tabul activ cu un mic degradeu de brand ───────────── */
@media (max-width: 768px) {
    #mobileBottomNav > .mobile-nav-item.active {
        background: linear-gradient(160deg, rgba(30, 99, 234, .12) 0%, rgba(122, 41, 214, .12) 100%) !important;
        color: #1e4fd0 !important;
        border-radius: 12px;
    }
    #mobileBottomNav > .mobile-nav-item.active::before {
        background: linear-gradient(90deg, #1e63ea 0%, #7a29d6 100%) !important;
    }
}

/* ───────────── antetul compact ───────────── */
#sidebar .mlsb-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0 0 8px;
    padding: 0 2px 8px;
    border-bottom: 1px solid var(--mlsb-line) !important;
    border-color: var(--mlsb-line) !important;
}
#sidebar .mlsb-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}
#sidebar .mlsb-mark { flex: 0 0 26px; width: 26px; height: auto; margin: 0; }
#sidebar .mlsb-brand-name {
    font-size: 15.5px;
    line-height: 1.1;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#sidebar .mlsb-rail-toggle {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mlsb-line) !important;
    border-color: var(--mlsb-line) !important;
    border-radius: 8px !important;
    background: transparent;
    color: inherit;
    font-size: 15px;
    line-height: 1;
    opacity: .75;
    cursor: pointer;
    transition: background var(--mlsb-speed), opacity var(--mlsb-speed);
}
#sidebar .mlsb-rail-toggle:hover { opacity: 1; background: rgba(100, 116, 139, .12); }
#sidebar .mlsb-rail-toggle:focus-visible,
#sidebar .mlsb-acct-trigger:focus-visible { outline: 2px solid var(--mlsb-accent); outline-offset: 2px; }

/* ───────────── căutarea în meniu ───────────── */
#sidebar .mlsb-find { position: relative; margin: 0 0 8px; }
#sidebar .mlsb-find-ico {
    position: absolute;
    left: 10px;
    top: 9px;
    font-size: 12px;
    opacity: .55;
    pointer-events: none;
}
#sidebar .mlsb-find input.mlsb-find-input {
    display: block;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 6px 28px 6px 30px !important;
    border: 1px solid var(--mlsb-line) !important;
    border-color: var(--mlsb-line) !important;
    border-radius: 9px !important;
    background: var(--mlsb-soft) !important;
    color: var(--mlsb-ink) !important;
    font-size: 13px !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box;
}
#sidebar .mlsb-find input.mlsb-find-input:focus {
    background: #ffffff !important;
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14) !important;
}
#sidebar .mlsb-find-key {
    position: absolute;
    right: 8px;
    top: 8px;
    min-width: 18px;
    padding: 0 4px;
    border: 1px solid var(--mlsb-line) !important;
    border-color: var(--mlsb-line) !important;
    border-radius: 5px;
    background: #ffffff;
    color: var(--mlsb-muted);
    font: 600 11px/16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-align: center;
    pointer-events: none;
}
#sidebar .mlsb-find:focus-within .mlsb-find-key,
#sidebar .mlsb-find.has-query .mlsb-find-key { display: none; }
#sidebar .mlsb-find-empty { display: none; margin: 6px 4px 0; font-size: 12px; color: var(--mlsb-muted); }
#sidebar .mlsb-find.is-empty .mlsb-find-empty { display: block; }

/* În timpul căutării: doar potrivirile; grupurile cu potriviri se deschid (fără să le schimbăm starea `expanded`). */
#sidebar.mlsb-searching .mlsb-miss,
#sidebar.mlsb-searching .smt-zone,
#sidebar.mlsb-searching .erp-nd-find,
#sidebar.mlsb-searching .erp-nd-cap { display: none !important; }
#sidebar.mlsb-searching .nav-group.mlsb-hit .nav-group-items { max-height: none !important; overflow: visible !important; }
#sidebar.mlsb-searching .nav-group.mlsb-hit .nav-group-arrow { visibility: hidden; }
#sidebar.mlsb-searching .erp-nav-section .erp-nav-section-items { max-height: none !important; overflow: visible !important; }
/* Meniul ERP pe domenii (erpNav.js): domeniile închise se deschid pe durata căutării, ca la „Caută în ERP…”. */
#sidebar.mlsb-searching .erp-nd-side .erp-nd-body { grid-template-rows: 1fr !important; }
#sidebar.mlsb-searching .erp-nd-side .erp-nd-inner { visibility: visible !important; }
#sidebar.mlsb-searching .erp-nd-side .erp-nd-chev { visibility: hidden; }

/* ───────────── contul (jos) ───────────── */
#sidebar .mlsb-acct {
    position: relative;
    flex-shrink: 0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--mlsb-line) !important;
    border-color: var(--mlsb-line) !important;
}
#sidebar .mlsb-acct-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 6px 8px;
    border: 0;
    border-radius: 10px !important;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 400 !important;
    text-align: left;
    cursor: pointer;
    transition: background var(--mlsb-speed);
}
#sidebar .mlsb-acct-trigger:hover,
#sidebar .mlsb-acct-trigger[aria-expanded="true"] { background: rgba(100, 116, 139, .12); }
#sidebar .mlsb-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e63ea 0%, #7a29d6 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
}
#sidebar .mlsb-acct-dot {
    position: absolute;
    left: 34px;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px #ffffff;
}
#sidebar .mlsb-acct-dot[hidden] { display: none; }
#sidebar .mlsb-acct-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
#sidebar .mlsb-acct-name,
#sidebar .mlsb-acct-meta { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sidebar .mlsb-acct-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
#sidebar .mlsb-acct-meta { font-size: 11.5px; line-height: 1.3; opacity: .72; }
#sidebar .mlsb-acct-company:not(.hidden)::before { content: " · "; }
#sidebar .mlsb-acct-chev {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-right: 2px solid currentColor !important;
    border-top: 2px solid currentColor !important;
    border-color: currentColor !important;
    border-bottom: 0;
    border-left: 0;
    opacity: .45;
    transform: rotate(-45deg);
}

/* Meniul contului: poziție fixă (o calculează sidebarShell.js), ca să nu fie tăiat de bară / de lista derulabilă. */
.mlsb-acct-menu {
    display: none;
    position: fixed;
    z-index: 2000;
    min-width: 220px;
    max-width: 300px;
    padding: 6px;
    border: 1px solid var(--mlsb-line) !important;
    border-color: var(--mlsb-line) !important;
    border-radius: 12px;
    background: #ffffff;
    color: var(--mlsb-ink);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08);
}
.mlsb-acct-menu.is-open { display: block; }
#sidebar .mlsb-acct-menu .mlsb-acct-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px !important;
    background: transparent;
    color: var(--gray-700, #334155);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500 !important;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}
#sidebar .mlsb-acct-menu .mlsb-acct-item:hover,
#sidebar .mlsb-acct-menu .mlsb-acct-item:focus-visible { background: var(--mlsb-soft); color: var(--mlsb-ink); outline: none; }
#sidebar .mlsb-acct-menu .mlsb-acct-logout:hover,
#sidebar .mlsb-acct-menu .mlsb-acct-logout:focus-visible { background: #fef2f2; color: #b91c1c; }
#sidebar .mlsb-acct-sep { height: 1px; margin: 4px 6px; background: var(--mlsb-line); }

/* ───────────── mod restrâns (doar desktop / tabletă, unde bara e vizibilă) ───────────── */
/* Starea restrânsă aplicată la încărcare (scriptul de lângă #sidebar din index.html): fără animația lățimii. */
#sidebar.mlsb-noanim { transition: none !important; }

@media (min-width: 769px) {
    html body .dashboard #sidebar.mlsb-rail {
        width: 64px !important;
        min-width: 64px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        overflow-x: hidden;
    }
    #sidebar.mlsb-rail .mlsb-head { flex-direction: column; justify-content: center; padding-left: 0; padding-right: 0; }
    #sidebar.mlsb-rail .mlsb-brand { flex: 0 0 auto; justify-content: center; }
    #sidebar.mlsb-rail .mlsb-brand-name,
    #sidebar.mlsb-rail .mlsb-find,
    #sidebar.mlsb-rail .nav-group-items,
    #sidebar.mlsb-rail .nav-group-arrow,
    #sidebar.mlsb-rail .erp-active-tenant-slot,
    #sidebar.mlsb-rail .medical-active-clinic-slot,
    #sidebar.mlsb-rail .smt-head,
    #sidebar.mlsb-rail .smt-row-main,
    #sidebar.mlsb-rail .smt-row-lock,
    #sidebar.mlsb-rail .mlsb-acct-text,
    #sidebar.mlsb-rail .mlsb-acct-chev { display: none !important; }
    #sidebar.mlsb-rail .mlsb-rail-toggle span { display: inline-block; transform: scaleX(-1); }

    /* Grupuri și pagini de pe primul nivel: doar pictograma (emoji-ul de la începutul etichetei, pus de JS în data-mlsb-ico). */
    #sidebar.mlsb-rail .nav-group { margin: 3px 0 !important; }
    #sidebar.mlsb-rail .nav-group-header[data-mlsb-ico],
    #sidebar.mlsb-rail .nav-item[data-mlsb-ico] {
        justify-content: center !important;
        gap: 0 !important;
        min-height: 40px;
        padding: 8px 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-left-width: 0 !important;
        font-size: 0 !important;
        letter-spacing: 0 !important;
        overflow: hidden;
        white-space: nowrap;
    }
    #sidebar.mlsb-rail .nav-group-header[data-mlsb-ico] > *,
    #sidebar.mlsb-rail .nav-item[data-mlsb-ico] > * { display: none !important; }
    #sidebar.mlsb-rail .nav-group-header[data-mlsb-ico]::before,
    #sidebar.mlsb-rail .nav-item[data-mlsb-ico]::before {
        content: attr(data-mlsb-ico);
        font-size: 18px;
        line-height: 1;
        text-transform: none;
    }
    /* Insigna itemului (Suport Clienți, Email Agent, Mesaje pentru medic…) ⇒ mini-insignă în colțul pictogramei
       (numărul îl pune sidebarShell.js în data-mlsb-badge, din insigna reală ascunsă în modul restrâns). */
    #sidebar.mlsb-rail [data-mlsb-ico][data-mlsb-badge] { position: relative; }
    #sidebar.mlsb-rail [data-mlsb-ico][data-mlsb-badge]::after {
        content: attr(data-mlsb-badge);
        position: absolute;
        top: 3px;
        left: calc(50% + 3px);
        min-width: 15px;
        height: 15px;
        padding: 0 4px;
        border-radius: 999px;
        background: #dc2626;
        color: #ffffff;
        box-shadow: 0 0 0 2px #ffffff;
        font-size: 9.5px;
        font-weight: 700;
        line-height: 15px;
        text-align: center;
        box-sizing: border-box;
    }
    #sidebar.mlsb-rail .nav-menu-footer { padding-top: 8px; }
    #sidebar.mlsb-rail #saasModuleTeasers { padding: 6px 2px; margin: 8px 0 4px; }
    #sidebar.mlsb-rail .smt-zone [data-locked-module] { justify-content: center; padding-left: 0; padding-right: 0; }

    #sidebar.mlsb-rail .mlsb-acct-trigger { justify-content: center; padding: 6px 0; }
    #sidebar.mlsb-rail .mlsb-acct-dot { left: calc(50% + 8px); }
}

/* ───────────── acordeonul modulelor (desktop, #sidebar.mlsb-acc — pus de sidebarShell.js) ─────────────
 * Un singur modul deschis odată (toggleNavGroup). Modulele închise = rânduri subțiri (~36 px), fără chenar de card:
 * pictogramă + nume + săgeată ▸ în dreapta; la hover fond pal în culoarea modulului, săgeata se colorează, se mută
 * 2 px și apare „Deschide”. Modulul deschis: antetul în culoarea lui, săgeata ▾, antetul lipit sus (sticky) în zona
 * derulabilă a meniului (selectorul de firmă ERP / clinica rămân în antet, sub titlu). `overflow: clip` (nu hidden)
 * pe grupul deschis: hidden ar face din grup container de derulare și sticky n-ar mai lipi nimic.
 * Fără efect sub 769 px (telefon), în modul restrâns (clasa nu se pune) și cu un singur modul vizibil. */
@media (min-width: 769px) {
    #sidebar.mlsb-acc .nav-menu-body > .nav-group { margin: 2px 0 !important; }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-items { transition: none !important; }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) {
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 8px;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group > .nav-group-header {
        min-height: 36px;
        padding: 7px 10px 7px 11px !important;
        border-radius: 8px;
        text-transform: none !important;
        letter-spacing: 0 !important;
        font-size: 13.5px !important;
        cursor: pointer;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) > .nav-group-header {
        border-left-color: transparent !important;
        background: transparent !important;
        color: var(--gray-700, #334155) !important;
        font-weight: 500 !important;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) > .nav-group-header:hover {
        background: var(--mlsb-grp-tint) !important;
        color: var(--gray-900, #0f172a) !important;
    }
    /* Rândul închis rămâne subțire: selectorul de firmă / clinică se vede doar cu modulul deschis. */
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) .erp-active-tenant-slot,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) .medical-active-clinic-slot { display: none !important; }

    /* Săgeata: glifa ▼ din HTML se ascunde (font-size 0); chevronul e desenat în CSS, „Deschide” apare la hover. */
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-arrow {
        display: inline-flex;
        align-items: center;
        gap: 0;
        flex: 0 0 auto;
        margin-left: 8px;
        font-size: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        color: var(--gray-400, #94a3b8) !important;
        transition: color .14s ease, transform .14s ease;
    }
    /* Titlul pe un singur rând (rândul rămâne subțire); „Deschide” nu ocupă loc până la hover (max-width 0). */
    #sidebar.mlsb-acc .nav-menu-body > .nav-group > .nav-group-header > span:first-child,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-header-row > span:first-child {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-arrow::before {
        content: "Deschide";
        display: block;
        max-width: 0;
        overflow: hidden;
        white-space: nowrap;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0;
        color: var(--mlsb-grp);
        opacity: 0;
        transition: opacity .14s ease, max-width .14s ease;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-arrow::after {
        content: "";
        display: block;
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor !important;
        border-bottom: 2px solid currentColor !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-color: currentColor !important;
        transform: rotate(-45deg);
        transition: transform .14s ease;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) > .nav-group-header:hover .nav-group-arrow,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) [data-mlsb-acc-btn]:focus-visible .nav-group-arrow {
        color: var(--mlsb-grp) !important;
        transform: translateX(2px) !important;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) > .nav-group-header:hover .nav-group-arrow::before,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) [data-mlsb-acc-btn]:focus-visible .nav-group-arrow::before { opacity: .9; max-width: 70px; margin-right: 6px; }

    /* Modulul deschis: antet în culoarea modulului, săgeata ▾, lipit sus cât derulezi prin paginile lui. */
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded { overflow: clip !important; }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded > .nav-group-header {
        position: sticky;
        top: 0;
        z-index: 4;
        border-radius: 8px 8px 0 0;
        color: var(--mlsb-grp) !important;
        font-weight: 700 !important;
        box-shadow: 0 1px 0 var(--mlsb-line);
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded .nav-group-arrow { color: var(--mlsb-grp) !important; }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded .nav-group-arrow::after { transform: translateY(-2px) rotate(45deg); }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded > .nav-group-header:hover .nav-group-arrow::before { content: "Închide"; opacity: .75; max-width: 70px; margin-right: 6px; }

    #sidebar .nav-menu-body > .nav-group [data-mlsb-acc-btn]:focus { outline: none; }
    #sidebar .nav-menu-body > .nav-group [data-mlsb-acc-btn]:focus-visible {
        outline: 2px solid var(--mlsb-grp) !important;
        outline-offset: -2px;
        border-radius: 8px;
    }
}
@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-arrow,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-arrow::before,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-arrow::after { transition: none !important; }
}

/* ═════════════ V1 „Curat” (desktop) — docs/designapp/sidebar-premium.md §3.1 ═════════════
 * Doar prezentare, doar desktop (≥ 769 px), doar în afara modului restrâns «. Nu ascunde / nu afișează nimic din meniu
 * (permisiunile rămân `.hidden` / style.display), nu schimbă etichete, id-uri, data-*.
 * Un singur indicator vizibil: pagina activă. Ierarhie prin indentare + tipografie, nu prin cutii. O singură zonă de
 * derulare (`.nav-menu`): lista ERP nu mai derulează separat ⇒ pagina activă e adusă în cadru de erpNav.js
 * (`revealActiveInMenu`), DUPĂ derularea acordeonului din sidebarShell.js.
 * Regulile sunt cele din design, cu TREI abateri (primele două cerute de docs/designapp/IMPLEMENTARE_V2.md §4):
 *   1. selectorii `#sidebar …` din design sunt scriși `#sidebar:where(:not(.mlsb-rail)) …` — aceeași specificitate
 *      (`:where` = 0), dar nimic din strat nu se aplică în modul restrâns « (acolo bara arată exact ca înainte);
 *   2. regula care ascundea indiciul „Deschide / Închide” de la hover NU e preluată: indiciul face parte din
 *      acordeon (test_sidebar_shell_static.js îl verifică);
 *   3. antetele modulelor primesc `margin: 0`: crm.css are `.nav-group-header { margin: 0 8px }`, regulă care lipsește
 *      din prototip. Cu ea eticheta modulului începea la 18 px (designul: 10 px), iar antetul lipit sus era mai
 *      îngust decât rândurile care derulează pe sub el (fondul paginii active se vedea pe lângă antet). */
@media (min-width: 769px) {
    /* 1 ─ Fără carduri: grupurile (închise ȘI cel deschis) fără chenar, fond, umbră. */
    #sidebar:not(.mlsb-rail) .nav-menu-body > .nav-group,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) {
        border: 0 !important;
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 1px 0 !important;
    }

    /* 2 ─ Antetul modulului: fără bară stângă, fără degradeu; deschis = text închis + greutate, nu culoare. */
    #sidebar:not(.mlsb-rail) .nav-menu-body > .nav-group > .nav-group-header,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group > .nav-group-header {
        border-left: 0 !important;
        min-height: 34px;
        padding: 7px 10px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }
    /* Abaterea 3 (vezi antetul): fără marginile laterale de 8 px din crm.css. */
    #sidebar:not(.mlsb-rail) .nav-menu-body > .nav-group > .nav-group-header { margin: 0; }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) > .nav-group-header {
        color: #475569 !important;
        font-weight: 500 !important;
        filter: grayscale(1);               /* emoji monocrom; textul e deja gri ⇒ neschimbat */
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) > .nav-group-header:hover {
        background: #f1f5f9 !important;
        color: #0f172a !important;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded > .nav-group-header,
    #sidebar:where(:not(.mlsb-rail)) .nav-group.expanded > .nav-group-header,
    #sidebar:where(:not(.mlsb-rail)) .nav-group.erp-module.expanded > .nav-group-header {
        background: #ffffff !important;      /* opac: antetul rămâne lipit sus (sticky) peste listă */
        color: #0f172a !important;
        font-weight: 650 !important;
        border-radius: 0 !important;
        box-shadow: 0 1px 0 #eef1f5 !important;
    }
    /* Săgeata: gri. Indiciul „Deschide / Închide” de la hover RĂMÂNE (vezi abaterea 2 din antet). */
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-arrow,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded .nav-group-arrow { color: #94a3b8 !important; }

    /* 3 ─ Lista modulului: fără linia stângă de 2 px și fără indentarea de 12 px (light-theme.css + redesign-dashboard.css). */
    #sidebar:not(.mlsb-rail) .nav-menu-body > .nav-group > .nav-group-items {
        border-left: 0 !important;
        margin-left: 0 !important;
        background: transparent !important;
    }
    /* Spațiul listei DOAR când e afișată (modul deschis / potriviri la căutare): pe o listă închisă (max-height: 0)
       padding-ul ar lăsa vizibilă o fâșie din primul rând — se vedea fondul paginii active sub un modul închis. */
    #sidebar:not(.mlsb-rail) .nav-menu-body > .nav-group.expanded > .nav-group-items,
    #sidebar:not(.mlsb-rail).mlsb-searching .nav-menu-body > .nav-group.mlsb-hit > .nav-group-items { padding: 2px 0 6px; }
    /* 4 ─ O singură zonă de derulare: lista ERP nu mai derulează separat (derulează tot meniul; antetul ERP rămâne lipit sus). */
    #sidebar:not(.mlsb-rail) .nav-group.erp-module.expanded > .nav-group-items,
    #sidebar:not(.mlsb-rail) .nav-group.erp-module.erp-nd-side.expanded > .nav-group-items {
        max-height: none !important;
        overflow: visible !important;
    }
    #sidebar:where(:not(.mlsb-rail)) .nav-menu { scrollbar-width: thin; scrollbar-color: #d5dbe3 transparent; scrollbar-gutter: stable; }

    /* 5 ─ Rândurile de pagină: aceeași înălțime (32 px), aceeași rază, fără borduri stângi (3 px gri din `*{border-color}`). */
    #sidebar:where(:not(.mlsb-rail)) .nav-menu .nav-item,
    #sidebar:where(:not(.mlsb-rail)) .nav-group-items .nav-item,
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-footer .nav-item,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-inner .nav-item {
        min-height: 32px;
        margin: 1px 0 !important;
        padding: 6px 10px !important;
        gap: 8px !important;
        border-left: 0 !important;
        border-radius: 7px !important;
        font-size: 13px !important;
        font-weight: 450;
        line-height: 1.3;
        box-shadow: none !important;
        transition: background-color .12s ease, color .12s ease !important;
    }
    #sidebar:where(:not(.mlsb-rail)) #navErpHome,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side #navErpHome { margin: 4px 0 2px !important; padding: 6px 10px !important; font-weight: 500 !important; }
    /* Rândurile cu emoji în text (Acasă, Task-uri, Agent Suport): monocrome cât nu sunt active. */
    #sidebar:where(:not(.mlsb-rail)) #navErpHome:not(.active),
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-footer .nav-item:not(.active) { filter: grayscale(1); }
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-item,
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-group-items .nav-item { color: #475569 !important; }
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-item:hover:not(.active),
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain .nav-item:hover:not(.active) {
        background: #f1f5f9 !important;
        color: #0f172a !important;
    }

    /* 6 ─ SINGURUL indicator: pagina activă = fond albastru foarte pal + bară de 2 px + text albastru. */
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-item.active,
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-group-items .nav-item.active,
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain .nav-item.active {
        background: #eef4ff !important;
        color: #1d4ed8 !important;
        box-shadow: inset 2px 0 0 #2563eb !important;
        font-weight: 600 !important;
        filter: none;
    }

    /* 7 ─ Domeniile ERP: fără card, fără bară, fără voal; pătrățelul colorat devine un punct de 7 px (culoarea domeniului). */
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-list { padding: 0 0 6px; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.is-open {
        margin: 1px 0;
        background: transparent !important;
        box-shadow: none !important;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-head {
        min-height: 32px;
        padding: 6px 10px;
        gap: 8px;
        border-radius: 7px;
        color: #475569;
        font-size: 13px;
        font-weight: 500;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-head:hover { background: #f1f5f9; color: #0f172a; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.is-open > .erp-nd-head,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.has-active:not(.is-open) > .erp-nd-head { color: #0f172a; font-weight: 600; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-dico,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.is-open > .erp-nd-head .erp-nd-dico,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.has-active:not(.is-open) > .erp-nd-head .erp-nd-dico {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        font-size: 0 !important;             /* emoji-ul domeniului ascuns vizual (rămâne în DOM, aria-hidden) */
        background: none !important;
        box-shadow: none !important;
        border-radius: 0;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-dico::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--erp-dc);
        opacity: .45;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.is-open > .erp-nd-head .erp-nd-dico::before,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.has-active > .erp-nd-head .erp-nd-dico::before { opacity: 1; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-chev { border-color: #a3acb9 !important; width: 6px; height: 6px; }

    /* 8 ─ Paginile din domeniu: indentate sub eticheta domeniului; subtitlurile mici, gri, MAJUSCULE, aliniate cu textul. */
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-inner .nav-item { padding-left: 24px !important; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-cap {
        padding: 10px 10px 3px 50px;
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: .07em;
        color: #64748b;                       /* 4,7:1 pe alb (azi #94a3b8 / culoarea domeniului) */
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-ico {
        flex: 0 0 18px;
        width: 18px;
        font-size: 13px;
        filter: grayscale(1);
        opacity: .7;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .nav-item.active .erp-nd-ico { filter: none; opacity: 1; }

    /* 9 ─ Firma activă: rând compact sub „ERP”, fără casetă proprie. */
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .erp-active-tenant-slot { margin-top: 0; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-chip {
        margin-left: -4px;
        padding: 3px 6px 3px 4px !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        border-radius: 6px;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-btn:hover .clinic-selector-chip { background: #f1f5f9 !important; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-icon { filter: grayscale(1); opacity: .65; font-size: 12px; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-name { color: #475569 !important; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-chevron { color: #94a3b8 !important; }

    /* 9b ─ Spanurile etichetelor moștenesc culoarea rândului (light-theme.css le pune gray-700 cu :where(body *)). */
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-lbl, #sidebar:where(:not(.mlsb-rail)) .erp-nd-dlbl, #sidebar:where(:not(.mlsb-rail)) .mlsb-acct-name { color: inherit; }

    /* 10 ─ Subsolul (Task-uri, Agent Suport): separat doar de o linie fină. */
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-footer { padding-top: 8px; border-top: 1px solid #eef1f5 !important; }
}

/* ═════════════ V2 „Premium” (desktop) = V1 + acest strat — docs/designapp/sidebar-premium.md §3.2 ═════════════
 * Fundal gri-albăstrui foarte pal; pagina activă = pastilă albă cu umbră fină; iconițe line monocrome (mask SVG);
 * tipografie Inter DOAR în bară; grilă de 4 px (rânduri 32, spații 4/8/12/16); firma activă = bloc sub „ERP”.
 * Iconițele: DOAR unde emoji-ul e într-un element propriu (domeniile ERP: .erp-nd-dico; firma: .clinic-selector-icon;
 * căutarea: .mlsb-find-ico) sau unde eticheta e statică în index.html și începe sigur cu un emoji (antetele modulelor,
 * „Acasă”, Task-uri, Agent Suport) — acolo emoji-ul se ascunde cu ::first-letter. REGULĂ (vezi CLAUDE.md): etichetele
 * acelea încep OBLIGATORIU cu un emoji, altfel s-ar ascunde prima literă. Paginile din domeniile ERP rămân DOAR TEXT.
 * Totul în @media (min-width: 769px) (inclusiv @font-face și variabilele iconițelor) ⇒ telefonul nu e atins și nu
 * descarcă fontul. Regulile sunt cele din design, cu aceste abateri:
 *   1. ca la V1: `#sidebar …` → `#sidebar:where(:not(.mlsb-rail)) …` (nimic în modul restrâns «);
 *   2. fontul e înregistrat sub numele propriu „MLSB Inter” (fișiere locale, public/fonts/sidebar/, licență OFL).
 *      light-theme.css cere 'Inter' pe body: încărcat sub numele „Inter” ar schimba fontul ÎNTREGII aplicații;
 *   3. „Acasă” din ERP: fără ::first-letter când e decorată de erpNav.js (altfel se vedea „casă”);
 *   4. „🏠 Acasă” generală (#navHome, lipsește din prototip) primește același tratament ca rândurile din subsol;
 *   5. numele firmei active pe cel mult două rânduri (pe un rând era tăiat după ~9 litere);
 *   6. `line-height: 0` pe ::first-letter la rândurile „Acasă” / subsol: emoji-ul ascuns (font-size 0) ținea totuși
 *      rândul la 37 px în loc de 32 și împingea textul cu 2,5 px în sus. */
@media (min-width: 769px) {
    /* Inter (variabil, 100–900) doar pentru bară; latin-ext = ă ș ț. */
    @font-face {
        font-family: 'MLSB Inter';
        font-style: normal;
        font-weight: 100 900;
        font-display: swap;
        src: url(/fonts/sidebar/inter-latin-wght-normal.woff2) format('woff2');
        unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
    }
    @font-face {
        font-family: 'MLSB Inter';
        font-style: normal;
        font-weight: 100 900;
        font-display: swap;
        src: url(/fonts/sidebar/inter-latin-ext-wght-normal.woff2) format('woff2');
        unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
    }

    /* Iconițe line (mask SVG): doar variabile + maparea pe clasele / atributele existente. Nu desenează nimic singure:
       regulile de mai jos folosesc var(--gico) pe module, var(--dico) pe domeniile ERP, var(--ico) pe rânduri. */
    :root{
      --i-search:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
      --i-home:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20h14V9.5'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
      --i-phone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
      --i-chat:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.3 7.4L3 21l2-5.4A8.4 8.4 0 1 1 21 11.5z'/%3E%3C/svg%3E");
      --i-mail:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
      --i-video:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='m15.5 10.5 6-3.5v10l-6-3.5'/%3E%3C/svg%3E");
      --i-crm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m7 14 4-4 3 3 6-6'/%3E%3C/svg%3E");
      --i-grid:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
      --i-clinic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='3'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
      --i-wrench:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.6 2.6-2.4-.6-.6-2.4z'/%3E%3C/svg%3E");
      --i-utensils:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3v7a3 3 0 0 0 3 3v8'/%3E%3Cpath d='M11 3v7a3 3 0 0 1-3 3'/%3E%3Cpath d='M8 3v6'/%3E%3Cpath d='M18 21V3c-2 1-3 3.5-3 7h3'/%3E%3C/svg%3E");
      --i-tasks:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1'/%3E%3Cpath d='m9 13 2 2 4-4'/%3E%3C/svg%3E");
      --i-bot:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='8' width='16' height='12' rx='3'/%3E%3Cpath d='M12 8V5'/%3E%3Ccircle cx='12' cy='4' r='1'/%3E%3Cpath d='M9 14v.5M15 14v.5'/%3E%3C/svg%3E");
      --i-briefcase:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8.5 7V5a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M3 12.5h18'/%3E%3C/svg%3E");
      --i-wallet:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2v-1.5'/%3E%3Cpath d='M14 10h7v5h-7a2.5 2.5 0 0 1 0-5z'/%3E%3C/svg%3E");
      --i-inbox:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v9'/%3E%3Cpath d='m8.5 8.5 3.5 3.5 3.5-3.5'/%3E%3Cpath d='M3 14h5l1.5 2.5h5L16 14h5v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
      --i-box:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='m3 8 9 5 9-5'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E");
      --i-book:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 5h6.5a3 3 0 0 1 3 3v12a2.5 2.5 0 0 0-2.5-2.5h-7z'/%3E%3Cpath d='M21.5 5H15a3 3 0 0 0-3 3v12a2.5 2.5 0 0 1 2.5-2.5h7z'/%3E%3C/svg%3E");
      --i-users:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8'/%3E%3Cpath d='M18.5 14.2A6.5 6.5 0 0 1 21.5 20'/%3E%3C/svg%3E");
      --i-sliders:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
      --i-building:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='3' width='15' height='18' rx='1.5'/%3E%3Cpath d='M9 7.5h.01M15 7.5h.01M9 11.5h.01M15 11.5h.01M9 15.5h.01M15 15.5h.01'/%3E%3Cpath d='M10.5 21v-3h3v3'/%3E%3C/svg%3E");
      --i-updown:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 15 4 4 4-4'/%3E%3Cpath d='m8 9 4-4 4 4'/%3E%3C/svg%3E");
      --i-chevright:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E");
      --i-dot:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3C/svg%3E");
    }
    #sidebar:where(:not(.mlsb-rail)) .nav-group.call-manager-group{--gico:var(--i-phone)}
    #sidebar:where(:not(.mlsb-rail)) .nav-group.whatsapp-module{--gico:var(--i-chat)}
    #sidebar:where(:not(.mlsb-rail)) .nav-group.email-agent-module{--gico:var(--i-mail)}
    #sidebar:where(:not(.mlsb-rail)) .nav-group.webinar-module{--gico:var(--i-video)}
    #sidebar:where(:not(.mlsb-rail)) .nav-group.crm-module{--gico:var(--i-crm)}
    #sidebar:where(:not(.mlsb-rail)) .nav-group.erp-module{--gico:var(--i-grid)}
    #sidebar:where(:not(.mlsb-rail)) .nav-group.medical-module{--gico:var(--i-clinic)}
    #sidebar:where(:not(.mlsb-rail)) .nav-group.admin-only{--gico:var(--i-wrench)}
    #sidebar:where(:not(.mlsb-rail)) .nav-group.restaurant-module{--gico:var(--i-utensils)}
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-domain[data-erp-domain="vanzari"]{--dico:var(--i-briefcase)}
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-domain[data-erp-domain="bani"]{--dico:var(--i-wallet)}
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-domain[data-erp-domain="achizitii"]{--dico:var(--i-inbox)}
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-domain[data-erp-domain="stoc"]{--dico:var(--i-box)}
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-domain[data-erp-domain="contabilitate"]{--dico:var(--i-book)}
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-domain[data-erp-domain="echipa"]{--dico:var(--i-users)}
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-domain[data-erp-domain="setari"]{--dico:var(--i-sliders)}
    #sidebar:where(:not(.mlsb-rail)) .nav-item[data-page="erpHome"]{--ico:var(--i-home)}
    #sidebar:where(:not(.mlsb-rail)) .nav-item[data-page="home"]{--ico:var(--i-home)}
    #sidebar:where(:not(.mlsb-rail)) .nav-item[data-page="tasks"]{--ico:var(--i-tasks)}
    #sidebar:where(:not(.mlsb-rail)) .nav-item[data-page="supportAgent"]{--ico:var(--i-bot)}
}
@media (min-width: 769px) {
    /* 1 ─ Suprafața: gri-albăstrui pal, fără umbră, margine fină; Inter doar în bară. */
    body .dashboard #sidebar:not(.mlsb-rail) {
        background: #f7f8fa !important;
        border-right: 1px solid #e7eaf0 !important;
        box-shadow: none !important;
        padding: 20px 12px 12px !important;
    }
    #sidebar:where(:not(.mlsb-rail)) {
        font-family: 'MLSB Inter', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
        font-feature-settings: 'cv11', 'ss01';
        -webkit-font-smoothing: antialiased;
        letter-spacing: -.003em;
    }

    /* 2 ─ Antetul: fără linie dedesubt, butonul « discret. */
    #sidebar:where(:not(.mlsb-rail)) .mlsb-head { border-bottom: 0 !important; margin-bottom: 12px; padding: 0 4px 0 6px; min-height: 32px; }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-brand-name { font-size: 15px; }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-rail-toggle { border-color: transparent !important; width: 28px; height: 28px; flex-basis: 28px; color: #8a94a6; opacity: 1; }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-rail-toggle:hover { background: #eceff3; color: #334155; }

    /* 3 ─ Căutarea: câmp alb, iconiță line, tasta „/” ca pastilă. */
    #sidebar:where(:not(.mlsb-rail)) .mlsb-find { margin: 0 0 14px; }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-find input.mlsb-find-input {
        height: 34px !important; min-height: 34px !important;
        padding: 6px 28px 6px 34px !important;
        background: #ffffff !important;
        border-color: #e3e7ee !important;
        border-radius: 9px !important;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
        font-size: 13px !important;
        color: #0f172a !important;
    }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-find input.mlsb-find-input::placeholder { color: #8a94a6; }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-find input.mlsb-find-input:focus { border-color: #a5c1f7 !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important; }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-find-ico {
        left: 11px; top: 9px; width: 16px; height: 16px;
        font-size: 0; opacity: 1;
        background: #8a94a6;
        -webkit-mask: var(--i-search) center / 16px 16px no-repeat; mask: var(--i-search) center / 16px 16px no-repeat;
    }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-find-key { top: 8px; right: 8px; background: #f3f5f8; border-color: #e3e7ee !important; color: #8a94a6; border-radius: 6px; }

    /* 4 ─ Antetele modulelor: iconiță line în locul emoji-ului (::first-letter îl ascunde; eticheta rămâne în DOM). */
    #sidebar.mlsb-acc .nav-menu-body > .nav-group > .nav-group-header { padding: 7px 10px !important; min-height: 32px; }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group > .nav-group-header > span:first-child,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-header-row > span:first-child {
        position: relative;
        padding-left: 22px;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group > .nav-group-header > span:first-child::first-letter,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-header-row > span:first-child::first-letter { font-size: 0; }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group > .nav-group-header > span:first-child::before,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-header-row > span:first-child::before {
        content: "";
        position: absolute; left: 0; top: 50%;
        width: 16px; height: 16px; margin-top: -8px;
        background: #8a94a6;
        -webkit-mask: var(--gico, var(--i-dot)) center / 16px 16px no-repeat; mask: var(--gico, var(--i-dot)) center / 16px 16px no-repeat;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) > .nav-group-header {
        color: #4b5563 !important; font-weight: 500 !important; filter: none;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) > .nav-group-header:hover { background: rgba(15, 23, 42, .045) !important; color: #0f172a !important; }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) > .nav-group-header:hover > span:first-child::before { background: #475569; }
    /* Modulul deschis: titlu lipit sus pe fundalul barei, iconița în culoarea brandului. */
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded > .nav-group-header,
    #sidebar:where(:not(.mlsb-rail)) .nav-group.expanded > .nav-group-header,
    #sidebar:where(:not(.mlsb-rail)) .nav-group.erp-module.expanded > .nav-group-header {
        background: #f7f8fa !important;
        color: #0f172a !important;
        font-weight: 600 !important;
        font-size: 13.5px !important;
        box-shadow: none !important;
        padding-bottom: 6px !important;
    }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded > .nav-group-header > span:first-child::before,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded .nav-group-header-row > span:first-child::before { background: #2563eb; }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-arrow,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded .nav-group-arrow { color: #a3acb9 !important; }
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-arrow::after { width: 6px; height: 6px; border-width: 1.6px !important; }

    /* 5 ─ Firma activă: bloc elegant — monogramă de brand + „FIRMĂ ACTIVĂ” + numele + ⇅. */
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-chip {
        margin: 6px 0 2px;
        padding: 7px 8px !important;
        gap: 9px;
        background: #ffffff !important;
        border: 1px solid #e3e7ee !important;
        border-color: #e3e7ee !important;
        border-radius: 10px;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .05) !important;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-btn:hover .clinic-selector-chip { background: #ffffff !important; border-color: #c9d3e3 !important; box-shadow: 0 2px 6px rgba(16, 24, 40, .08) !important; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-icon {
        flex: 0 0 28px; width: 28px; height: 28px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 8px;
        background: linear-gradient(135deg, #1e63ea 0%, #7a29d6 100%);
        font-size: 0; filter: none; opacity: 1;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-icon::before {
        content: ""; width: 15px; height: 15px; background: #ffffff;
        -webkit-mask: var(--i-building) center / 15px 15px no-repeat; mask: var(--i-building) center / 15px 15px no-repeat;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-text { flex-direction: column; align-items: flex-start; gap: 1px; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-text::before {
        content: "Firmă activă";
        font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
        color: #6b7280;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-name { width: 100%; font-size: 12.5px; font-weight: 600; color: #0f172a !important; line-height: 1.3; }
    /* Abaterea 5: numele firmei pe cel mult DOUĂ rânduri (în prototip e „EQUITANA”; pe un singur rând încap ~9 litere la 220 px). */
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        flex: 0 1 auto;
        white-space: normal;
        overflow: hidden;
        overflow-wrap: anywhere;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nav-group-header .clinic-selector-chevron {
        flex: 0 0 14px; width: 14px; height: 14px; font-size: 0; opacity: 1;
        background: #9aa3b2;
        -webkit-mask: var(--i-updown) center / 14px 14px no-repeat; mask: var(--i-updown) center / 14px 14px no-repeat;
    }

    /* 6 ─ Rândurile: Inter 13 / 500, gri-ardezie; hover = voal 4,5 %; tranziții 120 ms. */
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-item,
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-group-items .nav-item { color: #4b5563 !important; }
    #sidebar:where(:not(.mlsb-rail)) .nav-menu .nav-item,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-inner .nav-item { font-weight: 500; border-radius: 8px !important; }
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-item:hover:not(.active),
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain .nav-item:hover:not(.active) {
        background: rgba(15, 23, 42, .045) !important;
        color: #0f172a !important;
    }
    /* „Acasă” ERP, „Acasă” generală, Task-uri, Agent Suport: iconiță line. Unde emoji-ul e în textul etichetei
       (statică în index.html, începe cu emoji) îl ascunde ::first-letter. „Acasă” ERP e decorată de erpNav.js
       (emoji-ul în .erp-nd-ico, ascuns de regula 9) ⇒ acolo ::first-letter ar ascunde litera „A” (abaterea 3). */
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side #navErpHome,
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-body > #navHome,
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-footer .nav-item {
        display: block;
        position: relative;
        padding: 7px 10px 7px 32px !important;   /* + spațiul rămas după emoji ≈ 36 px, aliniat cu domeniile */
        line-height: 18px;
        filter: none;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side #navErpHome:not([data-erp-nd-deco])::first-letter,
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-body > #navHome::first-letter,
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-footer .nav-item::first-letter { font-size: 0; line-height: 0; }   /* line-height: abaterea 6 */
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side #navErpHome[data-erp-nd-deco] { padding-left: 36px !important; }   /* fără emoji + spațiu în text ⇒ aliniat cu domeniile */
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side #navErpHome::before,
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-body > #navHome::before,
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-footer .nav-item::before {
        content: "";
        position: absolute; left: 10px; top: 8px;
        width: 16px; height: 16px;
        background: #8a94a6;
        -webkit-mask: var(--ico, var(--i-dot)) center / 16px 16px no-repeat; mask: var(--ico, var(--i-dot)) center / 16px 16px no-repeat;
    }

    /* 7 ─ Pagina activă: pastilă albă cu umbră fină (fără bară, fără fond colorat). */
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-item.active,
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-group-items .nav-item.active,
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain .nav-item.active {
        background: #ffffff !important;
        color: #0f172a !important;
        font-weight: 600 !important;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10), 0 0 0 1px rgba(16, 24, 40, .04) !important;
    }
    body .dashboard #sidebar:where(:not(.mlsb-rail)) .nav-item.active::before { background: #2563eb; }

    /* 8 ─ Domeniile ERP: iconiță line gri; deschis / cu pagina activă ⇒ iconița în culoarea domeniului (discret). */
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-list { padding: 2px 0 8px; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-head { gap: 10px; color: #4b5563; font-weight: 500; border-radius: 8px; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-head:hover { background: rgba(15, 23, 42, .045); color: #0f172a; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.is-open > .erp-nd-head,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.has-active:not(.is-open) > .erp-nd-head { color: #0f172a; font-weight: 600; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-dico,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.is-open > .erp-nd-head .erp-nd-dico,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.has-active:not(.is-open) > .erp-nd-head .erp-nd-dico { flex-basis: 16px; width: 16px; height: 16px; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-dico::before {
        width: 16px; height: 16px; border-radius: 0; opacity: 1;
        background: #8a94a6;
        -webkit-mask: var(--dico, var(--i-dot)) center / 16px 16px no-repeat; mask: var(--dico, var(--i-dot)) center / 16px 16px no-repeat;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.is-open > .erp-nd-head .erp-nd-dico::before,
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.has-active > .erp-nd-head .erp-nd-dico::before { background: var(--erp-dc); }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-chev { border-color: #b3bbc7 !important; }

    /* 9 ─ Paginile din domeniu: doar text, aliniate cu eticheta domeniului (36 px); subtitluri MAJUSCULE 10 px. */
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-ico { display: none; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-inner .nav-item { padding-left: 36px !important; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-cap {
        padding: 12px 10px 4px 36px;
        font-size: 10px; font-weight: 600; letter-spacing: .08em;
        color: #6b7280;
    }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-inner > .erp-nd-cap:first-child { padding-top: 4px; }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nav-domain.is-open > .erp-nd-body > .erp-nd-inner { padding-bottom: 6px; }

    /* 10 ─ Subsolul și contul. */
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-footer { border-top: 1px solid #e7eaf0 !important; padding-top: 8px; }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-acct { border-top: 1px solid #e7eaf0 !important; margin-top: 8px; padding-top: 10px; }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-acct-trigger { min-height: 44px; padding: 5px 6px; }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-acct-trigger:hover { background: rgba(15, 23, 42, .045); }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-avatar { flex-basis: 32px; width: 32px; height: 32px; font-size: 12px; box-shadow: 0 0 0 2px #ffffff, 0 1px 3px rgba(16, 24, 40, .15); }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-acct-name { color: #0f172a; font-size: 13px; }
    #sidebar:where(:not(.mlsb-rail)) .mlsb-acct-meta { color: #6b7280; opacity: 1; font-size: 11.5px; }
    #sidebar:where(:not(.mlsb-rail)) .nav-menu { scrollbar-color: #d3d9e2 transparent; }
}
@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
    #sidebar:where(:not(.mlsb-rail)) .nav-item, #sidebar:where(:not(.mlsb-rail)) .erp-nd-head, #sidebar:where(:not(.mlsb-rail)) .nav-group-header { transition: none !important; }
}
/* ── V2 · iconițe colorate (cererea proprietarului, 2026-11-26): iconițele line rămân, dar fiecare în culoarea
 *    modulului (--mlsb-grp, aceeași paletă ca acordeonul) sau a domeniului ERP (--erp-dc, erp-nav.css) — și pe rândurile
 *    închise, nu doar pe cel deschis. Hover / deschis = aceeași culoare, textul dă starea. Doar desktop, nu în modul «. */
@media (min-width: 769px) {
    #sidebar.mlsb-acc .nav-menu-body > .nav-group > .nav-group-header > span:first-child::before,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group .nav-group-header-row > span:first-child::before,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group:not(.expanded) > .nav-group-header:hover > span:first-child::before,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded > .nav-group-header > span:first-child::before,
    #sidebar.mlsb-acc .nav-menu-body > .nav-group.expanded .nav-group-header-row > span:first-child::before { background: var(--mlsb-grp, #2563eb); }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side .erp-nd-dico::before { background: var(--erp-dc, #64748b); }
    #sidebar:where(:not(.mlsb-rail)) .erp-nd-side #navErpHome::before,
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-body > #navHome::before { background: #1e63ea; }
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-footer .nav-item[data-page="tasks"]::before { background: #d97706; }
    #sidebar:where(:not(.mlsb-rail)) .nav-menu-footer .nav-item[data-page="supportAgent"]::before { background: #7c3aed; }
}
