/************************************************************************************************
                                   URGO - BARRE DE NAVIGATION
*************************************************************************************************/

:root {
    --primary-color : #005EA9;
    --secondary-color : #BCD3FF;
    --white-color : white;
}


/************************************************************************************************
                                   STRUCTURE - BARRE DE NAVIGATION
*************************************************************************************************/

nav.stim-menu.navbar {
    border-bottom: 1px solid #ede8ed;
    min-height: 52px;
    padding: 0 16px;
}

.stim-menu.navbar .navbar-brand,
.stim-menu.navbar-default .navbar-brand {
    background-color: transparent;
    padding: 0;
    height: auto;
    display: flex;
    align-items: center;
}

.stim-menu .navbar-brand-icon {
    max-height: 24px;
    max-width: 130px;
    width: auto;
    height: auto;
    position: static;
    top: auto;
    margin: 0;
    display: block;
}

.stim-nav-left,
.stim-nav-pill,
.stim-nav-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0;
    margin: 0 0 0 8px;
    list-style: none;
}

.stim-nav-pill {
    background-color: var(--primary-color);
    border-radius: 8px;
    gap: 0;
    padding: 0 4px;
    margin-left: 0 !important;
    height: 34px;
}

.stim-menu .stim-nav-left > li,
.stim-menu .stim-nav-pill > li,
.stim-menu .stim-nav-right > li {
    display: flex;
    align-items: center;
    padding: 0;
    float: none;
}

nav.stim-menu.navbar-default .stim-nav-left  > li > a,
nav.stim-menu.navbar-default .stim-nav-pill  > li > a,
nav.stim-menu.navbar-default .stim-nav-right > li > a {
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    box-shadow: none;
    outline: none;
    color: white;
}

nav.stim-menu.navbar-default .stim-nav-left  > li,
nav.stim-menu.navbar-default .stim-nav-pill  > li,
nav.stim-menu.navbar-default .stim-nav-right > li {
    border: none;
    outline: none;
    box-shadow: none;
}

nav.stim-menu.navbar-default .stim-nav-left  > li > a::before,
nav.stim-menu.navbar-default .stim-nav-pill  > li > a::before,
nav.stim-menu.navbar-default .stim-nav-right > li > a::before,
nav.stim-menu.navbar-default .stim-nav-left  > li::before,
nav.stim-menu.navbar-default .stim-nav-left  > li::after,
nav.stim-menu.navbar-default .stim-nav-pill  > li::before,
nav.stim-menu.navbar-default .stim-nav-right > li::before,
nav.stim-menu.navbar-default .stim-nav-right > li::after {
    display: none;
    content: none;
    width: 0;
    height: 0;
    background: none;
    border: none;
}

nav.stim-menu.navbar-default .stim-nav-pill  > li:not(.dropdown) > a::after,
nav.stim-menu.navbar-default .stim-nav-left  > li > a::after,
nav.stim-menu.navbar-default .stim-nav-right > li:not(.dropdown) > a::after {
    display: none;
    content: none;
    border: none;
}

/************************************************************************************************
        BARRE DE RECHERCHE AFFICHABLE - SPECIAL CSS RECHERCHE - BARRE DE NAVIGATION
*************************************************************************************************/

.bo-search-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: background .15s;
}

.bo-search-item:hover {
    background-color: #EDF3FF;
}


.bo-search-item-code {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 12px;
    min-width: 70px;
    margin-right: 10px;
}

.bo-search-item-info {
    flex: 1;
}

.bo-search-item-nom {
    font-size: 13px;
    font-weight: 600;
}

.bo-search-item-ville {
    font-size: 11px;
    color: #999;
}


/************************************************************************************************
                       BARRE DE RECHERCHE AFFICHABLE - BARRE DE NAVIGATION
*************************************************************************************************/

.bo-search-global {
    display: flex;
}

.bo-search-input {
    color: #374151 !important;
    height: 34px !important;
}

.bo-search-input {
    width: 0;
    max-width: 200px;
    padding: 0;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 13px;
    outline: none;
    transition: width .25s ease, padding .25s ease;
    overflow: hidden;
}

.bo-search-input.open {
    width: 180px;
    padding: 2px 4px;
    border: 6px solid var(--primary-color) !important;
    left: -4px;
    position: relative;
    border-radius: 0 10px 10px 0 ;
}

.bo-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 300px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.bo-search-advanced {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 12px;
    background: var(--secondary-color);
    text-decoration: none;
    transition: background .15s;
}


nav.stim-menu.navbar-default a.stim-nav-icon-btn,
nav.stim-menu.navbar-default a.stim-pill-link {
    border: none;
    outline: none;
    box-shadow: none;
}

