@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f3f4f6
}

.main-header {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: rgb(18, 78, 158);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)
}

.omr-bubble {
    width: 18px;
    height: 18px;
    border: 1px solid #333;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #555;
    margin: 0 4px
}

.omr-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px
}

.q-num {
    width: 25px;
    text-align: right;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px
}

.a4-page {
    width: 210mm;
    min-height: 297mm;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    padding: 15mm;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column
}

.sheet-input {
    border: none;
    border-bottom: 1px dotted #000;
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #000;
    outline: none;
    background: transparent
}

.box-input {
    border: 1px solid #000;
    height: 30px;
    display: flex;
    align-items: center;
    padding-left: 5px;
    font-family: 'Courier New', monospace;
    letter-spacing: 5px
}

.corner-marker {
    width: 20px;
    height: 20px;
    background: #000;
    position: absolute
}

.tl {
    top: 10mm;
    left: 10mm
}

.tr {
    top: 10mm;
    right: 10mm
}

.bl {
    bottom: 10mm;
    left: 10mm
}

.br {
    bottom: 10mm;
    right: 10mm
}

@media print {

    html,
    body {
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible
    }

    .no-print {
        display: none !important
    }

    .a4-page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 5mm !important;
        box-shadow: none !important;
        border: none !important;
        transform: none !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important
    }

    #previewContainer,
    .tool-container {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: none !important
    }

    .corner-marker {
        display: none !important
    }

    /* Optional: Hide markers if they cause overflow, or keep them small */
}