.barra-acoes-exame {
    display: flex;
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border: solid .1rem rgba(0, 0, 0, .1);
    border-radius: .4rem;
}

.barra-acoes-exame .btn-acao {
    height: 100%;
    border: solid .1rem transparent;
    border-radius: 0;
    background: none;
    color: var(--background-color);
    font-size: 1.2rem;
    font-family: "Poppins", sans-serif;
}

.barra-acoes-exame #download-lista-exames {
    border-right: solid .1rem #eee3;

    &:hover {
        background: #0f5f80;
        border-radius: .3rem 0 0 .3rem;
    }
}

.barra-acoes-exame #opcoes-download {

    &:hover {
        background: #0f5f80;
        border-radius: 0 .3rem .3rem 0;
    }
}

.barra-acoes-exame #adquirir-exames,
.barra-acoes-exame #selecionar-tipo-exame {
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid .1rem rgba(0, 0, 0, .1);
    border-radius: .3rem;
    background: none;
    color: var(--font-color);
}

.barra-acoes-exame #adquirir-exames .qtd-disponivel,
.barra-acoes-exame #selecionar-tipo-exame .qtd-disponivel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: .15rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, .1);
    font-size: 1rem;
}

.barra-acoes-exame .btn-acao .text {
    margin: 0 1rem;
}


/* BUSCAR EXAMES */

#busca-wrapper,
#busca-workset-wrapper {
    position: relative;
    display: flex;
    justify-content: right;
    flex: 1;
}

#filtro-tipo-exames-wrap {
    margin-right: .5rem;
}


#busca-wrapper #texto-busca-exame,
#busca-workset-wrapper #texto-busca-exame-workset{
    height: 100%;
    padding: .5rem 1rem;
    border-radius: .4rem;
    border: solid .1rem rgba(0, 0, 0, .1);
    font-size: 1.2rem;
    background: #eee4;
    transition: .5s;
    outline: none;
}

.botao-busca {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1em;
    background: none;
    border: none;
    color: #d0d0d0;
    font-size: 1.2rem;
    padding: 0;
    outline: none;
    transition: .5s;
}

#limpar-busca,
#texto-busca-exame:focus ~ #buscar-exame {
    color: var(--color-primary);
}

.botao-busca .carregando-pequeno {
    opacity: .5;
}

.nenhum-corresponde {
    border: none;
    background: none;
    font-size: 1.2rem;
    color: #999;
    padding: 2rem;
}

/* FIM BUSCAR EXAMES */


/* FIM DOWNLOAD EXAMES */


/* FILTRO SELEÇÃO EXAMES */
.filtro-selecao-exames-wrap {
    display: flex;
    padding: .5rem 0;
    gap: .4rem;
}

.filtro-selecao-exames-wrap button {
    padding: .5rem 1rem;
    border: solid .1rem #0002;
    border-radius: .3rem;
    color: #fff;
    font-size: 1rem;
}

.filtro-selecao-exames-wrap button .contagem {
    font-size: 1rem;
}

.filtro-selecao-exames-wrap button i.ico-checkbox-checked,
.filtro-selecao-exames-wrap button.ativo i.ico-checkbox-unchecked {
    display: none;
}

.filtro-selecao-exames-wrap button.ativo i.ico-checkbox-checked,
.filtro-selecao-exames-wrap button i.ico-checkbox-unchecked {
    display: inline;
}

#selecionar-todos {
    background: #fff;
    color: #888;
}

#selecionar-todos.ativo {
    background: #bbb;
    color: #fff;
}

#selecionar-baixados.ativo {
    background: #999;
    color: #fff;
}

#selecionar-novos.ativo {
    background: #070;
    border: solid .1rem #0a1;
    text-shadow: 0 0 .3rem rgba(0, 50, 25, .5);
}

#selecionar-repassados.ativo {
    background: #501;
    border: solid .1rem #703;
    text-shadow: 0 0 .3rem rgba(50, 0, 25, .5);
}

