/* /new/print.css */

隱藏所有不需要列印的元素 .print-hide,
.container>h2,
/* 隱藏主標題 "繳費記錄查詢報表" */
.card-header.bg-secondary,
/* 隱藏查詢條件標題 */
#reportFilterForm,
/* 隱藏查詢表單 */
#alertContainer,
/* 隱藏提示框 */
.position-fixed,
/* 隱藏固定位置的元素 */
.btn,
footer {
    display: none !important;
}

/* 針對報表主體優化 */
@media print {
    body {
        /* 將字體調整為列印友好的大小 */
        font-size: 12pt;
        /* 清除頁邊距 */
        margin: 0;
        padding: 0;
    }

    /* 讓容器最大化，避免被 Bootstrap 限制寬度 */
    .container {
        max-width: none !important;
        width: 100% !important;
        padding: 0 1cm;
        /* 留一點邊距 */
    }

    /* 報表表格樣式優化 */
    #reportTable {
        width: 100%;
        border-collapse: collapse;
    }

    /* 確保表格和卡片沒有陰影和邊框，只在需要時顯示表格線 */
    .card,
    .card-body {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* 確保表格線條清晰可見 */
    #reportTable th,
    #reportTable td {
        border: 1px solid #000 !important;
        padding: 3px !important;
    }

    /* 讓報表標題在列印頁面顯示 */
    #reportTitle {
        display: block !important;
        text-align: center;
        margin-bottom: 10px;
        font-size: 14pt;
        font-weight: bold;
    }

    /* 隱藏報告訊息 */
    #reportMessage,#reportMonth2,#reportMonth{
        display: none !important;
    }
}