/* ==========================================================================
   FOREVER BOT V8 - ESTILOS IMPRESSOR A4 LOTOFÁCIL (VETORIAL CAIXA MULTIPÁGINA)
   ========================================================================== */

.pagina-a4 {
    width: 210mm;
    height: 297mm;
    background: #ffffff;
    margin: 0 auto;
    padding: 8mm 6mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    gap: 8mm;
    break-after: page;
    page-break-after: always;
    page-break-inside: avoid;
    break-inside: avoid;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

/* CONTAINER VOLANTE INDIVIDUAL COM MARCAÇÃO DE CORTE */
.volante-a4-container-vetorial {
    width: 92mm;
    height: 180mm;
    flex-shrink: 0;
    border: 1px dashed #666666;
    padding: 3mm;
    box-sizing: border-box;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    page-break-inside: avoid;
    break-inside: avoid;
}

/* BARRAS DE SINCRONISMO SUPERIORES */
.top-black-marks {
    display: flex;
    justify-content: space-around;
    padding: 0 8mm;
    margin-bottom: 1.5mm;
}
.b-mark {
    width: 5mm;
    height: 2.2mm;
    background-color: #000000 !important;
}

/* BARRAS DE SINCRONISMO LATERAIS */
.side-black-marks {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 112mm;
    margin-right: 2mm;
}
.b-mark-side {
    width: 4mm;
    height: 2.2mm;
    background-color: #000000 !important;
}

/* CABEÇALHO ROSA / MAGENTA */
.header-volante-cef {
    background-color: #c026d3;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5mm 3mm;
    border-radius: 1mm;
}
.brand-cef {
    display: flex;
    align-items: center;
    gap: 2mm;
}
.title-loto {
    font-size: 14pt;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.5px;
}
.badge-jogo-id {
    font-size: 7pt;
    font-weight: 900;
    background: #ffffff;
    color: #c026d3;
    padding: 0.5mm 2mm;
    border-radius: 0.8mm;
}

/* CORPO DOS JOGOS */
.body-volante-cef {
    display: flex;
    align-items: center;
    gap: 1mm;
    margin: 1.5mm 0;
}

.quadros-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2mm;
}

.quadro-jogo-cef {
    background-color: #fef9c3;
    border: 1.5px solid #d97706;
    border-radius: 2mm;
    padding: 2mm;
}

.quadro-jogo-cef.vazio {
    background-color: #f9fafb;
    border: 1.2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42mm;
}
.txt-vazio {
    font-size: 7pt;
    font-weight: bold;
    color: #9ca3af;
}

/* GRADE DE DEZENAS EM 5 COLUNAS VERTICAIS */
.grid-dezenas-vetorial {
    display: flex;
    justify-content: space-between;
}

.coluna-vetorial {
    display: flex;
    flex-direction: column;
    gap: 1mm;
}

.box-dezena-cef {
    width: 9.5mm;
    height: 5.8mm;
    border: 0.5mm solid #c026d3;
    border-radius: 0.6mm;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.num-dezena-txt {
    font-size: 9pt;
    font-weight: 900;
    color: #c026d3;
}

/* PREENCHIMENTO NEGRO DAS DEZENAS (CENTRALIZADO E AJUSTADO PARA NÃO COBRIR BORDAS) */
.ponto-caneta-cef {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6.8mm;
    height: 3.4mm;
    background-color: #000000 !important;
    border-radius: 0.4mm;
    z-index: 2;
}

/* SEÇÃO DE QUANTIDADE (15 A 20) */
.secao-qtd-vetorial {
    margin-top: 1mm;
}
.txt-qtd-orientacao {
    font-size: 5pt;
    font-weight: bold;
    color: #c026d3;
    display: block;
    margin-bottom: 0.5mm;
}
.row-qtd-boxes {
    display: flex;
    gap: 1.2mm;
}
.box-qtd-cef {
    font-size: 6.5pt;
    font-weight: 900;
    color: #c026d3;
    padding: 0.4mm 1mm;
    border: 0.4mm dashed #c026d3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PREENCHIMENTO COMPACTO E ARREDONDADO PARA A QUANTIDADE DE DEZENAS APOSTADAS */
.ponto-caneta-sm {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3.2mm;
    height: 1.8mm;
    background-color: #000000 !important;
    border-radius: 50%;
    z-index: 2;
}

/* SEÇÃO DE INFORMAÇÕES E PREMIAÇÃO */
.info-opcoes-cef {
    margin: 1mm 0;
    font-size: 4.8pt;
    color: #c026d3;
}
.row-opcao-txt {
    margin-bottom: 0.8mm;
}
.txt-opt-title {
    font-weight: 900;
}
.boxes-opt-row {
    font-weight: 900;
    letter-spacing: 1px;
}
.banner-premiacao-loto {
    background-color: #fef9c3;
    border: 1px solid #ca8a04;
    border-radius: 1mm;
    padding: 1mm;
    text-align: center;
    font-size: 6.5pt;
    color: #b91c1c;
    line-height: 1.1;
    margin-top: 1mm;
}

/* RODAPÉ DO BILHETE E MARCAS FINAIS */
.footer-volante-cef {
    border-top: 1px solid #c026d3;
    padding-top: 0.8mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5mm;
}
.legal-banner {
    font-size: 4pt;
    font-weight: 900;
    color: #ffffff;
    background-color: #c026d3;
    padding: 0.4mm 1mm;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.logo-box-cef {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.5mm;
}
.sq-mark-left {
    width: 3mm;
    height: 3mm;
    background-color: #000000 !important;
}
.circle-mark-right {
    width: 3mm;
    height: 3mm;
    background-color: #000000 !important;
    border-radius: 50%;
}
.txt-logo-caixa {
    font-size: 9pt;
    font-weight: 900;
    font-style: italic;
}
.txt-loterias { color: #c026d3; }
.txt-caixa { color: #0284c7; }

.txt-instrucao-rodape {
    font-size: 4pt;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5mm;
}

/* REGRAS DE IMPRESSÃO IMPERATIVAS SEM LIMITAÇÃO DE PÁGINAS (@media print) */
@media print {
    body * {
        visibility: hidden !important;
    }

    #impressor-a4-area, 
    #impressor-a4-area * {
        visibility: visible !important;
    }

    #impressor-a4-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    @page {
        size: A4 portrait;
        margin: 0;
    }

    html, body {
        width: 210mm !important;
        height: auto !important;
        min-height: 100% !important;
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .pagina-a4 {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 8mm 6mm !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: flex-start !important;
        gap: 8mm !important;
        width: 210mm !important;
        height: 297mm !important;
        box-sizing: border-box !important;
        break-after: page !important;
        page-break-after: always !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .ponto-caneta-cef,
    .ponto-caneta-sm,
    .b-mark,
    .b-mark-side,
    .sq-mark-left,
    .circle-mark-right {
        background-color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
