/*
 * JuriTotal V3.5V.4.4
 * Filtros pesquisáveis e multiseleção.
 */

#jt-dashboard-filtros-analiticos.jt-v3544-legacy-hidden{
    display:none !important;
}

.jt-v3544-dashboard-row{
    display:grid;
    grid-template-columns:
        repeat(4,minmax(180px,1fr));
    gap:12px;
    margin:12px 0 16px;
    padding:14px;
    background:#fff;
    border:1px solid #e3e8ef;
    border-radius:12px;
    box-shadow:
        0 3px 14px
        rgba(15,23,42,.04);
    position:relative;
    z-index:20;
}

.jt-v3544-field{
    min-width:0;
}

.jt-v3544-field>label{
    display:block;
    margin-bottom:6px;
    font-size:12px;
    font-weight:700;
    color:#475467;
}

.jt-v3544-multi{
    position:relative;
    min-width:0;
}

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

.jt-v3544-button:hover{
    border-color:#b9c7d9;
}

.jt-v3544-button:focus{
    outline:none;
    border-color:#2e67d1;
    box-shadow:
        0 0 0 3px
        rgba(46,103,209,.10);
}

.jt-v3544-button-text{
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.jt-v3544-arrow{
    flex:0 0 auto;
    color:#667085;
    transition:transform .15s ease;
}

.jt-v3544-multi.open
.jt-v3544-arrow{
    transform:rotate(180deg);
}

.jt-v3544-menu{
    display:none;
    position:absolute;
    z-index:5000;
    top:calc(100% + 5px);
    left:0;
    right:0;
    min-width:240px;
    max-height:360px;
    overflow:hidden;
    background:#fff;
    border:1px solid #d0d5dd;
    border-radius:10px;
    box-shadow:
        0 12px 30px
        rgba(15,23,42,.16);
}

.jt-v3544-multi.open
.jt-v3544-menu{
    display:block;
}

.jt-v3544-search-wrap{
    padding:9px;
    border-bottom:1px solid #eaecf0;
}

.jt-v3544-search{
    width:100%;
    min-height:36px;
    padding:0 10px;
    border:1px solid #d0d5dd;
    border-radius:7px;
    background:#fff;
}

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

.jt-v3544-actions{
    display:flex;
    justify-content:space-between;
    gap:8px;
    padding:7px 9px;
    border-bottom:1px solid #eaecf0;
    background:#f8fafc;
}

.jt-v3544-actions button{
    border:0;
    background:transparent;
    color:#2459a9;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
    padding:3px 2px;
}

.jt-v3544-list{
    max-height:250px;
    overflow:auto;
    padding:5px;
}

.jt-v3544-option{
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding:7px 7px;
    border-radius:6px;
    cursor:pointer;
    font-size:12px;
    color:#344054;
    line-height:1.25;
}

.jt-v3544-option:hover{
    background:#f2f6fb;
}

.jt-v3544-option input{
    flex:0 0 auto;
    margin-top:1px;
}

.jt-v3544-empty{
    padding:14px 10px;
    font-size:12px;
    color:#98a2b3;
    text-align:center;
}

.jt-v3544-field.disabled
.jt-v3544-button{
    background:#f2f4f7;
    color:#98a2b3;
    cursor:not-allowed;
}

/*
 * Pesquisa adicionada aos multis já existentes:
 * Marketplace, Marca, Segmento e CNPJ.
 */
.jt-v3544-main-search{
    position:sticky;
    top:0;
    z-index:5;
    padding:7px;
    background:#fff;
    border-bottom:1px solid #eaecf0;
}

.jt-v3544-main-search input{
    width:100%;
    min-height:34px;
    padding:0 9px;
    border:1px solid #d0d5dd;
    border-radius:7px;
    background:#fff;
}

.jt-v3544-main-search input:focus{
    outline:none;
    border-color:#2e67d1;
    box-shadow:
        0 0 0 3px
        rgba(46,103,209,.08);
}

/* Cobertura dos dados */
.jt-v3544-cobertura{
    display:inline-flex;
    align-items:center;
    width:fit-content;
    margin-top:5px;
    padding:4px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
}

.jt-v3544-cobertura.ok{
    color:#17633a;
    background:#eaf7ef;
    border:1px solid #ccebd8;
}

.jt-v3544-cobertura.alerta{
    color:#8a4b08;
    background:#fff6e5;
    border:1px solid #f1d8a4;
}

@media(max-width:1100px){
    .jt-v3544-dashboard-row{
        grid-template-columns:
            repeat(2,minmax(180px,1fr));
    }
}

@media(max-width:680px){
    .jt-v3544-dashboard-row{
        grid-template-columns:1fr;
    }

    .jt-v3544-menu{
        min-width:100%;
    }
}

/*
 * JuriTotal V3.5V.4.4.1
 * A classe original .multi-option usa
 * display:flex !important.
 * Portanto a pesquisa também precisa usar
 * !important para ocultar resultados.
 */
.multi-option.jt-v3544-search-hidden {
    display: none !important;
}

/*
 * JuriTotal V3.5V.4.4.2
 * Acrescentar resultados da pesquisa atual.
 */

.jt-v35442-acrescentar {
    display:flex !important;
    align-items:center;
    gap:7px;
    min-height:30px;
    margin:7px 0 0 !important;
    padding:5px 7px !important;

    border-radius:6px;
    background:#f5f8fc;

    color:#344054 !important;
    font-size:11px !important;
    font-weight:700 !important;

    cursor:pointer;
}

.jt-v35442-acrescentar:hover {
    background:#edf3fa;
}

.jt-v35442-acrescentar input {
    margin:0 !important;
    flex:0 0 auto;
}

.jt-v35442-acrescentar
input:disabled + span {
    color:#98a2b3;
}

.jt-v35442-acrescentar:has(
    input:disabled
) {
    cursor:not-allowed;
    background:#f8f9fb;
}

/*
 * JuriTotal V3.5V.4.4.3
 * Ajuste definitivo do checkbox
 * "Acrescentar a pesquisa atual".
 */

.jt-v35442-acrescentar {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;

    width:100% !important;
    min-height:32px !important;

    padding:6px 8px !important;
    margin:7px 0 0 !important;

    box-sizing:border-box !important;

    border:1px solid #e4e7ec;
    border-radius:7px;

    background:#f8fafc;
}

.jt-v35442-acrescentar
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;

    padding:0 !important;
    margin:0 !important;

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

    box-shadow:none !important;

    flex:0 0 15px !important;
}

