/* ========================================================================== 
   FINDZLE — TOPBAR COMMUNE
   --------------------------------------------------------------------------
   Choix visuels consolidés :
   - burger + grand champ de recherche : Vaults
   - taille typo recherche + Ctrl K : MyBusiness
   - actions droites compactes sans contour : MyBusiness
   - langue : même interaction visuelle que les autres actions
   ========================================================================== */

body.fzl-shell-body .fzl-shell-topbar {
    left: var(--fzl-shell-sidebar-width) !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;

    display: flex !important;
    min-height: var(--fzl-shell-topbar-height) !important;
    height: var(--fzl-shell-topbar-height) !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;

    padding: 9px 16px 9px 30px !important;

    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid var(--fzl-shell-border) !important;
    backdrop-filter: blur(12px) !important;
    overflow: visible !important;

    transition: left .18s ease !important;
}

body.fzl-shell-body .fzl-shell-topbar-left,
body.fzl-shell-body .fzl-shell-topbar-actions {
    display: flex !important;
    align-items: center !important;
}

body.fzl-shell-body .fzl-shell-topbar-left {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 12px !important;
}

body.fzl-shell-body .fzl-shell-topbar-actions {
    position: relative !important;
    min-width: max-content !important;
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-left: auto !important;
    overflow: visible !important;
}

/* --------------------------------------------------------------------------
   Burger — Vaults
   -------------------------------------------------------------------------- */

