/* ==============================
   CONFIGURAÇÕES GERAIS
   ============================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px 15px;

    font-family: Arial, Helvetica, sans-serif;

    background-color: #f7f4f2;
    color: #333333;
}


/* ==============================
   CONTAINER PRINCIPAL
   ============================== */

.container {
    width: 100%;
    max-width: 950px;

    margin: 0 auto;

    background-color: #ffffff;

    padding: 35px;

    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


/* ==============================
   CABEÇALHO
   ============================== */

header {
    text-align: center;

    margin-bottom: 35px;
}

header h1 {
    margin: 0;

    font-size: 32px;

    color: #7d5550;
}

header p {
    margin-top: 8px;

    color: #777777;

    font-size: 16px;
}


/* ==============================
   SEÇÕES DA FICHA
   ============================== */

section {
    margin-bottom: 30px;

    padding: 25px;

    background-color: #fbf3f1;

    border-radius: 8px;
}

section h2 {
    margin-top: 0;
    margin-bottom: 22px;

    padding-bottom: 10px;

    font-size: 18px;

    color: #7d5550;

    border-bottom: 1px solid #e3ceca;
}


/* ==============================
   CAMPOS
   ============================== */

section > div {
    margin-bottom: 18px;
}

label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: bold;

    color: #444444;
}

input,
select,
textarea {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d8cbc8;

    border-radius: 6px;

    background-color: #ffffff;

    font-size: 15px;

    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #a77c75;

    box-shadow: 0 0 0 2px rgba(167, 124, 117, 0.12);
}

textarea {
    resize: vertical;
}


/* ==============================
   BOTÃO
   ============================== */

.acoes {
    text-align: center;

    margin-top: 30px;
}

button {
    min-width: 220px;

    padding: 14px 25px;

    border: none;
    border-radius: 7px;

    background-color: #7d5550;
    color: #ffffff;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}


/* ==============================
   CELULAR
   ============================== */

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    .container {
        padding: 18px;
    }

    section {
        padding: 18px;
    }

    header h1 {
        font-size: 26px;
    }

    button {
        width: 100%;
    }
}
/* ==============================
   TABELA DE FICHAS
   ============================== */

.tabela-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #7d5550;
}

