@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

body {
    background: rgb(230, 230, 230);
    font-family: "Lato", Helvetica, sans-serif;
    position: relative;
    min-height: 100vh;
}

a {
    color: white;
    text-decoration: none;
}

/* Cores e Fontes */
:root {
    --color-default: #222222;

    --color-primary-blue: rgb(51, 114, 185);
    --color-primary-blue-dark: rgb(35, 50, 106);
    --color-primary-green: rgb(0, 153, 148);
    --color-primary-green-dark: rgb(0, 127, 123);
    --color-light-gray: rgb(245, 245, 245);
    --color-text: rgb(73, 86, 122);

    --color-secondary: white;
    --font-primary: "Arial";
    --font-secondary: "Lato";
}

textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
span {
    color: var(--color-text);
}

textarea {
    color: var(--color-text) !important;
}

textarea {
    font-size: 0.9em;
}

/* -----------------------------------------------------------------
 # Estilo dos elementos do bootstrap
-------------------------------------------------------------------- */
.icon-white {
    color: white !important;
}

.icon-bold {
    -webkit-text-stroke: 1px;
}

.hidden {
    display: none;
}

input[type="checkbox"] {
    accent-color: var(--color-primary-blue) !important;
    width: 1em;
    height: 1em;
}

.form-check-input:checked {
    background-color: var(--color-primary-blue);
    border-color: var(--color-primary-blue);
}

.sorting:after {
    bottom: 1.2em !important;
}

.pagination {
    position: relative;

    button {
        width: 2em;
        height: 2em;
    }

    button.page-link {
        color: var(--color-text) !important;
        transition: none;
        border: none;
    }

    .page-link {
        background-color: whitesmoke;
        color: var(--color-text);

        &:active,
        &:focus {
            color: var(--color-primary-blue);
        }
    }

    .page-item.active .page-link {
        color: var(--color-primary-blue);
        border-color: var(--color-primary-blue);
    }

    button.page-link:hover {
        font-weight: bold;
        border-radius: 3px;
        background-color: lightgray;
    }

    button.page-item.active .page-link {
        /* background-color: var(--color-primary-blue) !important; */
        background-color: white !important;
        border: 1px solid var(--color-primary-blue) !important;
        border-radius: 3px;
    }

    .page-item.active .page-link {
        background-color: white !important;
        border: 1px solid var(--color-primary-blue) !important;
        border-radius: 3px;
    }

    .disabled>button {
        color: gray;
    }
}

/* ---------------------------------------
 # Botões bootstrap
  ---------------------------------------- */
.btn {
    transition: none;
}

/* .btn:not([class*="btn-outline-"]) {
    color: white;
    transition: none;
} */


.btn-primary {
    background: var(--color-primary-blue);
    border: 1px solid var(--color-primary-blue);

    &:hover,
    &:active,
    &:focus {
        background: var(--color-primary-blue-dark);
        border: 1px solid var(--color-primary-blue-dark);
    }
}

.btn-success {
    background: var(--color-primary-green);
    border: 1px solid var(--color-primary-green);

    &:hover,
    &:active,
    &:focus {
        background: var(--color-primary-green-dark);
        border: 1px solid var(--color-primary-green-dark);
    }
}

.nav-link.active {
    color: var(--color-text) !important;
}

.button-link {
    background: none;
    border: none;
    color: var(--color-text);
    margin: 0;
    padding: 0;

    &:hover {
        background: none;
        border: none;
    }
}

.close {
    border: none;
    background-color: rgba(255, 255, 255, 0);
    font-size: 1em;
    font-weight: bold;
}

/* Retira o contorno azul ao clicar em um campo de texto */
*:focus,
*:active {
    outline: none;
    box-shadow: none !important;
}

/* Estilo dos campos de texto */
label,
input,
select,
.button-select {
    color: var(--color-text) !important;
}

select,
.button-select {
    border: 1px solid lightgray !important;
}

input:focus,
select:focus,
.button-select:focus,
textarea:focus {
    border: 1px solid var(--color-text) !important;
}