.jt-v35442-acrescentar span {
    flex:1 1 auto;
    min-width:0;

    font-size:11px;
    line-height:1.25;

    color:#344054;
}


/*
 * Relação dos itens selecionados.
 */

.jt-v35443-selecionados {

    padding:8px 9px;

    border-bottom:
        1px solid #eaecf0;

    background:#fbfcfe;
}

.jt-v35443-selecionados-topo {

    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:8px;

    margin-bottom:6px;

    font-size:11px;
    font-weight:700;

    color:#475467;
}

.jt-v35443-limpar {

    border:0 !important;

    padding:2px 4px !important;

    background:transparent !important;

    color:#2459a9 !important;

    font-size:10px !important;
    font-weight:700 !important;

    cursor:pointer;
}

.jt-v35443-chips {

    display:flex;

    flex-wrap:wrap;

    gap:5px;

    max-height:86px;
    overflow-y:auto;
}

.jt-v35443-chip {

    display:inline-flex !important;

    align-items:center !important;

    gap:5px !important;

    width:auto !important;
    min-width:0 !important;

    min-height:25px !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;

    box-shadow:none !important;
}

.jt-v35443-chip:hover {

    background:
        #e1eaf5 !important;

    border-color:
        #aebfd3 !important;
}

.jt-v35443-chip span:first-child {

    max-width:180px;

    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.jt-v35443-chip-x {

    font-size:14px;

    line-height:1;

    color:#667085;
}

/*
 * JuriTotal V3.5V.4.4.4
 * A multiseleção já acumula itens entre pesquisas.
 * O controle abaixo tornou-se redundante.
 */
.jt-v35442-acrescentar {
    display:none !important;
}

/*
 * JuriTotal V3.5V.4.4.4
 * Indicação de filtros alterados mas ainda
 * não aplicados.
 */

.jt-v35444-pendente {
    display:none;

    align-items:center;

    min-height:30px;

    padding:0 9px;

    border-radius:999px;

    background:#fff6e5;

    border:
        1px solid #f1d8a4;

    color:#8a4b08;

    font-size:10px;
    font-weight:700;
}

.jt-v35444-pendente.ativo {
    display:inline-flex;
}

.jt-v35444-aplicar-pendente {
    box-shadow:
        0 0 0 3px
        rgba(33, 91, 180, .14)
        !important;
}