th {
    padding: 14px 16px;
    text-align: left;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

td {
    padding: 16px;
    font-size: 14px;
    color: #333333;
    border-bottom: 1px solid #eadedb;
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #faf5f3;
}


/* ==============================
   LARGURA DAS COLUNAS
   ============================== */

th:nth-child(1),
td:nth-child(1) {
    width: 60px;
    text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
    min-width: 180px;
}

th:nth-child(3),
td:nth-child(3) {
    min-width: 120px;
}

th:nth-child(4),
td:nth-child(4) {
    min-width: 160px;
}

th:nth-child(5),
td:nth-child(5) {
    min-width: 140px;
}

th:nth-child(6),
td:nth-child(6) {
    width: 130px;
    text-align: center;
}


/* ==============================
   BOTÃO VISUALIZAR
   ============================== */

.botao-visualizar {
    min-width: 100px;
    padding: 9px 14px;

    border: none;
    border-radius: 6px;

    background-color: #284c59;
    color: #ffffff;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;
}

.botao-visualizar:hover {
    background-color: #376879;
}


/* ==============================
   LINK NOVA FICHA
   ============================== */

.botao-link {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 7px;

    background-color: #7d5550;
    color: #ffffff;

    text-decoration: none;
    font-weight: bold;
}

.botao-link:hover {
    opacity: 0.9;
}
.botao-excluir {
    background-color: #a94442;
}

.botao-excluir:hover {
    background-color: #8b3533;
}
/* ==============================
   ÁREA DE BUSCA
   ============================== */

.area-busca {
    margin-bottom: 25px;
}

.area-busca label {
    margin-bottom: 8px;
}

.area-busca input {
    max-width: 450px;
}


/* NENHUM RESULTADO */

.sem-resultados {
    text-align: center;
    padding: 30px;

    color: #777777;
    font-style: italic;
}
/* ==============================
   FILTROS
   ============================== */

.filtros {
    margin-bottom: 30px;
}

.filtro-nome {
    margin-bottom: 18px;
}

.filtro-nome input {
    max-width: 450px;
}

.filtro-periodo {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.filtro-periodo > div {
    flex: 1;
    max-width: 220px;
}

.botao-limpar {
    min-width: auto;

    padding: 9px 15px;

    background-color: #777777;

    font-size: 13px;
}


/* CELULAR */

@media (max-width: 600px) {

    .filtro-periodo {
        flex-direction: column;
    }

    .filtro-periodo > div {
        max-width: 100%;
    }
}
.coluna-data {
    white-space: nowrap;
}

.status-data {
    display: inline-block;

    margin-left: 7px;
    padding: 4px 7px;

    border-radius: 5px;

    font-size: 10px;
    font-weight: bold;
}

.status-data.hoje {
    background-color: #f6d8d8;
    color: #8b3533;
}

.status-data.amanha {
    background-color: #f8e8c4;
    color: #7a5a14;
}

.status-data.proximos {
    background-color: #dce9ed;
    color: #284c59;
}
/* ==============================
   TOPO DO FORMULÁRIO
   ============================== */

.topo-formulario {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topo-formulario h1 {
    margin-bottom: 5px;
}

.topo-formulario p {
    margin: 0;
}

.botao-voltar {
    display: inline-block;

    padding: 10px 16px;

    border-radius: 7px;

    background-color: #7d5550;
    color: #ffffff;

    text-decoration: none;
    font-size: 14px;
    font-weight: bold;

    white-space: nowrap;
}

.botao-voltar:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {

    .topo-formulario {
        flex-direction: column;
        align-items: flex-start;
    }

    .botao-voltar {
        width: 100%;
        text-align: center;
    }
}
/* ==============================
   RECHEIOS
   ============================== */

.cabecalho-recheios {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 20px;
}

.cabecalho-recheios p {
    margin: 0;
}

#contadorRecheios {
    font-size: 13px;
    font-weight: bold;
    color: #7d5550;
}


.grade-recheios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-bottom: 25px;
}


.card-recheio {
    display: flex;
    align-items: center;

    min-height: 48px;

    padding: 10px 14px;

    border: 1px solid #d8cbc8;
    border-radius: 7px;

    background-color: #ffffff;

    cursor: pointer;

    transition: 0.2s;
}


.card-recheio input {
    width: auto;

    margin: 0 10px 0 0;
}


.card-recheio span {
    font-size: 14px;
    font-weight: 500;
}


.card-recheio:hover {
    border-color: #a77c75;
    background-color: #fdf9f8;
}


.card-recheio:has(input:checked) {
    border-color: #284c59;
    background-color: #eaf1f3;
}


.card-recheio.premium:has(input:checked) {
    border-color: #a77c75;
    background-color: #f8e8e4;
}


.titulo-premium {
    display: flex;
    align-items: baseline;
    gap: 10px;

    margin-top: 10px;
}


.titulo-premium h3 {
    margin-bottom: 10px;
}


.titulo-premium span {
    font-size: 12px;
    color: #777777;
}


/* CELULAR */

@media (max-width: 600px) {

    .grade-recheios {
        grid-template-columns: 1fr;
    }

    .cabecalho-recheios {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ==============================
   RECHEIOS SELECIONADOS
   ============================== */

.recheios-selecionados {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 15px;
}


/* CADA RECHEIO SELECIONADO */

.recheio-selecionado {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: auto;

    padding: 7px 10px 7px 13px;

    border: 1px solid #bfd0d5;
    border-radius: 20px;

    background-color: #eaf1f3;
    color: #284c59;

    font-size: 13px;
    font-weight: 600;
}


/* BOTÃO X */

.recheio-selecionado .remover-recheio {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px !important;
    height: 22px !important;

    min-width: 0 !important;

    margin: 0;
    padding: 0 !important;

    border: none;
    border-radius: 50%;

    background-color: #284c59;
    color: #ffffff;

    font-size: 15px;
    font-weight: bold;
    line-height: 1;

    cursor: pointer;
}


/* HOVER DO X */

.recheio-selecionado .remover-recheio:hover {
    background-color: #7d5550;
    opacity: 1;
}


/* CONTADOR */

.contador-recheios {
    margin-top: 10px;

    font-size: 13px;
    color: #777777;
}
/* ==============================
   STATUS DO PRÉ-CADASTRO
   ============================== */

.status-pendente {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 15px;

    background-color: #f8e8c4;
    color: #7a5a14;

    font-size: 11px;
    font-weight: bold;
}
/* =================================
   RESUMO DOS PRÉ-CADASTROS
   ================================= */

.resumo-pre-cadastros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}


.resumo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background-color: #f7f7f7;

    border: 1px solid #e3e3e3;
    border-radius: 8px;
}


.resumo-item strong {
    font-size: 26px;
    color: #284c59;
}


.resumo-item span {
    margin-top: 4px;

    font-size: 13px;
    color: #777;
}


/* =================================
   ABAS
   ================================= */

.abas-pre-cadastro {
    display: flex;
    gap: 8px;

    margin-bottom: 25px;
}


.aba-pre {
    min-width: 0;

    padding: 10px 18px;

    background-color: #eeeeee;
    color: #555;

    border: none;
    border-radius: 6px;

    cursor: pointer;
}


.aba-pre.ativa {
    background-color: #284c59;
    color: white;
}


/* STATUS APROVADO */

.status-aprovado {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 15px;

    background-color: #dcefe2;
    color: #28623b;

    font-size: 11px;
    font-weight: bold;
}


/* CELULAR */

@media (max-width: 600px) {

    .resumo-pre-cadastros {
        grid-template-columns: 1fr;
    }

}
.resumo-pre-cadastros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;

    margin-bottom: 25px;
}
.status-reprovado {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 15px;
    background-color: #f5d6d6;
    color: #8b3533;
    font-size: 11px;
    font-weight: bold;
}
/* =================================
   FICHA PARA IMPRESSÃO
   ================================= */