.border-danger,
.border-danger:focus {
    border: 1px solid red !important;
}

/* border-radius dos elementos */
.btn,
.card {
    border-radius: 4px !important;
}

select,
input,
.button-select {
    border-radius: 2px !important;
}

/* Aparência das tabelas */
thead {
    background-color: var(--color-primary-blue);
    height: 3em;
    border: 2px solid var(--color-primary-blue) !important;

    * {
        color: white;
        font-size: 0.95em;
    }
}

tbody {
    * {
        color: var(--color-text);
        font-size: 0.95em;
    }

    .btn {
        font-size: 0.95em;
    }

    border-top: transparent;
}

table {
    overflow: hidden;
}

/* Previne que os botões saiam do lugar em telas menores */
.action-buttons {
    min-width: 4rem;

    button:not(:last-child) {
        margin-right: 0.5em;
    }
}

.status {
    font-weight: bold;
    padding: 4px;
    border-radius: 4px;
}

/*--------------------------------------------------------------
  # Header
  --------------------------------------------------------------*/

.header {
    transition: all 0.5s;
    z-index: 997;
    height: 90px;
    /* background: #0e4c8c;  */
    background: var(--color-primary-blue);
}

.header.sticked {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 70px;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
}

.header .logo img {
    max-height: 40px;
    margin-right: 6px;
}

.header .logo h1 {
    font-size: 30px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    font-family: var(--font-primary);
}

.sticked-header-offset {
    margin-top: 70px;
}

section {
    scroll-margin-top: 70px;
}

/* -------------------------------------------------------------
 # Navbar
 ---------------------------------------------------------------*/
.navbar a,
.navbar a:focus,
.navbar li {
    color: white;
}

/*--------------------------------------------------------------
  # Desktop Navigation
  --------------------------------------------------------------*/
@media (min-width: 200px) {
    .navbar {
        padding: 0;
    }

    ul {
        list-style: none;
    }

    .navbar ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .navbar li {
        position: relative;
    }

    .navbar>ul>li {
        white-space: nowrap;
        padding: 10px 0 10px 28px;
    }

    .navbar a,
    .navbar a:focus,
    .navbar li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 3px;
        font-family: var(--font-secondary);
        font-size: 16px;
        font-weight: 600;
        /* color: rgba(255, 255, 255, 0.7); */
        white-space: nowrap;
        transition: 0.2s;
        position: relative;
    }

    .navbar a i,
    .navbar a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
    }

    .navbar>ul>li>a:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: -6px;
        left: 0;
        background-color: var(--color-secondary);
        visibility: hidden;
        width: 0px;
        transition: all 0.2s ease-in-out 0s;
    }

    .navbar a:hover:before,
    .navbar li:hover>a:before,
    .navbar .active:before {
        visibility: visible;
        width: 100%;
    }

    .navbar .dropdown ul {
        display: block;
        position: absolute;
        left: 28px;
        top: calc(100% + 30px);
        margin: 0;
        padding: 10px 0;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        background: #fff;
        box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
        transition: 0.3s;
        border-radius: 4px;
    }

    .navbar .dropdown ul li {
        min-width: 200px;
    }

    .navbar .dropdown ul a {
        padding: 10px 20px;
        font-size: 15px;
        text-transform: none;
        font-weight: 600;
        color: #006a5d;
    }

    .navbar .dropdown ul a i {
        font-size: 12px;
    }

    .navbar .dropdown ul a:hover,
    .navbar .dropdown ul .active:hover,
    .navbar .dropdown ul li:hover>a {
        color: var(--color-secondary);
    }

    .navbar .dropdown:hover>ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
    }

    .navbar .dropdown .dropdown ul {
        top: 0;
        left: calc(100% - 30px);
        visibility: hidden;
    }

    .navbar .dropdown .dropdown:hover>ul {
        opacity: 1;
        top: 0;
        left: 100%;
        visibility: visible;
    }
}

