table#resultados td, 
table#resultados th {
    padding: .8rem 1rem;
}

.dt-processing {
    position: absolute !important;
}

.breadcrumb a {
    text-decoration: none !important;
}

div.dt-processing>div:last-child>div {
    background: #A01128 !important;
}

tr.revogada td {
    color: #ccc;
    /* text-decoration: line-through;  */
}

h1.pagina-titulo {
  font-size: 18px !important;
  font-weight: 400 !important;
  font-family: Roboto, sans-serif !important;
  text-transform: uppercase !important;
  padding-bottom: 5px !important;
  margin-bottom: 26px !important;
  border-bottom: 2px solid #eee !important;
  color: #a01128 !important;
}

.bs5-container .nav-pills .nav-link {
    background: #f4f4f4;
}

.bs5-container .nav-pills .nav-link.active {
    background: #a01128 !important;
}

.btn-white {
    background: #fff !important;
    border: 1px solid #eceaea !important;
}

.title-nav {
    display: flex !important;
    justify-content: space-between !important;
    font-weight: 900 !important;
    font-size: 1.8rem !important;
    width: 350px;
    border-radius: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    box-shadow: 1px 1px 2px 1px #ccc;
}

@media (max-width: 991px) {
    .title-nav {
        width: 100% !important;
    }
}

.title-nav .d-flex.align-items-center {
    flex: 2;
}

.bs5-container .nav-pills .nav-link:hover {
    background: #680818 !important;
    color: #fff !important;
    transition: all 0.3s ease-in-out;
}

.title-nav .icon-nav {
    font-size: 2.4rem;
    background-color: #a01128;
    color: #fff;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.title-nav.active .icon-nav {
    background-color: #fff;
    color: #a01128;
}

.bs5-container .nav-pills .nav-link:hover .icon-nav {
    background: #fff !important;
    color: #a01128 !important;
    transition: all 0.3s ease-in-out;
}

.title-nav .nav-title {
    flex: 1;
    text-align: center;
}

/* Select2 */
.select2-selection.select2-selection--single,
.select2-selection.select2-selection--single .select2-selection__rendered,
.select2-selection.select2-selection--single .select2-selection__arrow {
    height: 34px;
    line-height: 34px;
    border-color: #dee2e6 !important;
}

