O /* Spec 002 — Frontend minimalista para diretoria */

/* ===== Seção de Gauges (100vh) ===== */
.gauges-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Garantir que gráficos Plotly fiquem centralizados */
.gauges-section .dash-graph {
    margin: 0 auto;
}

/* ===== Card sombreado para gauges ===== */
.gauge-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem 0.5rem;
    transition: box-shadow 0.2s ease;
}

.gauge-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

/* ===== Card sombreado leve para tabelas ===== */
.table-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1rem;
}

/* ===== Headers da tabela com sombreamento ===== */
.table-header-styled thead th {
    background-color: #e9ecef;
    text-align: center;
    font-weight: 600;
    vertical-align: middle;
    border-bottom: 2px solid #dee2e6;
}

/* ===== Espaçamento e tipografia minimalista ===== */
.section-title {
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #495057;
}

.detail-section {
    padding: 2rem 0;
}

/* ===== Barra de ações ===== */
.action-bar {
    order: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 2px solid #26384d;
}

.action-bar-caption {
    margin-right: auto;
    color: #687586;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.action-bar-toggle {
    margin-bottom: 0;
}

.action-bar-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-btn {
    position: static;
    z-index: auto;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.settings-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .metas-page {
        display: flex;
        flex-direction: column;
    }

    .metas-page > .action-bar {
        order: 1;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow-x: auto;
    }

    .metas-page > .offcanvas,
    .metas-page > .section-title,
    .metas-page > #metas-tabs-container {
        order: 2;
    }

    .action-bar-caption {
        display: none;
    }

    .action-bar-toggle {
        flex: 0 0 auto;
        width: max-content;
    }

    .action-bar-toggle label {
        font-size: 1rem;
    }

    .action-bar-buttons {
        display: flex;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .action-bar-buttons .btn {
        white-space: nowrap;
    }
}

/* ===== Responsividade ===== */

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    .gauges-section {
        min-height: auto;
        padding: 1.5rem 0.5rem;
    }
}

/* Celular (< 768px) */
@media (max-width: 767.98px) {
    .gauges-section {
        min-height: auto;
        padding: 1rem 0.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
}
