﻿/* IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/* -----------------------------
   ROOT VARIABLES
   ----------------------------- */

:root {
    --navbar-top-bg-color: #fff;
    --navbar-vertical-border-color: #cbd0dd;
    --navbar-top-height: 4rem;
    --color-primary: #224193;
    --color-primary-hover: #1c367b; /* um pouco mais escuro */
    --color-primary-dark: #152a62; /* ainda mais escuro para contraste */
    --box-shadow-focus: 0 0 0 0.25rem rgba(34, 65, 147, 0.4); /* sombra com base no novo primary */
}


/* -----------------------------
   GLOBAL STYLES
   ----------------------------- */

*, ::after, ::before {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow-y: auto;
    opacity: 1;
}

/* -----------------------------
   LAYOUT COMPONENTS 
   ----------------------------- */

.wrapper {
    align-items: stretch;
    display: flex;
    width: 100%;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    width: 100%;
    background: var(--bs-dark-bg-subtle);
}

.content {
    flex: 1;
    max-width: 100vw;
}


.container-fluid {
    font-size: 15px;
    padding-top: 5.7rem;
    padding-left: 6.5rem;
    padding-right: 3rem;
    padding-bottom: 3rem;
}

/* -----------------------------
   NAVBAR 
   ----------------------------- */

.navbar .dropdown-menu.dropdown-caret::after {
    background-color: white !important;
    content: "";
    position: absolute;
    z-index: -1;
    width: 1rem;
    height: 1rem;
    background: inherit;
    top: -0.375rem;
    left: 7.7rem;
    transform: rotate(45deg);
    border-radius: 0.125rem;
    border: solid 1px #cbd0dd;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#sidebar-open {
    font-size: 28px;
    color: #333;
    cursor: pointer;
    margin-right: 20px;
    display: none;
    margin-top: 4px;
}

.flex,
.nav-item,
.navbar-nav-custom {
    display: flex;
    align-items: center;
}

.navbar img,
.avatar {
    height: 40px;
    width: 40px;
}

.avatar {
    border: 1px solid var(--navbar-vertical-border-color);
}

.navbar-top {
    height: 40px;
    background: var(--navbar-top-bg-color);
    border-bottom: 1px solid var(--navbar-vertical-border-color);
    font-size: .8rem;
    font-weight: 600;
    min-height: var(--navbar-top-height);
    padding: 0 15px;
}

