/* =========================================
   RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#f4f6f9;

    color:#1f2937;

    overflow-x:hidden;

}

/* =========================================
   HEADER
========================================= */

.topo{

    position:relative;

    background:
    linear-gradient(
        135deg,
        #000000,
        #111827
    );

    padding:70px 20px;

    overflow:hidden;

}

.overlay{

    position:absolute;

    inset:0;

    background:
    radial-gradient(
        circle at top right,
        rgba(249,115,22,0.15),
        transparent 40%
    );

}

.header-content{

    position:relative;

    z-index:2;

    max-width:1300px;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:40px;

    flex-wrap:wrap;

}

.logo-area img{

    width:240px;

    max-width:100%;

    filter:
    drop-shadow(
        0 5px 15px rgba(0,0,0,0.4)
    );

}

.titulo-area{

    color:white;

    flex:1;

}

.titulo-area h1{

    font-size:2.7rem;

    font-weight:700;

    margin-bottom:15px;

}

.titulo-area p{

    font-size:1.1rem;

    color:#d1d5db;

}

/* =========================================
   CONTAINER
========================================= */

.container{

    max-width:1400px;

    margin:auto;

    padding:40px 20px;

}

/* =========================================
   CARD FORM
========================================= */

.card-form{

    background:white;

    border-radius:24px;

    padding:30px;

    margin-top:-60px;

    position:relative;

    z-index:10;

    box-shadow:
    0 15px 40px rgba(0,0,0,0.08);

    animation:fadeUp 0.7s ease;

}

.card-header{

    margin-bottom:25px;

}

.card-header h2{

    color:#111827;

    font-size:1.8rem;

    font-weight:700;

}

/* =========================================
   TABLE
========================================= */

.table-responsive{

    overflow-x:auto;

    border-radius:18px;

}

table{

    width:100%;

    border-collapse:collapse;

    min-width:1000px;

}

thead{

    background:#111827;

    color:white;

}

thead th{

    padding:18px;

    font-size:0.95rem;

}

tbody tr{

    transition:0.3s;

    border-bottom:1px solid #e5e7eb;

}

tbody tr:hover{

    background:#fff7ed;

}

tbody td{

    padding:14px;

}

/* =========================================
   INPUTS
========================================= */

input,
select{

    width:100%;

    padding:14px;

    border-radius:12px;

    border:1px solid #d1d5db;

    font-size:0.95rem;

    transition:0.3s;

    background:#fff;

}

input:focus,
select:focus{

    outline:none;

    border-color:#f97316;

    box-shadow:
    0 0 0 5px rgba(249,115,22,0.15);

}

/* =========================================
   BUTTONS
========================================= */

.acoes{

    margin-top:30px;

    display:flex;

    gap:15px;

    flex-wrap:wrap;

}

button{

    border:none;

    cursor:pointer;

    transition:0.3s;

}

.btn-calcular{

    flex:1;

    background:
    linear-gradient(
        135deg,
        #f97316,
        #ea580c
    );

    color:white;

    padding:18px;

    border-radius:16px;

    font-size:1rem;

    font-weight:600;

    box-shadow:
    0 10px 25px rgba(249,115,22,0.35);

}

.btn-calcular:hover{

    transform:translateY(-3px);

}

.btn-pdf{

    background:#111827;

    color:white;

    padding:18px 28px;

    border-radius:16px;

    font-size:1rem;

    font-weight:600;

}

.btn-pdf:hover{

    background:#1f2937;

}

/* =========================================
   RESULTADOS
========================================= */

.cards-container{

    margin-top:35px;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:25px;

}

.resultado-card{

    background:white;

    border-radius:24px;

    padding:25px;

    box-shadow:
    0 10px 35px rgba(0,0,0,0.08);

    transition:0.3s;

    border-top:6px solid #f97316;

}

.resultado-card:hover{

    transform:
    translateY(-5px);

}

.resultado-topo{

    margin-bottom:20px;

}

.resultado-topo h3{

    font-size:1.4rem;

    color:#111827;

}

.destaque{

    border-top:6px solid #22c55e;

}

/* =========================================
   STATUS
========================================= */

.status{

    display:inline-block;

    margin-top:20px;

    padding:12px 18px;

    border-radius:12px;

    font-weight:600;

}

.sucesso{

    background:#dcfce7;

    color:#166534;

}

