/* Page-specific table readability overrides for arier.htm */

.arier-page .table-scroll table {
    width: 100%;
    min-width: 640px;
    background: var(--color-white);
}

.arier-page .table-scroll th,
.arier-page .table-scroll td {
    border: 1px solid var(--color-border);
    padding: 8px 10px;
    vertical-align: top;
    line-height: 1.4;
}

/* Many legacy tables use first-row <td> cells as headers */
.arier-page .table-scroll tr:first-child th,
.arier-page .table-scroll tr:first-child td {
    background: var(--color-bg-alt);
    font-weight: 700;
}

/* Stronger per-column visual separation */
.arier-page .table-scroll tr > th:not(:first-child),
.arier-page .table-scroll tr > td:not(:first-child) {
    border-left: 2px solid #b8b8b8;
}

/* Light column banding helps track values horizontally */
.arier-page .table-scroll tr > th:nth-child(even),
.arier-page .table-scroll tr > td:nth-child(even) {
    background: #f7f7f7;
}

/* Keep row striping subtle so column cues remain visible */
.arier-page .table-scroll tbody tr:nth-child(even) td {
    box-shadow: inset 0 9999px 0 rgba(0, 0, 0, 0.015);
}

/* First column is usually the label column */
.arier-page .table-scroll tr > th:first-child,
.arier-page .table-scroll tr > td:first-child {
    font-weight: 600;
    min-width: 220px;
}

/* Data columns are easier to scan when right-aligned */
.arier-page .table-scroll tr > th:not(:first-child),
.arier-page .table-scroll tr > td:not(:first-child) {
    text-align: right;
    white-space: nowrap;
}

/* Keep the first census table in its original 4-column layout style */
.arier-page .arier-census-table {
    table-layout: fixed;
}

.arier-page .arier-census-table td {
    width: 25%;
    text-align: center !important;
    white-space: normal !important;
}

.arier-page .arier-province-table {
    table-layout: fixed;
}

.arier-page .arier-province-table td:nth-child(1) { width: 34%; text-align: left !important; white-space: normal !important; }
.arier-page .arier-province-table td:nth-child(2) { width: 22%; text-align: center !important; }
.arier-page .arier-province-table td:nth-child(3) { width: 22%; text-align: center !important; }
.arier-page .arier-province-table td:nth-child(4) { width: 22%; text-align: center !important; }

/* Prevent wrapped header text overlap in this table */
.arier-page .arier-province-table th {
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
    vertical-align: top;
}

.arier-page .arier-occupation-table {
    table-layout: auto;
    min-width: 760px;
}

.arier-page .arier-occupation-table td:nth-child(1) { width: 44%; text-align: left !important; white-space: normal !important; }
.arier-page .arier-occupation-table td:nth-child(2),
.arier-page .arier-occupation-table td:nth-child(3),
.arier-page .arier-occupation-table td:nth-child(4),
.arier-page .arier-occupation-table td:nth-child(5) { width: 14%; text-align: center !important; }

/* Keep this table closer to original, simpler styling */
.arier-page .arier-occupation-table tr > td,
.arier-page .arier-occupation-table tr > th {
    border-left: 1px solid var(--color-border) !important;
    background: transparent !important;
    text-align: left !important;
    white-space: normal !important;
}

.arier-page .arier-occupation-table tr:first-child td,
.arier-page .arier-occupation-table tr:first-child th {
    background: var(--color-bg-alt) !important;
    text-align: center !important;
}

.arier-page .arier-occupation-table tbody tr:nth-child(even) td {
    box-shadow: none !important;
}

.arier-page .arier-structure-table {
    table-layout: fixed;
}

.arier-page .arier-structure-table th:first-child,
.arier-page .arier-structure-table td:first-child { width: 40%; text-align: left !important; white-space: normal !important; }
.arier-page .arier-structure-table th:not(:first-child),
.arier-page .arier-structure-table td:not(:first-child) { width: 15%; text-align: center !important; }

.arier-page .arier-stock-table {
    table-layout: fixed;
}

.arier-page .arier-stock-table td:nth-child(1) { width: 60%; text-align: left !important; white-space: normal !important; }
.arier-page .arier-stock-table td:nth-child(2),
.arier-page .arier-stock-table td:nth-child(3) { width: 20%; text-align: center !important; }

.arier-page .arier-committee-table {
    table-layout: fixed;
}

.arier-page .arier-committee-table td:nth-child(1) { width: 72%; text-align: left !important; white-space: normal !important; }
.arier-page .arier-committee-table td:nth-child(2) { width: 28%; text-align: center !important; }