.folha-impressao {
    width: 210mm;
    min-height: 297mm;

    margin: 0 auto;

    padding: 15mm;

    background-color: #ffffff;

    color: #222222;
}


.cabecalho-impressao {
    text-align: center;

    margin-bottom: 5px;
}


.cabecalho-impressao h1 {
    margin: 0;

    font-size: 28px;

    color: #7d5550;
}


.cabecalho-impressao p {
    margin: 5px 0;

    font-size: 15px;
}


.cabecalho-impressao strong {
    font-size: 14px;

    color: #7d5550;
}


/* SEÇÕES */

.folha-impressao section {
    margin-bottom: 15px;

    padding: 12px 15px;

    background-color: #fbf3f1;

    border-radius: 6px;
}


.folha-impressao section h2 {
    margin: 0 0 10px 0;

    padding-bottom: 6px;

    border-bottom: 1px solid #e3ceca;

    color: #7d5550;

    font-size: 15px;
}


.folha-impressao section p {
    margin: 6px 0;

    font-size: 13px;

    line-height: 1.4;
}


/* BOTÕES */

.acoes-impressao {
    display: flex;
    justify-content: center;

    gap: 10px;

    margin-top: 25px;
}


.acoes-impressao button {
    min-width: 140px;

    padding: 11px 18px;
}


/* =================================
   IMPRESSÃO
   ================================= */

/* =================================
   IMPRESSÃO A4
   ================================= */