nav.stim-menu.navbar-default .stim-nav-pill > li {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.stim-menu a.stim-nav-icon-btn {
    background-color: var(--primary-color);
    color: #fff !important;
    height: 34px;
    min-width: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.14s ease;
    gap: 4px;
    white-space: nowrap;
    line-height: 1;
}

.stim-menu a.stim-nav-icon-btn.stim-nav-icon-btn--danger:hover,
.stim-menu a.stim-nav-icon-btn.stim-nav-icon-btn--danger:focus {
    background-color: #dc2626 !important;
}

.stim-menu .stim-nav-right a.stim-nav-icon-btn.dropdown-toggle::after {
    content: '▾';
    display: inline-block;
    border: none;
    font-size: 10px;
    margin: 0;
    opacity: 0.8;
    vertical-align: middle;
    width: auto;
    height: auto;
    line-height: 1;
}

.stim-nav-pill > li:first-child > a.stim-pill-link {
    border-radius: 6px 0 0 6px;
}

.stim-nav-pill > li:last-child  > a.stim-pill-link {
    border-radius: 0 6px 6px 0;
}

.stim-menu a.stim-pill-link {
    color: #fff ;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-radius: 0;
    border: none;
    background-color: transparent;
    transition: background-color 0.14s ease;
    line-height: 1;
    text-decoration: none;
}

.stim-menu a.stim-pill-link:hover,
.stim-menu a.stim-pill-link:focus,
.stim-menu a.stim-pill-link[aria-expanded="true"],
.stim-menu a.stim-pill-link.show,
.stim-menu .stim-nav-pill > .show > a.stim-pill-link {
    background-color: rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none;
}

.stim-menu a.stim-pill-link.dropdown-toggle::after {
    content: '▾';
    display: inline-block;
    border: none;
    width: auto;
    height: auto;
    font-size: 10px;
    line-height: 1;
    vertical-align: middle;
    margin-left: 2px;
    opacity: 0.75;
    color: #fff;
}

.stim-menu a.stim-pill-link:hover::after,
.stim-menu a.stim-pill-link[aria-expanded="true"]::after,
.stim-menu a.stim-pill-link.show::after {
    opacity: 1;
}

.stim-pill-split {
    display: inline-flex;
    align-items: stretch;
}

.stim-pill-split a.stim-pill-split-label {
    padding-right: 4px;
    border-radius: 0;
}

.stim-pill-split-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    height: 34px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    font-size: 10px;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.14s ease;
    line-height: 1;
}

.stim-pill-split-caret::after {
    content: '▾';
    display: inline-block;
    border: none;
    width: auto;
    height: auto;
    font-size: 10px;
    vertical-align: middle;
}

/************************************************************************************************
                                   DROPDOWN - BARRE DE NAVIGATION
*************************************************************************************************/

nav.stim-menu .dropdown-menu {
    background-color: var(--primary-color);
    color: #fff;
}

.stim-menu .navbar-nav > li > .dropdown-menu {
    background-color: var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.10);
    padding: 4px 0;
    margin-top: 6px;
    min-width: 220px;
}

.stim-menu .dropdown-menu > li > a,
.stim-menu .dropdown-menu > li > .dropdown-item {
    color: #fff;
    text-transform: uppercase;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 8px 16px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.1s;
}

.stim-menu .dropdown-menu > li > a:hover,
.stim-menu .dropdown-menu > li > a:focus,
.stim-menu .dropdown-menu > li > .dropdown-item:hover,
.stim-menu .dropdown-menu > li > .dropdown-item:focus {
    background-color: rgba(255,255,255,0.18);
    color: #fff;
}

.stim-menu .dropdown-menu > li.disable > p {
    color: #fff;
    padding: 7px 16px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: default;
    margin: 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stim-menu .dropdown-menu > li.disable > p:hover {
    background: none;
}

.stim-menu .dropdown-menu .dropdown-divider {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 4px 0;
}

/* --- Sous-menus --- */

.stim-menu .dropdown-submenu > .dropdown-menu {
    background-color: var(--primary-color);
    border-radius: 8px;
    box-shadow: 4px 4px 20px rgba(0,0,0,.18);
}

.stim-menu .dropdown-menu > li.dropdown-submenu:hover > a {
    background-color: rgba(255,255,255,0.18);
    color: #fff;
}

.stim-admin-menu {
    min-width: 220px;
    background-color: var(--primary-color);
}

/************************************************************************************************
                                   HOVER - BARRE DE NAVIGATION
*************************************************************************************************/

.stim-pill-link:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
    border-top: 5px solid var(--primary-color) !important;
    border-bottom: 5px solid var(--primary-color) !important;
    border-radius: 10px !important;
}

.stim-pill-link:focus {
    background-color: white !important;
    color: var(--primary-color) !important;
    border-top: 5px solid var(--primary-color) !important;
    border-bottom: 5px solid var(--primary-color) !important;
    border-radius: 10px !important;
}

.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    position: absolute;
    top: 28px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
    position: absolute;
    top: 0;
    left: 100%;
}

.stim-nav-icon-btn:hover {
    background-color: #004F8F !important;
}

