/* ============================================
   FULL-SCREEN LAYOUT - Sistema Global
   ============================================
   Estilos para garantir que todas as páginas
   ocupem 100% da largura da tela sem bordas laterais
   ============================================ */

/* ============================================
   1. RESET E BASE FULL-SCREEN
   ============================================ */
* {
    box-sizing: border-box;
}

html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    /* CORREÇÃO SCROLL: Permitir rolagem vertical no body */
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Garantir altura mínima para permitir scroll */
    min-height: 100vh !important;
}

/* ============================================
   2. CONTAINERS FULL-WIDTH
   ============================================ */
/* AJUSTE PRINCIPAL: Todos os containers devem ser full-width */
.mud-container[style*="max-width"],
.mud-container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Containers com MaxWidth.False já configurados */
.mud-container-fullwidth {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ============================================
   3. GRIDS FULL-WIDTH
   ============================================ */
/* AJUSTE: Grids devem ocupar 100% da largura disponível */
.mud-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mud-grid-item {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* ============================================
   4. PAPERS E CARDS FULL-WIDTH
   ============================================ */
/* Papers dentro do conteúdo principal */
.main-content-fullscreen .mud-paper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Cards premium full-width */
.premium-card{
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================
   5. TABELAS FULL-WIDTH
   ============================================ */
/* AJUSTE: Tabelas devem ocupar toda a largura disponível */
/* EXCEÇÃO: Tabelas dentro de table-scroll-container podem ter scroll horizontal */
.mud-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
}

.mud-table {
    width: 100% !important;
    min-width: 100% !important;
}

/* EXCEÇÃO: Tabelas dentro de table-scroll-container podem expandir além da largura */
.table-scroll-container .mud-table-container {
    width: auto !important;
    max-width: none !important;
    overflow-x: visible !important;
}

.table-scroll-container .mud-table {
    width: max-content !important;
    min-width: max-content !important;
}

/* ============================================
   6. PADDING INTERNO RESPONSIVO
   ============================================ */
/* Padding interno das páginas (não lateral) */

/* Desktop pequeno */

/* Desktop médio */

/* Desktop grande e Ultrawide */

/* Mobile */

/* ============================================
   7. REMOVER GUTTERS E MARGENS LATERAIS
   ============================================ */
/* Remover qualquer margin/padding lateral padrão */
.main-content-fullscreen > *:first-child {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.main-content-fullscreen > *:last-child {
    margin-right: 0 !important;
    padding-right: 0 !important;
}

/* ============================================
   8. FORMULÁRIOS FULL-WIDTH
   ============================================ */
.mud-form {
    width: 100% !important;
    max-width: 100% !important;
}

.mud-text-field,
.mud-select,
.mud-combobox {
    width: 100% !important;
}

/* ============================================
   9. RESPONSIVIDADE POR BREAKPOINT
   ============================================ */

/* Mobile (até 640px) */
@media (max-width: 640px) {
    .mud-container-fullwidth {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .mud-grid-item {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Tablet (641px - 959px) */
@media (min-width: 641px) and (max-width: 959px) {
    .mud-container-fullwidth {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Desktop pequeno (960px - 1279px) */
@media (min-width: 960px) and (max-width: 1279px) {
    .mud-container-fullwidth {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Desktop médio (1280px - 1919px) */
@media (min-width: 1280px) and (max-width: 1919px) {
    .mud-container-fullwidth {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Desktop grande (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .mud-container-fullwidth {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Ultrawide (2560px+) */
@media (min-width: 2560px) {
    .mud-container-fullwidth {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* ============================================
   10. GARANTIR SEM ROLAGEM HORIZONTAL
   ============================================ */
.main-content-fullscreen,
.main-content-fullscreen * {
    max-width: 100% !important;
}

/* Overflow apenas para tabelas que precisam scroll horizontal */
.mud-table-container {
    overflow-x: auto !important;
    overflow-y: visible;
}

/* Garantir que containers de tabela não limitem largura */
.table-scroll-container {
    overflow-x: auto !important;
    overflow-y: auto !important;
}

/* ============================================
   11. UTILITÁRIOS FULL-WIDTH
   ============================================ */

