table, th, td { border: 0.5px solid black !important; /* Bold border */ font-size: 12px !important; white-space: nowrap; } .calculate-row { background-color: #f0f0f0!important; /* Light gray background */ } /* 전체 테이블에 대한 설정 */ table { border-collapse: collapse; } /* 모든 td 요소에 적용되는 기본 패딩 및 행간 조정 */ td { padding: 4px !important; /* 셀의 내부 여백을 줄임 */ line-height: 1.4 !important; /* 행간을 줄여서 상하단 여백을 줄임 */ } /* 테이블의 상단과 하단 마진을 제거하여 전체 공백 줄이기 */ table, .d-flex { margin-top: 0 !important; margin-bottom: 0 !important; } @media print { body { width: 210mm; /* A4 width */ height: 297mm; /* A4 height */ margin: 0; /* Remove default margin */ font-size: 10pt; /* Font size for printing */ } .table { width: 100%; /* Full width tables */ table-layout: fixed; /* Uniform column sizing */ border-collapse: collapse; /* Ensure borders collapse */ } .table th, .table td { padding: 1px; /* Reduce padding */ border: 1px solid black!important; /* Ensure borders are visible */ } .text-center { text-align: center; /* Maintain center alignment */ } /* Prevent table row splitting */ .table tr { page-break-inside: avoid; /* Prevent breaking inside rows */ page-break-after: avoid; /* Allow breaking after rows */ } .table thead { display: table-header-group; /* Ensure table headers are repeated */ } .table tbody { display: table-row-group; /* Ensure table rows are grouped */ } .table tfoot { display: table-footer-group; /* Ensure table footers are repeated */ } /* Add top and bottom margins to each page */ .table tbody:before, .table tbody:after { content: ""; display: table-row; height: 5mm; /* Adjust as needed for top and bottom margins */ } /* Remove border from the before and after elements */ .table tbody:before td, .table tbody:after td { border: none; /* Remove borders */ } /* Adjust the border of the last row on the page */ .table tbody tr:last-child td { border-bottom: none; /* Remove the bottom border */ border-left: none; /* Remove the bottom border */ border-right: none; /* Remove the bottom border */ border-top: none; /* Remove the bottom border */ } /* Prevent border at the connection of two pages */ .table tbody tr:last-child td:first-child { border-bottom: none; /* Remove the bottom border */ border-left: none; /* Remove the bottom border */ border-right: none; /* Remove the bottom border */ border-top: none; /* Remove the bottom border */ } .table tbody tr:last-child td:last-child { border-bottom: none; /* Remove the bottom border */ border-left: none; /* Remove the bottom border */ border-right: none; /* Remove the bottom border */ border-top: none; /* Remove the bottom border */ } table, th, td { border-width: 1px !important; /* 인쇄 시 테두리를 더 얇게 설정 (0.1px) */ } /* 테두리 얇게 하는 테스트 */ .table { transform: scale(0.70); /* 약간 축소 */ } } input[type="checkbox"] { width: 10px; height: 10px; margin : 0; cursor: pointer; /* 마우스 커서를 포인터로 변경 */ }