.erro{

    background:#fee2e2;

    color:#991b1b;

}

/* =========================================
   BARRAS
========================================= */

.grafico-container{

    margin-top:20px;

}

.label-grafico{

    display:flex;

    justify-content:space-between;

    margin-bottom:6px;

    font-size:0.9rem;

    font-weight:600;

}

.barra-bg{

    width:100%;

    height:14px;

    background:#e5e7eb;

    border-radius:999px;

    overflow:hidden;

    margin-bottom:18px;

}

.barra-fill{

    height:100%;

    width:0%;

    border-radius:999px;

    transition:1s ease;

}

/* =========================================
   MODAL
========================================= */

.modal-overlay{

    position:fixed;

    inset:0;

    background:
    rgba(0,0,0,0.7);

    display:none;

    align-items:center;

    justify-content:center;

    z-index:9999;

    padding:20px;

    backdrop-filter:blur(6px);

}

.modal-box{

    background:white;

    width:100%;

    max-width:550px;

    border-radius:24px;

    overflow:hidden;

    animation:fadeUp 0.4s ease;

}

.modal-header{

    background:#111827;

    color:white;

    padding:22px 25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.modal-header h2{

    font-size:1.3rem;

}

.fechar-modal{

    background:none;

    border:none;

    color:white;

    font-size:2rem;

    cursor:pointer;

}

.modal-body{

    padding:30px;

}

.campo-form{

    margin-bottom:20px;

}

.campo-form label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

}

.btn-gerar-pdf{

    width:100%;

    background:
    linear-gradient(
        135deg,
        #f97316,
        #ea580c
    );

    color:white;

    padding:18px;

    border-radius:16px;

    font-size:1rem;

    font-weight:700;

}

/* =========================================
   WHATSAPP
========================================= */

.whatsapp{

    position:fixed;

    right:25px;

    bottom:25px;

    width:65px;

    height:65px;

    background:#22c55e;

    color:white;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    font-size:2rem;

    z-index:999;

    box-shadow:
    0 10px 25px rgba(34,197,94,0.35);

}

/* =========================================
   FOOTER
========================================= */

.footer{

    margin-top:60px;

    background:#111827;

    color:white;

    text-align:center;

    padding:30px 20px;

}

/* =========================================
   ANIMAÇÕES
========================================= */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:
        translateY(20px);

    }

    to{

        opacity:1;

        transform:
        translateY(0);

    }

}

/* =========================================
   RESPONSIVO
========================================= */

@media(max-width:768px){

    .topo{

        padding:50px 20px;

    }

    .header-content{

        flex-direction:column;

        text-align:center;

    }

    .titulo-area h1{

        font-size:2rem;

    }

    .card-form{

        padding:20px;

        margin-top:-40px;

    }

    .acoes{

        flex-direction:column;

    }

    .btn-calcular,
    .btn-pdf{

        width:100%;

    }

    .modal-body{

        padding:20px;

    }

}
/* =========================================
   NÃO MOSTRAR MODAL NO PDF
========================================= */

@media print {

    .modal-overlay,
    .whatsapp,
    .btn-pdf,
    .btn-calcular {

        display:none !important;

    }

}
/* =========================================
   PDF EXECUTIVO
========================================= */

/* =========================================
   PDF EXECUTIVO COMPACTO
========================================= */

.pdf-container{

    display:none;

    background:white;

    width:1120px;

    padding:18px;

    color:#111827;

    font-family:'Poppins',sans-serif;

}

.pdf-header{

    display:flex;

    align-items:center;

    gap:20px;

    border-bottom:2px solid #f97316;

    padding-bottom:12px;

    margin-bottom:15px;

}

.pdf-header img{

    width:130px;

    height:auto;

    flex-shrink:0;

}

.pdf-header h2{

    margin:0;

    font-size:1rem;

    line-height:1.2;

    color:#111827;

}

.pdf-header p{

    margin:0;

    font-size:0.70rem;

    line-height:1.2;

    color:#6b7280;

}

.pdf-header .pdf-titulos{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:flex-start;

    gap:4px;

    width:100%;

}

.pdf-cliente{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:10px;

    margin-bottom:15px;

    background:#f9fafb;

    padding:12px;

    border-radius:10px;

    font-size:0.72rem;

}

