/*
  Simplified and adapted from TablePress styles for sd24-wp-render-google-sheets
*/

#sheet-table {
    --text-color: #111;
    --head-text-color: var(--text-color);
    --head-bg-color: red;
    --odd-bg-color: #fff;
    --even-bg-color: #fff;
    --hover-bg-color: #f3f3f3;
    --border-color: #ddd;
    --padding: 0.5rem;

    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    min-width: 1170px; /* Forces scrollbar on smaller screens */
    color: var(--text-color);
    table-layout: fixed;
    min-height: 1171px;
}

#sheet-table th,
#sheet-table td {
    padding: var(--padding);
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
    word-wrap: break-word;
}

#sheet-table thead th {
    background-color: var(--head-bg-color);
    color: white;
    vertical-align: middle;
    border-top: none;
    font-weight: 500;
}

#sheet-table tbody tr:nth-child(odd) td {
    background-color: var(--odd-bg-color);
}

#sheet-table tbody tr:nth-child(even) td {
    background-color: var(--even-bg-color);
}

#sheet-table tbody tr:hover td {
    background-color: var(--hover-bg-color);
}

/* Pagination Controls */
#pagination-controls {
    clear: both;
    margin: 1rem 0;
    text-align: left;
}

#pagination-controls button {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    color: inherit !important;
    cursor: pointer;
    display: inline-block;
    font-size: 1em;
    height: 32px;
    margin-left: 2px;
    min-width: 32px;
    padding: 0 5px;
    text-align: center;
    text-decoration: none !important;
    vertical-align: middle;
}

#pagination-controls button:disabled {
    border: 1px solid transparent;
    color: #0000004d !important;
    cursor: default;
}

/* Responsive Table Wrapper */
.table-scroll-wrapper {
    overflow-x: auto;
    width: 100%;
}
#sdwp-wrapper {
    max-width: 1170px;
    margin: 0 auto;
}

#pagination-controls button:not(:disabled):hover {
    color: red !important;
}
