/* =========================================================
       TOOLBAR SAAS
    ========================================================== */
.saas-toolbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 8px 10px;

    background: #ffffff;
    border: 1px solid #e8ecef;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(20, 40, 50, 0.04);
}

.saas-toolbar-main,
.saas-toolbar-secondary {
    display: flex;
    align-items: center;
    gap: 4px;
}

.saas-toolbar-main {
    flex: 1;
}

/* =========================================================
       TOOLS
    ========================================================== */

.saas-tool {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 9px;
    white-space: nowrap;

    min-height: 40px;
    padding: 0 12px;

    color: #53616b;
    text-decoration: none;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 500;

    transition:
        background-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.saas-tool:hover {
    color: #0b6e4f;
    background: #f1f8f5;
    text-decoration: none;
}

.saas-tool-icon {
    width: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
}

.saas-tool-search {
    color: #26343b;
    font-weight: 600;
}

.saas-tool-search .saas-tool-icon {
    color: #0b6e4f;
}

/* =========================================================
       SECONDARY ACTIONS
    ========================================================== */

.saas-toolbar-secondary {
    padding-left: 8px;

    border-left: 1px solid #edf0f2;
}

.saas-tool-wrapper {
    display: flex;
    align-items: center;
    padding: 0 6px;
}

.saas-icon-button {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #64727b;

    font-size: 16px;

    text-decoration: none;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.saas-icon-button:hover {
    color: #0b6e4f;
    background: #f1f8f5;
    text-decoration: none;
}

.dropdown-toggle-no-caret::after {
    display: none;
}

/* =========================================================
       NOTIFICAÇÃO
    ========================================================== */

.notificacao-indicador {
    position: absolute;

    top: 7px;
    right: 7px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #dc3545;
    border: 2px solid #fff;
}

/* =========================================================
       USUÁRIO (avatar + nome + dropdown)
    ========================================================== */

.saas-user {
    margin-left: 4px;
    padding-left: 8px;

    border-left: 1px solid #edf0f2;
}

.saas-user-toggle {
    max-width: 200px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0 8px 0 4px;

    border: 0;
    border-radius: 999px;

    background: transparent;
    color: #26343b;

    font-size: 13px;
    font-weight: 600;

    transition: background-color .15s ease, color .15s ease;
}

.saas-user-toggle:hover,
.saas-user-toggle[aria-expanded="true"] {
    color: #0b6e4f;
    background: #f1f8f5;
}

.saas-user-toggle:focus-visible {
    outline: 2px solid #0b6e4f;
    outline-offset: 2px;
}

/* Sigla (2 letras) por baixo; a foto, quando carrega, cobre a sigla */
.saas-avatar {
    position: relative;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    border-radius: 50%;

    background: #008b8b;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
}

.saas-avatar img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    background: #ffffff;
}

.saas-avatar-lg {
    flex-basis: 40px;
    width: 40px;
    height: 40px;

    font-size: 14px;
}

.saas-user-name {
    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.saas-user-arrow {
    flex-shrink: 0;

    color: #8a979f;
    font-size: 10px;

    transition: transform .2s ease;
}

.saas-user-toggle[aria-expanded="true"] .saas-user-arrow {
    transform: rotate(180deg);
}

.saas-toolbar .saas-user-menu {
    width: 260px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.saas-user-header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 8px 4px;
}

.saas-user-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    line-height: 1.35;
}

.saas-user-info strong {
    color: #26343b;
    font-size: 13px;
}

.saas-user-info small {
    color: #7a8890;
    font-size: 12px;
}

.saas-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 7px 10px;
}

.saas-user-menu .dropdown-item i {
    width: 16px;

    color: #8a979f;
    text-align: center;
}

.saas-user-menu .dropdown-item:hover i {
    color: inherit;
}

.saas-user-menu .dropdown-divider {
    margin: 4px 0;
    border-top-color: #edf0f2;
}

.saas-toolbar .saas-user-logout,
.saas-toolbar .saas-user-logout i {
    color: #b42318;
}

.saas-toolbar .saas-user-menu .saas-user-logout:hover {
    color: #b42318;
    background: #fdf1f0;
}

/* =========================================================
       DROPDOWN
    ========================================================== */

.saas-toolbar .dropdown-menu {
    min-width: 190px;

    border-radius: 10px;
    padding: 6px;
}

.saas-toolbar .dropdown-item {
    border-radius: 7px;

    color: #44535b;
    font-size: 13px;
}

.saas-toolbar .dropdown-item:hover {
    color: #0b6e4f;
    background: #f1f8f5;
}

/* Responsivo: tablet.css (até 900px só ícones; celular deitado), desktop.css (992 a 1199px só ícones) e phone.css (até 600px). */
