/* Basic Tables YNEX - Using Default Theme Colors Only */

/* Basic Tables without borders and header backgrounds */
.table-header,
.table thead th {
    background-color: transparent !important;
    color: inherit !important;
    border: none !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    font-weight: 600 !important;
    padding: 0.75rem !important;
}

/* Remove all table borders for basic style */
.table {
    --bs-table-border-color: transparent !important;
    border: none !important;
}

.table th,
.table td {
    border: none !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    color: inherit !important;
    padding: 0.75rem !important;
}

/* Only keep bottom border on rows */
.table tbody tr {
    border-bottom: 1px solid var(--bs-border-color) !important;
}

/* Remove table-bordered class effects */
.table-bordered,
.table-bordered th,
.table-bordered td {
    border: none !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
}

/* Override table-light with basic styling */
.table-light {
    background-color: transparent !important;
}

.table-light th,
.table-light td {
    background-color: transparent !important;
    color: inherit !important;
    border: none !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
}

/* Override table-dark with basic styling */
.table-dark {
    background-color: transparent !important;
}

.table-dark th,
.table-dark td {
    background-color: transparent !important;
    color: inherit !important;
    border: none !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
}

/* Override table-primary with basic styling */
.table-primary {
    background-color: transparent !important;
}

.table-primary th,
.table-primary td {
    background-color: transparent !important;
    color: inherit !important;
    border: none !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
}

/* Responsive table styling */
.table-responsive {
    border: none !important;
}

/* Use default hover colors from YNEX theme */
.table-hover tbody tr:hover {
    background-color: var(--bs-table-hover-bg) !important;
    color: var(--bs-table-hover-color) !important;
}

/* Use default striped colors from YNEX theme */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bs-table-striped-bg) !important;
    color: var(--bs-table-striped-color) !important;
}

/* Remove sticky header backgrounds - use theme body bg */
.sticky-top.table-header,
.sticky-top thead th {
    background-color: var(--bs-body-bg) !important;
    border-bottom: 2px solid var(--bs-border-color) !important;
}

/* Small table adjustments */
.table-sm th,
.table-sm td {
    padding: 0.5rem !important;
}

/* Table in cards - ensure proper spacing */
.card .table {
    margin-bottom: 0 !important;
}

.card .table thead th:first-child,
.card .table tbody td:first-child {
    padding-left: 1.25rem !important;
}

.card .table thead th:last-child,
.card .table tbody td:last-child {
    padding-right: 1.25rem !important;
}