/* ============================
   Estilos generales del panel
   ============================ */
.hpd-economico {
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 20px auto;
    max-width: 950px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    padding: 25px;
}

/* ============================
   Títulos de sección
   ============================ */
.hpd-economico h2 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 5px solid #3498db;
    padding-left: 10px;
}

/* ============================
   Tablas
   ============================ */
.hpd-economico table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 8px;
}

.hpd-economico th {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #fff;
    text-align: left;
    padding: 12px;
    font-weight: 600;
}

.hpd-economico td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.hpd-economico tr:hover {
    background: #f0f9ff;
    transition: 0.3s;
}

.hpd-economico td:first-child {
    font-weight: bold;
    color: #2c3e50;
}

/* ============================
   Iconos
   ============================ */
.hpd-icon {
    font-size: 1.2em;
    margin-right: 6px;
}

/* ============================
   Gráficas Chart.js
   ============================ */
canvas {
    margin-top: 20px;
    max-height: 320px;
    width: 100% !important;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
    .hpd-economico {
        padding: 15px;
    }

    .hpd-economico h2 {
        font-size: 1.3em;
    }

    .hpd-economico table, 
    .hpd-economico th, 
    .hpd-economico td {
        font-size: 0.9em;
    }
}
