/*
 * JuriTotal V3.5V.4.5
 * Filtros globais pesquisáveis.
 */

.jtg-native-select{
    display:none !important;
}

.jtg-multi{
    position:relative;
    width:100%;
}

.jtg-button{
    width:100%;
    min-height:38px;
    padding:0 10px;
    border:1px solid #d0d5dd;
    border-radius:7px;
    background:#fff;
    color:#172033;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    cursor:pointer;
    text-align:left;
}

.jtg-resumo{
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.jtg-seta{
    color:#667085;
    flex:0 0 auto;
}

.jtg-menu{
    display:none;
    position:absolute;
    z-index:10000;
    top:calc(100% + 4px);
    left:0;
    right:0;
    min-width:250px;
    max-height:410px;
    overflow:hidden;
    background:#fff;
    border:1px solid #d0d5dd;
    border-radius:9px;
    box-shadow:
        0 12px 30px
        rgba(15,23,42,.18);
}

.jtg-multi.aberto
.jtg-menu{
    display:block;
}

.jtg-pesquisa{
    width:calc(100% - 16px);
    min-height:36px;
    margin:8px;
    padding:0 9px;
    box-sizing:border-box;
    border:1px solid #d0d5dd;
    border-radius:7px;
    background:#fff;
}

.jtg-pesquisa:focus{
    outline:none;
    border-color:#2e67d1;
    box-shadow:
        0 0 0 3px
        rgba(46,103,209,.08);
}

.jtg-selecionados{
    padding:7px 8px;
    border-top:1px solid #eaecf0;
    border-bottom:1px solid #eaecf0;
    background:#fbfcfe;
}

.jtg-selecionados-topo{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-bottom:5px;
    font-size:11px;
    font-weight:700;
    color:#475467;
}

.jtg-limpar{
    border:0 !important;
    background:transparent !important;
    color:#2459a9 !important;
    padding:2px !important;
    font-size:10px !important;
    font-weight:700 !important;
    cursor:pointer;
}

.jtg-chips,
.jtg-existing-chips{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    padding:5px 8px;
    max-height:85px;
    overflow:auto;
}

.jtg-chip{
    display:inline-flex !important;
    align-items:center !important;
    gap:5px !important;
    width:auto !important;
    min-height:24px !important;
    padding:3px 7px !important;
    border:1px solid #cfd9e6 !important;
    border-radius:999px !important;
    background:#eef3fa !important;
    color:#243b5a !important;
    font-size:10px !important;
    font-weight:700 !important;
    cursor:pointer !important;
}

.jtg-chip b{
    font-size:13px;
    line-height:1;
    color:#667085;
}

.jtg-lista{
    max-height:245px;
    overflow:auto;
    padding:5px;
}

.jtg-opcao{
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding:7px;
    border-radius:6px;
    cursor:pointer;
    font-size:12px;
    color:#344054;
}

.jtg-opcao:hover{
    background:#f2f6fb;
}

.jtg-opcao[hidden]{
    display:none !important;
}

.jtg-pesquisa-oculto{
    display:none !important;
}

.jtg-pendente{
    display:none;
    align-items:center;
    min-height:30px;
    padding:0 9px;
    margin-left:7px;
    border:1px solid #f1d8a4;
    border-radius:999px;
    background:#fff6e5;
    color:#8a4b08;
    font-size:10px;
    font-weight:700;
}

.jtg-pendente.ativo{
    display:inline-flex;
}

/*
 * =====================================================
 * JuriTotal V3.5V.4.5-A.1
 * Normalização visual dos checkboxes.
 *
 * Alguns módulos possuem regras genéricas para input
 * que aumentavam também os checkbox.
 * =====================================================
 */

.jtg-opcao input[type="checkbox"],
.vendas-check input[type="checkbox"],
.compras-check input[type="checkbox"] {

    appearance: auto !important;
    -webkit-appearance: checkbox !important;

    display: inline-block !important;

    width: 15px !important;
    height: 15px !important;

    min-width: 15px !important;
    min-height: 15px !important;

    max-width: 15px !important;
    max-height: 15px !important;

    flex: 0 0 15px !important;

    padding: 0 !important;

    margin:
        1px 0 0 0 !important;

    border: initial !important;
    border-radius: 2px !important;

    box-shadow: none !important;

    vertical-align: middle !important;
}


/*
 * Linha de opção.
 */

.jtg-opcao {

    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    width: 100% !important;

    min-height: 31px !important;

    padding:
        6px 7px !important;

    box-sizing:
        border-box !important;
}


.jtg-opcao > span {

    display: block;

    flex: 1 1 auto;

    min-width: 0;

    line-height: 1.25;

    white-space: normal;

    overflow-wrap: anywhere;
}


/*
 * Multiselect original de Marketplace.
 */

.vendas-check,
.compras-check {

    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    min-height: 29px !important;
}


/*
 * Evita que estilos gerais de input do módulo
 * transformem checkbox em campo de formulário.
 */

.jtg-menu input[type="checkbox"] {

    width: 15px !important;
    height: 15px !important;

    min-width: 15px !important;
    min-height: 15px !important;

    max-width: 15px !important;
    max-height: 15px !important;
}
