/* 表格单元格基本样式 */
.layui-table-cell {
    height: auto;
    line-height: 28px;
}

/* 添加自适应宽度样式 */
.layui-fluid {
    padding: 15px;
    width: 100%;
    max-width: 100%;
}

.layui-card {
    width: 100%;
    max-width: 100%;
}

/* 移除固定宽度设置，让表格自适应容器宽度 */
.layui-table-view {
    width: 100% !important;
}

/* 修复双滚动条问题 */
.layui-table-box {
    overflow-x: hidden !important;
}

.layui-table-body {
    overflow-x: auto !important;
}

/* 让表格列自动调整宽度 */
.layui-table-col-special {
    width: auto !important;
}

/* 确保表格单元格内容不会被截断 */
.layui-table-cell {
    white-space: normal;
    height: auto;
    line-height: 28px;
}

/* 当表格宽度为100%时，确保列能够自动扩展填充空间 */
.layui-table-header table, .layui-table-body table {
    width: 100% !important;
}

/* 确保表格列能够自动扩展 */
.layui-table-cell {
    box-sizing: border-box;
}

/* 修复表格列宽度不均匀的问题 */
.layui-table-header th .layui-table-cell {
    height: auto;
}

/* 金额显示样式 */
.amount-positive {
    color: #009688;
}

.amount-negative {
    color: #FF5722;
}

/* 表头说明样式 */
.header-desc {
    font-size: 12px;
    color: #666;
    padding: 5px 0;
}

/* 合计行样式 */
.total-row {
    font-weight: bold;
    background-color: #f2f2f2;
}

/* 公式说明 */
.formula-desc {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
}

.formula-desc p {
    margin: 5px 0;
} 