@media print {

    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;

        width: 100%;

        background: #ffffff !important;
    }

    .folha-impressao section {
        margin: 0 0 10px 0 !important;

        padding: 10px 12px !important;

        background: #ffffff !important;

        border: 1px solid #dddddd;

        border-radius: 0;

        break-inside: avoid;
        page-break-inside: avoid;
    }


    /* CABEÇALHO */

    .cabecalho-impressao {
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
    }

    .cabecalho-impressao h1 {
        font-size: 21px !important;
        margin: 0 !important;
    }

    .cabecalho-impressao p {
        font-size: 13px !important;
        margin: 3px 0 !important;
    }

    .cabecalho-impressao strong {
        font-size: 12px !important;
    }


    /* SEÇÕES */

    .folha-impressao section {
        margin: 0 0 10px 0 !important;

        padding: 10px 12px !important;

        background: #ffffff !important;

        border: 1px solid #dddddd;

        border-radius: 0;

        break-inside: avoid;
        page-break-inside: avoid;
    }


    .folha-impressao section h2 {
        margin: 0 0 7px 0 !important;

        padding-bottom: 5px !important;

        font-size: 14px !important;
    }

    .folha-impressao section p {
        margin: 4px 0 !important;

        font-size: 11px !important;

        line-height: 1.35 !important;
    }
    /* =================================
   LINHAS DA FICHA DE IMPRESSÃO
   ================================= */

    .linha-impressao {
        width: 100%;
    }

    .duas-colunas {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .duas-colunas p {
        margin: 6px 0;
    }


    /* IMPRESSÃO */

    @media print {

        .duas-colunas {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: 12px !important;
        }

    }


    /* NÃO IMPRIMIR BOTÕES */

    .acoes-impressao {
        display: none !important;
    }

    .acoes-impressao * {
        display: none !important;
    }
}

/* =================================
   TOPO DA FICHA
   ================================= */

.topo-ficha {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 130px;

    margin-bottom: 35px;
}


.titulo-ficha {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}
.titulo-ficha p {
    margin: 5px 0 0 0;
}


.acoes-ficha-topo {
    position: absolute;

    right: 0;
    top: 50%;

    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}


.botao-impressao {
    min-width: 0;

    padding: 10px 16px;

    border-radius: 6px;

    background-color: #7d5550;
    color: #ffffff;

    font-size: 13px;
    font-weight: bold;
}
.logo-ficha-link {
    display: inline-block;

    margin-bottom: 8px;

    text-decoration: none;
    cursor: pointer;
}

.logo-ficha {
    display: block;

    width: 150px;
    height: auto;

    transition:
            transform 0.2s ease,
            opacity 0.2s ease;
}

.logo-ficha-link:hover .logo-ficha {
    transform: scale(1.03);
    opacity: 0.85;
}


/* CELULAR */

@media (max-width: 700px) {

    /* CABEÇALHO DA FICHA NO CELULAR */
    header {
        position: relative;
    }

    .acoes-ficha-topo {
        position: static !important;

        display: grid !important;
        grid-template-columns: 1fr 1fr !important;

        width: 100% !important;

        gap: 10px !important;

        margin-top: 20px !important;
        margin-bottom: 25px !important;
    }

    .acoes-ficha-topo button,
    .acoes-ficha-topo a {
        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 12px 6px !important;

        min-height: 50px;

        font-size: 14px !important;
        line-height: 1.2;

        text-align: center;
    }
    .logo-ficha {
        width: 125px;
    }
}
/* =================================
   PÁGINAS DO CONTRATO
   ================================= */

.pagina-contrato {
    width: 210mm;
    min-height: 297mm;

    margin: 25px auto;

    padding: 18mm;

    background-color: #ffffff;

    color: #333333;
}


/* TÍTULO DAS PÁGINAS DE CLÁUSULAS */

.titulo-pagina-contrato {
    margin-bottom: 25px;

    padding: 10px;

    background-color: #fbf3f1;

    color: #7d5550;

    text-align: center;

    font-size: 16px;
    font-weight: bold;

    line-height: 1.4;
}


/* INTRODUÇÃO */

.introducao-contrato {
    margin-bottom: 20px;

    text-align: justify;

    font-size: 13px;

    line-height: 1.5;
}


/* CLÁUSULAS */

.clausula {
    margin-bottom: 18px;
}


.clausula h3 {
    margin: 0 0 6px 0;

    color: #7d5550;

    font-size: 13px;
}


.clausula p {
    margin: 4px 0;

    text-align: justify;

    font-size: 12px;

    line-height: 1.45;
}


/* DATA */

.data-contrato {
    margin-top: 35px;
    margin-bottom: 55px;

    text-align: center;

    font-size: 12px;
}


/* ASSINATURAS */

.assinaturas-contrato {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    margin-top: 30px;

    font-size: 11px;
}


.assinatura {
    text-align: center;
}


