.kfw-table-wrapper {
    border-radius: 0.75rem;
    border: var(--global-border);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    background-color: var(--background-color);
}

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

table tr:not(.group) td:not(.fixed) {
    padding: 12px 16px;
    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(244, 244, 245, 0.6);
}

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

table tr th {
    padding: 10px 16px;
    background: transparent;
    border-bottom: var(--global-border);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #71717a;
    white-space: nowrap;
}

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

table tr th:first-child {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0;
}

table tr th:last-child {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 0.75rem;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 0.75rem;
}

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

tr.group td {
    background: #f4f4f5;
    font-size: 13px;
    font-weight: 500;
    color: var(--font-color);
    padding: 10px 16px;
}

html.dark tr.group td {
    background: #27272a;
}

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

.table-header-schema {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    border-bottom: none;
    padding: 12px 16px 26px 16px;
    margin-bottom: -20px;
}

.table-footer-schema {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    border-top: none;
    padding: 26px 16px 12px 16px;
    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: 13px;
    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(--font-color);
}

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

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

.selectable-row-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #d4d4d8;
    border-radius: 4px;
    accent-color: #18181b;
    background: #ffffff;
}

html.dark .selectable-row-checkbox {
    border-color: #52525b;
    accent-color: #fafafa;
}

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

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

.drag-over {
    border: 1px dashed #a1a1aa;
    background-color: #f4f4f5;
}
