/**
 * 表格行高修复样式
 * 强制确保左侧账户表格和右侧财务记录表格的行高完全一致
 * 必须覆盖所有其他可能破坏行高一致性的样式
 */

/* 统一所有表格行高为32px - 最高优先级 */
.account-table tr,
.data-table tr {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
}

/* 统一所有表格单元格高度和内边距 - 最高优先级 */
.account-table th,
.account-table td,
.data-table th,
.data-table td {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 6px 8px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    font-size: 0.875rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 强制覆盖内容列的自适应高度设置 */
.data-table td.content-column,
.data-table th.content-column,
.data-table th:nth-child(8),
.data-table td:nth-child(8) {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 1.2 !important;
    padding: 6px 8px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* 强制左侧账户表格行高 */
#leftSidebar .account-table tbody tr {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    box-sizing: border-box !important;
}

/* 强制左侧账户表格表头行高 */
#leftSidebar .account-table thead tr {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
}

/* 强制右侧财务记录表格行高 */
#dataTableContainer .data-table tbody tr,
#dataTableContainer .data-table thead tr {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
}

/* 强制右侧财务记录表格单元格高度 */
#dataTableContainer .data-table tbody td,
#dataTableContainer .data-table thead th {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 6px 8px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 确保多选框列的特殊内边距不影响行高 */
.data-table th:first-child,
.data-table td:first-child,
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
}

/* 强制覆盖任何可能的自适应高度设置 */
.table-responsive .data-table tr,
.table-responsive .data-table td,
.table-responsive .data-table th {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
}

/* 确保表格容器不会影响行高 */
.table-responsive {
    line-height: normal !important;
}

/* 强制所有可能的选择器都应用固定行高 */
table.data-table tr,
table.data-table td,
table.data-table th,
table.account-table tr,
table.account-table td,
table.account-table th {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
}

/* 超级强制规则 - 使用更高优先级的选择器 */
body .account-table tr,
body .data-table tr,
html body .account-table tr,
html body .data-table tr {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
}

body .account-table th,
body .account-table td,
body .data-table th,
body .data-table td,
html body .account-table th,
html body .account-table td,
html body .data-table th,
html body .data-table td {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 6px 8px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 强制覆盖Bootstrap和其他框架可能的影响 */
.table tr,
.table th,
.table td,
.table-striped tr,
.table-striped th,
.table-striped td {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
}

/* 强制覆盖响应式设置 */
@media (max-width: 991.98px) {
    .account-table tr,
    .data-table tr,
    .account-table th,
    .account-table td,
    .data-table th,
    .data-table td {
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 767.98px) {
    .account-table tr,
    .data-table tr,
    .account-table th,
    .account-table td,
    .data-table th,
    .data-table td {
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        box-sizing: border-box !important;
    }
}

/* 确保表格边框对齐 */
.account-table,
.data-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* 确保表格容器边框一致 */
#leftSidebar .table-responsive,
#mainContent .table-responsive {
    border: 1px solid #dee2e6 !important;
    border-radius: 0 !important;
}

/* 确保表头底部边框一致 */
.account-table thead th,
.data-table thead th {
    border-bottom: 2px solid #dee2e6 !important;
    background-color: #f8f9fa !important;
}

/* 覆盖任何可能的内联样式 */
.account-table tr[style],
.account-table td[style],
.account-table th[style],
.data-table tr[style],
.data-table td[style],
.data-table th[style] {
    height: 32px !important;
    box-sizing: border-box !important;
} 