#map {
    width: 100%;
    height: 500px; /* map height */
    background: #e9edf3; /* placeholder; remove when real map renders */
    border: 1px solid #cfd6df;
    box-sizing: border-box;
    max-width: 1200px;
    max-height: 500px;
    margin: 40px auto; /*  Adds space above and below */
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.info {
    padding: 2px 4px;
    font:
        12px/14px Arial,
        Helvetica,
        sans-serif;
    background: white;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}
.info h4 {
    margin: 0 0 4px;
    color: #777;
}
.legend {
    text-align: left;
    line-height: 18px;
    color: #555;
}
.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

/* Chart/table panel container */
.chart-container {
    background: #d5f2e2;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    height: 100%; /* let child fill */
    box-sizing: border-box;
}

/* Canvas sizing: have Chart.js fill the parent */
#doughnutChart,
#barChart {
    display: block;
    width: 100%;
    height: 300px; /* consistent height for both charts */
}

/* Table styling to match the panel */
#groupTable {
    width: 100%;
    margin: 0;
}

#groupTable thead th {
    color: #2d566b;
    font-size: 10px;
    font-weight: 700;
}

#groupTable tbody td {
    color: #2d566b;
    font-size: 10px;
}

/* Optional: decrease default Bootstrap table cell padding for compactness */
.table.table-striped.table-bordered > :not(caption) > * > * {
    padding: 0.5rem 0.5rem;
}

/* Responsive behavior: keep nice spacing on smaller screens */
@media (max-width: 767.98px) {
    #doughnutChart,
    #barChart {
        width: 100%;
        height: 300px;
    }
}

/* Match table panel background, border, and spacing */
#groupTable {
    width: 100%;
    margin: 0;
    background-color: #d5f2e2; /* table background */
    border: 1px solid #e5e7eb; /* panel border */
    border-radius: 6px; /* rounded corners */
    overflow: hidden; /* clip rounded corners */
}

/* Header styling */
#groupTable thead th {
    background-color: #d5f2e2; /* soft header background */
    color: #2d566b;
    font-size: 10px;
    font-weight: 700;
    border-color: #e5e7eb; /* header cell borders */
}

/* Body cells */
#groupTable tbody td {
    background-color: #d5f2e2; /* body background */
    color: #2d566b;
    font-size: 10px;
    border-color: #e5e7eb;
    padding: 0.5rem 0.75rem; /* compact padding */
}

.table-bordered > :not(caption) > * {
    border-color: #e1e6ee; /* unify borders */
}

/* Ensure the table fills the column panel neatly */
.col-md-4 .chart-container,
.col-md-4 #groupTable {
    box-sizing: border-box;
}
.chart-container canvas {
    display: block;
}

.chart-container {
    max-width: 450px;
    max-height: 375px;
    margin: 40px auto; /*  Adds space above and below */
    padding: 20px;
    background: #d5f2e2;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, sans-serif; /* Dashboard default font */
}

#groupTable {
    font-family: Arial, sans-serif; /* Table font */
}

#groupTable thead th,
#groupTable tbody td {
    font-family: Arial, sans-serif;
    font-size: 10px; /* Slightly larger for readability */
    font-weight: 400; /* Regular weight for body cells */
}

#groupTable thead th {
    font-weight: 700; /* Bold for headers */
}

body {
    font-family: Arial, sans-serif; /* Dashboard default font */
}

#groupTable {
    font-family: Arial, sans-serif; /* Table font */
}

#groupTable thead th,
#groupTable tbody td {
    font-family: Arial, sans-serif;
    font-size: 10px; /* Slightly larger for readability */
    font-weight: 400; /* Regular weight for body cells */
}

#groupTable thead th {
    font-weight: 700; /* Bold for headers */
}
