:root {
    --primary-color: #0046ff;
}


/* ====== RESET ESSENCIAL PARA TABLETS ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

h1 {
    font-size: 36px;
}

p {
    font-size: 16px;
    font-weight: 500;
    color: #152328;
}

body .ui-widget{
    font-family: 'Poppins', sans-serif;
}

.wrapper {
    height: 200vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.main-content {
    flex: 1;

}

.ui-float-label{
    min-width: 100%;
}

body .ui-float-label > label.fixedLabel{
    font-size: 12px;
    top: 1em;
    margin-left: 12px;
}

body .ui-fileupload .ui-fileupload-content {
    border: none;
    padding: 0;
}

body .ui-widget+.ui-message {
    margin: 0 0 0 0;
}

.ui-message.ui-message-info,
.ui-message.ui-message-warn,
.ui-message.ui-message-error,
.ui-message.ui-message-fatal {
    display: block;
    margin: 0 0;
}

.ui-message {
    display: none; /* Oculta mensagens vazias */
}

/*
 -----------------------------------------------
 ------------ CONTEÚDO DA PÁGINA -------------------------
 -----------------------------------------------*/


.content-container{
    /*    min-height: 100vh;*/
    position: relative;
    width: 100% !important;
    /*    height: 100vh;*/
}

/*Header sobreposto que cobre toda a largura*/
.header {
    padding: 20px 40px !important;
    z-index: 2;
    position: fixed;
    width: 100%;
    background-color: var(--primary-color);

}

.green {
    background-image: url(../images/greenflag.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 24px;
    height: 20px;
    margin-left: -20px !important;
}



body .ui-float-label>label{
    font-size: 14px;
}


.ui-inputfield:focus::placeholder {
    color: #A0A0A0;
    font-size: 12px;
}



.dataTableResults .ui-datatable-header {
    padding: 5px 10px !important;
    height: 35px !important;
}


.dataTableResults .ui-datatable thead th {
    background-color: #F3F6F7;
    border:1px solid #FFFFFF;
    padding: 6px;
}

.dataTableResults .ui-datatable .ui-datatable-header{
    border: none !important ;
    justify-content: space-between;
    display: flex;
    font-family: 'Dosis' !important;
    font-size: 16px !important;
    opacity: 1;
    letter-spacing: 0px;
    color: #00729A !important;
}

.dataTableResults .ui-datatable thead th .ui-column-title{
    font-weight: 600;
    font-size: 0.92em;
}

.dataTableResults .ui-sortable-column-icon.ui-icon.ui-icon-carat-2-n-s {
    background-image: none !important;
}


body .ui-inputfield {
    border: 1px solid #0A23F0;
    border-radius: 7px;
    padding: 13px 13px;
    max-width: 100%;
    min-width: 70%;
    max-height: 50px;
    min-height: auto;
}

body .ui-inputfield.ui-state-focus {
    border-color: #0A23F0;
    outline: 0 none;
    box-shadow: none;
    border-width: 2px;
}

body .ui-chkbox .ui-chkbox-box.ui-state-focus{
    border-color: #0A23F0;
    outline: 0 none;
    box-shadow: 0 0 5px 0em #0A23F0;
}

body .ui-selectonemenu {
    width: 100%;
    border: 2px solid rgba(10,35,240,0.3);
    border-radius: 7px;
    max-height: 50px;
}

body .ui-selectonemenu.ui-state-focus {
    box-shadow: none;
    border: 2px solid rgba(10,35,240,1);
}


.ui-selectonemenu-trigger.ui-state-default.ui-corner-right {
    background: white;
    border-radius: 7px;
    width: 25px;
}

.ui-g-1, .ui-g-2, .ui-g-3, .ui-g-4, .ui-g-5, .ui-g-6, .ui-g-7, .ui-g-8, .ui-g-9, .ui-g-10, .ui-g-11, .ui-g-12{
    padding: 0.6rem !important;
}


/* Logotipo Caravela*/
.logo {
    background-image: url('../images/logo_white.svg');

    background-repeat: no-repeat;
    background-size: contain;
    width: 150px;
    height: 40px;

}

.header-text{
    color: white;
    font-size: 50px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -40%);
    width: 100%;
    text-align: center;
}

