@charset "utf-8";
/* 报表样式 */
/* 普通显示用样式 */
.report-container {
    width: 100%; /* 默认使用100%宽度 */
    max-width: 260mm; /* 最大宽度为A4宽度 */
    margin: 0 auto;
    padding: 10mm;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'SimHei', '宋体', 'SimSun', serif;
}

/* 图片生成专用样式 - 确保不同设备生成一致的图片 */
.report-container-for-image {
    width: 260mm !important; /* 固定宽度为A4 */
    padding: 10mm !important;
    box-sizing: border-box !important;
    font-family: 'Microsoft YaHei', 'SimHei', '宋体', 'SimSun', serif !important;
    max-width: none !important; /* 覆盖最大宽度限制 */
}


.report-header {
    text-align: center;
    margin-bottom: 8mm;
}

.report-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 3mm;
}

.report-date {
    font-size: 14px;
    text-align: center;
}

#printed-data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #000;
}

#printed-data-table th,
#printed-data-table td {
    border: 1px solid #000;
    padding: 4px 8px;
    text-align: center;
    word-break: break-all;
    height: 30px !important;
    line-height: 22px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

#printed-data-table th {
    background-color: white;
    font-weight: bold;
    border-bottom: 2px solid #000;
}

.total-row {
    background-color: white;
    font-weight: bold;
}

.remark-section {
    margin-top: 8mm;
    border: 1px solid #000;
    padding: 8px;
    box-sizing: border-box;
}

.remark-title {
    font-weight: bold;
    margin-bottom: 3mm;
}

.remark-content {
    line-height: 1.5;
}

.signatures {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* 打印样式优化 */
@media print {
    body {
        margin: 0;
        padding: 0;
    }

    .report-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    @page {
        margin: 5mm;
    }
}