/* Estilização Estrutural do Rodapé Fixo */
.main-footer-fixed 
{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: #5492DB;
    background: linear-gradient(90deg, rgba(84, 146, 219, 1) 0%, rgba(65, 71, 73, 1) 60%);    
    color: #f8fafc;
    font-size: 12px;
    line-height: 32px;
    z-index: 9999;
    border-top: 1px solid #334155;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    overflow: hidden;
}

.footer-content 
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
    gap: 8px;
}

.footer-left, .footer-center, .footer-right 
{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-left 
{
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-left *, .footer-center *, .footer-right * 
{
    vertical-align: middle;
}

body 
{
    padding-bottom: 35px !important;
}

.modal 
{
    z-index: 10050 !important;
}

.footer-separator 
{ 
    margin: 0 4px !important; 
    color: rgba(255, 255, 255, 0.6) !important; 
    font-weight: normal !important;
}

.main-footer-fixed .badge-success 
{
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-weight: normal !important;
}

/* ==========================================================
   RESPONSIVIDADE AUTOMÁTICA POR RESOLUÇÃO DE TELA
   ========================================================== */

/* Telas Full HD e Médias (até 1550px) */
@media (max-width: 1550px) 
{
    .main-footer-fixed 
    {
        font-size: 11.5px;
    }
    .footer-content 
    {
        padding: 0 8px;
        gap: 6px;
    }
    .footer-separator 
    {
        margin: 0 3px !important;
    }
    #footer-sistema-versao 
    {
        display: inline-block;
    }
}

/* Telas até 1366px / Janelas Divididas */
@media (max-width: 1366px) 
{
    .main-footer-fixed 
    {
        font-size: 11px;
    }
    #btn-suporte-video, #span-ver-gravacoes a 
    {
        font-size: 11px !important;
    }
    .footer-left strong, .footer-center strong {
        display: none; /* Deixa apenas os ícones e os nomes para economizar espaço */
    }
}

/* Telas Compactas (até 1180px) */
@media (max-width: 1180px) 
{
    .main-footer-fixed 
    {
        font-size: 10px;
    }
    #footer-suporte-remotol 
    {
        display: none; /* Oculta suporte remoto para priorizar botões e relógio */
    }
    #btn-suporte-video 
    {
        font-size: 10px !important;
    }
    #span-ver-gravacoes a 
    {
        font-size: 10px !important;
    }
}