.btn_top{
    position: absolute;
    right: 0px;
    margin-top: 0px;
    margin-right: 13px;
    z-index: 1;
}

.no-padding{
    padding: 0 !important;
}
.no-margin{
    margin: 0 !important;
}



.cr-hand{
    pointer-events: all;
    cursor: pointer;
}

.cr-bloq{
    pointer-events: all;
    cursor: not-allowed;
}

.p-l-5{
    padding-left: 5px;
}
.p-l-5{
    padding-right: 5px;
}

.m-r-15{
    margin-right: 15px;
}

.m-l-15{
    margin-left: 15px;
}

.m-r-10{
    margin-right: 10px;
}
.m-r-5{
    margin-right: 5px;
}


.modal-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    /*background-color: rgb(238, 245, 249) !important;*/
}

.modal-header{
    padding-top: 5px;
    padding-bottom: 5px;
}


.hover-visible {
    outline: 1px solid transparent;
}
.hover-visible .action {
    visibility: hidden;
    display: none;
}
.hover-visible .no-action {
    visibility: visible;
    display: inline;
}
.hover-visible:hover .action {
    visibility: visible;
    display: inline;
}
.hover-visible:hover .no-action {
    visibility: hidden;
    display: none;
}

.no-wrap td, .no-wrap th {
    white-space: nowrap;
}

.show-xs {
    display:none;
}
.hide-xs {
    display: revert;
}
@media screen and (max-width: 425px) {
    .show-xs {
        display:revert;
    }
    .hide-xs {
        display:none;
    }
}
.show-sm {
    display:none;
}
.hide-sm {
    display:revert;
}
@media screen and (max-width: 767px) {
    .show-sm {
        display:revert !important;
    }
    .hide-sm {
        display:none !important;
    }
}


.show-md{
    display: none;
}
.hide-md{
    display: block;
}
@media (max-width:993px) {
    .show-md {
        display: block;
    }
    .hide-md {
        display: none;
    }
}


.show-lg{
    display: none;
}
.hide-lg{
    display: block;
}
@media (min-width: 992px) {
    .show-lg {
        display: block;
    }
    .hide-lg {
        display: none;
    }
}

.show-xl {
    display: none;
}
.hide-xl {
    display: block;
}
@media (min-width: 1200px) {
    .show-xl {
        display: block;
    }
    .hide-xl {
        display: none;
    }
}


.chatModal {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media screen and (min-width: 400px) {
    .chatModal {
        margin-right: 0 !important;
    }
}

.btn-xs{
    padding-left: 5px !important;
    padding-right: 5px !important;
}



.title-container {
    overflow: hidden;
    position: relative;
    display: block;
}

.title {
    white-space: nowrap;

    display: inline-block;
    width: 100%;
}

/* Animação de rolagem */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee {
    animation: marquee 10s linear infinite;
}

.text-black{
    color: black;
}

.asidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1036;
    top: 0;
    right: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.asidebar>.card {
    /*height: -webkit-fill-available;*/
    margin-bottom: 5px;
}

/* Fluxos de trabalho nos projetos: rolagem nas etapas a partir de 7 itens */
.fluxo-trabalho-etapas-scroll {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}


.sidebar-tooltip {
    display: none;
    position: absolute;
    background-color: #1e1e1e;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 2000;
}


/* Estilos para ocultar o scrollbar da página */
.no-scroll {
    overflow: hidden; /* Remove a rolagem da página */
}

.fixed-div {
    position: fixed;
    top: 60px; /* Ajuste para a altura do navbar existente */
    margin-left: -10px;
    width: -webkit-fill-available;
    z-index: 1000; /* Ajuste conforme necessário para evitar sobreposição */
    background-color: #f8f9fa; /* Cor de fundo para visibilidade */
}


.icones_google {
    background-image: url(/img/icones_google.png);
    background-size: 53px 2895px;
}

.icones_google {
    display: inline-block;
    height: 53px;
    vertical-align: top;
    width: 53px;
}


.negrito {
    font-weight: bold;
}

.fullscreen-modal{
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    padding: 0;
    max-width: 100% !important;
}

.fullscreen-modal .modal-content {
    height: 94vh;          /* altura total da viewport */
    border: none;           /* sem bordas arredondadas */
    border-radius: 0;
}

.modal-fullscreen {
    max-width: 1980px !important;
    width: 99% !important;
    /* Altura maior: menos folga inferior (antes 71px); topo/laterais mantidos */
    height: calc(100vh - 28px);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}
.modal-fullscreen .modal-content {
    height: 100% !important;
    max-height: calc(100vh - 28px);
    /* Igual ao jus: coluna flex para o body preencher até o rodapé (sem faixa branca) */
    display: flex;
    flex-direction: column;
}
#modal_iframe {
    display: block;
    height: 100%;
    width: 100%;
}

/* Igual ao jus: libera o max-height global (100vh - 180px) e o body ocupa o espaço restante */
.modal-fullscreen .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow: hidden !important;
    padding: 0;
}

/* Celular: no modal do projeto, só ícone no botão fechar */
#modalProjeto .btn-modal-projeto-ico {
    margin-right: 0.25rem;
}
@media (max-width: 767.98px) {
    #modalProjeto .btn-modal-projeto-txt {
        display: none;
    }
    #modalProjeto .btn-modal-projeto-ico {
        margin-right: 0;
    }
}

