﻿/* Ensure borders between cells don't interfere with the rounded corners */

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 99%;
}
    /* Make only the first and last th have rounded top corners */
    table thead th:first-child {
        border-top-left-radius: 10px;
        padding-left: 25px;
    }

    table thead th:last-child {
        border-top-right-radius: 10px;
    }

    table thead tr th:nth-child(2) {
        padding-left: 0;
        padding-right: 40px;
    }

thead tr {
    background-color: #ffffff;
}

    thead tr th {
        background-color: #4D4D4D;
        font-weight: 100;
        padding: 16px 8px;
    }

table tbody td {
    border-bottom: 1px solid #D3D3D3;
    height: 48px;
}

    table tbody td:first-child {
        border-left: 1px solid #D3D3D3;
        padding-left: 25px;
    }

    table tbody td:last-child {
        border-right: 1px solid #D3D3D3;
    }

th, td {
    text-align: left;
    height: 30px;
    padding-left: 8px;
    font-size: 14px;
}

th {
    line-height: 10px;
}

tbody tr td:nth-child(2) {
    padding-left: 0;
    padding-right: 30px;
}


.logbook_header {
    margin-left: 4px;
    font-weight: bold;
}

/*for table pagination*/
/*******************************************************/
/* container flex */
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* left info */
.pager-info {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666; /* muted grey */
}

/* right nav */
.pager-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.pager-nav li {
    margin: 0 6px;
}

/* links and spans share padding */
.pager-nav a,
.pager-nav span {
    padding: 0 6px;
    line-height: 1.5;
    text-decoration: none;
    color: #007aff; /* your brand blue */
    cursor: pointer;
}

/* disabled state */
.pager-nav li.disabled a {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

/* active page */
.pager-nav li.active span {
    background: white;
    color: #AEAEB2;
    border-radius: 3px;
    cursor: default;
}

/* ellipsis */
.pager-nav li.ellipsis span {
    color: #666;
    pointer-events: none;
    cursor: default;
}
/*******************************************************/

th.sortable *,
th.sortable {
    display: flex; /* fill the full cell width */
    align-items: center; /* vertical center */
    white-space: nowrap; /* never wrap text/icon */
    cursor: pointer;
    gap: 4px; /* space between label & icon */
}

.sort-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0; /* never squish the icon */
}
