.kfw-table-wrapper {
    border-radius: var(--global-radius);
    border: var(--global-border);
    box-shadow: var(--box-shadow);
    background-color: var(--background-color);
}

table {
    background: var(--background-color);
    border-radius: var(--global-radius);
}

table tr:not(.group) td:not(.fixed) {
    padding: 12px;
    font-size: 14px;
}

table tr:not(.group):not(:last-child) td {
    border-bottom: var(--global-border);
}

html.dark table tr:not(.group):not(:last-child) td {
    border-bottom: var(--global-border);
}

table tbody > tr:not(.group):not(.kfw-accordion-row):not(:has(tr:hover)):hover > td {
    background: rgba(0, 0, 0, 0.05);
}

html.dark table tbody > tr:not(.group):not(.kfw-accordion-row):not(:has(tr:hover)):hover > td {
    background: rgba(255, 255, 255, 0.075);
}

table tr th {
    padding: 12px;
    background: transparent;
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--font-color);
    white-space: nowrap;
}

html.dark table tr th {
    border-bottom: var(--global-border);
    color: var(--font-color);
}

table tr th:first-child {
    border-top-left-radius: var(--global-radius);
    border-bottom-left-radius: 0;
}

table tr th:last-child {
    border-top-right-radius: var(--global-radius);
    border-bottom-right-radius: 0;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: var(--global-radius);
}

table tr:last-child td:last-child {
    border-bottom-right-radius: var(--global-radius);
}

.sticky-column,
td.fixed {
    background: var(--background-color);
    border-right: var(--global-border);
}

tr.group td {
    background: #e9ecef;
    font-size: 14px;
    font-weight: 600;
    color: var(--font-color);
    padding: 10px 12px;
}

html.dark tr.group td {
    background: #343a40;
}

.table-header-schema,
.table-footer-schema {
    background: var(--background-color);
    border: var(--global-border);
    gap: 8px;
}

.table-header-schema {
    border-top-left-radius: var(--global-radius);
    border-top-right-radius: var(--global-radius);
    border-bottom: none;
    padding: 12px 12px 26px 12px;
    margin-bottom: -20px;
}

.table-footer-schema {
    border-bottom-left-radius: var(--global-radius);
    border-bottom-right-radius: var(--global-radius);
    border-top: none;
    padding: 26px 12px 12px 12px;
    margin-top: -20px;
}

html.dark .table-header-schema {
    border-bottom: none;
}

html.dark .table-footer-schema {
    border-top: none;
}

.table-footer-schema .records-number {
    font-size: 0.875rem;
    color: var(--font-color-light);
    opacity: 1;
}

.kfw-table .move-column,
.kfw-table .order-column {
    opacity: 0.5;
}

.kfw-table .move-column:hover,
.kfw-table .order-column:hover {
    opacity: 1;
    color: var(--primary-color);
}

.kfw-table-accordion-icon {
    color: var(--font-color-light);
}

.kfw-table-accordion-icon:hover {
    color: var(--primary-color);
}

.selectable-row-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #adb5bd;
    border-radius: 0.25em;
    accent-color: #0d6efd;
    background: #ffffff;
}

.kfw-td-buttons {
    gap: 6px;
    margin: 0 8px;
}

.dragging {
    background-color: #e9ecef;
    opacity: 1;
}

.drag-over {
    border: 1px dashed #0d6efd;
    background-color: rgba(13, 110, 253, 0.08);
}