#selecionar-revisao.ativo {
    background: #b30;
    border: solid .1rem #d50;
    text-shadow: 0 0 .3rem rgba(200, 75, 0, .5);
}

/* FIM FILTRO SELEÇÃO EXAMES */


#auto-displayer-exames {
    padding: 0 .3rem;
    outline: none;
}

#auto-displayer-exames.has-scroll {
    padding-right: .4rem;
}

#exames-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;

    &[data-interface='analisar'] .exame-link * {
        cursor: pointer;
    }
}


.exame {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: .5rem;
    padding: 1.5rem;
    border: solid 0.1rem #e2edf2;
    border-radius: 0.4rem;
    font-size: 1.1rem;
    color: #666;
    background: #fff;
    transition: all .5s;
}

.exame:not(.urgente):hover {
    border-color: #acf;
}

.exame.urgente {
    background: #fee;
    border-color: #f6bfbf;
}

.exame.focus {
    box-shadow: inset 0 0 .5rem 0 rgba(0, 0, 0, .5);
}

.exame.selected {
    background: #e4eff8;
    border-color: #bfd3f6;
}

.exame .rotulo-tipo-exame {
    margin-right: 1.5rem;
    position: relative;
    line-height: 0;
}

.exame .rotulo-tipo-exame img {
    width: 4rem;
}

.exame .dados-exame {
    display: flex;
    align-items: center;

    font-size: 1.3rem;
    font-weight: 500;
}

.exame .rotulo-info-exame {
    padding: .5rem;
    margin-top: .5rem;
    border: solid .1rem rgb(0 0 0 / 3%);
    background: rgb(0 0 0 / 2%);

    &.versao {
        background: rgb(255 0 0 / 4%);
    }
}

.exame.urgente .rotulo-info-exame {
    background: rgb(0 0 0 / 5%);
    color: #515151;
}


.tags-wrapper {
    /*position: absolute;*/
    /*right: 0;*/

    display: flex;
    gap: .3rem;
    justify-content: end;
}

.tags-wrapper .tag-exame {
    display: flex;
    align-items: center;
    padding: 0 .3rem;
    border: solid .1rem #0002;
    border-radius: .3rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
}

.tags-wrapper .tag-exame.novo,
#selecionar-novos {
    background: #0c3;
}

.tags-wrapper .tag-exame.baixado,
#selecionar-baixados {
    background: #ddd;
    color: #999;
}

.tags-wrapper .tag-exame.repassado,
#selecionar-repassados {
    background: #990055;
}

.tags-wrapper .tag-exame.revisao,
#selecionar-revisao {
    background: #ff7722;
}

.tags-wrapper .tag-exame.alerta-emergencia {
    padding: .3rem;
    line-height: 0;
    background: #F00;
}

.tags-wrapper .tag-exame.dist-auto {
    padding: .3rem;
    line-height: 0;
    background: #005ac8;
}

.tags-wrapper .tag-exame.dist-auto-visivel {
    padding: .3rem;
    line-height: 0;
    background: #00b737;
}

.tags-wrapper .tag-exame.laudo-encontrado {
    padding: .3rem;
    line-height: 0;
    background: #54c082;
}

.tags-wrapper .tag-exame.cliente-recebe-exame-analisado {
    padding: .3rem;
    line-height: 0;
    background: #ff25c0;
}

.dropdown-wrapper .dropdown-toggle {
    padding: 0;
    margin-left: .5rem;
    background: none;
    color: #555;
    transition: all .5s;
}

.dropdown-wrapper .dropdown-toggle:hover {
    color: #888;
}

.dropdown-wrapper .recusar-exame-selecionado {
    color: #e55b5b;
}

.lista-download-wrap {
    max-height: 78vh;
    overflow: auto;
}

.lista-download-wrap > div:last-child .exame {
    margin: 0;
}



.rotulo-exame {
    display: inline-block;
    padding: 0 .5rem;
    border-radius: .3rem;
    background: #b9b7b7;
    border: solid .1rem #0001;
    font-size: 1rem;
    color: #fff;
}

