.chart-container {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Ensures it doesn't get too wide on large screens */
    margin: 0 auto; /* Centers the chart */
    height: 60vh; /* Default height based on viewport height */
    min-height: 400px;
}

/* Target the th elements specifically */

.table th {
    background-color: #39868F;
    color: white;
    text-align: center;
    vertical-align: middle;
    position: sticky;
    top: 0;
    z-index: 1;
}

.scroll-table {
    max-height: 500px;
    padding: 20px,10px;
    margin: 1rem 0;
    overflow-y: auto;
    overflow-x: auto;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
    padding: 1.25rem;
}

/* Adjust for smaller screens */

/* Mobile responsive styles */
@media (max-width: 576px) {
    .chart-container {
        width: 100%;
        height: 200px ; /* Fixed height for mobile */
        min-height: auto;
    }
    
    .card-body {
        padding: 0.5rem;
    }
}

/* Rio Hondo dashboard visual theme */
:root {
    --rio-border: #d9e2ef;
    --rio-title: #17324f;
    --rio-surface-1: #f7f9fc;
    --rio-surface-2: #eef3f9;
    --rio-card-bg: #ffffff;
    --rio-muted: #5f6b7a;
}

.rio-dashboard-wrap {
    background: linear-gradient(160deg, var(--rio-surface-1), var(--rio-surface-2));
    border-radius: 14px;
    padding: clamp(12px, 1.6vw, 20px);
}

.rio-full-width-breakout {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: clamp(28px, 3vw, 56px);
    padding-right: clamp(28px, 3vw, 56px);
    box-sizing: border-box;
}

.rio-card {
    background: var(--rio-card-bg);
    border: 1px solid var(--rio-border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.05);
}

.rio-chart-panel .card-header {
    background: #ffffff;
    border-bottom: 1px solid #d9e2ef;
    box-shadow: none;
}

.rio-chart-panel .card-body {
    padding-top: 0.6rem;
}

.rio-page-title {
    color: var(--rio-title);
    letter-spacing: 0.2px;
    font-weight: 700;
    font-size: clamp(2rem, 2.8vw, 2.8rem);
}

.rio-page-subtitle {
    color: var(--rio-muted);
    font-size: 1.05rem;
    margin-top: -6px;
    margin-bottom: 12px;
}

.chart-container.rio-chart-box {
    position: relative;
    width: 100%;
    max-width: none;
    height: 350px;
    min-height: 0;
    margin: 0;
}

.rio-weather-box {
    position: relative;
    height: 180px;
    width: 100%;
}

.rio-card .card-header {
    background: var(--rio-card-bg);
    border-bottom: 1px solid #d9e2ef;
}

.rio-weather-note {
    color: var(--rio-muted);
    font-size: 0.82rem;
}

.focus-site-btn {
    border-color: #adb5bd;
    color: #6c757d;
    background: #ffffff;
}

.focus-site-btn:hover {
    border-color: #6c757d;
    color: #495057;
    background: #f8f9fa;
}

.rio-legend-line {
    display: inline-block;
    width: 24px;
    height: 3px;
    border-radius: 6px;
    vertical-align: middle;
    margin-right: 6px;
}

@media (max-width: 991.98px) {
    .chart-container.rio-chart-box {
        height: 250px;
    }

    .rio-weather-box {
        height: 160px;
    }
}

