/**
 * Gestão Operacional Stats — Public CSS
 * Estilos dos shortcodes exibidos no front-end do WordPress.
 *
 * @version 1.0.0
 */

/* ── Base ──────────────────────────────────────────── */
.gestao-stats-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

/* ── Stat Cards ────────────────────────────────────── */
.gestao-stat-card {
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.gestao-stat-card.litros {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.gestao-stat-card.viagens {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.3);
}

.gestao-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.gestao-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gestao-stat-sub {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 8px;
}

/* ── Bairros Table ─────────────────────────────────── */
.gestao-bairros-count {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.85rem;
}

.gestao-bairros-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gestao-bairros-table th {
    background: #1e293b;
    color: #e2e8f0;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gestao-bairros-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #334155;
}

.gestao-bairros-table tr:nth-child(even) td {
    background: #f8fafc;
}

.gestao-bairros-table tr:hover td {
    background: #eef2ff;
}

/* ── Dashboard Layout ──────────────────────────────── */
.gestao-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* ── Empty State ───────────────────────────────────── */
.gestao-empty {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ── Layout Variants (Elementor) ────────────────────── */
.gestao-layout-minimal {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.gestao-layout-minimal .gestao-stat-value {
    color: inherit;
}

.gestao-layout-minimal .gestao-stat-label {
    color: #64748b;
}

.gestao-layout-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.gestao-layout-inline .gestao-stat-value {
    margin-bottom: 0;
    white-space: nowrap;
}

.gestao-layout-inline .gestao-stat-label {
    margin-bottom: 0;
}

.gestao-layout-flat {
    background: none;
}

/* ── Icon ───────────────────────────────────────────── */
.gestao-stat-icon {
    line-height: 1;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 480px) {
    .gestao-stat-value {
        font-size: 1.8rem;
    }

    .gestao-stat-card {
        padding: 20px 16px;
    }

    .gestao-bairros-table th,
    .gestao-bairros-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .gestao-dashboard {
        grid-template-columns: 1fr;
    }

    .gestao-layout-inline {
        flex-direction: column;
        text-align: center;
    }
}
