.meu-relatorio {
    @apply w-[210mm] mx-auto;
}

/* Cabeçalho do relatório */
.meu-relatorio-cabecalho-logotipo {
    @apply float-left w-1/5 text-center pt-[5mm] ml-2;
}

.meu-relatorio-cabecalho-titulo {
    @apply font-bold text-center float-right w-4/5;
}

.meu-relatorio-cabecalho-informacao {
    @apply font-bold text-left float-right w-4/5;
}

.minha-relatorio {
    @apply mx-1;
}

.minha-relatorio-cabecalho-informacao {
    @apply font-bold text-center float-right w-full;
}

.minha-relatorio-cabecalho h1,
.minha-relatorio-cabecalho h2 {
    @apply mx-1 text-center;
}

.meu-relatorio-cabecalho-tabela {
    @apply w-full border-none mb-4 pt-0 float-left;
}

.meu-relatorio-cabecalho-tabela-icone {
    @apply w-1/12;
}

.meu-relatorio-cabecalho-tabela tr td {
    @apply border-none;
}

.meu-relatorio-conteudo {
    @apply mx-0;
}

/* Conteúdo do relatório */
.tabela-relatorio-tabela {
    @apply border border-black text-[12px] mx-auto;
}

.meu-relatorio-conteudo {
    @apply w-full clear-both p-12;
}

.relatorio-conteudo-assinaturas {
    @apply border-none;
}

.relatorio-conteudo-assinaturas th {
    @apply bg-white border-none;
}

.relatorio-conteudo-assinaturas td {
    @apply border-none;
}

.relatorio-conteudo-assinaturas tr.nome-cargo {
    @apply text-center line-through;
}

.meu-relatorio-rodape {
    @apply text-[10px];
}

/* Imprimir registros */
.imprimir-conteudo {
    @apply table;
}

div#conteudo,
div.conteudo,
div.componenteCaixa,
div#imprimir-registro,
div.imprimir-registro {
    @apply p-0 shadow-none border-none whitespace-normal block;

}

.imprimir-conteudo {
    @apply scale-95 snap-always relative w-[22cm] text-[0.65rem] m-[0.95rem];
    @apply print:scale-95 print:snap-always print:relative print:w-[20.5cm] print:text-[0.65rem] print:m-[0.95rem];
}

/* Garantir que o container do relatório ocupe toda a altura sem causar scroll */
#relatorio-preview {
    display: block !important;
    min-height: 100vh !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto !important;
}

/* Garantir que o conteúdo de impressão não cause overflow */
.imprimir-conteudo {
    min-height: 0 !important;
    overflow: visible !important;
}

table.table-relatorio{
    @apply w-full m-0 table-fixed border dark:border-white-800 border-black-800 ;
    @apply print:w-full print:m-0 print:table-fixed print:border print:dark:border-white-800 print:border-black-800;
}

table.table-relatorio td{
    @apply border dark:border-white border-black text-black dark:text-white;
    @apply print:border print:dark:border-white print:border-black print:text-black print:dark:text-white; 
}

.naomostra{
    @apply print:hidden
}

.cancelado{
    @apply absolute top-1/2 text-[3rem] underline opacity-25 transform -rotate-45 origin-right;
}

@media print {
    .noprint, .noprint * {
        display: none !important;
    }

    html, body * {
        font-size: 10px !important;
        overflow: visible !important;
        overflow-y: visible !important;
        height: auto !important;
    }

    .div_segundavia * {
        margin-top: 210px !important;
    }

    .div_naohomologado * {
        margin-top: 210px !important;
    }

    .logo * {
        width: 70%;
        float: left;
        margin: 10px 10px 10px 10px;
    }

    .cabecalho-relatorio * {
        padding-top: 20px;
    }

    .agr-logo-relatorio {
        height: 80px !important;
    }

    .agr-fonte-titulo * {
        font-size: 14px !important;
    }

    .relatorio-cabecalho-tabela-logo * {
        padding-right: 5px;
    }

    .relatorio-cabecalho-tabela-titulo * {
        @apply w-[130%]!;
    }

}
