/* =============================== */
/* PANEL DE GRÁFICOS — LAYOUT */
/* =============================== */

.graphics-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
}


/* =============================== */
/* TABS SUPERIORES */
/* =============================== */

.g-tabs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 4px 0;
}

.g-tab {
    flex: 1;
    text-align: center;

    padding: 8px 0;

    background: rgba(30, 58, 95, 0.25); /* fondo azul translúcido */

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;

    color: #dce6f2;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

/* Hover suave */
.g-tab:hover {
    background: rgba(30, 58, 95, 0.45);
    border-color: rgba(255,255,255,0.35);
}

/* Tab seleccionada */
.g-tab.active {
    background: #1E3A5F;        /* azul corporativo sólido */
    border-color: #57a4ff;      /* línea azul brillante */
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 6px rgba(87,164,255,0.35);
}



/* =============================== */
/* CAJA DEL GRÁFICO */
/* =============================== */

.g-chart-wrapper {
    width: 100%;
    height: 240px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;

    padding: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =============================== */
/* MODAL EXPANDIDO */
/* =============================== */

.g-expanded {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);

    display: flex;
    flex-direction: column;

    padding: 20px;

    z-index: 9999;
}

.g-expanded.hidden {
    display: none;
}

.g-expanded-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;

    color: white;
    font-size: 18px;
}

#g-chart-big {
    max-width: 100%;
    max-height: calc(100% - 60px);
}


/* =============================== */
/* PLACEHOLDER ANTIGUO (SI SE USA) */
/* =============================== */

.graphics-panel .chart-placeholder {
    width: 100%;
    height: 240px;

    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.15);

    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255,255,255,0.5);
}
