/* ForteBov Global Responsive & Utility Styles */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* OTIMIZAÇÃO RESPONSIVA MOBILE (CELULAR & TELAS PEQUENAS < 768px)         */
/* ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* 1. Header: Oculta o título central duplicado para não sobrepor o seletor */
    header .flex.flex-col.items-center.text-center,
    header #header-prop-title,
    header #header-prop-foco {
        display: none !important;
    }

    /* 2. Header: Seletor de fazenda ganha espaço e legibilidade completa */
    #header-prop-select {
        max-width: 175px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        padding-left: 6px !important;
        padding-right: 20px !important;
        height: 32px !important;
    }

    /* 3. Header: Oculta badges secundários que poluem a tela pequena */
    #app-version-badge {
        display: none !important;
    }

    /* 4. Header: Status de conexão compacto (apenas ponto verde pulsante) */
    #status-conexao {
        display: none !important;
    }

    /* 5. Header: Avatar do usuário no topo direito sempre visível e clicável */
    #user-profile-menu {
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 2px !important;
    }
    #user-profile-menu > div:nth-child(2) {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    /* 6. Cards da Central Operacional: ícones proporcionais e títulos sem corte (PESAGEM CURRAL) */
    .modulo-card {
        padding: 0.625rem 0.5rem !important;
        gap: 0.5rem !important;
        border-radius: 1rem !important;
    }
    .modulo-card > div:first-child {
        width: 2.25rem !important;
        height: 2.25rem !important;
        min-width: 2.25rem !important;
        border-radius: 0.75rem !important;
    }
    .modulo-card > div:first-child svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    .modulo-card h3, .modulo-card h4 {
        font-size: 0.75rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word !important;
    }
    .modulo-card p {
        font-size: 0.625rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    /* 7. Abas da Central Operacional: scroll horizontal suave e limpo */
    #container-tabs-modulos {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    #container-tabs-modulos::-webkit-scrollbar {
        display: none;
    }
}