.navbar .navbar-logo,
.logo-text {
    display: flex;
    align-items: center;
    color: rgba(82, 91, 117, 0.8);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.nav-link {
    padding: 0.75rem 0.5rem;
}

.dropdown-toggle::after {
    display: none;
}


.dt-scroll-body {
    overflow: inherit !important;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0;
}

.form-check-label {
    font-weight: 600;
}

.form-check-input {
    border: 2px solid #555; /* Cor da borda um pouco mais clara */
    accent-color: #666; /* Altera a cor da marca de seleção (checkmark) para um tom menos escuro */
}




/* -----------------------------
   SIDEBAR - BASE CONFIGURATIONS
   ----------------------------- */
.main-menu {
    position: fixed; /* Alterado de 'absolute' para 'fixed' */
    top: 0;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 100%;
    padding-top: 63px;
    background: white;
    border-right: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
}

    .main-menu ul {
        padding: 10px;
    }

    .main-menu:hover, .main-menu.expanded {
        width: 250px;
        overflow: visible;
    }

        .main-menu:hover .title, .main-menu.expanded .title {
            display: block;
        }

        .main-menu:hover .line, .main-menu.expanded .line {
            opacity: 0;
        }



.menu_title {
    height: 43px;
    padding-left: 13px;
    position: relative;
}

.title {
    font-size: 15px;
    font-weight: 600;
    color: #525b75;
    display: none;
    white-space: nowrap;
    overflow: hidden;
}


.line {
    height: 3px;
    width: 20px;
    background: #aaa;
    border-radius: 25px;
    opacity: 1;
}


.link {
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 6px;
    cursor: pointer;
    padding-left: 13px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

    .link:hover {
        background-color: #eff2f6;
        color: #3e465b;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }


    .link:active {
        background-color: #ddd;
        box-shadow: 0 1px 1px rgba(82, 81, 81, 0.2);
    }

    .link i {
        color: #525b75;
        font-size: 22px;
        min-width: 30px;
        height: 43px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        margin-right: 5px;
    }


.fasr, .fa-regular {
    font-weight: 400;
}

.link span {
    margin-top: 5px;
    font-weight: 500;
    color: #525b75;
    display: none;
    white-space: nowrap;
}

.main-menu:hover .link span, .main-menu.expanded .link span {
    display: inline;
}

.item {
    list-style: none;
}



.link.flex[data-bs-toggle="collapse"] {
    position: relative;
}

    .link.flex[data-bs-toggle="collapse"]::after {
        border: solid;
        border-width: 0 .075rem .075rem 0;
        content: "";
        display: inline-block;
        padding: 4px;
        position: absolute;
        right: 1rem;
        top: 40%;
        transition: all .2s ease-out;
        color: #525b75;
        transform: rotate(-135deg);
    }

    .link.flex[data-bs-toggle="collapse"].collapsed::after {
        transform: rotate(45deg);
    }

.main-menu:not(:hover):not(.expanded) .link.flex[data-bs-toggle="collapse"]::after {
    display: none;
}

a.sidebar-link {
    color: #525b75;
    position: relative;
    display: block;
    font-size: 0.9rem;
    padding-left: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-right: 0.75rem;
    border-radius: 0.5rem;
}

    a.sidebar-link:hover {
        background-color: #eff2f6;
        color: #3e465b;
    }


#cadastrosSubmenu {
    padding: 0px;
    border-left: 2px solid #898fa1;
    padding-left: 2px;
    margin-left: 20px !important;
}


#movimentosSubmenu {
    padding: 0px;
    border-left: 2px solid #898fa1;
    padding-left: 2px;
    margin-left: 20px !important;
}

#supervisorSubmenu {
    padding: 0px;
    border-left: 2px solid #898fa1;
    padding-left: 2px;
    margin-left: 20px !important;
}

#questionarioSubmenu {
    padding: 0px;
    border-left: 2px solid #898fa1;
    padding-left: 2px;
    margin-left: 20px !important;
}

#aplicativoSubmenu {
    padding: 0px;
    border-left: 2px solid #898fa1;
    padding-left: 2px;
    margin-left: 20px !important;
}
#EncaminhamentosSubmenu {
    padding: 0px;
    border-left: 2px solid #898fa1;
    padding-left: 2px;
    margin-left: 20px !important;
}
#RelatoriosSubmenu {
    padding: 0px;
    border-left: 2px solid #898fa1;
    padding-left: 2px;
    margin-left: 20px !important;
}
#AjudaSubmenu {
    padding: 0px;
    border-left: 2px solid #898fa1;
    padding-left: 2px;
    margin-left: 20px !important;
}
/* -----------------------------
   ESTILOS DE TEXTO
   ----------------------------- */

.file {
    font-size: 0.9rem;
}

a {
    text-decoration: none !important;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    color: var(--color-primary-dark);
}


h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.275rem;
    color: var(--bs-emphasis-color);
}

h2 {
    font-weight: 700;
    font-size: 1.7rem;
}

h6 {
    margin-top: 0;
    margin-bottom: .25rem;
    font-weight: 700;
    line-height: 1;
    color: #141824;
}

.breadcrumb {
    font-size: 0.8rem;
    font-weight: 700;
}


.breadcrumb-item.active {
    color: var(--bs-breadcrumb-item-active-color);
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: var(--bs-breadcrumb-item-padding-x);
}


.card-title {
    font-size: 1.25rem;
    color: rgba(49, 55, 74, 1) !important;
    font-weight: 700;
    line-height: 1;
}

.card-header {
    background-color: #F5F7FA;
    padding: 1rem;
}




/* -----------------------------
   DATA TABLE
   ----------------------------- */