.rotulo-exame.urgente {
    background: #f00;
}

.rotulo-exame.marcapasso {
    background: #f6d990;
    color: #765;
}


.acoes-workset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: solid .1rem #0002;
    border-radius: .3rem;
    background: #9c9c9c;
    color: #fff;
    line-height: 0;
    font-size: 1rem;
    transition: all .5s;
}

.acoes-workset.adquirir-exame {
    background: #3dc165;
}

.acoes-workset.adquirir-exame:hover {
    background: #2bdc61;
}

.acoes-workset.devolver-exame {
    display: none;
    background: #c13d3d;
}


.card {
    margin-bottom: 1rem;
    border: solid 0.1rem #e2edf2;
    border-radius: .4rem;
    background: #fafafa;

    .card-header {
        padding: .5rem 1rem;
        font-size: 1.2rem;
        color: #fff;
        background: #778899;
    }

    .timeline {
        position: relative;
        padding: 1.5rem;
        margin: 0;
        overflow: auto;
        max-height: 25rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;

        .alerta {
            position: relative;
            border-radius: .4rem;
            padding: 1.5rem 2rem;
            border: .1rem solid #eee;
            background: #ffffff;
            box-shadow: 0 .3rem .4rem rgba(0, 0, 0, 0.06);
            transition: all 0.2s ease-in-out;

            &:hover {
                transform: translateY(-2px);
                box-shadow: 0 6px 12px rgba(0,0,0,0.1);
            }

            .info {
                display: flex;
                justify-content: space-between;
                font-size: 1rem;
                color: #636e72;
                font-style: italic;
            }

            .responsavel {
                font-weight: 600;
                color: #0984e3;
                font-size: 1.1rem;
            }

            .descricao {
                font-size: 1.2rem;
                color: #2d3436;
                margin-bottom: 0;
            }
        }
    }
}

/* ALTERAÇÕES POPUP (STYLE.CSS)*/

.popup .popup-body .exame {
    cursor: default;
}

/* FIM ALTERAÇÕES POPUP */





/* Container do campo precisa ser relativo para alinhar a lista absoluta */
[data-form="formRecusarExame"] .form-field[data-form-field-wrapper] {
    position: relative;
}

/* Estilização da lista flutuante */
.custom-dropdown-list {
    display: none;
    position: fixed;
    width: 56rem;
    max-height: 22rem;
    border: .1rem solid #ccc;
    border-top: none;
    background-color: #f1f1f1;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    box-shadow: 0 .4rem .6rem rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    z-index: 999;
}

/* Itens da lista com corte de texto longo (...) */
.custom-dropdown-list li {
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

/* Efeito visual ao passar o mouse */
.custom-dropdown-list li:hover {
    background-color: #0001;
}




@media screen and (max-width: 1024px) and (max-height: 500px) {
    #busca-wrapper {
        width: 100%;
        padding: 1rem;
    }

    .exame {
        margin: .3rem;
    }
}

@media screen and (max-width: 720px) {
    #download-lista-exames .text {
        display: none;
    }

    #busca-wrapper .botao-busca {
        right: 1.5em;
    }

    .exame {
        font-size: 1rem;
        margin: .3rem;
    }

    .tags-wrapper {
        position: static;
    }
}

@media screen and (max-width: 550px) {
    .barra-acoes-exame {
        display: flex;
        gap: .5rem;
    }

    #distribuicao-automatica-wrap {
        flex: 1;
    }

    #distribuicao-automatica-wrap .dropdown-wrapper {
        display: flex;
    }

    #distribuicao-automatica-wrap .dropdown-wrapper #adquirir-exames {
        flex: 1;
        margin: 0;
    }

    .barra-acoes-exame #busca-wrapper #texto-busca-exame {
        flex: 1;
    }

    .barra-acoes-exame .btn-acao {
        font-size: .95rem;
    }
}