.pdf-cliente div{

    display:flex;

    flex-direction:column;

    gap:2px;

    line-height:1.3;

}

.pdf-data{

    margin-bottom:12px;

    font-size:0.72rem;

}

.pdf-resultados{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:12px;

    width:100%;

}

.pdf-card{

    border:1px solid #d1d5db;

    border-radius:10px;

    padding:8px;

    background:white;

    font-size:0.68rem;

    overflow:hidden;

    min-height:220px;

}

.pdf-card h3{

    font-size:0.85rem;

    margin-bottom:5px;

    color:#111827;

}

.pdf-card p{

    margin-bottom:3px;

    line-height:1.2;

}

.pdf-card hr{

    margin:8px 0 !important;

}

.pdf-card .label-grafico{

    font-size:0.62rem;

}

.pdf-card .barra-bg{

    height:6px;

    margin-bottom:5px;

}

.pdf-card .status{

    margin-top:8px;

    padding:4px;

    border-radius:6px;

    font-size:0.60rem;

    text-align:center;

}

.pdf-card ul{

    padding-left:15px;

}

.pdf-card li{

    margin-bottom:3px;

}

.pdf-card strong{

    font-weight:600;

}

.pdf-erro{

    background:#fee2e2;

    color:#991b1b;

}

/* =========================================
   CORREÇÃO FINAL HTML2PDF
========================================= */

#pdfContent *{

    box-sizing:border-box;

    line-height:1.4 !important;

    letter-spacing:0 !important;

    word-break:normal;

    overflow-wrap:break-word;

}

/* =========================================
   TÍTULOS
========================================= */

.pdf-header h2{

    display:block !important;

    white-space:normal !important;

    line-height:1.3 !important;

    font-size:1rem !important;

    font-weight:700;

}

.pdf-header p{

    display:block !important;

    white-space:normal !important;

    line-height:1.4 !important;

    font-size:0.72rem !important;

}

/* =========================================
   CARDS
========================================= */

.pdf-card{

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

}

.pdf-card *{

    position:relative !important;

    line-height:1.45 !important;

}

/* =========================================
   TEXTO DOS CARDS
========================================= */

.pdf-card p,
.pdf-card li,
.pdf-card span,
.pdf-card strong{

    font-size:0.70rem !important;

    line-height:1.45 !important;

}

/* =========================================
   STATUS
========================================= */

.pdf-card .status{

    margin-top:auto;

    line-height:1.3 !important;

}

/* =========================================
   EVITAR QUEBRA PDF
========================================= */

.pdf-card{

    page-break-inside:avoid !important;

    break-inside:avoid !important;

}

.pdf-resultados{

    page-break-inside:avoid !important;

}

/* =========================================
   QUALIDADE DE FONTE PDF
========================================= */

#pdfContent{

    -webkit-font-smoothing:antialiased;

    text-rendering:optimizeLegibility;

    font-smooth:always;

}

#pdfContent *{

    -webkit-font-smoothing:antialiased;

    text-rendering:optimizeLegibility;

}

/* =========================================
   MODAL
========================================= */

.modal-overlay{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.65);

    display:none;

    align-items:center;

    justify-content:center;

    z-index:9999;

    padding:20px;

}

.modal-box{

    background:white;

    width:100%;

    max-width:500px;

    border-radius:18px;

    padding:30px;

    position:relative;

    animation:fadeModal .3s ease;

}

@keyframes fadeModal{

    from{

        opacity:0;
        transform:translateY(20px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

.modal-box h2{

    margin-bottom:10px;

    color:#111827;

}

.modal-box p{

    margin-bottom:20px;

    color:#6b7280;

}

.campo-modal{

    margin-bottom:15px;

}

.campo-modal label{

    display:block;

    margin-bottom:5px;

    font-weight:600;

}

.campo-modal input{

    width:100%;

    padding:12px;

    border:1px solid #d1d5db;

    border-radius:10px;

    font-size:14px;

}

.btn-gerar-pdf{

    width:100%;

    border:none;

    background:#f97316;

    color:white;

    padding:14px;

    border-radius:12px;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:0.3s;

}

.btn-gerar-pdf:hover{

    background:#ea580c;

}

.fechar-modal{

    position:absolute;

    top:15px;
    right:15px;

    background:none;

    border:none;

    font-size:24px;

    cursor:pointer;

}