.linha-assinatura {
    margin-bottom: 8px;

    border-top: 1px solid #333333;
}

/* =================================
   PAINEL PRINCIPAL
   ================================= */

.painel-principal {
    max-width: 1100px;
}


.painel-area {
    margin-top: 30px;
}


.painel-cards {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

    margin-top: 20px;
}


.painel-card {
    padding: 30px;

    background-color: #faf3f1;

    border-radius: 10px;

    text-align: center;
}


.painel-card h3 {
    margin-top: 0;

    color: #7d5550;

    font-size: 22px;
}


.painel-card p {
    min-height: 45px;

    color: #666666;

    margin-bottom: 25px;
}


/* FORMULÁRIO PÚBLICO */

.painel-formulario-publico {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    margin-top: 25px;

    padding: 25px 30px;

    background-color: #f5f5f5;

    border: 1px solid #dddddd;
    border-radius: 10px;
}


.painel-formulario-publico h3 {
    margin: 0 0 5px 0;

    color: #7d5550;
}


.painel-formulario-publico p {
    margin: 0;

    color: #666666;
}


.painel-acoes-formulario {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}


.mensagem-link-copiado {
    text-align: right;

    color: #3d7652;

    font-weight: bold;

    min-height: 20px;

    margin-top: 8px;
}


/* CELULAR */

@media (max-width: 700px) {

    .painel-cards {
        grid-template-columns: 1fr;
    }


    .painel-formulario-publico {
        flex-direction: column;

        align-items: stretch;
    }


    .painel-acoes-formulario {
        flex-direction: column;
    }


    .mensagem-link-copiado {
        text-align: center;
    }
}
/* BOTÃO ABRIR FORMULÁRIO */

.painel-acoes-formulario .botao-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 170px;
    padding: 12px 18px;

    background-color: #284c59;
    color: #ffffff;

    border: none;
    border-radius: 7px;

    font-size: 16px;
    font-weight: bold;

    text-decoration: none;

    cursor: pointer;
}

.painel-acoes-formulario .botao-secundario:hover {
    background-color: #376879;
}
/* =================================
   IMPRESSÃO DO CONTRATO
   ================================= */

@media print {

    /* CADA DIV .pagina-contrato = UMA FOLHA */

    .pagina-contrato {
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 7mm 10mm !important;

        background: #ffffff !important;

        box-shadow: none !important;

        break-after: page;
        page-break-after: always;
    }


    /* A ÚLTIMA PÁGINA NÃO CRIA FOLHA VAZIA */

    .pagina-contrato:last-of-type {
        break-after: auto;
        page-break-after: auto;
    }


    /* =================================
       PÁGINA 1 - DADOS
       ================================= */

    .pagina-dados {
        padding: 5mm 10mm !important;
    }


    .pagina-dados header {
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
    }


    .pagina-dados section {
        margin: 0 0 7px 0 !important;

        padding: 7px 10px !important;

        background: #ffffff !important;

        border: 1px solid #dddddd !important;
        border-radius: 0 !important;

        break-inside: avoid;
        page-break-inside: avoid;
    }


    .pagina-dados section + section {
        margin-top: 0 !important;
    }


    .pagina-dados section h2 {
        margin: 0 0 5px 0 !important;

        padding: 0 0 4px 0 !important;

        font-size: 13px !important;

        line-height: 1.2 !important;
    }


    .pagina-dados section p {
        margin: 3px 0 !important;

        font-size: 11px !important;

        line-height: 1.25 !important;
    }


    /* DUAS COLUNAS DA PÁGINA 1 */

    .pagina-dados .duas-colunas {
        display: grid !important;

        grid-template-columns: 1fr 1fr !important;

        gap: 12px !important;
    }


    /* =================================
       PÁGINAS DAS CLÁUSULAS
       ================================= */

    .pagina-clausulas {
        padding: 8mm 10mm !important;
    }


    .titulo-pagina-contrato {
        margin-bottom: 12px !important;

        padding: 7px !important;

        font-size: 14px !important;
    }


    .introducao-contrato {
        margin-bottom: 12px !important;

        font-size: 11px !important;

        line-height: 1.35 !important;
    }


    .clausula {
        margin-bottom: 10px !important;

        break-inside: avoid;
        page-break-inside: avoid;
    }


    .clausula h3 {
        margin-bottom: 4px !important;

        font-size: 11px !important;
    }


    .clausula p {
        margin: 3px 0 !important;

        font-size: 10.5px !important;

        line-height: 1.35 !important;
    }


    /* DATA E ASSINATURAS */

    .data-contrato {
        margin-top: 20px !important;
        margin-bottom: 35px !important;
    }


    .assinaturas-contrato {
        margin-top: 20px !important;

        gap: 35px !important;
    }


    /* NÃO IMPRIMIR BOTÕES */

    .acoes,
    .acoes-impressao {
        display: none !important;
    }

    .acoes-contrato-topo {
        display: none !important;
    }

    .cabecalho-impressao {
        display: flex !important;
        flex-direction: row-reverse !important;
        justify-content: center !important;
        align-items: center !important;

        gap: 2mm !important;

        width: 100%;

        margin-bottom: 1mm !important;
        padding-bottom: 2mm !important;

        page-break-inside: avoid;
        break-inside: avoid;
    }

    .dados-empresa {
        text-align: center;
        font-size: 8.5pt;
        line-height: 1.35;
    }

    .dados-empresa strong {
        font-size: 10pt;
    }

    .logo-impressao {
        width: 35mm;
        flex-shrink: 0;
    }

    .logo-impressao img {
        width: 100%;
        max-width: 35mm;
        max-height: 24mm;
        object-fit: contain;
    }

    .folha-impressao {
        padding-top: 0 !important;
    }

    .folha-impressao > header {
        margin-top: 0 !important;
        padding-top: 2mm !important;
        min-height: 0 !important;
    }

}
/* =================================
   AÇÕES DO TOPO DA FICHA
   ================================= */

