#btn-menu-mobile,
#fundo-menu-mobile {
    display: none;
}

@media (max-width: 768px) {
    .aviso_notificacoes-push{
        top: 10px;
        right: 10px;
        width: calc(100vw - 20px);
    }

    .aviso_notificacoes-push:not([hidden]){
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .aviso_notificacoes-push__conteudo{
        min-width: calc(100% - 52px);
    }

    .aviso_notificacoes-push__acoes{
        width: 100%;
        flex-direction: row;
    }

    .aviso_notificacoes-push__acoes button{
        flex: 1;
    }

    html,
    body {
        width: 100%;
        min-height: 100%;
    }

    body {
        height: 100svh;
        min-height: 100svh;
        align-items: stretch;
        justify-content: flex-start;
        overflow: hidden;
    }

    #btn-menu-mobile {
        width: 36px;
        height: 34px;
        flex: 0 0 36px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 0;
        border: 0;
        border-radius: 7px;
        background: #111827;
        color: #fff;
    }

    #btn-menu-mobile .linha-menu-mobile {
        width: 19px;
        height: 2px;
        display: block;
        border-radius: 999px;
        background: #ffcd2a;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    body.menu-mobile-aberto #btn-menu-mobile .linha-menu-mobile:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.menu-mobile-aberto #btn-menu-mobile .linha-menu-mobile:nth-child(2) {
        opacity: 0;
    }

    body.menu-mobile-aberto #btn-menu-mobile .linha-menu-mobile:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    #fundo-menu-mobile {
        position: fixed;
        inset: 0;
        z-index: 1090;
        width: 100%;
        height: 100%;
        display: block;
        padding: 0;
        border: 0;
        background: rgba(15, 23, 42, 0.58);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    body.menu-mobile-aberto #fundo-menu-mobile {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body > main {
        width: 100%;
        min-width: 0;
        height: 100svh;
        min-height: 100svh;
        flex: 0 0 100svh;
        box-sizing: border-box;
        padding-top: 0;
    }

    #area-menu_lateral {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1100;
        width: min(84vw, 320px);
        height: 100svh;
        box-sizing: border-box;
        overflow: visible;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.3);
    }

    body.menu-mobile-aberto #area-menu_lateral {
        transform: translateX(0);
    }

    #area-logo_sistema {
        min-height: 58px;
        box-sizing: border-box;
        justify-content: flex-start;
        padding: 7px 12px;
    }

    #img-logo {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    #nome_sistema {
        min-width: 0;
        font-size: 1rem;
    }

    #area_btns-menu_lateral {
        width: 100%;
        box-sizing: border-box;
        padding: 4px 8px 12px;
        scrollbar-gutter: auto;
    }

    .btn-menu {
        min-height: 46px;
        border-radius: 5px;
        font-size: 0.92rem;
        text-align: left;
        transition: background-color 0.2s ease;
    }

    .btn-menu:hover,
    .btn-menu:focus-visible {
        transform: none;
        box-shadow: none;
        background: #eeb600;
    }

    .drop-gestao_vistorias,
    .drop-gestao_imoveis,
    .drop-gestao_pessoas,
    .drop-contratos,
    .drop-arquivos_documentos,
    .drop-configuracoes_sistema,
    .drop-marketing,
    .drop-site,
    .drop-financas {
        width: 100%;
        margin-left: 0;
    }

    .btn-submenu {
        width: 100%;
        min-height: 42px;
        box-sizing: border-box;
        padding: 8px 12px;
        font-size: 0.86rem;
    }

    .submenu-configuracoes-marketing {
        padding-right: 0;
    }

    .btn-submenu:hover,
    .btn-submenu:focus-visible {
        transform: none;
        box-shadow: none;
        border-left-color: #f8bf03;
        background: #1f2937;
    }

    #area-info_user {
        min-height: 52px;
        box-sizing: border-box;
        justify-content: space-between;
        padding: 6px 12px;
        background: #ffcd2a;
    }

    #area-trabalho {
        width: 100%;
        min-width: 0;
        height: 100svh;
        overflow: hidden;
    }

    #guias_navegacao {
        min-height: 46px;
        flex: 0 0 46px;
        margin-top: 0;
        padding: 6px 8px;
    }

    .card-guia {
        min-width: 105px;
        max-width: 160px;
    }

    #conteudo_area_trabalho {
        flex: 1;
        min-height: 0;
        height: auto;
        align-items: stretch;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .painel-guia.active {
        width: 100%;
        flex: 1 0 auto;
        align-self: stretch;
        min-height: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    .area-title {
        width: min(90%, 420px);
    }

    .linha-title {
        width: 80%;
    }

    /* Linha global: campo de busca, lupa e botão de novo. */
    .area-busca-global {
        width: 100%;
        min-width: 0;
        display: flex !important;
        flex-flow: row wrap !important;
        align-items: center !important;
        justify-content: space-between;
        gap: 6px !important;
    }

    .area-busca-global > .area_input-pesquisa {
        flex: 1 1 0;
        min-width: 0;
        margin-right: 0;
    }

    .area-busca-global input[type="search"] {
        flex: 1;
        min-width: 0;
        font-size: 12pt;
    }

    .area-busca-global > .btn-padrao,
    .area-busca-global > .area_input-pesquisa > .btn-padrao {
        flex: 0 0 auto;
        align-self: center !important;
        white-space: nowrap;
    }

    .area-busca-global > .area-pesquisa_filtros {
        flex: 0 0 100%;
    }
}

@media (max-width: 360px) {
    #area-menu_lateral {
        width: 88vw;
    }

}
