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

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

table tr:not(.group) td:not(.fixed) {
    padding: 11px 16px;
    font-size: 13px;
}

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

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

table tbody > tr:not(.group):not(.kfw-accordion-row):not(:has(tr:hover)):hover > td {
    background: #f8fafc;
}

html.dark table tbody > tr:not(.group):not(.kfw-accordion-row):not(:has(tr:hover)):hover > td {
    background: #1c2438;
}

table tr th {
    padding: 10px 16px 12px 16px;
    background: transparent;
    border-bottom: var(--global-border);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--font-color-light);
    white-space: nowrap;
}

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

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

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

table tr:last-child td:first-child {
    border-bottom-left-radius: 14px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

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

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

html.dark tr.group td {
    background: #1a2237;
}

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

.table-header-schema {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    border-bottom: none;
    padding: 14px 16px 28px 16px;
    margin-bottom: -20px;
}

.table-footer-schema {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    border-top: none;
    padding: 28px 16px 14px 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: 12px;
    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: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 1.5px solid #94a3b8;
    border-radius: 6px;
    accent-color: #2563eb;
    background: transparent;
}

html.dark .selectable-row-checkbox {
    border-color: #64748b;
    accent-color: #60a5fa;
}

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

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

html.dark .dragging {
    background-color: #0f2847;
}

.drag-over {
    border: 1px dashed #2563eb;
    background-color: #eff6ff;
}

html.dark .drag-over {
    border-color: #60a5fa;
    background-color: #0f2847;
}
