/* ############ index de conteudos ################## */

    /* html, body, ::root, variaveis de cores */
    /* bg image         - estilo da imagem de fundo */
    /* titulo           - */
    /* inputs           - labels, inputs, selects */
    /* botoes           - botoes, input[type="submit"] */
    /* mensagens        - mensagens de erro e sucesso apos submissao dos formularios */
    /* tabelas          - tabelas das paginas relatorio */
    /* containers       - containers de formulario, grid-container */
    /* paginacao        -                     */
    /* responsividade   - media queries */
:root {
    --primary-color: #6cae9a; /* Cor primária */
    --secondary-color: #d7d7d7; /* Cor secundária */
    --background-color: #d6e0e6; /* Fundo claro */
    --background-color-card-auth-white: rgba(235, 242, 250, 0.8); /* Fundo card autenticação branco  */
    --background-color-card-green: rgba(108, 174, 154, 0.9); /* Fundo card autenticação verde */
    --background-color-plan-card: #FFFFFF; /* Fundo Branco card de planos */
    --background-color-plan-card-selected: #DCDCDC; /* Fundo do card quando estiver selecionado*/
    --text-color: #212427; /* Texto escuro no light mode */
    --text-color-white-01: #FFFFFF;
    --text-color-gray-01: #7F7F7F;
    --border-color: #212427; /* Borda no light mode */
    --warning-color: #f5a623; /* Cor de alerta */
    --danger-color: #e6693e; /* Cor de erro */
    --success-color: #6cae9a; /* Cor de sucesso */
    --info-color: #4599ed; /* Cor de informação */ 
    }
    
    [data-thema='dark']{
    --primary-color: #519480; /* Cor primária */
    --secondary-color: #292929; /* Cor secundária escura */
    --background-color: #192329; /* Fundo escuro */
    --text-color: #d6d9db; /* Texto claro no dark mode */
    --border-color: #f0f0f0; /* Borda no dark mode */
    --warning-color: #f5a623; /* Cor de alerta */
    --danger-color: #e6693e; /* Cor de erro */
    --success-color: #6cae9a; /* Cor de sucesso */
    --info-color: #1266ba; /* Cor de informação */
    --bs-table-bg: unset;
    }

    .table thead {
        --bs-table-bg: unset !important;  /* Replace 'red' with your color */
    }
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
}

html, body {
    height: 100%;
    width: 100vw;
    margin: 0;
    overflow: hidden;
    font-family: "Work Sans", sans-serif !important; 
    /* color: white !important;  */
}



/* bg image */
.bg-img {
    min-height: 100%;
    min-width: 1024px;     
    width: 100vw;
    height: auto;   
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* titulo */
.title {
    font-size: 24px;
    font-family: Work Sans, sans-serif;
    margin: 10px auto 30px;
}

/* inputs */
/* label {
    font-size: 13px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    text-align: left;
} */

.inputs {
    width: 80%;
    height: 49px;
    padding: 10px 20px;
    margin: 0 auto;
    border: 2px solid var(--verde-ii);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.0); 
    font-size: 14px;
    font-weight: 400;  
    /* color: white; */
}
.inputs-container {
    display: flex;
    flex-direction: column;
}
/* cor do input quando autofill e selecionado */
input:-webkit-autofill {
    -webkit-text-fill-color: rgb(0, 0, 0) !important;
    -webkit-background-clip: text;
}

/* estilo do calendario do input[type="date"] */
::-webkit-calendar-picker-indicator {
    background-color: #ffffff;
    color: #ffffff;
    padding: 5px;
    cursor: pointer;
    border-radius: 3px;
}

/* select {
    width: 80%;
    height: 49px;
    padding: 10px 20px;
    margin: 0px auto;
    background-color: #04330F;
    border: 2px solid var(--verde-ii);
    border-radius: 10px;
    color: white;
}
 
select > option {
    background-color: #04330F;;
} */

