/*
 * IOP TablePress Stitch CSS
 * Makes TablePress tables inside .iop-board-table match the Stitch design system.
 * Deployed to: /var/www/html/wp-content/mu-plugins/iop-tablepress-stitch.css
 */

/* Hide TablePress default name/description */
.iop-board-table .tablepress-table-name,
.iop-board-table .tablepress-table-description {
    display: none;
}

/* Hide DataTables controls if ever enabled */
.iop-board-table .dataTables_wrapper .dataTables_filter,
.iop-board-table .dataTables_wrapper .dataTables_info,
.iop-board-table .dataTables_wrapper .dataTables_paginate,
.iop-board-table .dataTables_wrapper .dataTables_length {
    display: none !important;
}

/* Table base */
.iop-board-table table.tablepress {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
}

/* Remove any TablePress default styles that conflict */
.iop-board-table table.tablepress thead tr,
.iop-board-table table.tablepress thead th {
    background: none;
    border: none;
}

/* thead — ocean-deep header */
.iop-board-table table.tablepress thead tr {
    background-color: #0a1f3c;
}

.iop-board-table table.tablepress thead th {
    background-color: #0a1f3c;
    color: #ffffff;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    padding: 0.75rem 1.5rem;
    border: none;
    line-height: 1.4;
}

/* tbody rows */
.iop-board-table table.tablepress tbody tr {
    border-bottom: 1px solid rgba(10, 31, 60, 0.1);
    transition: background-color 0.15s ease;
}

.iop-board-table table.tablepress tbody tr:hover {
    background-color: rgba(238, 242, 247, 0.5);
}

/* tbody cells — base */
.iop-board-table table.tablepress tbody td {
    padding: 0.75rem 1.5rem;
    border: none;
    vertical-align: middle;
}

/* First column (role): uppercase, smaller, muted */
.iop-board-table table.tablepress tbody td:first-child {
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 14px;
    color: #5a6b7d;
    font-weight: 600;
    line-height: 1.4;
}

/* Second column (name): larger, ocean-deep */
.iop-board-table table.tablepress tbody td:last-child {
    font-size: 16px;
    color: #0a1f3c;
    font-weight: 400;
    line-height: 1.6;
}

/* First data row role cell: racing-red (President) */
.iop-board-table table.tablepress tbody tr:first-child td:first-child {
    color: #D81E5B !important;
}

/* Remove alternating row colors from TablePress default */
.iop-board-table table.tablepress.odd-even-columns tbody tr td,
.iop-board-table table.tablepress.row-hover tbody tr:hover td {
    background-color: transparent;
}

/* Override any Kadence/theme table styles within our wrapper */
.iop-board-table .tablepress-table tbody tr.odd,
.iop-board-table .tablepress-table tbody tr.even {
    background-color: transparent;
}
