body {
    background: #f5f7fb;
    font-family: Segoe UI, Arial, sans-serif;
}

.report-card {
    max-width: 1100px;
    margin: auto;
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.report-title {
    font-size: 24px;
    font-weight: 700;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 12px;
    text-align: center;
}

.table th {
    background: #002060;
    color: #fff;
}

.table td:first-child {
    text-align: left;
    padding-left: 12px;
}

/* Cluster view colors */
/* .table tbody tr.cluster > td {
    background: #fff8db !important;
} */

.table tbody tr.zonal > td {
    background: #e0e0e0 !important;
    color: #000 !important;
    font-weight: 600;
}

.table tbody tr.regional > td {
    background: #002060 !important;
    color: #fff !important;
    font-weight: 700;
}

/* Totals */
.table tfoot tr.total > td {
    background: linear-gradient(90deg, #001640, #002060) !important;
    color: #fff !important;
    font-weight: 800;
}

/* Zone view overrides */
.view-zone .table tbody tr.zonal > td {
    background: #ffffff !important;
    color: #000 !important;
}

.view-zone .table tbody tr.regional > td {
    background: #e0e0e0 !important;
    color: #000 !important;
}

/* Utility */
.no-export { }

/* Mobile-safe table handling */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 600px; /* allows horizontal scroll instead of overflow */
}

th, td {
    white-space: nowrap;
}

@media (max-width: 768px) {
    th {
        font-size: 13px;
        white-space: normal; /* allow wrap only on mobile */
    }

    td {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .table td,
    .table th {
        padding: 6px 8px;
    }
}
