﻿
.container {
    max-width: 1024px;
    margin: auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    min-height: 98vh;
}

/* Header 1: Trường & Giáo viên */
.admin-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.worksheet-type-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px; /* Giãn chữ cho sang */
    margin: 10px 0 20px 0;
    text-transform: uppercase;
    position: relative;
}

    /* Tùy chọn: Thêm 2 gạch nhỏ 2 bên tiêu đề để trông như đề thi thật */
    .worksheet-type-title::before, .worksheet-type-title::after {
        content: "";
        display: inline-block;
        width: 50px;
        height: 1px;
        background: #000;
        vertical-align: middle;
        margin: 0 15px;
    }
/* Box thông tin học sinh - 2 dòng bám sát ảnh */
.student-info-section {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    /* Tạo đường gạch ngang kiểu ----- */
    background-image: linear-gradient(to right, #000 50%, rgba(255,255,255,0) 0%);
    background-position: bottom;
    background-size: 10px 1px; /* 10px là độ dài của gạch và khoảng cách */
    background-repeat: repeat-x;
}

    .student-info-section::before {
        /* Chèn biểu tượng cái kéo */
        content: "✂";
        position: absolute;
        bottom: -10px; /* Căn chỉnh để cái kéo nằm đè lên đường kẻ */
        left: -5px; /* Đưa cái kéo ra đầu dòng */
        font-size: 18px;
        background: #fff; /* Tránh đường kẻ đâm xuyên qua cái kéo */
        padding-right: 5px;
    }

.info-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: flex-end;
}

.info-label {
    font-weight: bold;
    white-space: nowrap;
    font-size: 15px;
}

.info-dot {
    flex-grow: 1;
    border-bottom: 1px dotted #000;
    height: 18px;
}

.ma-phach-box {
    border: 1px solid #000;
    width: 120px;
    height: 25px;
    margin-left: 10px;
}

/* Bảng điểm & Nhận xét & Mã Phách */
.grading-table {
    display: flex;
    border: 1px solid #000;
    margin-bottom: 25px;
}

.table-diem {
    width: 120px;
    border-right: 1px solid #000;
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.table-nhan-xet {
    flex-grow: 1;
    border-right: 1px solid #000;
    padding: 10px;
}

.table-phach {
    width: 150px;
    text-align: center;
    padding: 10px;
}

.dot-line {
    border-bottom: 1px dotted #888;
    height: 26px;
    margin-top: 4px;
}

/* Tiêu đề bài học */
.title-section {
    text-align: center;
    margin-bottom: 25px;
}

    .title-section h1 {
        font-size: 28px;
        text-transform: uppercase;
        font-weight: bold;
        margin: 0;
    }

    .title-section p {
        font-weight: bold;
        font-size: 14px;
        margin: 5px 0;
    }

.worksheet-content {
    flex-grow: 1;
    line-height: 1.8;
    font-size: 16px;
}

/* Chữ ký */
.signature-section {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    text-align: center;
}

.sig-block {
    width: 300px;
}

.sig-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 50px;
    display: block;
}

/* Footer */
.page-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 11px;
    color: #666;
}

.footer-logo {
    font-weight: bold;
    color: #2c6df2;
}

.footer-qr {
    text-align: center;
    line-height: 1.2;
}

    .footer-qr img {
        width: 45px;
        height: 45px;
        margin-bottom: 3px;
    }

.write-lines {
    margin-top: 10px;
}

    .write-lines div {
        border-bottom: 1px solid #999;
        height: 40px; /* khoảng cách để viết */
        margin-bottom: 8px;
    }

#exercise-content h1 {
    font-size: 28px;
}

#exercise-content h2 {
    font-size: 22px;
}

#exercise-content h3 {
    font-size: 20px;
}

#exercise-content hr {
    border: none;
    border-top: 1px solid #999;
    margin: 40px 0; /* khoảng cách để viết */
}

#exercise-content img {
    max-width: 300px;
    display: block;
    margin: 10px auto;
}
.geo-svg {
    display: block;
    margin: 12px auto;
}

@media print {
    .no-print {
        display: none;
    }
    header, footer, .navbar, .no-print, iframe {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .container {
        padding: 10mm 15mm;
    }

    @page {
        size: A4;
        margin: 0;
    }
}