#table_wrapper .row.mt-2.justify-content-md-center {
    overflow-x: auto;
    min-height: 300px;
}


.dt-scroll-body {
    overflow-y: unset !important;
}

.table > tbody {
    vertical-align: middle;
}

tbody tr td {
    font-size: .8rem !important;
    color: #141824 !important;
}

thead th span {
    color: #31374a;
    font-weight: 700;
    font-size: .8rem !important;
}

tr {
    border-color: #dee2e6;
}

.content tbody tr:hover {
    background-color: #f5f5f5 !important; /* Cor de fundo quando o mouse está sobre a linha */
}

.justify-content-md-center {
    background-color: rgb(255, 255, 255) !important;
    border-top: 1px solid #cbd0dd !important;
    border-bottom: 1px solid #cbd0dd !important;
    margin-right: -3rem !important;
    margin-left: -3rem !important;
    padding-left: 2.3rem !important;
    padding-right: 2.3rem !important;
    margin-top: 21px !important;
}


.modal-body .justify-content-md-center {
    background-color: transparent !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.dt-scroll-headInner {
    width: 100% !important;
}


.table {
    border: none;
    width: 100% !important;
}

.dt-type-numeric {
    text-align: left !important; /* Alinha o texto à esquerda */
}

.dt-column-order {
    position: relative !important;
    margin-left: 20px;
}

.ui-autocomplete {
    z-index: 2000;
}



/* Estilos gerais para INPUT */
.gl-max-w-80 {
    max-width: 40rem;
}

.gl-max-w-70 {
    max-width: 30rem;
}

.label-bold {
    font-weight: bold;
}




/* -----------------------------
   BOTÃO FILTRAR DATATABLE
   ----------------------------- */



.custom-dropdown-button {
    color: #333;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    border-radius: .25rem;
}

    .custom-dropdown-button:hover {
        color: #333;
        background-color: #e9ecef;
        border-color: #ccc;
    }

    .custom-dropdown-button:active, .custom-dropdown-button:focus {
        background-color: #e9ecef;
        border-color: #ccc;
    }

.navbar .dropdown-menu.dropdown-caret::after {
    background-color: white;
    position: absolute;
    z-index: -1;
    width: 1rem;
    height: 1rem;
    background: inherit;
    top: -0.375rem;
    transform: rotate(45deg);
    border-radius: 0.125rem;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}


.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    border-color: #ccc;
}

.dropdown-item {
    color: #333;
    padding: 8px 12px;
}

    .dropdown-item:active {
        color: #333;
        background-color: #dee2e6;
    }

    .dropdown-item.text-danger {
        color: #dc3545;
    }

        .dropdown-item.text-danger:hover, .dropdown-item.text-danger:focus {
            color: #c82333;
            background-color: #e9ecef;
        }

        .dropdown-item.text-danger:active {
            color: #bd2130;
            background-color: #dee2e6;
        }

/* -----------------------------
   FIM
   ----------------------------- */


/* -----------------------------
   PIPULA AUMENTAR
   ----------------------------- */

.large-switch .form-check-input {
    cursor: pointer;
    height: 1.5rem;
    width: 3rem;
    border-radius: 0.75rem;
}

.large-switch .form-check-label {
    padding-top: 4px;
    padding-left: 0.5rem;
    font-size: 0.9rem;
}

/* -----------------------------
   FIM
   ----------------------------- */

.nwrap tr th {
    white-space: nowrap;
}

/* -----------------------------
   PIPULA AUMENTAR
   ----------------------------- */


.select2-dropdown {
    z-index: 9999 !important; /* Ajuste este valor conforme necessário */
}

.select2-selection--single {
    border: none !important;
}

.select2-container {
    box-sizing: border-box;
    display: block;
    border: 1px solid #dee2e6; /* Cor da borda do Bootstrap */
    border-radius: .25rem; /* Arredondamento de borda do Bootstrap */
}