/* botoes */
/* button, input[type="submit"] {
    height: 49px;
    padding: 8px 22px;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    background: var(--verde-ii);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    color: white;
    font-size: 15px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
                0px 2px 2px 0px rgba(0, 0, 0, 0.14),
                0px 1px 5px 0px rgba(0, 0, 0, 0.12);
} */

.delete-btn {
    /* width: 90%; */
    display: none;
    /* margin-top: 10px !important; */
    background-color: #C82333 !important;
}
.btn-90 {
    width: 90%;
}

.btn-80 {
    width: 80%;
}

.btn-span {
    grid-column: 1 / span 2;
}
/* mensagens de sucesso e erro */
.message {
    display: flex;
    flex: 0 0 auto; /* Prevent items from stretching */
    justify-content: space-between;
    align-items: center;
    width: 45vw;
    background: var(--verde-i);
    border-radius: 5px;
    padding: 5px 10px;
    margin: 20px auto; 
}

/* tabelas */
/* table {
    width: 90%;
    margin: auto !important;
    border-collapse: collapse !important;
    color: white !important;
    
} */

.mytable {
    /* margin-top: 5vh !important;  */
}

caption {
    caption-side: top !important;
    font-size: 21px !important;
    font-weight: bold !important;
    padding: 5vh 0px 20px ;
    color: white !important;
}

/* td{
    padding: 21px 5px;
    border-bottom: 1px solid rgb(255, 255, 255) !important;
    font-size: 14px;
    height: 100%;
    vertical-align: top; 
} */

/* th{
    text-align: left;
    padding: 21px 0px;
} */

.table-container {
    height: fit-content;
}
/* containers */
.form-container {
    width: 80vw;
    height: auto;
    margin: auto;
    padding: 10px 20px 50px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    column-gap: 10px;
    /* background: rgba(0, 0, 0, .2); */
}

.form-container-one-col {
    width: 30vw !important;
}

/* grid com duas colunas */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 10px;
    width: 100%;
}

