/* ===============================
   BLOCO GLOBAL DE FONTES
================================== */
html,
body,
header,
footer,
main,
nav,
.login,
.login-container,
.login-card,
.login-logo,
.container-pages,
.container-pricipal,
.my-navbar,
.navbar-toggler,
.navbar-toggler-icon,
.tamanho-logout i,
.color-font,
small,
h4,
.formulario {
    font-family: 'Poppins', sans-serif;
}


/* ===============================
   CONTROLE DE PERMISSÕES

   
.navbar-nav > li {
    display: none;
}


.menu-home {
    display: block !important;
}


body.per-vai-volta .menu-vai-volta {
    display: block;
}


body.per-transferencia .menu-transferencia {
    display: block;
}


body.per-relatorios .menu-relatorios {
    display: block;
}


body.per-cad-func .menu-cadastros,
body.per-cad-unidade .menu-cadastros,
body.per-caixa .menu-cadastros {
    display: block;

}


body:not(.per-cad-func) .submenu-funcionarios {
    display: none;
}

body:not(.per-cad-unidade) .submenu-unidades {
    display: none;
}


body.per-permissoes .menu-permissoes {
    display: block;
}


/* ===============================
   ESTILOS GERAIS
================================== */

body {
    overflow-x: hidden;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #e6f2ff89;
    padding-bottom: 50px;
}

main {
    margin-bottom: 2em;
}

h2 {
    font-size: 1.8em;
    padding: 0.2em;
}

.container-pricipal {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 10px 10px;
    background-color: #e6f2ff89;
}

.container-pages {
    flex: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 10px 10px;
    color: #000000;
    background-color: #e6f2ff89;
    background-repeat: no-repeat;
    background-size: cover;
}

.style-card {
    max-width: 18rem;
    margin: 1em;
    border-radius: 15px;
}

@media screen and (max-width: 700px) {
    .style-card {
        max-width: 80%;
        margin: 0.5em;
    }
}

.tabela-arredondada {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #F0F1F2;
    border-collapse: separate;
    border-spacing: 0;
    position: sticky;
    text-transform: uppercase
}

.table-responsive {
    max-height: 70vh;
    /* altura máxima da tabela rolável */
    overflow-y: auto;
    text-transform: uppercase
}

table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase
}

/* ===============================
   LOGIN 
================================== */

.login {
    background-color: transparent !important;
    min-height: 100vh !important;
    display: flex;
    flex-direction: column;
    position: relative !important;
}

.login-container {
    background-color: transparent !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.login-logo {
    display: flex;
    margin: 0 auto 1rem;
    max-width: 100%;
}

#avisoLogin {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

/* ==============================================
   BACKGROUND TECNOLÓGICO
   ============================================== */

/* Canvas para as linhas e pontos */
#techCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ===============================
   NAVBAR
================================== */
.my-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0px !important;
    background-color: #072f70 !important;
    color: #ffffff !important;
}

.navbar-toggler {
    border-color: #ffffff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.tamanho-logout i {
    font-size: 1.5rem;
}

.color-font {
    background-color: transparent !important;
    color: #ffffff !important;
    font-size: large !important;
}

.sub-titulo {
    background-color: #072f70;
    color: #ffffff !important;
    font-size: 1.6em;
    padding: 0.8em;
    margin-bottom: 0;
}

h2::first-letter {
    text-transform: uppercase !important;
}



/* ===============================
   RODAPÉ
================================== */
footer {
    background-color: #072f70;
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.6em 1em;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.4;
    z-index: 1000;
}

/* ===============================
   TEXTOS
================================== */
small,
h4 {
    color: #ffffff;
    font-size: 0.7em;
    margin-top: 0em;
    margin-bottom: 0em;
}

h5 {
    font-size: small;
    color: #0d47a1;
}

h3 {
    font-size: 1.4em;
    padding: 0.2em;
    color: #000000;
    border-radius: 12px 12px 0 0;
}

.separar_permissoes {
    font-size: 0.9em;
    padding: 0.2em;
    color: #696969;
    margin-top: 0.5em;
    margin-bottom: 0.2em;
    border-bottom: 1px solid #696969;
    padding-bottom: 5px;

}

/* ===============================
   FORMULÁRIOS
================================== */
.formulario {
    margin-bottom: 15px;
}

.bloco-formulario {
    border: 1px solid #ddd;
    border-radius: 0px 0px 12px 12px;
    box-shadow: #072f70 2px 2px 7px;
    background: #ffffff;
    padding: 0.5em;
    padding-top: 1.5em;
    position: relative;
}

.bloco-formulario-st {
    border: 1px solid #ddd;
    border-radius: 0px 0px 12px 12px;
    box-shadow: #072f70 2px 2px 7px;
    background: #ffffff;
    padding: 0.5em;
    padding-top: 1.5em;
    position: relative;
    border-radius: 12px;
}

