/* Migrado de keepedu-theme.css — theme/_sidebar-nav.css */

/* ==========================================================================
   LAYOUT BERNOULLI (Nivelamento Automático via Grid)
   ========================================================================== */
.keepedu-app-page .bernoulli-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
    gap: 16px 20px;
    align-items: stretch;
}

.keepedu-app-page .bernoulli-form-card,
.keepedu-app-page .bernoulli-help-card {
    display: flex;
    flex-direction: column;
}

.keepedu-app-page .bernoulli-form-card {
    justify-content: space-between;
}

/* 3. Centraliza as 4 métricas (Linhas, RMB, etc.) no espaço que sobrar no card esquerdo */
.keepedu-app-page .bernoulli-log-summary {
    margin: auto 0;
}
/* =========================
   FIX GLOBAL LAYOUT
========================= */

* {
    box-sizing: border-box;
}

.page-content,
.dashboard-grid,
.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 16px;
    align-items: start;
}

.card,
.panel,
.dashboard-card {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-body,
.panel-body {
    padding: 24px;
}

.info-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 120px;
}

img {
    max-width: 100%;
    display: block;
}

.sidebar,
.dashboard-sidebar {
    width: 100%;
}

.content-area {
    min-width: 0;
}

/* evita quebra visual */
.row,
.grid-row {
    align-items: stretch;
}
