/* TELA VENDAS - JURITOTAL */

.vendas-view {
    color: #172033;
}

.vendas-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.vendas-header h1 {
    margin: 0;
    font-size: 36px;
}

.vendas-header p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 16px;
}

.vendas-periodo-info {
    margin-top: 6px;
    color: #667085;
    font-size: 13px;
}

.vendas-filtros,
.vendas-tabela-panel {
    background: #fff;
    border-radius: 11px;
    box-shadow: 0 2px 7px rgba(0,0,0,.045);
}

.vendas-filtros {
    padding: 20px;
    margin-bottom: 20px;
}

.vendas-filtros h2 {
    margin: 0 0 18px;
    font-size: 19px;
}

.vendas-periodos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.vendas-periodos strong {
    margin-right: 5px;
    font-size: 13px;
}

.vendas-periodo-btn {
    border: 1px solid #d5dce7;
    border-radius: 7px;
    background: #f5f7fa;
    color: #172033;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}

.vendas-periodo-btn:hover,
.vendas-periodo-btn.ativo {
    background: #14213d;
    border-color: #14213d;
    color: white;
}

.vendas-filter-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(140px, .8fr))
        minmax(170px, 1fr)
        minmax(250px, 1.6fr)
        repeat(4, minmax(150px, 1fr));
    gap: 11px;
    align-items: end;
}

.vendas-campo {
    min-width: 0;
}

.vendas-campo > label {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
}

.vendas-campo input,
.vendas-campo select,
.vendas-multi > summary {
    width: 100%;
    height: 40px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    background: #fff;
    color: #172033;
    padding: 0 10px;
    font: inherit;
}

.vendas-multi {
    position: relative;
}

.vendas-multi > summary {
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vendas-multi > summary::-webkit-details-marker {
    display: none;
}

.vendas-multi > summary::after {
    content: "▼";
    margin-left: auto;
    padding-left: 8px;
    color: #667085;
    font-size: 9px;
}

.vendas-multi-opcoes {
    position: absolute;
    z-index: 100;
    top: 44px;
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 330px;
    max-height: 270px;
    overflow: auto;
    padding: 7px;
    border: 1px solid #d8dde5;
    border-radius: 7px;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.vendas-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 5px 7px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.vendas-check:hover {
    background: #f3f5f7;
}

.vendas-check-todos {
    border-bottom: 1px solid #edf0f4;
    margin-bottom: 3px;
    font-weight: 700;
}

.vendas-acoes {
    display: flex;
    gap: 9px;
    margin-top: 15px;
}

.vendas-btn {
    border: 0;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 700;
}

.vendas-btn-primary {
    background: #14213d;
    color: white;
}

.vendas-btn-secondary {
    background: #edf0f4;
    color: #344054;
}

.vendas-kpis {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(175px,1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.vendas-kpi {
    padding: 18px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,.045);
}

.vendas-kpi small {
    display: block;
    color: #667085;
    margin-bottom: 8px;
}

.vendas-kpi strong {
    display: block;
    font-size: 22px;
    white-space: nowrap;
}

.vendas-lista-topo {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 0 3px 10px;
    color: #667085;
    font-size: 13px;
}

.vendas-tabela-panel {
    padding: 18px;
}

.vendas-tabela-wrap {
    overflow-x: auto;
}

.vendas-tabela {
    width: 100%;
    min-width: 1250px;
    border-collapse: collapse;
}

.vendas-tabela th,
.vendas-tabela td {
    padding: 10px 9px;
    border-bottom: 1px solid #edf0f4;
    font-size: 13px;
    vertical-align: middle;
}

.vendas-tabela th {
    color: #667085;
    font-size: 11px;
    text-transform: uppercase;
    text-align: left;
}

.vendas-tabela .num {
    text-align: right;
}

.vendas-sku {
    font-weight: 700;
}

.vendas-produto {
    max-width: 270px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vendas-vazio {
    padding: 25px !important;
    text-align: center;
    color: #667085;
}

.vendas-erro {
    color: #b42318;
}

.vendas-erro-box {
    padding: 20px;
    background: #fff;
    border: 1px solid #f2c6c2;
    border-radius: 9px;
    color: #b42318;
}

.vendas-paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.vendas-paginacao button {
    padding: 8px 14px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.vendas-paginacao button:disabled {
    opacity: .4;
    cursor: default;
}

#vendas-paginacao-texto {
    min-width: 140px;
    color: #667085;
    text-align: center;
    font-size: 13px;
}

@media(max-width:1450px) {
    .vendas-filter-grid {
        grid-template-columns:
            repeat(4, minmax(150px,1fr));
    }
}

@media(max-width:1100px) {
    .vendas-filter-grid {
        grid-template-columns:
            repeat(2, minmax(150px,1fr));
    }

    .vendas-kpis {
        grid-template-columns:
            repeat(2, minmax(175px,1fr));
    }
}

@media(max-width:650px) {
    .vendas-filter-grid,
    .vendas-kpis {
        grid-template-columns: 1fr;
    }

    .vendas-acoes {
        flex-direction: column;
    }
}
