<!DOCTYPE html>
<html lang="zh" xmlns:style="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- font-family: Microsoft YaHei, sans-serif; -->
    <style>        @page {
        size: A4 portrait;
        margin: 15px;
    }
    body {
        margin: 0;
        font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif;

    }
    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10px;
    }
    th, td {
        text-align: center;
        padding: 5px;
        border: 1px solid black;
    }
    .border {
        border: 1px solid black !important;
    }
    .header {
        background-color: #f2f2f2;
    }

    /* 用于模拟5列布局 */
    .col-1 { width: calc(100% / 5); }
    </style>
</head>
<body>
<table>
    <!-- 第一行 -->
    <tr class="header border col-12" >
        <td align="center"  style="font-weight: bold;font-size: 12px;" valign="middle"bgcolor="#c0c0c0" colspan="5">公积金人员信息</td>
    </tr>

    <!-- 第二行 -->
    <tr class="header border">
        <td class="col-4" colspan="3" align="left" valign="middle"> ${housingFundConfirm.companyName}</td>
        <td class="col-4" colspan="2" align="center" valign="middle">
            <div style="display: inline;">${housingFundConfirm.year}年 第</div><div style="display: inline;">${housingFundConfirm.month}期</div>

        </td>
    </tr>

    <!-- 第三行 -->
    <tr class="header border">
        <td class="col-1" align="center" valign="middle">员工姓名</td>
        <td class="col-1" align="center" valign="middle">电话号码</td>
        <td class="col-1" align="center" valign="middle">基数</td>
        <td class="col-1" align="center" valign="middle">比例</td>
        <td class="col-1" align="center" valign="middle">备注</td>
    </tr>

    <!-- 动态数据行 -->
    <#list housingFundConfirm.details  as item>
    <tr class="border">
        <td class="col-1" align="center">${ item.employeeName }</td>
        <td class="col-1" align="center">${ item.phone }</td>
        <td class="col-1" align="center">${ item.cardinalNumber }</td>
        <td class="col-1" align="center">${ item.ratio }</td>
        <td class="col-1" align="center">${ item.remark }</td>
    </tr>
    </#list>

</table>
</body>
</html>