body.fzl-shell-body .fzl-shell-menu-button {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    max-width: 54px !important;
    flex: 0 0 54px !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #dde5f1 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #172033 !important;

    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.fzl-shell-body .fzl-shell-menu-button:hover,
body.fzl-shell-body .fzl-shell-menu-button[aria-expanded="true"] {
    border-color: #cdd8e8 !important;
    background: #f7f9fd !important;
}

body.fzl-shell-body .fzl-shell-menu-button:focus-visible {
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(49, 87, 213, .13) !important;
}

/* --------------------------------------------------------------------------
   Recherche — structure Vaults + typo MyBusiness
   -------------------------------------------------------------------------- */

body.fzl-shell-body .fzl-shell-search {
    position: relative !important;
    display: flex !important;
    width: min(775px, 100%) !important;
    min-width: 220px !important;
    max-width: 775px !important;
    height: 54px !important;
    min-height: 54px !important;
    flex: 1 1 775px !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.fzl-shell-body .fzl-shell-search .fz-global-search-form {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    height: 54px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.fzl-shell-body .fzl-shell-search-input {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;

    margin: 0 !important;
    padding: 0 92px 0 46px !important;

    border: 1px solid #dbe3f0 !important;
    border-radius: 16px !important;
    outline: 0 !important;
    background: #ffffff !important;
    color: #344054 !important;

    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;

    box-shadow: none !important;
}

body.fzl-shell-body .fzl-shell-search-input::placeholder {
    color: #98a2b3 !important;
    opacity: 1 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
}

body.fzl-shell-body .fzl-shell-search-input:focus {
    border-color: #84a7ff !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10) !important;
}

body.fzl-shell-body .fzl-shell-search-icon {
    position: absolute !important;
    top: 50% !important;
    left: 17px !important;
    z-index: 2 !important;

    display: inline-flex !important;
    width: 20px !important;
    height: 20px !important;
    align-items: center !important;
    justify-content: center !important;

    color: #98a2b3 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

body.fzl-shell-body .fzl-shell-search-shortcut {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    z-index: 3 !important;

    display: inline-flex !important;
    min-width: 52px !important;
    height: 28px !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 8px !important;

    border: 1px solid #d0d5dd !important;
    border-bottom-color: #c3c8d0 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #667085 !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    box-shadow: 0 1px 0 rgba(15, 23, 42, .06) !important;
    transform: translateY(-50%) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   Actions droites — MyBusiness
   -------------------------------------------------------------------------- */

body.fzl-shell-body .fzl-shell-menu-wrapper,
body.fzl-shell-body .fzl-shell-topbar .fz-header-menu-wrapper,
body.fzl-shell-body .fzl-shell-topbar .fz-app-launcher,
body.fzl-shell-body .fzl-shell-topbar .fz-user-menu-wrapper,
body.fzl-shell-body .fzl-shell-language-slot,
body.fzl-shell-body .fzl-shell-language-slot .fz-topbar-language {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex: 0 0 44px !important;
}

body.fzl-shell-body .fzl-shell-action-button,
body.fzl-shell-body .fzl-shell-topbar .fz-header-action-button,
body.fzl-shell-body .fzl-shell-topbar .fz-app-launcher-button,
body.fzl-shell-body .fzl-shell-language-slot .fz-topbar-language__button {
    appearance: none !important;
    -webkit-appearance: none !important;

    position: relative !important;
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    flex: 0 0 44px !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #1d2e51 !important;

    font: inherit !important;
    font-size: 19px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.fzl-shell-body .fzl-shell-menu-wrapper.is-open > .fzl-shell-action-button,
body.fzl-shell-body .fzl-shell-menu-wrapper.is-open > .fzl-shell-user-avatar,
body.fzl-shell-body .vaults-header-menu-wrapper.is-open > .fzl-shell-action-button,
body.fzl-shell-body .vaults-header-menu-wrapper.is-open > .fzl-shell-user-avatar,
body.fzl-shell-body .fzl-shell-action-button:hover,
body.fzl-shell-body .fzl-shell-action-button[aria-expanded="true"],
body.fzl-shell-body .fzl-shell-topbar .fz-header-action-button:hover,
body.fzl-shell-body .fzl-shell-topbar .fz-header-action-button[aria-expanded="true"],
body.fzl-shell-body .fzl-shell-topbar .fz-app-launcher-button:hover,
body.fzl-shell-body .fzl-shell-topbar .fz-app-launcher-button[aria-expanded="true"],
body.fzl-shell-body .fzl-shell-language-slot .fz-topbar-language__button:hover,
body.fzl-shell-body .fzl-shell-language-slot .fz-topbar-language__button[aria-expanded="true"] {
    background: #f3f5f9 !important;
    box-shadow: inset 0 0 0 1px #e2e8f0 !important;
}

body.fzl-shell-body .fzl-shell-topbar .fz-header-action-button:focus-visible,
body.fzl-shell-body .fzl-shell-topbar .fz-app-launcher-button:focus-visible,
body.fzl-shell-body .fzl-shell-language-slot .fz-topbar-language__button:focus-visible {
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(49, 87, 213, .13) !important;
}

body.fzl-shell-body .fzl-shell-language-slot,
body.fzl-shell-body .fzl-shell-language-slot .fz-topbar-language {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex: 0 0 38px !important;
}

body.fzl-shell-body .fzl-shell-language-slot .fz-topbar-language__globe {
    display: inline-flex !important;
    width: 22px !important;
    height: 22px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

body.fzl-shell-body .fzl-shell-notification-icon {
    display: inline-flex !important;
    width: 22px !important;
    height: 22px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

body.fzl-shell-body .fzl-shell-topbar .fz-nine-dots,
body.fzl-shell-body .fzl-shell-topbar .vaults-nine-dots {
    display: grid !important;
    width: 20px !important;
    height: 20px !important;
    grid-template-columns: repeat(3, 4px) !important;
    grid-template-rows: repeat(3, 4px) !important;
    gap: 4px !important;
    align-content: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.fzl-shell-body .fzl-shell-topbar .fz-nine-dots > span,
body.fzl-shell-body .fzl-shell-topbar .vaults-nine-dots > span {
    display: block !important;
    width: 4px !important;
    height: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 1px !important;
    background: #1d2e51 !important;
}

body.fzl-shell-body .fzl-shell-user-avatar,
body.fzl-shell-body .fzl-shell-topbar #findzle-user-menu-button,
body.fzl-shell-body .fzl-shell-topbar .fz-user-avatar {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    flex: 0 0 46px !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;
    background: #e8efff !important;
    color: #2452d6 !important;

    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.fzl-shell-body .fzl-shell-user-avatar:hover,
body.fzl-shell-body .fzl-shell-user-avatar[aria-expanded="true"],
body.fzl-shell-body .fzl-shell-topbar #findzle-user-menu-button:hover,
body.fzl-shell-body .fzl-shell-topbar #findzle-user-menu-button[aria-expanded="true"],
body.fzl-shell-body .fzl-shell-topbar .fz-user-avatar:hover,
body.fzl-shell-body .fzl-shell-topbar .fz-user-avatar[aria-expanded="true"] {
    background: #dfe8ff !important;
}

body.fzl-shell-body .vaults-notification-count,
body.fzl-shell-body .fz-notification-count {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    display: inline-flex !important;
    min-width: 16px !important;
    height: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    background: #d92d20 !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* --------------------------------------------------------------------------
   Responsive / mode compact
   -------------------------------------------------------------------------- */

@media (min-width: 901px) {
    body.vaults-sidebar-collapsed .fzl-shell-topbar,
    body.fz-sidebar-collapsed .fzl-shell-topbar,
    body.fzl-shell-sidebar-collapsed .fzl-shell-topbar {
        left: var(--fzl-shell-sidebar-collapsed-width) !important;
    }
}

@media (max-width: 900px) {
    body.fzl-shell-body .fzl-shell-topbar {
        left: 0 !important;
    }
}

@media (max-width: 720px) {
    body.fzl-shell-body .fzl-shell-topbar {
        padding: 9px 16px !important;
    }

    body.fzl-shell-body .fzl-shell-search-shortcut {
        display: none !important;
    }

    body.fzl-shell-body .fzl-shell-search-input {
        padding-right: 16px !important;
    }
}