/* Logotipo Protocolo*/
.logo-right {
    background-repeat: no-repeat;
    background-size: contain;
    width: 150px;
    height: 40px;
}


.form-container input,
.form-container input:focus,
.form-container input:active {
    padding: 16px;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    outline: none !important;
    border: 1px solid #F4F6F7 !important;
    line-height: 55px !important;
    border: 1px solid rgba(10, 35, 240, 0.3) !important;
    box-shadow: none !important;
}


/*  anexar file*/
.cardForm .ui-fileupload .ui-fileupload-buttonbar {
    border: none;
    background: unset;
    border-image: unset;
    padding: 0.4rem;
}

/* botão download */
.btnTableDownload {
    min-width: 32px !important;
    background-image: url(../images/ic_download.svg) !important;
    padding: 0px 8px 1px 7px;
    background-position: bottom;
    background-size: 15px;
    background-repeat: no-repeat;
}

.form-container .checkText {
    font-size: 13px !important;
    margin-left: 25px;
    display: flex;
}

.form-container .footerText {
    margin-top: 10px;
    display: flex;
    padding-left:4px;
    margin-right: 20px;
}

.form-container .selectOne {
    width: 90% !important;
    margin-right: 60px;
    font-size: 14px !important;
    margin-bottom: 10px;
}

.form-container .selectOneRight {
    width: 90% !important;
    margin-right: 60px;
    font-size: 14px !important;
    margin-bottom: 10px;
}


.form-container .ui-panelgrid-cell.ui-g-12.ui-md-12 {
    margin: 0 !important;
    padding-left: 0 !important;
}


.form-container{
    .formInput100 {
        margin-right: 60px;
        font-size: 14px !important;

        .ui-panelgrid-cell ui-g-12 ui-md-12{
            margin: 0px !important;
            padding-left: 0px;
        }
    }

    .ui-panel .ui-panel-content {
        border: none;
        padding: 0px !important;

    }

    .ui-panelgrid-cell .ui-grid-col-6{
        padding: 0.6rem !important;

    }

    .ui-message{
        padding: 0 0;
        display: flex;
        width: 80%;
        background: none !important;
        margin-left: 0.5rem;
    }
}

.ui-message-error-icon{
    display: none;
}


.textoForm{
    font-size: 16px !important;
    text-align: justify;
    display: inline-block;
    margin-left:10px;
}


.btn-submit {
    background: #C4C6CA !important;
    background-color: #00C800 !important;
    color: white !important;
    border-radius: 35px !important;
    border: none !important;
    border-color: #00C800 !important;
    min-width: 240px;
    min-height: 50px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 18px !important;
}

.btnTrash {
    background: url(../images/trash.svg) center no-repeat !important;
    padding: 10px 20px 12px 0px;
}


.btn-submit:hover {
    background-color: #00C800 !important;
    border-color: #00C800 !important;
}

.btn-submit.ui-state-disabled{
    background: #C4C6CA !important;
}


.footer{
    color: #494A4A;
    text-align: center;
}

body .ui-chkbox .ui-chkbox-box{
    transition: background-color 0.1s,color .1s,border-color .1s,box-shadow .1s,opacity .1s;
}

.ui-selectonemenu-panel .ui-selectonemenu-item{
    font-size: 13px;
    padding: 8px 8px !important;
}

.dataSelecao .ui-inputfield {
    font-size: 14px;
    min-width: 100%;
    max-width: 100%;
}

.dataSelecao .ui-inputfield.ui-state-hover {
    border: 2px solid #0A23F0;

}

.inputSelecaoVeiculo {
    font-size: 14px !important;
    min-width: 100%;
}