@media (min-width: 200px) and (max-width: 1366px) {
    .navbar .dropdown .dropdown ul {
        left: -90%;
    }

    .navbar .dropdown .dropdown:hover>ul {
        left: -100%;
    }
}

@media (min-width: 200px) {

    .mobile-nav-show,
    .mobile-nav-hide {
        display: none;
    }
}

/*--------------------------------------------------------------
  # Footer
 ---------------------------------------------------------------*/
.content-wrap {
    padding-bottom: 70px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70px;
}

/*--------------------------------------------------------------
  # Mobile Navigation
  --------------------------------------------------------------*/

@media (max-width: 200px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        bottom: 0;
        transition: 0.3s;
    }

    .navbar ul {
        position: absolute;
        inset: 0;
        padding: 50px 0 10px 0;
        margin: 0;
        /* background: rgba(0, 131, 116, 0.9); */
        overflow-y: auto;
        transition: 0.3s;
        z-index: -1;
    }

    .navbar a,
    .navbar a:focus {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        font-family: var(--font-primary);
        font-size: 15px;
        font-weight: 600;
        /* color: rgba(255, 255, 255, 0.7); */
        white-space: nowrap;
        transition: 0.3s;
    }

    .navbar a i,
    .navbar a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
    }

    .navbar .getstarted,
    .navbar .getstarted:focus {
        background: var(--color-primary);
        padding: 8px 20px;
        border-radius: 4px;
        margin: 15px;
        /* color: #fff; */
    }

    .navbar .getstarted:hover,
    .navbar .getstarted:focus:hover {
        background: rgba(0, 131, 116, 0.8);
    }

    .navbar .dropdown ul,
    .navbar .dropdown .dropdown ul {
        position: static;
        display: none;
        padding: 10px 0;
        margin: 10px 20px;
        transition: all 0.5s ease-in-out;
        background-color: #007466;
        border: 1px solid #006459;
    }

    .navbar .dropdown>.dropdown-active,
    .navbar .dropdown .dropdown>.dropdown-active {
        display: block;
    }

    .mobile-nav-show {
        /* color: rgba(255, 255, 255, 0.6); */
        font-size: 28px;
        cursor: pointer;
        line-height: 0;
        transition: 0.5s;
        margin-right: 10px;
    }

    .mobile-nav-hide {
        /* color: #fff; */
        font-size: 32px;
        cursor: pointer;
        line-height: 0;
        transition: 0.5s;
        position: fixed;
        right: 20px;
        top: 20px;
    }

    .mobile-nav-active {
        overflow: hidden;
    }

    .mobile-nav-active .navbar {
        right: 0;
    }

    .mobile-nav-active .navbar:before {
        content: "";
        position: fixed;
        inset: 0;
        /* background: rgba(0, 106, 93, 0.8); */
        z-index: 9996;
    }
}

/* Retira o botão de voltar se a tela for pequena */
@media (max-width:600px) {
    .btn-voltar {
        display: none;
    }
}

tr>td:hover {
    overflow: visible;
    white-space: unset;
}

.nav-item a {
    overflow: hidden !important;
    white-space: nowrap !important;
    /* Don't forget this one */
    text-overflow: ellipsis !important;
}

.navbar li span {
    color: white !important;
    cursor: default !important;
}

/* Estilo dos inputs com ícone */
.inner-addon {
    position: relative;
}

/* style icon */
.inner-addon .bi {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 15px;
    /* Adjust this as needed */
    pointer-events: none;
    color: rgb(108, 117, 125) !important;
}

/* align icon */
.left-addon .bi {
    left: 0px;
}

.right-addon .bi {
    right: 0px;
}

/* add padding  */
.left-addon input {
    padding-left: 34px;
}

.right-addon input {
    padding-right: 34px;
}

.custom-info-border {
    border: 2px solid #28a745;
    /* Cor verde */
}

.custom-info-border:hover {
    border-color: #218838;
    /* Cor verde mais escura no hover */
}

/* Remove o header vazio do DataTables */
.dataTables_scrollBody thead tr {
    visibility: collapse !important;
}