.acoes-ficha-topo {
    position: absolute;

    right: 0;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    gap: 10px;
}


.botao-contrato {
    min-width: 0;

    padding: 10px 16px;

    border-radius: 6px;

    background-color: #284c59;
    color: #ffffff;

    font-size: 13px;
    font-weight: bold;
}


.botao-contrato:hover {
    background-color: #376879;
}
/* =================================
   TOPO DO CONTRATO
   ================================= */

.cabecalho-contrato {
    position: relative;

    text-align: center;

    min-height: 130px;

    margin-bottom: 25px;
}


.titulo-contrato {
    text-align: center;
}


.acoes-contrato-topo {
    position: absolute;

    top: 0;
    right: 0;
}


.botao-impressao-contrato {
    min-width: 0;

    padding: 10px 16px;

    background-color: #7d5550;
    color: #ffffff;

    border: none;
    border-radius: 6px;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;
}


.botao-impressao-contrato:hover {
    opacity: 0.9;
}
/* =================================
   LOGIN
   ================================= */

.pagina-login {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #f5f1ef;
}


.login-container {
    position: relative;
    z-index: 1;
}


.login-card {
    background-color: #ffffff;

    padding: 45px 40px;

    border-radius: 14px;

    box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.08);
}


.login-cabecalho {
    text-align: center;

    margin-bottom: 35px;
}


.login-cabecalho h1 {
    margin: 0;

    color: #7d5550;

    font-size: 38px;
}


.login-cabecalho p {
    margin-top: 8px;

    color: #666666;

    font-size: 18px;
}


.campo-login {
    margin-bottom: 20px;
}


.campo-login label {
    display: block;

    margin-bottom: 7px;

    color: #284c59;

    font-weight: bold;
}


.campo-login input {
    width: 100%;

    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid #cccccc;
    border-radius: 7px;

    font-size: 16px;
}


.campo-login input:focus {
    outline: none;

    border-color: #284c59;
}


.botao-login {
    width: 100%;

    margin-top: 10px;

    padding: 13px;

    border: none;
    border-radius: 7px;

    background-color: #7d5550;
    color: #ffffff;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;
}


.botao-login:hover {
    opacity: 0.9;
}


.mensagem-login {
    margin-top: 20px;

    text-align: center;

    font-weight: bold;
}


