/* components/tables.css - Reusable data table styles */

/* ===== GENERAL DATA TABLE STYLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: var(--background);
}

.data-table th,
.data-table td {
    border: 1px solid var(--primary-dark);
    padding: 8px;
    text-align: left;
    color: var(--primary-dark);
    font-weight: 400;
}

.data-table th {
    background-color: var(--primary-dark);
    color: var(--background);
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background-color: var(--light-accent);
}

/* ===== COUNTY DATA CONTAINER TABLES ===== */
.county-data-container .data-table {
    table-layout: fixed;
    margin: 0;
}

.county-data-container .data-table th {
    padding: 8px 5px;
    text-align: center;
    font-size: 0.85rem;
}

.county-data-container .data-table td {
    padding: 8px 5px;
    text-align: center;
    border: none;
    font-weight: 500;
    font-size: 0.85rem;
}

.county-data-container .data-table :is(th, td):nth-child(1) { width: 20%; }
.county-data-container .data-table :is(th, td):nth-child(2) { width: 25%; }
.county-data-container .data-table :is(th, td):nth-child(3) { width: 25%; }
.county-data-container .data-table :is(th, td):nth-child(4) { width: 30%; }

/* ===== MOBILE ADJUSTMENTS ===== */
@media screen and (max-width: 768px), screen and (max-height: 768px) {
    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

