.govbr-timeline-base,
.govbr-timeline-base * {
    box-sizing: border-box;
}

.govbr-timeline-base {
    position: relative;
    display: flex;
    flex-direction: column;

    border-radius: 4px;
    background: var(--colors_databackgroundcolor);

    overscroll-behavior: none;
    scroll-behavior: smooth;
}

.govbr-timeline-base-acoes {
    --total-filhos: 0;

    position: absolute;
    top: 0;
    right: 16px;
    display: flex;
    flex-direction: column;
    box-sizing: initial;
    text-align: end;
    padding: 8px 4px;
    pointer-events: none;
    z-index: 1;
    gap: 5px;
    opacity: 0.75;
    transition: opacity 0.25s;
    perspective: 500px;
}

.govbr-timeline-base-acoes:hover,
.govbr-timeline-base-acoes:focus-visible {
    opacity: 1;
}

.govbr-timeline-base-acoes-aberta {
    border-radius: 0 0 0 4px;
}

.govbr-timeline-base-acoes button {
    pointer-events: all;
    background: #0069a4;
    height: 34px;
    padding: 0 12px;
    color: #f9f9f9;
    border: 1px solid #005a95;
    border-radius: 4px;
    text-align: start;
}

.govbr-timeline-base-acoes button:not(.govbr-timeline-base-acoes-botao-dropdown) {
    --delay-animacao: 0;
    transform-origin: top;
    animation: govbr-timeline-animacao-acao-exibir 0.2s calc(var(--delay-animacao) * 0.05s) 1 both;
}

.govbr-timeline-base-acoes button:nth-child(odd):not(.govbr-timeline-base-acoes-botao-dropdown) {
    animation-name: govbr-timeline-animacao-acao-exibir-impar;
}

.govbr-timeline-base-acoes:not(.govbr-timeline-base-acoes-aberta) button:not(.govbr-timeline-base-acoes-botao-dropdown) {
    animation: govbr-timeline-animacao-acao-ocultar 0.2s calc((var(--total-filhos) - var(--delay-animacao)) * 0.05s) 1 both;
    pointer-events: none;
}

.govbr-timeline-base-acoes:not(.govbr-timeline-base-acoes-aberta) button:nth-child(odd):not(.govbr-timeline-base-acoes-botao-dropdown) {
    animation-name: govbr-timeline-animacao-acao-ocultar-impar;
}

.govbr-timeline-base-acoes:not(.govbr-timeline-base-acoes-reproduzindo-animacao):not(.govbr-timeline-base-acoes-aberta) button:not(.govbr-timeline-base-acoes-botao-dropdown) {
    display: none;
}

.govbr-timeline-base-acoes button:not(.govbr-timeline-base-acoes-botao-dropdown) > i {
    margin-right: 12px;
}

.govbr-timeline-base-acoes .govbr-timeline-base-acoes-botao-dropdown {
    width: 40px;
    font-size: 15px;
    background: #f9f9f9;
    color: #0069a4;
    align-self: flex-end;
}

.govbr-timeline-base-acoes .govbr-timeline-base-acoes-botao-dropdown .fa-bars:before {
    font-size: inherit;
    /* Só deus sabe o pq o pessoal da dngx achou uma boa sobreescrever isso */
}

.govbr-timeline-base-acoes button:hover,
.govbr-timeline-base-acoes button:focus-visible {
    background: #0073ae;
}

.govbr-timeline-base-acoes .govbr-timeline-base-acoes-botao-dropdown:hover,
.govbr-timeline-base-acoes .govbr-timeline-base-acoes-botao-dropdown:focus-visible {
    background: var(--colors_basecolor10);
}

.govbr-timeline-base-acoes button[disabled] {
    background: #4face2;
    border: 1px solid #43a3e2;
    pointer-events: none;
}

.govbr-timeline-base-container {
    --total-itens: 1;
    --duracao-animacao: 200ms;
    --duracao-animacao-2x: 400ms;

    display: grid;
    width: fit-content;
    align-items: center;
    justify-content: start;
    animation: govbr-timeline-base-container calc(var(--duracao-animacao) * min(6, var(--total-itens) + 1)) 1 both;

    box-sizing: border-box;
}

.govbr-timeline-base-container.govbr-timeline-ignora-animacao,
.govbr-timeline-base-container .govbr-timeline-ignora-animacao,
.govbr-timeline-base-container .govbr-timeline-ignora-animacao::before,
.govbr-timeline-base-container .govbr-timeline-ignora-animacao::after {
    --duracao-animacao: 0 !important;
}