.stim-nav-right > li > a:focus {
    background-color: var(--primary-color) !important;
}

.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption), .visually-hidden:not(caption) {
    position: absolute !important;
}

.visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within) {
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.stim-menu.navbar {
    min-height: 48px;
    border-radius: 0;
    border: none;
    color: #ffffff;
    background-color: white;
    text-transform: uppercase;
    font-style: unset;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    margin-bottom: 28px;
}

.stim-menu.navbar .navbar-brand, .stim-menu.navbar-default .navbar-brand {
    background-color: transparent !important;
    padding: 0 0 0 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
}

.stim-menu.navbar-default .container-fluid {
    padding-right: 0 !important;
}

/************************************************************************************************
                                   PASTILLE OPTION - BARRE DE NAVIGATION
*************************************************************************************************/

.stim-menu .dropdown-menu .optionable-li,
nav.stim-menu .dropdown-menu .optionable-li {
    background: #FCB31E ;
    color: #fff ;
    border-radius: 20px ;
    padding: 2px 8px ;
    font-size: 9px ;
    font-weight: 700 ;
    letter-spacing: 0.06em ;
    text-transform: uppercase ;
    line-height: 14px ;
    display: inline-block ;
    box-shadow: none ;
    flex-shrink: 0 ;
}

/************************************************************************************************
                                   RESEAU - BARRE DE NAVIGATION
*************************************************************************************************/

.reseau-title {
    text-align: left;
    font: normal normal normal 14px/24px Tahoma;
    letter-spacing: 0;
    color: #5E96FF;
    text-transform: uppercase;
    opacity: 1;
}

.stim-select-wrapper-reseau {
    display: flex;
    align-items: center;
}

.reseau-title {
    text-align: left;
    font: normal normal normal 14px/24px Tahoma;
    letter-spacing: 0;
    color: #5E96FF;
    text-transform: uppercase;
    opacity: 1;
    padding-right: 5px;
}

.stim-select-wrapper-reseau i {
    color: #fff;
    background-color: #5E96FF;
    padding: 8px;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
}

#select2-reseau-container {
    width: 50px;
    height: 31px;
    position: relative;
    background-color: #5E96FF;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 1px 0 1px;
    font-weight: 500;
    cursor: pointer;
    background-image: none;
    top: -3px;
}

.stim-select-wrapper-reseau .select2-selection__arrow {
    height: 24px !important;
}

.stim-select-wrapper-reseau .select2-selection__arrow b {
    border-color: white transparent transparent transparent !important;
}

/************************************************************************************************
                                   RESPONSIVE - BARRE DE NAVIGATION
*************************************************************************************************/

.stim-nav-pill-responsive {
    display: none !important;
}

@media (min-width: 992px) {
    .stim-menu .collapse.navbar-collapse {
        display: flex !important;
        flex-grow: 1;
        align-items: center;
    }

    .stim-menu.navbar > div {
        display: flex;
        align-items: center;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {

}

/* Tablette */
@media (min-width: 769px) and (max-width: 1400px) {

    .stim-nav-pill {
        display: none !important;
    }

    .stim-nav-right {
        margin-left: 0 !important;
    }

    .stim-nav-pill-responsive {
        display: block !important;
    }

}

/************************************************************************************************
                                   NOTIFICATIONS (cloche processus / intmail)
*************************************************************************************************/

.stim-notif-wrap { position: relative !important; }

#stimNotifDropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 340px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 94, 169, .14), 0 2px 8px rgba(0, 0, 0, .08);
    z-index: 9999;
    overflow: hidden;
}

.stim-notif-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #e3edf7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #374151;
}

.stim-notif-hdr button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
}

.stim-notif-hdr button:hover { color: #004F8F; }

#stimNotifList { max-height: 380px; overflow-y: auto; }

.stim-notif-empty { padding: 20px; text-align: center; color: #aaa; font-size: 12px; }

.stim-notif-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid #e3edf7;
    gap: 8px;
    font-size: 12px;
}

.stim-notif-item:last-child { border-bottom: none; }
.stim-notif-content { flex: 1; min-width: 0; }
.stim-notif-label { font-weight: 600; color: #111827; margin-bottom: 3px; }
.stim-notif-meta { color: #6b7280; font-size: 11px; line-height: 1.5; }
.stim-notif-log { color: #6b7280; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.stim-notif-intmail-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.stim-notif-intmail-link:hover { color: #004F8F; text-decoration: underline; }

.stim-notif-dismiss {
    background: none; border: none; color: #d1d5db;
    font-size: 16px; line-height: 1; cursor: pointer;
    padding: 0; flex-shrink: 0;
}

.stim-notif-dismiss:hover { color: #e74c3c; }

/* Sur mobile : la cloche est dans le menu responsive, on affiche le panneau plein écran */
@media (max-width: 767px) {
    #stimNotifDropdown {
        width: 100%;
        left: 0;
        right: 0;
        position: fixed;
        top: 50px;
    }
}

