/* BB Tableau Viz - Frontend Styles */

.bb-tableau-wrapper {
    position: relative;
    display: block;
    box-sizing: border-box;
}

.bb-tableau-wrapper tableau-viz {
    display: block;
    width: 100%;
}

/* Loading overlay */
.bb-tableau-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #e2e6ea;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 2;
    pointer-events: none;
}

/* Spinner */
.bb-tableau-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #ddd;
    border-top-color: #005f87; /* Tableau-ish blue */
    border-radius: 50%;
    animation: bb-tableau-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes bb-tableau-spin {
    to { transform: rotate(360deg); }
}

/* Responsive: let Tableau handle its own sizing on small screens */
@media (max-width: 600px) {
    .bb-tableau-wrapper {
        width: 100% !important;
    }
}