.govbr-timeline-base .govbr-timeline-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    align-self: end;

    --idx: 1;
    --idx-animacao: 1;
    --cor-fundo: #74bce2;
    --cor-texto: #323232;

    border-radius: 6px;
    padding: 7px 10px;
    box-shadow: 2px 2px 5px #00000022;
    background: #f9f9f9;
    border: 1px solid var(--cor-fundo);

    max-width: 400px;
    min-width: 200px;
    width: max-content;
    max-height: 300px;
    min-height: 75px;

    box-sizing: border-box;
}

.govbr-timeline-base .govbr-timeline-card.govbr-timeline-card-impar {
    align-self: start;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-cabecalho {
    display: grid;
    grid-template-columns: 1fr auto;
    flex: 0 0 auto;
    margin-top: -7px;
    border-bottom: 1px solid color-mix(in oklab, 80% transparent, var(--cor-fundo));
    font-size: 12px;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-titulo {
    margin: 0 -10px;
    background: #f9f9f9;
    color: var(--colors_gray08);
    grid-column: 1 / -1;
    padding: 10px 12px 6px 12px;
    font-size: 14px;
    font-weight: bold;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-titulo.govbr-timeline-titulo-clicavel {
    cursor: pointer;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-titulo.govbr-timeline-titulo-clicavel:hover,
.govbr-timeline-base .govbr-timeline-card .govbr-timeline-titulo.govbr-timeline-titulo-clicavel:focus-visible {
    background: var(--colors_basecolor10);
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-titulo .govbr-timeline-abrir {
    float: right;
    margin-top: -1px;
    margin-left: 5px;
}

.govbr-timeline-base .govbr-timeline-card:not(.govbr-timeline-card-aberto) .govbr-timeline-conteudo,
.govbr-timeline-base .govbr-timeline-card:not(.govbr-timeline-card-aberto) .govbr-timeline-secao {
    display: none;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-conteudo {
    overflow: auto;
    font-size: 14px;
    line-height: 1.25;
    padding: 5px 0;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-conteudo .govbr-timeline-sem-conteudo {
    font-weight: bold;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    padding: 4px;
    margin: -4px -10px 0 -2px;
    gap: 4px;
    overflow: hidden auto;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-titulo {
    position: sticky;
    top: -4px;
    font-size: 14px;
    padding: 4px 8px;
    margin: -4px -3px 0 -4px;
    font-weight: bold;
    grid-column: 1 /-1;
    background: color-mix(in oklab, var(--colors_databackgroundcolor) 80%, var(--cor-fundo));
    z-index: 1;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-icone {
    margin-right: 6px;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid color-mix(in oklab, transparent 90%, var(--cor-fundo));
    border-radius: 4px;
    overflow: hidden;
    height: 26px;
    user-select: none;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item.govbr-timeline-secao-item-possui-acoes {
    cursor: pointer;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item.govbr-timeline-secao-item-possui-imagem {
    height: 74px;
}

.govbr-timeline-secao-item-hint {
    position: absolute;
    left: 0;
    top: 0;
    padding: 0.5rem;
    background: color-mix(in oklab, transparent 90%, var(--cor-fundo));
    color: var(--cor-fundo);
    border-radius: 0 0 0.5rem 0;
}

.govbr-timeline-secao-item-recusa {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    background: var(--colors_databackgroundcolor);
    color: var(--colors_gray06);
    z-index: 99999;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(-20deg);
    opacity: 0.95;
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--colors_gray06);
    box-shadow: 0 0 0 2px var(--colors_databackgroundcolor);
    font-size: 1.1rem;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item:hover,
.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item:focus-visible {
    background: color-mix(in oklab, transparent 90%, var(--cor-fundo));
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item-imagem {
    grid-column: 1;
    grid-row: 1;
    width: 100px;
    height: 50px;
    object-fit: contain;
    padding: 4px 4px 0 4px;
    opacity: 0.6;
    transition: opacity 0.25s;
    justify-self: center;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item:hover .govbr-timeline-secao-item-imagem,
.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item:focus-visible .govbr-timeline-secao-item-imagem {
    opacity: 1;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item-titulo {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 5px 4px;
    font-size: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-self: flex-end;
    font-weight: bold;
    user-select: text;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item.govbr-timeline-secao-item-possui-imagem .govbr-timeline-secao-item-titulo {
    grid-column: 1 / -1;
    grid-row: 2;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-secao-item-acoes {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    font-size: 10px;
    width: 16px;
    height: 16px;
    padding: 0;
    background: color-mix(in oklab, transparent 90%, var(--cor-fundo));
    color: var(--cor-fundo);
    border: none;
    border-radius: 4px;
    margin-left: -16px;
    overflow: hidden;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-nome {
    margin: 0;
    font-weight: bold;
    color: #00000099;
    padding: 2px 2px 0px 0px;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-data-hora {
    margin: 0;
    color: #00000099;
    padding: 2px 0px 0px 2px;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-tags {
    grid-column: 1 / -1;
    list-style: none;
    padding: 4px 0px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin: 0;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-tags .govbr-timeline-tags-tag {
    padding: 3px 6px;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    border-radius: 4px;
    font-weight: bold;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-rodape {
    margin-top: 2px;
    padding: 0 4px;
    font-size: 12px;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-rodape * {
    margin: 0;
}

.govbr-timeline-base .govbr-timeline-container-icone {
    --cor-fundo: #74bce2;
    --cor-texto: #323232;

    display: contents;

    --idx: 1;
    --idx-animacao: 1;
}

.govbr-timeline-base .govbr-timeline-container-icone .govbr-timeline-icone {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;

    width: 23px;
    height: 23px;

    color: var(--cor-texto);
    background: var(--cor-fundo);
    border-radius: 50%;

    box-sizing: initial;

    animation: govbr-timeline-icone-surgir var(--duracao-animacao) 1 calc((var(--idx-animacao) * var(--duracao-animacao)) - var(--duracao-animacao)) both;
}

.govbr-timeline-base .govbr-timeline-container-icone.govbr-timeline-container-icone-filho {
    --cor-texto: #686868;
    --cor-fundo: #dddddd;
}

.govbr-timeline-base .govbr-timeline-container-icone.govbr-timeline-container-icone-filho .govbr-timeline-icone {
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.govbr-timeline-base .govbr-timeline-container-icone:not(.govbr-timeline-icone-last)::after {
    content: '';
    justify-self: center;

    background: var(--cor-fundo);

    transform-origin: 0 0;
}

.govbr-timeline-base .govbr-timeline-container-icone .govbr-timeline-icone.govbr-timeline-nao-possui-icone::before {
    content: '';
    display: block;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: var(--cor-texto);
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-botoes {
    position: relative;
    margin: 0;
    padding: 2px;
    padding-top: 9px;
    margin-top: 10px;
    border-top: 1px solid #00000022;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-botoes::before {
    content: 'Ações:';
    position: absolute;
    top: -9px;
    font-size: 12px;
    background: #f9f9f9;
    left: 6px;
    padding: 0 4px;
    width: 45px;
    font-weight: bold;
    color: #999999;
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-botoes .govbr-timeline-botoes-botao {
    --cor-fundo: #74bce2;
    --cor-texto: #323232;

    flex: 0 0 auto;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    border-radius: 4px;
    padding: 3px 10px;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    border: 1px solid color-mix(in oklab, var(--cor-fundo), #000000 30%);
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-botoes .govbr-timeline-botoes-botao:hover,
.govbr-timeline-base .govbr-timeline-card .govbr-timeline-botoes .govbr-timeline-botoes-botao:focus-visible {
    filter: brightness(1.2);
}

.govbr-timeline-base .govbr-timeline-card .govbr-timeline-botoes .govbr-timeline-botoes-botao .govbr-timeline-botao-icone {
    margin-right: 4px;
}

.govbr-timeline-suggest-botao {
    border: none;
    background: none;
    text-align: start;
    min-width: 120px;
    height: 28px;
    padding: 0 8px;
}

.govbr-timeline-suggest-botao:hover {
    background: var(--colors_basecolor10);
}

@keyframes govbr-timeline-icone-surgir {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes govbr-timeline-base-container {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

@keyframes govbr-timeline-animacao-acao-exibir {
    0% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

@keyframes govbr-timeline-animacao-acao-exibir-impar {
    0% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

@keyframes govbr-timeline-animacao-acao-ocultar {
    0% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateX(90deg);
        opacity: 0;
    }
}

@keyframes govbr-timeline-animacao-acao-ocultar-impar {
    0% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
}