.select2-container--default .select2-selection--single {
    background-color: #fff; /* Cor de fundo */
    border: 1px solid #dee2e6; /* Cor da borda */
    border-radius: .25rem; /* Arredondamento de borda */
    margin-bottom: 0.2rem;
    margin-top: 0.3rem;
    margin-left: 0.3rem;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: var(--bs-body-color);
        line-height: 1.75rem; /* Altura da linha ajustada */
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: calc(1.75rem + 2px); /* Altura da seta ajustada */
        top: 50%; /* Centraliza verticalmente */
        transform: translateY(-50%); /* Centraliza verticalmente */
        right: 20px;
    }

.select2-container--open .select2-dropdown {
    border-color: #dee2e6;
    border-radius: .25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15); /* Sombra do Bootstrap */
}

.select2-results__option {
    padding: .375rem .75rem; /* Padding dos itens */
    color: var(--bs-body-color);
}

.select2-results__option--highlighted {
    background-color: #0d6efd; /* Cor de fundo do item selecionado */
    color: white; /* Cor do texto do item selecionado */
}

.select2-container .select2-search--dropdown .select2-search__field {
    padding: .375rem .75rem; /* Padding semelhante ao Bootstrap */
    font-size: 1rem; /* Tamanho de fonte padrão do Bootstrap */
    line-height: 1.5; /* Altura da linha padrão do Bootstrap */
    color: var(--bs-body-color);
    background-color: #fff; /* Cor de fundo padrão */
    border: 1px solid #dee2e6; /* Borda padrão do Bootstrap */
    border-radius: .25rem; /* Arredondamento de borda do Bootstrap */
}

    .select2-container .select2-search--dropdown .select2-search__field:focus {
        color: var(--bs-body-color);
        background-color: #fff; /* Cor de fundo padrão ao focar */
        border-color: #86b7fe; /* Cor da borda azul do Bootstrap quando focado */
        outline: 0; /* Remover contorno ao focar */
        box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25); /* Sombra do Bootstrap ao focar */
    }

.select2-container--default .select2-selection--single:hover {
    border-color: #86b7fe; /* Cor da borda ao passar o mouse */
}

/* Estilos para remover a indicação visual de foco da seleção do Select2 */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:hover {
    outline: none;
    box-shadow: none;
}

.select2-invalid {
    border-color: var(--bs-form-invalid-border-color);
}


/* -----------------------------
   FIM
   ----------------------------- */



/* -----------------------------
   MODAL BACKGROUND 
   ----------------------------- */

.modalBackground {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    z-index: 1050;
}

/* -----------------------------
   FIM
   ----------------------------- */



/* -----------------------------
   BUSCA CONTROL 
   ----------------------------- */

.bclabel {
    color: #31374a;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.bccard {
    background-color: #ffffff;
    border: 1px solid #cbd0dd;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.bctitulo {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #4A5568;
    text-align: center;
}

.form-control-sm {
    height: calc(1.5em + 0.75rem + 2px);
}


.required:before {
    content: "*";
    color: red;
}

#webcam {
    width: 320px;
    height: 240px;
    margin: 0 auto; /* Centraliza horizontalmente */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc; /* Apenas para fins visuais */
}

    #webcam video {
        width: 100%;
        height: 100%;
    }



/* -----------------------------
   FIM
   ----------------------------- */

/* -----------------------------
   CORES DO SISTEMA
   ----------------------------- */


.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: var(--color-primary-hover) !important;
        border-color: var(--color-primary-hover) !important;
    }


.form-control:focus {
    border-color: var(--color-primary); /* Altera a cor da borda para marrom */
    box-shadow: var(--box-shadow-focus);
}

.form-select:focus {
    border-color: var(--color-primary); /* Altera a cor da borda para marrom */
    box-shadow: var(--box-shadow-focus);
}



.text-primary {
    color: var(--color-primary) !important;
}


.swal2-confirm.swal2-styled.swal2-default-outline {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important; /* Cor da borda */
}

    .swal2-confirm.swal2-styled.swal2-default-outline:focus,
    .swal2-confirm.swal2-styled.swal2-default-outline:active {
        outline: none !important; /* Remove o contorno padrão */
        box-shadow: var(--box-shadow-focus) !important;
    }


