/* Table */
table.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
    color: #374151;
}

table.table thead {
    background: #f8fafc;
}

table.table th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

table.table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

table.table tbody tr:last-child td {
    border-bottom: 0;
}

table.table tbody tr {
    transition: background-color 0.15s ease;
}

table.table tbody tr:hover {
    background: #f8fafc;
}

/* Optional: compact table */
table.table.table-compact th,
table.table.table-compact td {
    padding: 9px 12px;
}

/* Optional: right aligned numeric/action columns */
table.table .text-right {
    text-align: right;
}

/* Responsive */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
}
/* End */

/* Paging */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.pagination .page-item {
    margin: 0;
    padding: 0;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    color: #2c3338;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.pagination .page-link:hover {
    border-color: #2271b1;
    background: #f0f6fc;
    color: #135e96;
}

.pagination .page-link.active {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
    font-weight: 600;
}

.pagination .page-link.active:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    padding-left: 14px;
    padding-right: 14px;
}

/* Mobile */
@media (max-width: 600px) {
    .pagination {
        gap: 4px;
        flex-wrap: wrap;
    }

    .pagination .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }
}
/* End */

/* Button */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    color: #fff;
    background-color: var(--pisol-primary-color);
    border-color: var(--pisol-primary-color);
}

.btn-primary:hover {
    filter: brightness(90%);
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    filter: brightness(90%);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgb(0 0 0 / 10%);
}
/* End */

/* Pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    padding: 0;
}

/* Individual pagination links */
a.page-numbers ,
span.page-numbers{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    box-sizing: border-box;

    border: 1px solid #dcdcde;
    border-radius: 6px;

    background: #fff;
    color: #2c3338;

    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;

    transition: all 0.15s ease;
}

/* Hover */
a.page-numbers:hover {
    border-color: var(--pisol-primary-color);
    background: var(--pisol-primary-color);
    color: #fff;
}

/* Current page */
.page-numbers.current {
    border-color: var(--pisol-primary-color) !important;
    background: var(--pisol-primary-color) !important;
    color: #fff;
    font-weight: 600;
}

/* Previous / Next */
.page-numbers.prev,
.page-numbers.next {
    padding: 0 14px;
}

/* Disabled / dots */
.page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: #646970;
    cursor: default;
}

/* Remove hover effect from dots */
.page-numbers.dots:hover {
    border-color: transparent;
    background: transparent;
    color: #646970;
}