.select2-selection.select2-selection--single {
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.select2-container {
    width: 100% !important;
}


/* ==========================================================================
   TIMELINE - ESTRUTURA BASE (DESKTOP E TABLET)
   ========================================================================== */
.timeline {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: #a01128;
    left: 110px; /* Alterado de 11% para pixel fixo */
    margin-left: -2.5px;
    border-radius: 10px;
}

.timeline > li {
    position: relative;
    min-height: 50px;
    padding: 20px 0;
}

.timeline.placeholder-glow{
    -webkit-user-select: none;
    -ms-user-select: none; 
    user-select: none;
}

.timeline .timeline-time {
    position: absolute;
    left: 0;
    width: 60px; /* Ajustado para caber a data sem quebrar */
    text-align: right;
    top: 30px;
}

.timeline .timeline-time .date,
.timeline .timeline-time .time {
    display: block;
    font-weight: 600;
    color: var(--cor-site, #333); /* Adicionado fallback de cor */
}

.timeline .timeline-time .date {
    line-height: 16px;
    font-size: 12px;
}

.timeline .timeline-time .time {
    line-height: 24px;
    font-size: 20px;
}

.timeline .timeline-icon {
    position: absolute;
    left: 90px; /* Alinhado exatamente com a linha */
    width: 30px;
    margin-left: -15px; /* Centraliza o ícone em cima da linha */
    text-align: center;
    top: 40px; /* Ajuste fino de altura */
}

.timeline .timeline-icon a {
    text-decoration: none;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 50%; /* 50% é melhor para círculos que 20px */
    background: #fff;
    line-height: 10px;
    color: #fff;
    font-size: 14px;
    border: 5px solid #a01128;
    transition: border-color .2s linear;
}

.timeline .timeline-body {
    margin-left: 130px;
    background: #a011282b;
    position: relative;
    padding: 20px 25px;
    border-radius: 6px;
}

.timeline .timeline-body:before {
    content: '';
    display: block;
    position: absolute;
    border: 10px solid transparent;
    border-right-color: #a011282b;
    left: -20px;
    top: 20px;
}

.timeline .timeline-body > div + div { margin-top: 15px; }
.timeline .timeline-body > div + div:last-child { margin-bottom: -20px; padding-bottom: 20px; border-radius: 0 0 6px 6px; }
.timeline-header { padding-bottom: 10px; border-bottom: 1px solid #7112212b; line-height: 30px; position: relative; }

.timeline-header .logo-sistema { 
    float: left; 
    width: 34px; 
    height: 34px; 
    border-radius: 40px;
    overflow: hidden; 
    margin: -2px 10px -2px 0; 
    box-shadow: 1px 1px 3px;
    position: absolute;
}
.timeline-header .logo-sistema:nth-child(1) { left: 0; }
.timeline-header .logo-sistema:nth-child(2) { left: 20px; }
.timeline-header .logo-sistema:nth-child(3) { left: 40px; }
.timeline-header .logo-sistema:nth-child(4) { left: 60px; }

.timeline-header .nome-sistema { font-size: 1.6rem; font-weight: 600; box-shadow: initial; width: auto;   padding-left: 25px; z-index: 9; }
.timeline-header .nome-sistema, .timeline-header .nome-sistema a { color: #2d353c; }
.timeline-header .tipo-indisponibilidade { color: #a01128 !important; font-size: 1.2rem; }
.timeline-header .tipo-indisponibilidade .dot-alert { height: 12px; width: 12px; background: #a01128; border-radius: 50%; margin-right: 6px; display: inline-block; animation: piscar-suave 1.5s infinite ease-in-out; }
.timeline-header .tipo-indisponibilidade .dot-alert.warning { background: #e39c15; }
.timeline-header .tipo-indisponibilidade .dot-alert.info { background: #138496; }
.timeline-header .tipo-indisponibilidade .dot-alert.success { background: #12610f; }
@keyframes piscar-suave { 0% { opacity: 1; } 50% { opacity: 0.2; } 100% { opacity: 1; } }
.timeline img { max-width: 100%; display: block; }
.timeline-content { letter-spacing: .25px; line-height: 18px; font-size: 13px; }
.timeline-content:after, .timeline-content:before { content: ''; display: table; clear: both; }
.timeline-title { margin-top: 0; }
.timeline-footer { width: 100%; border-top: 1px solid #7112212b; padding-top: 15px; font-size: 12px; color: #6d767f !important; }
.timeline-footer a:not(.btn) { color: #575d63; }
.timeline-footer a:not(.btn):focus, .timeline-footer a:not(.btn):hover { color: #2d353c; }
.timeline-info { color: #6d767f; font-weight: 600; font-size: 12px; display: flex; justify-content: space-between; flex-direction: row-reverse; align-items: flex-end; }
.timeline-info .stats-right { float: right; display: flex; }
.timeline-info .stats-total { display: inline-block; line-height: 20px; }
.timeline-info .stats-icon { float: left; margin-right: 5px; font-size: 9px; }
.timeline-info .stats-icon + .stats-icon { margin-left: -2px; }
.timeline-info .stats-text { line-height: 20px; }
.timeline-info .stats-text + .stats-text { margin-left: 15px; }
.timeline-comment-box { background: #f2f3f4; margin-left: -25px; margin-right: -25px; padding: 20px 25px; }
.timeline-comment-box .user { float: left; width: 34px; height: 34px; overflow: hidden; border-radius: 30px; }
.timeline-comment-box .user img { max-width: 100%; max-height: 100%; }
.timeline-comment-box .user + .input { margin-left: 44px; }

@media (max-width: 991px) {
    .tipo-indisponibilidade {
        padding-top: 19px;
    }
}


/* ==========================================================================
   RESPONSIVIDADE (SMARTPHONES ATÉ 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Move a linha principal lá para o canto esquerdo */
    .timeline:before {
        left: 20px; 
    }

    /* Muda a data e hora do lado esquerdo para o topo do balão */
    .timeline .timeline-time {
        position: relative;
        width: 100%;
        text-align: left;
        left: 45px; /* Alinha com o novo conteúdo */
        top: 0;
        padding-bottom: 10px;
    }

    /* Coloca data e hora lado a lado no celular */
    .timeline .timeline-time .date,
    .timeline .timeline-time .time {
        display: inline-block;
        margin-right: 10px;
    }

    .timeline .timeline-time .time {
        font-size: 16px; /* Diminui a fonte da hora no celular */
    }

    /* Move o ícone para a nova posição da linha */
    .timeline .timeline-icon {
        left: 0px;
        top: 25px; /* Ajusta para alinhar com o começo do card */
    }

    /* Reduz a margem esquerda do balão para ocupar toda a tela */
    .timeline .timeline-body {
        margin-left: 45px;
        padding: 15px; /* Reduz o espaçamento interno */
    }

    /* Esconde ou ajusta a setinha do balão */
    .timeline .timeline-body:before {
        display: none; /* Em telas muito pequenas, ocultar a seta deixa mais limpo */
    }

    .timeline-info {
        flex-direction: initial;
        flex-wrap: wrap;
    }

    .timeline-info .stats-right {
        justify-content: space-between;
        width: 100%;
        padding-bottom: 10px;
    }
}

div:where(.swal2-container) {  
    z-index: 9999 !important;
}