/* Correção para badge de notificações - permitir números maiores que 10 */
.navbar-badge {
    min-width: 18px !important;
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
    text-align: center !important;
    border-radius: 10px !important;
    right: 2px !important;
    top: 6px !important;
}

/* Rodapé do formulário: evita colapso da faixa branca quando os botões usam float */
.main-footer {
    overflow: hidden; /* clearfix clássico */
}
.main-footer .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    min-height: 2.5rem;
    gap: 0.5rem;
}
.main-footer #botoes_form {
    float: none !important;
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0.25rem;
}

/* Modais de indicador/grupo: em telas menores usam o mesmo .modal-fullscreen do atendimento
   (width 99% / height calc(100vh - 28px) — não cobre 100% da tela) */
#modalIndicador .modal-fullscreen .modal-body.no-padding,
#modalIndicadorGrupoCadastro .modal-fullscreen .modal-body.no-padding {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
}
#modalIndicador .modal-fullscreen .modal-body.no-padding iframe,
#modalIndicadorGrupoCadastro .modal-fullscreen .modal-body.no-padding iframe {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background-color: #f0f0f0;
}
/* Faixa do footer: compacta (só um pouco maior que os botões) */
#modalIndicador .modal-footer,
#modalIndicadorGrupoCadastro .modal-footer {
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 52px !important;
    padding: 0.35rem 0.75rem !important;
    margin: 0 !important;
    align-items: center !important;
    background: #fff !important;
    border-top: 1px solid #dee2e6;
}

/* Modal de tarefas: flex/altura só no detalhe ou no fullscreen (telas menores) */
#modal-content-tarefas.tarefas-modal-flex {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
}
#modal-body-tarefas {
    overflow-y: auto;
    min-height: 0;
}
#modal-content-tarefas.tarefas-modal-flex #modal-body-tarefas {
    flex: 1 1 auto;
}
#modal-footer-tarefas {
    flex: 0 0 auto !important;
    max-height: 52px !important;
    padding: 0.35rem 0.75rem !important;
    align-items: center;
}
#modalTarefas .modal-fullscreen #modal-content-tarefas {
    height: 100% !important;
    max-height: calc(100vh - 28px) !important;
    display: flex !important;
    flex-direction: column;
}
/* Evita o overflow:hidden / padding:0 do .modal-fullscreen genérico (atendimento) */
#modalTarefas .modal-fullscreen #modal-body-tarefas {
    overflow-y: auto !important;
    padding: 1rem;
    flex: 1 1 auto;
}

/* Colunas de data em tables: não quebrar dd/mm/aaaa em telas estreitas */
table th.col-data,
table td.col-data {
    white-space: nowrap !important;
    min-width: 7rem; /* ~112px: data + ícone de ordenação */
    width: 1%;
}
/* Data/hora (dd/mm/aaaa hh:mm) */
table th.col-data-hora,
table td.col-data-hora {
    white-space: nowrap !important;
    min-width: 9.5rem;
    width: 1%;
}

/* Barra de ações nos formulários abertos em popup/iframe (faixa fina 52px) */
.popup-form-actions,
footer#popup_form_actions {
    height: 52px !important;
    max-height: 52px !important;
    min-height: 52px !important;
    background: #fff !important;
    border-top: 1px solid #dee2e6;
    padding: 0 12px !important;
    overflow: visible !important;
    flex: none !important;
}

/* Itens do sidebar de notificações (navbar) */
.notificacao-sidebar-item {
    transition: background-color 0.15s ease;
}
.notificacao-sidebar-item:hover {
    background-color: #e9ecef;
}
.notificacao-sidebar-item--pendente .notif-sidebar-text {
    font-weight: 700;
}

/* Listagem atendimentos/projetos: rolagem na coluna pessoa com mais de 4 partes */
.listagem-partes-scroll {
    display: block;
    max-height: 3.6rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding-right: 2px;
}

/* Card laranja de aviso de licença — centro da barra superior */
.aviso-licenca-atraso-wrap {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 0 10px;
}
.aviso-licenca-atraso {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    max-width: 100%;
}
.aviso-licenca-atraso:hover {
    background: #ffe8a1;
    color: #533f03;
    border-color: #e0a800;
}
.aviso-licenca-atraso i {
    color: #e0a800;
    font-size: 15px;
    flex-shrink: 0;
}
@media (max-width: 991px) {
    .aviso-licenca-atraso-acao {
        display: none;
    }
    .aviso-licenca-atraso {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Modal de pessoa: em telas menores usa o mesmo .modal-fullscreen do atendimento */
#modalPessoa .modal-fullscreen .modal-body.no-padding {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
}
#modalPessoa .modal-fullscreen .modal-body.no-padding iframe {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background-color: #f0f0f0;
}
/* Faixa do footer: compacta (só um pouco maior que os botões) */
#modalPessoa .modal-footer {
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 52px !important;
    padding: 0.35rem 0.75rem !important;
    margin: 0 !important;
    align-items: center !important;
    background: #fff !important;
    border-top: 1px solid #dee2e6;
}