body {
    font-family: "Times New Roman", serif;
    font-size: 14px;
    margin: 20px;
    color: #000;
}

.page {
    width: 100%;
    max-width: 1250px;
    margin: auto;
}

.toolbar {
    margin-bottom: 15px;
    padding: 10px;
    background: #f3f3f3;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
}

.toolbar input {
    padding: 6px;
    width: 220px;
}

.toolbar button {
    padding: 6px 12px;
    cursor: pointer;
}

.header {
    display: grid;
    grid-template-columns: 1.25fr 1.2fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.header-left {
    line-height: 1.6;
}

.header-center {
    text-align: center;
    font-weight: bold;
    padding-top: 18px;
}

.header-center .title {
    font-size: 18px;
    text-transform: uppercase;
}

.header-right {
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: 1px solid #000;
    border-bottom: none;
    margin-top: 10px;
}

.info-cell {
    padding: 6px 8px;
    border-right: 1px solid #000;
}

.info-cell:last-child {
    border-right: none;
}

.info-row-full {
    border: 1px solid #000;
    border-bottom: none;
    padding: 6px 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th,
td {
    border: 1px solid #000;
    padding: 6px 5px;
    vertical-align: middle;
}

th {
    text-align: center;
    font-weight: bold;
}

td {
    line-height: 1.35;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.red {
    color: red;
}

.no-data {
    text-align: center;
    font-style: italic;
    padding: 12px;
}

.stt {
    width: 40px;
}

.hoten {
    width: 150px;
}

.bhxh {
    width: 95px;
}

.ngaysinh {
    width: 90px;
}

.gioitinh {
    width: 55px;
}

.diachi {
    width: 200px;
}

.kcb {
    width: 80px;
}

.bienlai {
    width: 90px;
}

.sotien {
    width: 90px;
}

.tuthang {
    width: 100px;
}

.sothang {
    width: 40px;
}

.ghichu {
    width: 90px;
}

.footer {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.footer-right {
    text-align: center;
    font-style: italic;
}

.signature {
    margin-top: 8px;
    font-weight: bold;
    font-style: normal;
}

.sign-note {
    margin-top: 40px;
}

@media print {
    body {
        margin: 10mm;
    }

    .page {
        max-width: none;
    }

    .no-print {
        display: none;
    }

    @page {
        size: A4 landscape;
        margin: 10mm;
    }
}
tbody td:nth-child(1),
tbody td:nth-child(3),
tbody td:nth-child(4),
tbody td:nth-child(5),
tbody td:nth-child(7),
tbody td:nth-child(8),
tbody td:nth-child(9),
tbody td:nth-child(10),
tbody td:nth-child(11),
tbody td:nth-child(12) {
    white-space: nowrap;
    text-align: center;
}