.mensagem-login.erro {
    color: #a33a3a;
}


.mensagem-login.sucesso {
    color: #3d7652;
}

.cabecalho-impressao {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 8px;

    width: 100%;

    padding-bottom: 8px;
    margin-bottom: 4px;

    border-bottom: 1px solid #d8c1bd;
}

.dados-empresa {
    display: flex;
    flex-direction: column;

    text-align: center;

    font-size: 13px;
    line-height: 1.45;

    color: #7d5550;
}

.dados-empresa strong {
    font-size: 15px;
    margin-bottom: 3px;
}

.logo-impressao {
    width: 150px;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;
}

.logo-impressao img {
    display: block;

    width: 100%;
    max-width: 150px;
    max-height: 90px;

    object-fit: contain;
}

/* =================================
   AJUSTE DO TÍTULO DA FICHA IMPRESSA
   ================================= */

.folha-impressao > header {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-top: 10px !important;
    min-height: 0 !important;
}
/* REDUZ ESPAÇO ANTES DO TÍTULO DA FICHA */

.folha-impressao {
    padding-top: 0 !important;
}

.folha-impressao > header {
    margin: 0 0 8px 0 !important;
    padding: 8px 0 0 0 !important;
    min-height: 0 !important;
}

.folha-impressao > header h1,
.folha-impressao > header p,
.folha-impressao > header strong {
    margin-top: 0 !important;
}
/* =================================
   CABEÇALHO DO PRÉ-CADASTRO
   ================================= */

.cabecalho-pre-cadastro {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    margin-bottom: 30px;
    padding-bottom: 25px;

    border-bottom: 1px solid #e3ceca;

    text-align: left;
}

.logo-pre-cadastro {
    width: 150px;
    max-height: 100px;

    object-fit: contain;

    flex-shrink: 0;
}

.texto-pre-cadastro h1 {
    margin: 0 0 7px 0;

    font-size: 28px;

    color: #7d5550;
}

.texto-pre-cadastro p {
    margin: 0;

    max-width: 430px;

    color: #777777;

    font-size: 15px;
    line-height: 1.5;
}
@media (max-width: 600px) {

    .cabecalho-pre-cadastro {
        flex-direction: column;

        gap: 12px;

        text-align: center;
    }

    .logo-pre-cadastro {
        width: 130px;
    }

    .texto-pre-cadastro h1 {
        font-size: 25px;
    }


        .topo-ficha {
            display: flex;
            flex-direction: column;

            min-height: 0;

            margin-bottom: 25px;
        }

        .titulo-ficha {
            width: 100%;
        }

        .logo-ficha {
            width: 135px;
        }

        .acoes-ficha-topo {
            position: static !important;
            transform: none !important;

            display: grid !important;
            grid-template-columns: 1fr 1fr !important;

            width: 100% !important;

            gap: 10px !important;

            margin-top: 18px !important;
        }

        .acoes-ficha-topo button {
            width: 100% !important;
            min-width: 0 !important;

            padding: 12px 8px !important;

            font-size: 14px !important;
        }

}
/* =================================
   LOGO - TELA DE LOGIN
   ================================= */

.login-logo {
    text-align: center;
    margin-bottom: 10px;
}

.login-logo img {
    width: 190px;
    height: auto;
    display: inline-block;
}

