.app-page table:not([role='presentation']) {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}
.app-page table thead th {
    padding: 12px 14px;
    background: #edf3ee;
    color: var(--green);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.15px;
    border-bottom: 1px solid #d6e1d8;
    vertical-align: middle;
}
.app-page table tbody td,
.app-page table tbody th {
    padding: 12px 14px;
    border-bottom: 1px solid #e9eee9;
    transition:
        background-color 180ms ease,
        box-shadow 180ms ease;
}
.app-page table tbody tr {
    transition: background-color 180ms ease;
}
.app-page table tbody tr:nth-child(even) {
    background-color: #fafcf9;
}
.app-page table tbody tr:last-child > td,
.app-page table tbody tr:last-child > th {
    border-bottom: 0;
}
.app-page table tbody tr:focus-within > td,
.app-page table tbody tr:focus-within > th {
    box-shadow: inset 0 0 0 100vmax rgb(22 62 50 / 5%);
}
@media (hover: hover) {
    .app-page table tbody tr:hover > td,
    .app-page table tbody tr:hover > th {
        box-shadow: inset 0 0 0 100vmax rgb(22 62 50 / 6%);
    }
}
@media (max-width: 760px) {
    .app-page table thead th,
    .app-page table tbody td,
    .app-page table tbody th {
        padding: 10px 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .app-page table tbody tr,
    .app-page table tbody td,
    .app-page table tbody th {
        transition: none;
    }
}
/* Paginación inferior compartida por Socios y Canchas. */
.app-page .record-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 14px 0 0;
    padding: 11px 12px;
    border: 1px solid #dfe5dc;
    border-radius: 9px;
    background: #fbfcfb;
    font-size: 11px;
}
.app-page .record-pagination .pagination-range {
    color: #52675b;
}
.app-page .record-pagination .pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.app-page .record-pagination select {
    height: 26px;
    min-height: 26px;
    min-width: 50px;
    width: auto;
    margin: 0;
    padding: 2px 22px 2px 10px;
    border-radius: 20px;
    border-color: #dce3dc;
    font-size: 11px;
}
.app-page .record-pagination .pagination-arrow {
    min-height: 26px;
    height: 26px;
    width: 40px;
    padding: 3px;
    border-radius: 20px;
    background: white;
    border-color: #dce3dc;
    color: #52675b;
}
.app-page .record-pagination .pagination-arrow:disabled {
    opacity: 0.4;
}
.app-page .record-pagination .pagination-page {
    min-width: 48px;
    text-align: center;
    white-space: nowrap;
}

.member-search-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}
.member-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 180px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    background: white;
}
.member-search-box input[type='search'] {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
    min-height: 30px;
    padding: 6px 14px;
    border: 0;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 400;
    background: #f3f4f2;
}
.member-search-toolbar > select {
    width: auto;
    min-width: 165px;
    min-height: 40px;
    margin: 0;
    padding: 8px 30px 8px 12px;
    border-radius: 24px;
    font-size: 12px;
}
.member-filter-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    padding: 16px;
    margin: -6px 0 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8faf6;
    box-shadow: none;
}
.member-filter-panel[hidden] {
    display: none;
}
.member-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--green);
    font-size: 12px;
}
.member-filter-toggle .member-filter-chevron {
    flex-shrink: 0;
    transition: transform 160ms ease;
}
.member-filter-toggle[aria-expanded='true'] {
    background: #edf5e7;
    border-color: #b5cab1;
}
.member-filter-toggle[aria-expanded='true'] .member-filter-chevron {
    transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .member-filter-toggle .member-filter-chevron {
        transition: none;
    }
}
.member-filter-panel label {
    font-size: 12px;
}
.member-filter-panel select {
    margin: 6px 0 12px;
    min-height: 38px;
    font-size: 12px;
}
.member-filter-panel label:last-child select {
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .member-search-toolbar {
        flex-wrap: wrap;
    }
    .member-search-box {
        flex-basis: 100%;
    }
    .member-search-toolbar > select {
        flex: 1;
        min-width: 0;
    }
}
.page-size-control {
    display: inline-flex;
    align-items: center;
}
.app-page .record-pagination select.page-size-native {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(50%);
}
.app-page .record-pagination .page-size-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    min-height: 26px;
    min-width: 50px;
    padding: 2px 10px;
    border: 1px solid #dce3dc;
    border-radius: 20px;
    background: white;
    color: var(--ink);
    font-size: 11px;
}
.page-size-options {
    position: fixed;
    z-index: 1000;
    min-width: 76px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    box-shadow: 0 8px 24px #102f2620;
}
.page-size-options[hidden] {
    display: none;
}
.page-size-option {
    display: block;
    width: 100%;
    padding: 7px 12px;
    border: 0;
    border-radius: 5px;
    background: white;
    color: var(--ink);
    font-size: 12px;
    text-align: left;
}
.page-size-option[aria-selected='true'],
.page-size-option:hover,
.page-size-option:focus-visible {
    background: #edf3ee;
    color: var(--green);
}
@media (max-width: 600px) {
    .member-filter-panel {
        grid-template-columns: 1fr;
    }
}

.app-page .record-pagination .page-size-toggle {
    gap: 8px;
    line-height: 1;
}
.app-page .record-pagination .page-size-toggle::after {
    content: '';
    width: 5px;
    height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    flex-shrink: 0;
}
/* Filtros extendidos con la misma escala del buscador. */
.member-search-toolbar:has(+ .member-filter-panel:not([hidden])) {
    margin-bottom: 8px;
}
.member-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 12px 18px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-color: #e3e8e1;
    border-radius: 9px;
    background: #fbfcfb;
    font-size: 12px;
}
.member-filter-panel label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #52675b;
    min-width: 0;
}
.member-filter-panel label select,
.member-filter-panel label:last-child select {
    flex: 1;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    margin: 0;
    padding: 6px 28px 6px 10px;
    font-size: 12px;
    font-weight: 400;
    border-radius: 20px;
    background: white;
    color: var(--ink);
}
@media (max-width: 600px) {
    .member-filter-panel {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .member-filter-panel label {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
    }
}