/* paginacao */
.pagination .step-links {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    /* background: #888; */
    background: linear-gradient(180deg, #2C2E2F 0%, #404142 100%); /*Default dot color*/
    border-radius: 50%;
    margin: 0 3px;
    text-decoration: none;
}

.pagination .dot:hover {
    background: linear-gradient(180deg, #56595c 0%, #5d5d60 100%);; /* Hover color */
}

.pagination .dot.active {
    background: linear-gradient(180deg, #B7DD18 0%, #4B9800 100%); /* Active dot color */
}

.pagination a {
    color: #B7DD18;
    text-decoration: none;
}

.pagination a:hover {
    text-decoration: underline;
}

/* estilo para form as paragraf */
form p {
    width: 100%;
    height: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: 0 0 5px;
}

form p label {
    display: inline-block;
    width: 100%;
    text-align: left;
}

/* estilo para formularios com numero impar de inputs com duas colunas */
/* ultimo elemento ocupa as duas colunas e o input tem width 90% */
.form-odd p:last-of-type {
    width: 100%;
    grid-column: 1 / span 2; 
}

.form-odd p:last-of-type input{
    width: 90%;    
}

/* botao */
/* .form-odd > :last-child {
    width: 90%;
    grid-column: 1 / span 2;
} */

/* responsividade */
@media screen and (max-width: 900px) {

    body {
        overflow-y: hidden;
        overflow-x: hidden;
    }

    /* .nav {
        width: 100vw !important;
        height: 100vh;
        display: none;
        float: right;
        position: absolute;
        z-index: 1;
        text-align: center;
        grid-row: 2;
    } */

    form {
        display: flex;
        flex-direction: column;
    }

    .form-odd p:last-of-type {
        width: 100%;
    }
    
    .form-odd p:last-of-type input{
        width: 80%;    
    }
    
    /* botao */
    .form-odd > :last-child {
        width: 80%;
    }

    .btn-pilot {
        width: 80%;
    }

    label {
        padding: 0px 0px 5px 60px;
    } 
    
    .main-block {
        width: 100vw;
        grid-column: 1/ span 2;
    }
    .form-container {
        width: 60vw;
        margin: 3vh auto;
        padding-bottom: 30px;
    }
    .form-container-one-col {
        width: 60vw !important;
    }
    .grid-container {
        display: flex;
        flex-direction: column;
    }
    .mytable{
        width: 100%;
    }
    .mytable th, .mytable td {
        padding: 8px 12px;
    }
    .mytable caption {
        padding: 5vh 12px 20px !important;
        text-align: left;
    }
} 

@media screen and (max-width: 700px) {
    body {
        overflow-y: hidden;
        overflow-x: hidden;
    }
    
    /* .nav {
        width: 100vw !important;
        height: 100vh;
        display: none;
        float: right;
        position: absolute;
        z-index: 1;
        text-align: center;
    } */

    form {
        display: flex;
        flex-direction: column;
    }

    .btn-pilot {
        width: 80%;
    }

    label {
        padding-left: 50px;
    }
    .form-container {
        width: 80vw;
    }
    .form-container-one-col {
        width: 80vw !important;
    }
    .message {
        width: 80vw;
    }
}


/*  */
.btn-green {
    background-color: rgba(108, 174, 154, 1) !important;
    color: white !important;
} 

.btn-container {
    grid-column: 1/ span 3;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.container-cadastro {
    width: 100%;
    height: 100vh;
    background: #D5DFE5;
}

.container-inner {
    margin: auto auto;
    width: 95%;
    height: 95%;
    overflow-y: auto;
    background: #ffffff;
}
.container-inner-tabelas{
    background: var(--background-color) !important;   
}

/* override bootstrap thead color */
.table thead {
    background-color: var(--primary-color);
    
}
.table thead th {
    background-color: var(--primary-color);
    color: var(--text-color-white-01)
}
.title {
    color: var(--text-color)
}

/* sidebar */
.sidebar {
    height: 100vh;
    width: 230px;
    background-color: #ffffff;
    padding-top: 20px;
    transition: width 0.3s ease-in-out;
    overflow-x: hidden;
    overflow: visible;
    color: var(--text-color);
}
.sidebar.collapsed {
    width: 110px;
}
.sidebar .nav-link {
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.sidebar.collapsed .nav-link span {
    display: none;
}
.sidebar.collapsed .menu-user .fa-solid.fa-gear,
.sidebar.collapsed .menu-user .userinfo {
    display: none;
}
.sidebar.collapsed .nav-link {
    justify-content: center;
}
.sidebar .nav-link:hover {
    background-color: #6CAE9A;
    color: var(--text-color);
}
.sidebar .custom-btn {    
    /* bottom: 20px; */
    /* left: 50%;
    transform: translateX(-50%); */
    /* width: 80%; */
    background-color: #6CAE9A;
    border-color: transparent;
    width: 30px;
    height: 30px;
    transition: width 0.3s ease-in-out;
    color: white;
    
}
.sidebar.collapsed .custom-btn {
    /* width: 50px;
    padding: 5px; */
}
.sidebar.collapsed .custom-btn span {
    display: none;
}
.content {
    margin-left: 260px;
    transition: margin-left 0.3s ease-in-out;
}
.sidebar.collapsed + .content {
    margin-left: 90px;
}

.menu-h {
    min-height: 50%;
}
.nav-link.active {
    color: #ff5733; /* Change to your desired color */
    background-color: transparent; /* Remove background color change */
  }

  /* Optionally, you can also change the hover state for nav links */
.nav-link:focus,  .nav-link:hover {
    color: var(--text-color) !important; /* Change hover color */
}


#map {
    width: 100%;
    height: 500px;
    flex-grow: 1;
    min-width: 0; 
    max-width: 100%;
}
.map {
    width: 100%;
    height: 500px;
    flex-grow: 1;
    min-width: 0; 
    max-width: 100%;
}
#map-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    font-size: 14px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
  
}
   