body .ui-inputfield.ui-state-hover {
    border: 2px solid rgba(10,35,240,1);
    max-width: 100%;
}


body .ui-datepicker {
    font-size: 14px !important;
    padding: 0;
    font-weight: normal !important;
}

body .ui-datepicker .ui-datepicker-header {
    padding: 10px;
}

body .ui-datepicker .ui-datepicker-calendar th {
    padding: 3px;
}

body .ui-datepicker .ui-datepicker-calendar td {
    padding: 0px;
}

body .ui-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day>a.ui-state-active {
    background: #1827E6;
    color: white;
}

body .ui-datepicker .ui-datepicker-calendar td>a.ui-state-active{
    background: #1827E6;
    color: white;
}

body .ui-datepicker .ui-datepicker-calendar td.ui-datepicker-today>a{
    background: rgba(0, 0, 0, 0);
    font-weight: 600;
    border: 1px solid #495057;
    line-height: 22px;
    color: #495057;
}

body .ui-datepicker .ui-datepicker-calendar td.ui-datepicker-today>a:hover{
    background: inherit;
    border-color: inherit;
}


body .ui-datepicker .ui-datepicker-calendar td>a:hover {
    background: #e9ecef;
    border-color: rgba(0, 0, 0, 0);
    font-weight: bold;
    color: #1827E6;
    color: rgba(10, 35, 240, 0.9);
}

body .ui-datepicker .ui-datepicker-calendar td>a {
    width: 25px;
    height: 25px;
    line-height: 25px;
}

body .ui-datepicker.ui-input-overlay{
    background: #fff;
    border: 2px solid rgba(10, 35, 240, 1);
    box-shadow: none;
    border-radius: 7px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-top: 2px solid rgba(10, 35, 240, 0.3);
    min-width: 300px !important;
}

body .ui-datepicker .ui-datepicker-title select {
    width: 40%;
    margin: 0;
    text-align: center;
    border: none;
    font-weight: 600;
}

body .ui-datepicker .ui-datepicker-calendar td.ui-datepicker-today>a{
    background: rgba(0, 0, 0, 0);
    font-weight: 600;
    border: 1px solid #495057;
    line-height: 22px;
    color: #495057;
}

body .ui-datepicker .ui-datepicker-calendar td.ui-datepicker-today>a:hover {
    background: inherit;
    border-color: inherit;
}

body .ui-datepicker .ui-datepicker-next:hover{
    background: none;
}


/*-----------------------------------------------
---------------------LOADING---------------------
-----------------------------------------------*/

.homePageLoadingInfo{
    display:none;
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background: rgb(241, 241, 241, 0.5) !important;
}
.homePageLoadingInfo.display{
    display: block;
}
.homePageLoadingInfo.none{
    display: none !important;
}
.homePageLoadingInfo>div{
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(206.57deg, rgba(121,197,223,0.3) 0%, rgba(121,197,223,0) 100%), linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0) 100%);
}
.homePageLoadingInfo .loading-info{
    top: 50% !important;
    left: 50%;
    text-align: center;
    cursor: wait;
    position: absolute;
    transform: translate(-50%, -50%);
}


@media (max-width:550px){
    .background-container {
        background-color: white;

    }

    body .ui-selectonemenu {
        width: 90% !important;
    }

    .logo{
        position: unset;
    }

    .header {

        padding: 10px 15px;
    }

    .cardForm select, .cardForm textarea {
        width: 100% !important;
    }

    .cardForm {
        margin-top: 2em !important;
    }

}