.bloco-formulario-mov {
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: #072f70 2px 2px 7px;
    background: #ffffff;
    position: relative;
    padding: 0.5em;
    padding-top: 1em;
    margin: 1em 0.2em 1em 0.2em;
}

.bi-arrow-left-right {
    font-size: 3.5em;
    color: #072f70;
    text-shadow: #072f70 2px 2px 7px;
}

@media screen and (max-width: 700px) {
    .bi-arrow-left-right {
        font-size: 3em;
        display: block;
        margin: 0.1em auto;
        /* centraliza horizontalmente */
        transform: rotate(90deg);
    }
}

@media screen and (max-width: 700px) {
    .bi-arrow-right-circle {
        /* centraliza horizontalmente */
        transform: rotate(45deg);
    }
}


/* ===============================
   Bloco de furmulario sem o titulo azul em cima 
================================== */


.fundo-azul {
    font-size: 1.2em;
    padding: 0.5em;
    background-color: #072f70;
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    box-shadow: #0d47a1 2px 2px 7px;
    position: relative;
    margin-bottom: 0px;
}

.fundo-azul-2 {
    font-size: 1.2em;
    padding: 0.5em;
    background-color: #072f70;
    color: #ffffff;
    box-shadow: #0d47a1 2px 2px 7px;
    position: relative;
    margin-bottom: 0px;
    margin-top: 0px;
}

/* ===============================
   Estilo para botão de crachá
================================== */
.botao-rodape {
    position: absolute;
    bottom: 0;
    margin: 10px;
    border-radius: 12px;
}

.rfid-container {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

/* Círculo pulsando */
.rfid-pulse {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(13, 71, 161, 0.3);
    animation: pulseRFID 1.6s infinite ease-out;
    box-shadow: 0 0 25px #072f70;
}

/* Ícone RFID */
.rfid-icon {
    position: absolute;
    font-size: 38px;
    color: #072f70;
    text-shadow: 0 0 12px rgba(13, 71, 161, 0.9);
    animation: rfidGlow 1.0s infinite alternate ease-in-out;
}


/* Glow no ícone */
@keyframes rfidGlow {
    0% {
        text-shadow: 0 0 8px #072f70;
        transform: scale(1);
    }

    100% {
        text-shadow: 0 0 20px #072f70;
        transform: scale(1.08);
    }
}

/* alterando cor do btn btn-primary */
.btn-primary {
    background-color: #0d47a1;
    border-color: #0d47a1;
    border-radius: 12px;
}

.btn-secondary {
    background-color: #212529;
    border-color: #212529;
    color: #ffffff;
    border-radius: 12px;
    margin-top: 0.5em;
}

.btn-info {
    background-color: #21252988 !important;
    border-color: #e6f2ff89 !important;
    color: #ffffff;
    border-radius: 12px;
}

@media screen and (max-width: 700px) {
    .btn-info {
        background-color: #21252988 !important;
        border-color: #e6f2ff89 !important;
        color: #ffffff;
        border-radius: 12px;
        margin-top: 0.5em;
    }
}

.btn-success {
    background-color: #007E65;
    border-color: #007E65;
    color: #ffffff;
    border-radius: 12px;
}

.btn-danger {
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: #ffffff;
    border-radius: 12px;
}

.botao-filtro {
    background-color: #073d708a;
    border-color: #073d708a;
    color: #ffffff;
    border-radius: 0px;
    margin-top: 0;
}

.botao-margin {
    margin-top: 0.5em;
}

.danger-ocorrencias {
    margin-top: 0.5em;
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: #ffffff;
    border-radius: 12px;
}

.success-ocorrencias {
    margin-top: 0.5em;
    background-color: #007E65;
    border-color: #007E65;
    color: #ffffff;
    border-radius: 12px;
}

/*Ajuste de select*/

.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + .75rem + 2px);
}

/* ===============================
   cor dos cards 
================================== */

.text-bg-success {
    color: #ffffff !important;
    font-weight: bold;
    border-color: #1FA36B !important;
    background-color: #1FA36B !important;
}

.text-bg-success:hover {
    color: #ffffff !important;
    font-weight: bold;
    border-color: #1FA36B !important;
    background-color: #1FA36B !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

.text-bg-warning {
    color: #000000 !important;
    font-weight: bold;
    border-color: #F2C94C !important;
    background-color: #F2C94C !important;
}

.text-bg-warning:hover {
    color: #000000 !important;
    font-weight: bold;
    border-color: #F2C94C !important;
    background-color: #F2C94C !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

.text-bg-danger {
    color: #ffffff !important;
    font-weight: bold;
    border-color: #FF4A37 !important;
    background-color: #FF4A37 !important;
}

.text-bg-danger:hover {
    color: #ffffff !important;
    font-weight: bold;
    border-color: #FF4A37 !important;
    background-color: #FF4A37 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

.invisivel {
    display: none !important;
}