@import url("https://fonts.googleapis.com/css?family=Open+Sans|Rock+Salt|Shadows+Into+Light|Cedarville+Cursive");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

* {
    margin: 0;
    padding: 0;
}

/* Estilo para a imagem no cabeçalho */
.header-image {
    width: 100%;
    height: 100px; /* Altura ajustada */
    object-fit: cover; /* Isso mantém a proporção e corta a imagem para preencher o contêiner */
    filter: blur(5px); /* Efeito de desfoque */
}

/* Estilo para o cabeçalho */
header {
    width: 100%;
    /*background-color: #333; */ /* Cor de fundo do cabeçalho */
    padding-bottom: 10px; /* Espaçamento interno */
    text-align: center; /* Alinhar o conteúdo ao centro */
}

/* Header do sistema (navbar + cabeçalho da página) */
body > nav.navbar.bg-dark,
body > header.bg-dark {
    background-color: #000 !important;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

body > nav.navbar.bg-dark .navbar-brand,
body > nav.navbar.bg-dark .nav-link,
body > nav.navbar.bg-dark .navbar-text,
body > header.bg-dark,
body > header.bg-dark * {
    color: #fff !important;
}

/* Dropdowns do header (fonte consistente) */
body > nav.navbar.bg-dark .dropdown-menu,
body > nav.navbar.bg-dark .dropdown-item,
body > nav.navbar.bg-dark .dropdown-header {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

/* Sidebar (offcanvas) */
.bm-offcanvas {
    width: var(--bm-offcanvas-width);
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

.bm-offcanvas .accordion-button,
.bm-offcanvas .list-group-item {
    font-family: inherit !important;
}

/* Mini sidebar (barra fininha à esquerda) */
:root {
    --bm-mini-sidebar-width: 54px;
    --bm-sidebar-panel-width: 320px;
    --bm-offcanvas-width: 360px;
    --bm-header-offset: 0px;
}

/* Quando o offcanvas (mobile) abre, empurra o conteúdo e evita "cobrir" a página */
@media (max-width: 991.98px) {
    body.bm-offcanvas-open > nav.navbar,
    body.bm-offcanvas-open > header.bg-dark {
        padding-left: var(--bm-offcanvas-width);
    }

    body.bm-offcanvas-open > .container-fluid {
        padding-left: calc((var(--bs-gutter-x, 1.5rem) * 0.5) + var(--bm-offcanvas-width));
    }
}

@media (min-width: 992px) {
    body.bm-has-mini-sidebar > nav.navbar,
    body.bm-has-mini-sidebar > header.bg-dark {
        padding-left: var(--bm-mini-sidebar-width);
    }

    body.bm-has-mini-sidebar > .container-fluid {
        padding-left: calc((var(--bs-gutter-x, 1.5rem) * 0.5) + var(--bm-mini-sidebar-width));
    }

    body.bm-sidebar-expanded > nav.navbar,
    body.bm-sidebar-expanded > header.bg-dark {
        padding-left: calc(var(--bm-mini-sidebar-width) + var(--bm-sidebar-panel-width));
    }

    body.bm-sidebar-expanded > .container-fluid {
        padding-left: calc((var(--bs-gutter-x, 1.5rem) * 0.5) + var(--bm-mini-sidebar-width) + var(--bm-sidebar-panel-width));
    }
}

.bm-mini-sidebar {
    position: fixed;
    top: var(--bm-header-offset);
    left: 0;
    bottom: 0;
    width: var(--bm-mini-sidebar-width);
    height: calc(100vh - var(--bm-header-offset));
    background: #000;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 10px;
}

.bm-mini-sidebar-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

.bm-mini-sidebar-btn:hover,
.bm-mini-sidebar-btn:focus {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.bm-mini-sidebar-btn i {
    font-size: 16px;
}

/* Painel lateral (desktop) */
.bm-sidebar-panel {
    position: fixed;
    top: var(--bm-header-offset);
    left: var(--bm-mini-sidebar-width);
    height: calc(100vh - var(--bm-header-offset));
    z-index: 1029;
}

.bm-sidebar-panel-card {
    width: var(--bm-sidebar-panel-width);
    height: 100%;
    background: #f8f9fa;
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.bm-sidebar-panel-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

.bm-sidebar-panel-body {
    flex: 1 1 auto;
    overflow: auto;
}

.bm-sidebar-panel-body .accordion-button,
.bm-sidebar-panel-body .list-group-item {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

/* Offcanvas abrindo abaixo do header */
.bm-offcanvas {
    top: var(--bm-header-offset) !important;
    height: calc(100vh - var(--bm-header-offset)) !important;
}

body.bm-offcanvas-open .offcanvas-backdrop {
    top: var(--bm-header-offset) !important;
    height: calc(100vh - var(--bm-header-offset)) !important;
}

#tb_gestao {
    width: 100%;
}
.container-fluid {
    width: 100%;
}

.dt-layout-row {
    /*display: flex;
  justify-content: space-around;*/
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

/* Container principal */
.dt-layout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa; /* Cor de fundo leve */
    border-radius: 5px; /* Bordas arredondadas */
}

/* Células individuais */
.dt-layout-cell {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Estilização da seleção de comprimento da tabela */
.dt-length {
    display: flex;
    align-items: center;
}

.dt-length select.dt-input {
    margin-right: 10px;
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

/* Estilização do campo de pesquisa */
.dt-search {
    display: flex;
    align-items: center;
    flex: 1; /* Faz com que o contêiner de pesquisa ocupe todo o espaço disponível */
}

.dt-search label {
    margin-right: 10px;
    font-size: 14px;
}

.dt-search input.dt-input {
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    flex: 1; /* Faz com que o input ocupe todo o espaço disponível dentro da div dt-search */
}

/* Estilos adicionais para ambos os elementos */
.dt-input {
    transition: border-color 0.2s;
}

.dt-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.tox-notification {
    display: none;
}

.btn-aviso {
    background: red;
    margin: 10px;
    font-weight: 600;
    color: yellow;
    animation: animateTop 1s ease-in-out infinite;
}
@keyframes animateTop {
    25% {
        /*width: 100%;*/
        opacity: 1;
    }

    30%,
    100% {
        opacity: 0.2;
    }
}

.sig1 {
    font-family: "Shadows Into Light", cursive;
    font-size: 1.8em;
}
.sig2 {
    font-family: "Rock Salt", cursive;
}
.sig3 {
    font-family: "Cedarville Cursive", cursive;
    font-size: 1.8em;
}

/* ################################################################################################ cards css ###################################################################*/

.item {
    padding-left: 5px;
    padding-right: 5px;
}
.item-card {
    transition: 0.5s;
    cursor: pointer;
}
.item-card-title {
    font-size: 15px;
    transition: 1s;
    cursor: pointer;
}
.item-card-title i {
    font-size: 15px;
    transition: 1s;
    cursor: pointer;
    color: #ffa710;
}
.card-title i:hover {
    transform: scale(1.25) rotate(100deg);
    color: #18d4ca;
}

.card-text {
    height: 80px;
}


.fixed-card {
    width: 300px; /* Largura fixa do card */
    height: 200px; /* Altura fixa do card */
    overflow: hidden; /* Para garantir que não ultrapasse */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fixed-img {
    width: 100%; /* A imagem ocupará 100% da largura do card */
    height: 128px; /* Altura fixa da imagem */
    object-fit: cover; /* Mantém a proporção e corta a imagem se necessário */
}

/*TRACK PROGRESS ####################################################################*/

.stepper-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;

    @media (max-width: 768px) {
        font-size: 12px;
    }
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 20px;
    left: -50%;
    z-index: 2;
}

.stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 2;
}

.stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    margin-bottom: 6px;
}

.stepper-item.active {
    font-weight: bold;
}

.stepper-item.completed .step-counter {
    background-color: #4bb543;
}

.stepper-item.completed::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid #4bb543;
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 3;
}

.stepper-item:first-child::before {
    content: none;
}
.stepper-item:last-child::after {
    content: none;
}

/* Ocultar as colunas para telas menores que 992px (tamanho lg) */
@media (max-width: 991px) {
    .oculta-menor {
        display: none;
    }
}

/* Exibir as colunas apenas para telas grandes (lg ou superiores) */
@media (min-width: 992px) {
    .oculta-menor {
        display: table-cell;
    }
}

.limitar-texto {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}


/* Adicione este CSS ao seu arquivo de estilos */
.modal.fade-out {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(-20px); /* Move o modal para cima */
}


.listapreco{
    overflow-y: scroll;
    max-height: 400px;
}

.destaque{
    /*background-color: rgba(16, 185, 129, 0.4);*/
    font-weight: bold;
    animation-name: animacao1;
    animation-duration: 5s;
    animation-fill-mode: forwards; /* mantém cor final após animação */
}

@keyframes animacao1 {
    from{background-color: rgb(255, 255, 255);}
    to{background-color:  rgba(16, 185, 129, 0.4);}
}


.titulocard{
    /*background-color: rgba(16, 185, 129, 0.4);*/
    font-weight: 300;
    background-color:  rgba(8, 152, 196, 0.1);
    border-radius: 25%;
}

.titulocard2{
    /*background-color: rgba(16, 185, 129, 0.4);*/
    font-weight: bold;
    background-color:  rgba(8, 152, 196, 0.3);
    border-radius: 50%;
}

disabled-card {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(80%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.div-bloqueada {
    pointer-events: none; /* bloqueia clique/edit */
    opacity: 0.6;         /* opcional: aparência desabilitada */
}

.permitido {
    pointer-events: auto !important; /* reativa o clique */
    opacity: 1 !important;  
}

.modal-backdrop {
    z-index: 1050; /* maior que offcanvas (1040) */
}
.modal {
    z-index: 1055;
}