.login-subtitulo {
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 20px;
    color: #666;
}
.login-page {
    position: relative;
    min-height: 100vh;
    background-color: #f7f3f1;
}
.login-page::before {
    content: "";

    position: fixed;
    inset: 0;

    background-image: url("img/logo-fest-bolos.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 650px auto;

    opacity: 0.025;

    pointer-events: none;
}
/* =================================
   FICHAS - VERSÃO MOBILE
   ================================= */

@media (max-width: 700px) {

    /* CONTAINER */

    body {
        padding: 10px 6px;
    }

    .container {
        width: 100%;
        padding: 15px;
        border-radius: 10px;
    }


    /* FILTROS */

    .filtros {
        margin-bottom: 20px;
    }

    .filtro-nome input {
        max-width: 100%;
    }

    .filtro-periodo {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .filtro-periodo > div {
        width: 100%;
        max-width: 100%;
    }

    .filtro-periodo input {
        width: 100%;
        min-height: 54px;

        font-size: 16px;

        padding: 10px 12px;
    }

    .filtro-periodo > div {
        max-width: none;
    }

    .botao-limpar {
        width: 100%;
        margin-top: 5px;
    }


    /* TABELA */

    .tabela-container {
        overflow: visible;
    }

    table {
        display: block;
        background: transparent;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
    }

    tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 10px 15px;

        margin-bottom: 15px;
        padding: 16px;

        background-color: #ffffff;

        border: 1px solid #eadedb;
        border-radius: 8px;
    }

    tbody td {
        display: block;

        width: auto !important;
        min-width: 0 !important;

        padding: 0;

        border: none;

        text-align: left !important;
    }


    /* ID */

    tbody td:nth-child(1) {
        grid-column: 1;

        font-size: 12px;
        color: #777777;
    }

    tbody td:nth-child(1)::before {
        content: "Ficha ";
        font-weight: bold;
    }


    /* CLIENTE */

    tbody td:nth-child(2) {
        grid-column: 1 / -1;

        font-size: 17px;
        font-weight: bold;

        color: #7d5550;
    }


    /* DATA */

    tbody td:nth-child(3) {
        grid-column: 1 / -1;

        white-space: normal;
    }

    tbody td:nth-child(3)::before {
        content: "Data: ";

        font-weight: bold;
        color: #555555;
    }


    /* EVENTO */

    tbody td:nth-child(4) {
        grid-column: 1 / -1;
    }

    tbody td:nth-child(4)::before {
        content: "Evento: ";

        font-weight: bold;
    }


    /* RECEBIMENTO */

    tbody td:nth-child(5) {
        grid-column: 1 / -1;
    }

    tbody td:nth-child(5)::before {
        content: "Recebimento: ";

        font-weight: bold;
    }


    /* AÇÕES */

    tbody td:nth-child(6) {
        grid-column: 1 / -1;

        margin-top: 5px;
    }

    .botao-visualizar {
        width: 100%;

        padding: 11px;

        font-size: 14px;
    }


    /* STATUS DA DATA */

    .status-data {
        margin-left: 6px;
        margin-top: 4px;
    }
    .logo-pagina {
        width: 135px;
    }

    .logo-pagina-link {
        margin-bottom: 5px;
    }


}
/* LOGO DA FICHA */

.logo-ficha-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 8px;
}

.logo-ficha {
    width: 150px;
    height: auto;
    display: block;
}

.logo-ficha-link:hover .logo-ficha {
    opacity: 0.85;
}
/* =================================
   LOGO DAS PÁGINAS INTERNAS
   ================================= */

.logo-pagina-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 8px;
}

.logo-pagina {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto;

    transition:
            transform 0.2s ease,
            opacity 0.2s ease;
}

.logo-pagina-link:hover .logo-pagina {
    transform: scale(1.03);
    opacity: 0.85;
}
/* =================================
   MODAL - PRÉ-CADASTRO ENVIADO
   ================================= */

.modal-app {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background-color: rgba(40, 30, 28, 0.45);
}

.modal-app.ativo {
    display: flex;
}

.modal-app-conteudo {
    width: 100%;
    max-width: 430px;

    padding: 40px 35px;

    background-color: #ffffff;

    border-radius: 14px;

    box-shadow:
            0 15px 45px rgba(0, 0, 0, 0.18);

    text-align: center;
}

.modal-app-icone {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background-color: #f3e6e3;
    color: #7d5550;

    font-size: 28px;
    font-weight: bold;
}

.modal-app-conteudo h2 {
    margin: 0 0 12px;

    color: #7d5550;

    font-size: 24px;
}

.modal-app-conteudo p {
    margin: 0 0 25px;

    color: #666666;

    font-size: 15px;
    line-height: 1.5;
}

.modal-app-botao {
    min-width: 160px;

    padding: 12px 20px;

    background-color: #7d5550;
    color: #ffffff;

    border: none;
    border-radius: 7px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
}

.modal-app-botao:hover {
    opacity: 0.9;
}