.edbs-pagination-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.edbs-pagination-button {
    padding: 10px 15px;
    cursor: pointer;
}

.edbs-pagination-button.current {
    text-decoration: underline;
    font-weight: 700;
}

.edbs-pagination-button[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
}

/*
 * Wide tables (many visible columns, or long unbreakable cell content)
 * scroll horizontally within their own container rather than overflowing
 * it - matters most in the block editor's own preview (PRO-1202,
 * previously handled by a PHP-only inline style on the editor's static
 * server-rendered preview table; PRO-1331 replaced that with a live
 * render of this same markup, so the protection has to live here now,
 * shared by both contexts), but is a reasonable front-end default too.
 */
.edbs-table-container {
    overflow-x: auto;
}

.edbs-boardscribe-table {
    width: 100%;
    border-collapse: collapse;
}

.edbs-boardscribe-table th,
.edbs-boardscribe-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

/* A meeting's time sits on its own line under its date. Both are inside one
   wrapper so the stacked small-screen layout below keeps them together as a
   single cell child, next to the generated column label. */
.edbs-meeting-time {
    display: block;
}

/* table-layout: fixed splits the table's 100% width evenly across
   however many columns exist (no explicit widths needed), giving every
   column the same width for consistent vertical rhythm. Cell content
   wraps instead of forcing a column wider than its even share. */
.edbs-boardscribe-table.edbs-equal-columns {
    table-layout: fixed;
}

.edbs-boardscribe-table.edbs-equal-columns th,
.edbs-boardscribe-table.edbs-equal-columns td {
    overflow-wrap: break-word;
}

/* Stacking layout on small screens */
@media only screen and (max-width: 768px) {
    .edbs-boardscribe-table,
    .edbs-boardscribe-table thead,
    .edbs-boardscribe-table tbody,
    .edbs-boardscribe-table th,
    .edbs-boardscribe-table td,
    .edbs-boardscribe-table tr {
        display: block;
    }

    .edbs-boardscribe-table thead {
        display: none;
    }

    .edbs-boardscribe-table tr {
        margin-bottom: 10px;
    }

    .edbs-boardscribe-table td {
        display: flex;
        justify-content: space-between;
        gap: 0.75em;
        padding: 10px;
        border: 1px solid #ddd;
        text-align: left;
    }

    .edbs-boardscribe-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
    }
}
