:root {
    --cor-back: #f3f4f6;
    --cor-sombra: rgba(0, 0, 0, 0.1);
    --cor-branco: #fff;
    --cor-laranja: #ff4931;
    --cor-laranja-claro: #f5aa19;
    --cor-red: #e02525;
    --cor-cinza: #d4d4d4;
    --cor-cinza-dark: #4f4f4f;
    --laranja-hover: #f98a53;
    --cor-azul: #007bff;
    --cor-tabela: #e3e1e1;
    --cor-preto: #333333;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
}

html,
body {
    height: 100%;
    /* Certifica que o body ocupe 100% da altura da tela */
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: var(--cor-back);
    margin: 0;
    justify-content: space-between;
    /* Garante que o conteúdo principal e o rodapé fiquem distantes */

}

.content {
    flex: 1;
}

.top-bar {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    padding: 20px 0;
    justify-content: space-between;
    flex-direction: row;
    position: fixed;
    top: 0;
    background-color: var(--cor-back);
    z-index: 1000;
    box-shadow: 0 2px 4px var(--cor-sombra);
}

.top-bar .btn-logout i {
    margin-right: 5px;
    /* Ajusta o espaço entre o ícone e o texto */
}

.top-bar .col-md-6 {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Alinha verticalmente no centro */
    gap: 10px;
    /* Espaçamento controlado entre o texto e o botão */
    flex-direction: row;

}

.top-bar .col-md-3 {
    display: flex;
    align-items: center;
    /* Alinha verticalmente no centro */
    gap: 10px;
    /* Espaçamento controlado entre o texto e o botão */
    flex-direction: row;

}

.top-bar .col-sm-12 {
    display: flex;
    align-items: center;
    /* Alinha verticalmente no centro */
    gap: 10px;
    /* Espaçamento controlado entre o texto e o botão */
    flex-direction: row;

}

.top-bar .btn-logout {
    background-color: transparent !important;
    border: solid 1px var(--cor-cinza-dark) !important;
    color: var(--cor-cinza-dark) !important;
    padding: 2px 10px;
    /* Reduz o padding superior/inferior e lateral */
    margin: 0;
    /* Remove margens extras */
    line-height: normal;
    /* Mantém a altura da linha padrão */
    display: inline-flex;
    /* Mantém o conteúdo do botão alinhado corretamente */
    align-items: center;
    /* Alinha o ícone e o texto verticalmente */
    height: auto;
    /* Garante que o botão se ajuste ao conteúdo */
}

.top-bar .btn-logout:hover {
    background-color: var(--cor-cinza-dark) !important;
    color: var(--cor-branco) !important;

}

.content {
    margin-top: 120px;
    width: 100%;

}

.card {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--cor-sombra);
    background-color: var(--cor-branco);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 1;
    transform: translateX(0);
    margin-bottom: 20px;
    overflow-x: auto;
    /* Garante que o conteúdo role horizontalmente */
    -webkit-overflow-scrolling: touch;
    /* Rolagem suave para dispositivos móveis */
}

.alert-top {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 300px;
}

.table-container {
    margin-top: 20px;
    min-width: 1200px;
    overflow-x: auto;
    /* Garante a rolagem horizontal */
    -webkit-overflow-scrolling: touch;
    /* Suaviza a rolagem em dispositivos móveis */
    overflow-y: hidden;
    /* Evita rolagem vertical desnecessária */
    display: block;
    /* Garante que o elemento se comporte como bloco e role */
}

.table-container table {
    width: 100%;
    min-width: 1000px;
    /* Garante que a tabela tenha uma largura mínima para forçar a rolagem */
    border-collapse: collapse;
    /* Garante que a tabela ocupe 100% do container */
}

.table-container th,
.table-container td {
    white-space: nowrap;
    /* Evita quebra de linha */
    text-align: center;
    padding: 8px;
}

