.agente_de_descarga_selecao_servico_coluna_1 {
    min-width: 30px;
    width: 30px;
    max-width: 30px;
}

.agente_de_descarga_selecao_servico_coluna_2 {
    width: 100%;
}

.ag-grid-servicos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ag-col-servicos {
    min-width: 0;
}

.ag-busca-label {
    display: block;
    margin: 0 0 0.35rem;
    color: var(--pl-muted, #64748b);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ag-busca {
    margin-bottom: 0.55rem;
}

.ag-lista-servicos {
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--pl-border, #e2e8f0);
    border-radius: 12px;
    background: var(--pl-chip-bg, transparent);
}

.ag-servico {
    width: 100%;
    display: grid;
    grid-template-columns: 3.2rem 1fr auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-bottom: 1px solid var(--pl-border, #e2e8f0);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ag-servico:last-child {
    border-bottom: 0;
}

.ag-servico:hover,
.ag-servico:focus-visible {
    background: rgba(216, 77, 21, 0.08);
}

.ag-servico.is-on {
    background: rgba(216, 77, 21, 0.12);
}

.ag-servico-cod {
    color: var(--pl-muted, #64748b);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ag-servico-nome {
    color: var(--pl-text-strong, #051835);
    font-weight: 700;
}

.ag-servico-qtd,
.ag-servico-add {
    min-width: 1.6rem;
    text-align: center;
    font-weight: 800;
    color: #D84D15;
}

.ag-vazio {
    padding: 1rem;
    color: var(--pl-muted, #64748b);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.ag-vazio-box {
    border: 1px dashed var(--pl-chip-border, #d8e0ea);
    border-radius: 12px;
    margin-bottom: 0.55rem;
}

.ag-lancado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--pl-border, #e2e8f0);
    border-radius: 12px;
    background: var(--pl-chip-bg, transparent);
    flex-wrap: wrap;
}

.ag-lancado-info {
    flex: 1 1 8rem;
    min-width: 0;
}

.ag-lancado-info b {
    display: block;
    color: var(--pl-text-strong, #051835);
}

.ag-lancado-info small {
    color: var(--pl-muted, #64748b);
    font-weight: 700;
}

.ag-qtd {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 12rem;
    min-width: 12rem;
}

.ag-qtd-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--pl-chip-border, #d8e0ea);
    border-radius: 10px;
    background: transparent;
    color: var(--pl-text-strong, #051835);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.ag-qtd-input {
    flex: 1 1 auto;
    min-width: 7.5rem;
    width: 8.5rem;
    height: 44px;
    border: 1px solid var(--pl-chip-border, #d8e0ea);
    border-radius: 10px;
    background: var(--pl-surface, #fff);
    color: var(--pl-text-strong, #051835);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.ag-qtd-input:focus {
    outline: none;
    border-color: #D84D15;
    box-shadow: 0 0 0 3px rgba(216, 77, 21, 0.2);
}

.ag-remover {
    width: 36px;
    height: 36px;
    border: 1px solid var(--pl-chip-border, #d8e0ea);
    border-radius: 10px;
    background: transparent;
    color: var(--pl-text-strong, #051835);
    cursor: pointer;
}

body.painel-theme-dark .ag-servico-nome,
body.painel-theme-dark .ag-lancado-info b,
body.painel-theme-dark .ag-qtd-btn {
    color: #F8FAFC;
}

body.painel-theme-dark .ag-lista-servicos,
body.painel-theme-dark .ag-lancado,
body.painel-theme-dark .ag-vazio-box {
    border-color: rgba(148, 163, 184, 0.28);
}

body.painel-theme-dark .ag-qtd-input {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.4);
    color: #F8FAFC;
}

@media (max-width: 799.98px) {
    .ag-grid-servicos {
        grid-template-columns: 1fr;
    }

    .ag-lista-servicos {
        max-height: 180px;
    }
}