.swal2-confirm.btnAvisoConfirm.swal2-styled {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important; /* Cor da borda */
}


    .swal2-confirm.btnAvisoConfirm.swal2-styled:focus,
    .swal2-confirm.btnAvisoConfirm.swal2-styled:active {
        outline: none !important; /* Remove o contorno padrão */
        box-shadow: 0 0 0 3px rgba(112, 48, 0, 0.5) !important; /* Contorno marrom suave */
    }


.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    background-color: #ccc !important; /* Fundo cinza claro */
    color: #666 !important; /* Texto cinza escuro */
    border-color: #ccc !important; /* Borda na mesma cor do fundo */
    cursor: not-allowed; /* Muda o cursor para indicar ação não permitida */
}

.active > .page-link, .page-link.active {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important; /* Cor da borda */
    color: #fff !important;
}


.page-link {
    color: var(--color-primary) !important; /* Cor da borda */
}

    .page-link:focus,
    .page-link:active {
        outline: none !important; /* Remove o contorno padrão */
        box-shadow: var(--box-shadow-focus) !important;
    }


div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

    div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus {
        border-color: var(--color-primary) !important; /* Altera a cor da borda para marrom */
        box-shadow: var(--color-primary-hover) !important; /* Altera a sombra para uma cor marrom translúcida */
    }


/* -----------------------------
   CORES DO SISTEMA FIM
   ----------------------------- */

.avatar-image {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
}


.dropdown-divider {
    --bs-dropdown-divider-margin-y: 0.2rem;
}


/* Garante que a tabela tenha um scroll horizontal quando necessário */
.dt-container {
    max-width: 100%;
}

/* Evita que o texto quebre em múltiplas linhas */
table.dataTable td, table.dataTable th {
    white-space: nowrap;
}

/* Ajusta a largura da tabela e impede que a DataTable "coma" colunas */
.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Estilo para celular: permite rolagem horizontal */
@media screen and (max-width: 768px) {
    table.dataTable {
        display: block;
        width: 100%;
    }
}


/* Estilos para os badges com temas específicos baseados nas cores */
.badge-yellow {
    background-color: #ffefca;
    color: #bc3803;
    border: 1px solid #ffcc85;
}

.badge-green {
    background-color: #d9fbd0;
    color: #1c6c09;
    border: 1px solid #90d67f;
}

.badge-red {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge-gray {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.badge-blue {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.badge-cyan {
    background-color: #a5f3fc;
    color: #0c5460;
    border: 1px solid #b6efff;
}


/* Estilo geral para tamanho de fonte em badges */
.fs-10 {
    font-size: 0.64rem !important;
}

/* Estilos base para todos os badges */
.badge {
    text-transform: uppercase;
    padding: 0.4em 0.8em; /* Simplificado o padding */
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 0.35rem;
    display: inline-block;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.form-check {
    display: block;
    min-height: 1.49rem;
    padding-left: 1.5em;
    margin-bottom: .34375rem;
}

.form-check-input {
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    margin-top: .245em;
    vertical-align: top;
    appearance: none;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #cbd0dd;
    print-color-adjust: exact;
}

.form-check .form-check-input {
    float: left;
    margin-left: -1.5em;
}

.form-check-input[type=checkbox] {
    border-radius: .25em;
}


.btn-icon-edit {
    border-radius: 50%;
    padding: 0.2rem 0.45rem;
    font-size: 1rem;
    background: #f8fafc;
    color: #2563eb;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    transition: background 0.15s, color 0.15s;
    vertical-align: middle;
}

    .btn-icon-edit:hover, .btn-icon-edit:focus {
        background: #e3e8ef;
        color: #1d4ed8;
    }

.label-title-pergunta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}


.subtitulo-principal {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #000;
    text-align: center;
}

.texto-explicativo {
    font-size: 13px;
    font-weight: normal;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}

.continuacao {
    font-style: italic;
    font-weight: bold;
    color: #cc0000;
    font-size: 16px;
    margin-top: 6px;
    text-align:center;
}