/*
 * CAMADA 4 — LAYOUT
 *
 * Conteúdo permitido: a casca de uma página do app — o container de conteúdo,
 * o cabeçalho da página e os títulos de seção. É estrutura, não widget: nada
 * aqui tem estado, hover ou variante.
 */


/* ==========================================================================
   1. CONTAINER DE CONTEÚDO
   ========================================================================== */

.module-content {
    margin-top: 10px;
}

/*
 * Quando o conteúdo do módulo é o próprio cartão, ele não tem um .ibox-title
 * acima e precisa fechar as quatro quinas sozinho.
 */
@scope (:root[data-theme="mafmine"]) {

.ibox-content.module-content {
    border-top: 2px solid var(--color-fieldset-ibox-frame);
    border-radius: var(--radius-md);
}

}


/* ==========================================================================
   2. CABEÇALHO DA PÁGINA
   ========================================================================== */

.page-heading h2 {
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}


/* ==========================================================================
   3. TÍTULOS DE SEÇÃO COM AÇÕES À DIREITA
   ========================================================================== */

.h1-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h1-container label,
.h2-container label {
    font-weight: normal;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    font-style: inherit;
}


/* ==========================================================================
   4. MOBILE
   ========================================================================== */

@media (max-width: 991px) {

    #page-wrapper {
        overflow-x: hidden;
    }

    .wrapper-content {
        padding: 12px 8px;
    }

    .page-heading {
        padding: 12px 12px 6px;
    }

    .page-heading h2 {
        font-size: 20px;
    }

    .module-content > h2 {
        font-size: 20px;
        line-height: 1.25;
    }

    .h1-container,
    .h2-container {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 18px;
        line-height: 1.3;
    }
}