.table-container th {
    background-color: var(--cor-branco);
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-container tbody tr:nth-of-type(odd) {
    background-color: var(--cor-tabela);
}

.table-container tbody tr:nth-of-type(even) {
    background-color: var(--cor-branco);
}

@media (max-width: 768px) {

    .table-container th,
    .table-container td {
        font-size: 12px;
    }

    .table-container th.empresa,
    .table-container td.empresa {
        width: auto;
    }

    .actions {
        min-width: 100px;
    }
}

.actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.actions button {
    margin-left: 5px;
}

.pagination {
    justify-content: center;
}

.form-container {
    margin-top: 20px;
}

.edit-form,
.delete-form {
    display: none;
}

/* Ajustes para o container do filtro */

.filter-card {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
    background-color: var(--cor-branco);
    margin-bottom: 20px;
    max-width: 100%; 
}

/* Ajustes nos grupos de formulários para garantir espaçamento */

.form-group {
    margin-bottom: 1.5rem;
}

.filter-card .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-card .form-group {
    flex: 1;
    min-width: 200px;
}

/* Responsividade para telas menores */

@media (max-width: 768px) {
    .filter-card {
        padding: 1rem;
    }

    .filter-card .form-group {
        width: 100%;
        min-width: auto;
    }
}

.top-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

.top-buttons button {
    margin-left: 10px;
}

.card-header {
    display: flex;
    align-items: center;
}

@media print {
    .no-print {
        display: none;
    }
}

.login-body {
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-container {
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--cor-branco);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 10px;
}

.login-card p {
    margin-bottom: 20px;
    color: #6c757d;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: flex;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--cor-cinza);
    border-radius: 5px;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.forgot-password {
    float: right;
    color: var(--cor-azul);
    text-decoration: none;
    font-size: 0.9em;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    background-color: var(--cor-laranja);
    color: var(--cor-branco);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.btn-login:hover {
    background-color: var(--cor-laranja-claro);
}

.login-card a {
    color: var(--cor-azul);
    text-decoration: none;
}

.login-card a:hover {
    text-decoration: underline;
}

.desktop {
    display: flex;
    align-content: center;
    flex-wrap: nowrap;
    justify-content: center;
    /* Alinha os itens no final (direita) no eixo horizontal */
    align-items: center;
    /* Alinha os itens no centro no eixo vertical */
}

.mobile {
    display: none;
}

.top-bar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar .btn {
    align-items: center;
    margin-left: 8px;
    padding: 10px 10px;
    font-size: 15px;
    background-color: var(--cor-back);
    color: var(--cor-preto);
}

.top-bar .btn:hover {
    background-color: var(--cor-back);
    color: var(--cor-laranja);
    border-top: var(--cor-laranja) solid 4px;
    border-radius: 2px;
}

.top-bar .btn:active {
    background-color: var(--cor-back);
    color: var(--cor-laranja);
    border-top: var(--cor-laranja) solid 4px;
    border-radius: 2px;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--cor-cinza-dark);
    padding: 20px 0;
    color: var(--cor-branco);
}

.footer .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .row {
    width: 100%;
}

.footer .col-md-6,
.footer .col-sm-12 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer .coluna-logo {
    justify-content: center;
}

.footer p {
    margin: 0;
    font-size: 16px;
}

.footer img {
    margin-left: 10px;
    height: 45px;
}

@media only screen and (max-width:991px) {
    .desktop {
        display: none;
    }

    .mobile {
        width: 100%;
        display: flex;
        align-content: center;
        flex-wrap: nowrap;
        justify-content: end;
        /* Alinha os itens no final (direita) no eixo horizontal */
        align-items: center;
        /* Alinha os itens no centro no eixo vertical */
    }

    .content {
        margin-top: 10px;
    }

    .table-container {
        max-width: 900px;
        min-width: auto;
    }

    .table-container table {
        min-width: auto;
    }
}

/* Topbar Mobile*/

.top-bar-mobile {
    display: flex;
    align-items: left;
    width: 100%;
    flex-wrap: nowrap;
    padding: 20px 0;
    justify-content: space-between;
    flex-direction: row;
    top: 0;
    background-color: var(--cor-branco);
}

.top-bar-mobile .texto {
    text-align: center;
    justify-content: center;
}

.top-bar-mobile .col-sm-6 {
    display: flex;
    /* Alinha verticalmente no centro */
    gap: 10px;

}

.top-bar-mobile .col-6 {
    display: flex;
    /* Alinha verticalmente no centro */
    /* Espaçamento controlado entre o texto e o botão */
    flex-direction: column;

}

.top-bar-mobile .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-mobile img {
    width: 150px;
}

/* Menu Mobile */

/* Estilos para o menu fixado */

.mobile-menu {
    position: fixed;
    background-color: var(--cor-preto);
    color: var(--cor-branco);
    width: 100%;
    height: 100px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    z-index: 150;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Estilos gerais para o link */

.mobile-menu a {
    color: var(--cor-branco);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
    position: relative;
    outline: none;
    /* Remove o outline */
    border: none;
    /* Remove qualquer borda aplicada */
    box-shadow: none;
    /* Remove qualquer sombra ao redor do elemento */
}

/* Esconde o texto do span inicialmente */

.mobile-menu a span {
    opacity: 1;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    font-size: 11px;
    color: var(--cor-branco) !important;
}

.mobile-menu span {
    opacity: 1;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    font-size: 11px;
    color: var(--cor-branco) !important;
}

/* Centraliza e anima o ícone para subir */

.mobile-menu a i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* Quando o botão está ativo */

.mobile-menu a.active i {
    transform: translateY(-10px);
    /* Move o ícone para cima */
    color: var(--cor-laranja);
}

/* Mostra o texto quando ativo */

.mobile-menu a.active span {
    opacity: 1;
    transform: translateY(0);
    color: var(--cor-laranja);
}

/* Remover borda no estado de foco */

.mobile-menu a:focus {
    outline: none;
    /* Remove o outline de foco */
    border: none;
    box-shadow: none;
    /* Remove qualquer sombra ao redor */
}

/* Remover borda no estado ativo */

.mobile-menu a:active {
    outline: none;
    /* Remove o outline quando ativo */
    border: none;
    box-shadow: none;
    /* Remove a sombra no estado ativo */
}

/* Efeito hover */

.mobile-menu a:hover {
    color: #fff;
}

/* Adicionando a linha acima do ícone ativo */

.mobile-menu a.active::before {
    content: '';
    position: absolute;
    top: -20px;
    /* Ajuste de posicionamento para colocar a linha acima do ícone */
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    /* Largura da linha */
    height: 4px;
    /* Altura da linha */
    background-color: var(--cor-laranja);
    /* Cor da linha, você pode alterar se necessário */
    border-radius: 2px;
}

/* Adicionando a animação para os ícones */

.mobile-menu svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--cor-laranja);
    stroke-width: 2;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    transition: stroke-dashoffset 1.5s ease;
}

button.close {
    border: none;
    background: transparent;
    font-size: 22px;
}

.mobile-menu a:hover svg {
    stroke-dashoffset: 0;
}

/* Efeito de animação de borda desenhada */

@keyframes draw {
    0% {
        stroke-dashoffset: 150;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    /* Ajustar a largura da tabela para caber na página de impressão */
    table {
        width: 100%;
    }
}

.icone-relatorio{
    font-size: 28px !important;
    color:var(--cor-cinza-dark)
}

button#logoutButton {
    color: #fff;
    margin-top: 14px;
    font-size: 20px;
}

p.small.text-muted{
padding-right: 10px;
}

