/* ─────────────────────────────────────────────────────────────────────────────
   Exposure Analysis — Analytics tab styles
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Exposure product cards: clickable hover effect ── */
.exposure-product-card {
    cursor: pointer;
}
.exposure-product-card:hover {
    border-color: light-dark(rgba(255,102,0,0.3), rgba(255,102,0,0.4)) !important;
    box-shadow: 0 2px 8px light-dark(rgba(255,102,0,0.08), rgba(255,102,0,0.12));
}

/* ── Exposure Analysis — Mobile Responsive Layout ── */
@media (max-width: 992px) {
    .analytics-paper-container,
    .analytics-main-flex,
    .analytics-main-tabs,
    .exposure-tab-panel-stack,
    .exposure-product-list-card {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto !important;
        height: auto !important;
        overflow: visible !important;
        min-height: min-content !important;
    }
    .exposure-tab-panel {
        overflow: visible !important;
        height: auto !important;
    }
    .exposure-responsive-flex {
        flex-direction: column !important;
        overflow: visible !important;
        height: auto !important;
    }
    .exposure-charts-col {
        flex: 0 0 auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    .exposure-list-col {
        flex: 1 1 auto !important;
        height: auto !important;
        overflow: visible !important;
    }
}


@media (min-width: 993px) {
    .desktop-flex-collapse {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-height: 0 !important;
        height: 100% !important;
    }
    .analytics-main-flex,
    .analytics-main-tabs,
    .exposure-tab-panel-stack,
    .exposure-product-list-card {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    .exposure-product-list-card {
        height: 100%;
    }
    .exposure-tab-panel {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
}

.exposure-responsive-flex {
    display: flex;
    flex-direction: row;
    gap: var(--mantine-spacing-md);
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.exposure-charts-col {
    flex: 0 0 65%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.exposure-list-col {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 992px) {
    .exposure-responsive-flex {
        flex-direction: column !important;
    }
    .exposure-charts-col {
        flex: 0 0 auto !important; /* Allow it to be its content height when closed */
        height: auto !important;
    }
    .exposure-list-col {
        flex: 1 1 auto !important;
    }
}