@media (max-width: 768px) {
    .bg-40-fixed {
        height: 20vh;
    }

    .wrapper {
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }

    .main-content {
        flex: 1;
    }

    .footer {
        padding: 10px;
        text-align: center;
    }

    .ui-g-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .content-container{
        box-shadow: none;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .background-container {
        background-size: contain;
    }

    .cardForm {
        box-shadow: none;
        width: 90%;
        max-width: 400px;
        min-width: unset;
        margin: 6em auto !important; /* centraliza horizontalmente */
    }

    /* seletor selectOne fora do cardForm */
    .cardForm .selectOne {
        width: 90% !important;
    }

    .cardForm .selectOneRight {
        width: 90% !important;
        margin-right: 40px;
    }

    .cardForm .formInput100 {
        margin-right: 40px;
    }

    .cardForm select {
        width: 92% !important;
    }

    .header-text {
        display: none;
    }

    .logo {
        transform: none;
        width: 120px;
        display: block;
        left: 20px;
    }

    .ui-datatable table {
        width: unset;
    }

    .ui-panelgrid .ui-grid-responsive .ui-grid-row {
        border-top: 0px solid #bcc7cf;
    }

    body .ui-panelgrid .ui-panelgrid-cell {
        padding: 0.4rem;
    }

    .footer1 {
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .columnFooter{
        justify-content: center;
    }

    .textFooter2{
        width: 100% !important;
    }

}

/* tablets maiores / laptops pequenos (769px-975px) */
@media (min-width: 769px) and (max-width: 975px) {
    .cardForm {
        width: 70%;
        max-width: 600px;
        margin: 6em auto;
    }
}

@media (min-width:769px){
    .wrapper {
        min-height: 100vh;
        height: 170vh;
    }

    .background-container{
        height: 40vh;
    }

    .header-text {
        left: 32%;
        width: 80%;
        top:20%;
    }


}

/* desktops médios 976px - 1800px */
@media (min-width: 976px) and (max-width: 1799px) {
    .cardForm {
        position: relative;
        z-index: 2;      /* fica acima do fundo e do header, se quiser */
        margin: 25vh auto 0 auto; /* empurra o card para baixo sem cobrir header */
        width: 60rem;
        max-width: 90%;
    }

    .header-text {
        position: absolute;  /* mantém no meio */
        top: 20%;             /* ajuste da altura vertical */
        width: 100%;
        z-index: 1;           /* garante que fique atrás do card? ou acima */
    }
}

@media (min-width:1799px){

    .cardForm {
        margin-top: 16em !important;

    }

    .ui-panel .ui-panel-titlebar {
        font-size: 2rem;
    }

    .header-text {
        left: 32%;
        width: 80%;
        top:20%;
    }

}

@media (min-width:1800px){

    .form-container .selectOneRight {
        width: 84% !important;
    }

    .footer {
        padding-top:100vh;
        text-align: center;
    }

    .header-text {
        font-size: 64px;
        left: 26%;
        top: calc(20% - 110px);
        width: 80%;
        transform: translateX(-50%);
    }

    .form-container textarea {
        box-sizing: unset !important;
        width: 96% !important;
    }
}

/*TESTE*/
.navbar {
    background-color: var(--primary-color);
    color: #fff;
    height: 70px;
}

.navbar ul {
    display: flex;
}

.navbar .flex {
    justify-content: space-between;
}

/* Showcase */
.showcase {
    height: 900px;
}


.showcase p {
    margin: 20px 0;
}

.showcase .grid {
    overflow: visible;
    grid-template-columns: 55% auto;
    gap: 30px;
}

.showcase-text {
    animation: slideInFromLeft 1s ease-in;
}

.showcase-form {
    position: relative;
    top: 60px;
    height: 350px;
    width: 400px;
    padding: 40px;
    z-index: 100;
    justify-self: flex-end;
    animation: slideInFromRight 1s ease-in;
}

.showcase-form .form-control {
    margin: 30px 0;
}

.showcase-form input[type='text'],
.showcase-form input[type='email'] {
    border: 0;
    border-bottom: 1px solid #b4becb;
    width: 100%;
    padding: 3px;
    font-size: 16px;
}

.showcase-form input:focus {
    outline: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.container {
    /*    max-width: 1100px;*/
    margin: 0 auto;
    overflow: auto;
    padding: 0 40px;
}

.py-5 {
    padding: 4rem 0;
}

.cardForm{
    margin-top: 20em;
    width: 60rem;
    margin-bottom: 2em;
    justify-self: center;
    justify-items: center;
    border-radius: 18px !important;
    box-shadow: 0px 3px 6px #00000029 !important;

}

.cardForm textarea{
    max-height: 100px !important;
    height: 100px !important;
}

body .ui-card .ui-card-body {
    padding: 1rem;
    width: 90%;
}

.bg-40-fixed {
    display: inline-block;
    width: 100%;
    height: 50vh;
    /*background-image: url(../images/FormularioContacto_.webp);*/
    background-color: var(--primary-color);
    opacity: 1;

}

@-moz-document url-prefix() {
    .bg-40-fixed {
        display: grid;
        background: linear-gradient(to bottom, var(--primary-color) 50%, transparent 50%);
        height: unset;
        /*        //necessário p footer descer*/
    }

    .cardForm {
        display: grid;
    }
}

.tableFiles{
    width: 98%;
    font-size: 0.8rem;
}

.cardForm .ui-panelgrid .ui-panelgrid-cell {
    padding: 0.5rem;
}

.footerImg {
    margin-right: 6px;
    background-size: contain;
    width: 150px;
    height: 40px;
    background-image: url('../images/logo.png');
}

.footer2{
    text-align: center;
    background-color: #143F47;
    padding: 1rem 0 2rem 0;
    color: white;
}

.footer1{

    background-color:#F3F6F7;
    padding: 2rem 3rem 1rem 3rem;
    display: flex ;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 5rem;
    box-shadow: 0px -2px 6px 0px #00000029 !important;
}

.columnFooter {
    display: flex  ;
    align-items: flex-start;
    flex-direction: row;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    padding-top: 0px;
    justify-content: center;
}
.mg4{
    margin: 8px;
}
.textFooter3{
    font-size: 10px;
    line-height: 14px;
    text-align: justify;
    width: 60%;
    text-transform: uppercase;
}

.textFooter2{
    font-size: 8px;
    line-height: 14px;
    text-align: justify;
    width: 60%;
    text-transform: uppercase;
}

.textFooter02{
    margin-right: 6px;
    align-self: flex-start;
}

.columnFooter2{
    display: flex ;
    align-items: flex-start;
    flex-direction: row;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    padding-top: 0px;
    justify-content: center;
}

/* Mobile: até 768px */
@media (max-width: 768px) {
    .cardForm {
        width: 90%;
        max-width: 400px;
        margin: 6em auto !important; /* centraliza horizontalmente */
        box-shadow: none;
    }

    .cardForm .selectOne,
    .cardForm .selectOneRight {
        width: 90% !important;
        margin-right: 40px;
    }

    .cardForm .formInput100 {
        margin-right: 40px;
    }

    .cardForm select {
        width: 92% !important;
    }

    .header-text {
        display: none;
    }

    .logo {
        width: 120px;
        display: block;
        left: 20px;
        transform: none;
    }

    .ui-g-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .content-container {
        display: flex;
        flex-direction: column;
        position: relative;
        box-shadow: none;
    }

    .background-container {
        background-size: contain;
    }
}

/* Tablets pequenos: 769px - 975px */
@media (min-width: 769px) and (max-width: 975px) {
    .cardForm {
        width: 70%;
        max-width: 600px;
        margin: 0 auto;          /* centraliza horizontalmente */
        margin-top: calc(80px + 2em); /* empurra abaixo do header */
    }

    .header-text {
        top: 8%;
    }
}


@media (min-width: 2560px) {
    .cardForm {
        margin-top: 23rem !important;
    }
}

.calendarInput{
    padding: 4px 0;
    color:#f9fafb;
    text-shadow: none;
    border: 0;
    min-width: 35px;
    min-height: 35px;
    margin-right: 0px !important;
}

body .ui-fluid .ui-trigger-calendar .ui-datepicker-trigger.ui-button {
    height: 50px;
}