/*
============================================================
HUB FINANCEIRO — DASHBOARD EXECUTIVO 1.0
============================================================
*/

.hub-executive {
    margin-top: 16px;
    padding: 22px;

    border: 1px solid var(--hub-border-soft);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.88),
            rgba(8, 13, 31, 0.78)
        );
}

.hub-executive__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;
}

.hub-executive__eyebrow {
    display: block;

    color: #67e8f9;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hub-executive__title {
    margin: 7px 0 0;

    color: var(--hub-text-primary);

    font-size: 18px;
    font-weight: 900;
}

.hub-executive__description {
    max-width: 680px;

    margin: 7px 0 0;

    color: var(--hub-text-muted);

    font-size: 10px;
    line-height: 1.6;
}

.hub-executive__badge {
    display: inline-flex;
    align-items: center;

    gap: 8px;
    padding: 8px 11px;

    color: #67e8f9;

    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;

    background: rgba(34, 211, 238, 0.07);

    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.hub-executive__insight {
    display: grid;

    grid-template-columns:
        42px minmax(0, 1fr);

    align-items: center;

    gap: 12px;
    padding: 14px;

    margin-top: 18px;

    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(34, 211, 238, 0.055),
            rgba(139, 92, 246, 0.045)
        );
}

.hub-executive__insight-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    color: #67e8f9;

    border-radius: 13px;

    background: rgba(34, 211, 238, 0.09);
}

.hub-executive__insight strong {
    display: block;

    color: var(--hub-text-secondary);

    font-size: 10px;
    font-weight: 900;
}

.hub-executive__insight span {
    display: block;

    margin-top: 4px;

    color: var(--hub-text-subtle);

    font-size: 8px;
    line-height: 1.5;
}

.hub-executive__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 18px;
}

.hub-chart-card {
    min-width: 0;
    padding: 17px;

    border: 1px solid var(--hub-border-soft);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.022);
}

.hub-chart-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.hub-chart-card__title {
    color: var(--hub-text-secondary);

    font-size: 11px;
    font-weight: 900;
}

.hub-chart-card__description {
    margin-top: 5px;

    color: var(--hub-text-subtle);

    font-size: 8px;
    line-height: 1.45;
}

.hub-chart-card__icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 35px;
    height: 35px;

    color: #67e8f9;

    border-radius: 11px;

    background: rgba(34, 211, 238, 0.075);
}

.hub-chart-card__canvas {
    min-height: 280px;

    margin-top: 12px;
}

.hub-chart-card__empty {
    display: grid;
    place-items: center;

    min-height: 260px;

    color: var(--hub-text-subtle);
    text-align: center;

    font-size: 9px;
    line-height: 1.55;
}

.apexcharts-tooltip,
.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
    color: #e2e8f0 !important;

    border-color:
        rgba(255, 255, 255, 0.1) !important;

    background:
        rgba(8, 13, 31, 0.98) !important;
}

.apexcharts-tooltip-title {
    color: #f8fafc !important;

    border-color:
        rgba(255, 255, 255, 0.08) !important;

    background:
        rgba(15, 23, 42, 0.98) !important;
}

.apexcharts-menu {
    color: #cbd5e1 !important;

    border-color:
        rgba(255, 255, 255, 0.1) !important;

    background:
        rgba(8, 13, 31, 0.98) !important;
}

@media (max-width: 900px) {
    .hub-executive__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .hub-executive {
        padding: 17px;
    }

    .hub-executive__header {
        flex-direction: column;
    }

    .hub-chart-card__canvas {
        min-height: 250px;
    }
}
