.cf-dialog {
    max-width: 720px;
}

.cf-modal .modal-body {
    padding-bottom: 0.85rem;
}

.cf-passos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin: 0 0 0.45rem;
    padding: 0;
    list-style: none;
    counter-reset: cfpasso;
}

.cf-passos li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pl-text-strong, #051835);
    font-size: 0.82rem;
    font-weight: 700;
}

.cf-passos li::before {
    counter-increment: cfpasso;
    content: counter(cfpasso);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #D84D15;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.cf-dica {
    margin-bottom: 0.9rem;
}

.cf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.cf-col {
    min-width: 0;
}

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

.cf-busca {
    margin-bottom: 0.65rem;
    border-radius: 10px;
    font-weight: 600;
}

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

.cf-servico {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-bottom: 1px solid var(--pl-border, #e2e8f0);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

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

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

.cf-servico.is-on {
    background: rgba(22, 163, 74, 0.1);
}

.cf-servico-cod {
    min-width: 2.4rem;
    color: var(--pl-muted, #64748b);
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cf-servico-nome {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--pl-text-strong, #051835);
    font-size: 0.9rem;
    font-weight: 700;
}

.cf-servico-qtd {
    min-width: 1.6rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.16);
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}

.cf-servico-add {
    color: #D84D15;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

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

.cf-vazio-box {
    border: 1px dashed var(--pl-border, #e2e8f0);
    border-radius: 12px;
}

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

.cf-lancado-info {
    flex: 1 1 auto;
    min-width: 0;
}

.cf-lancado-info b {
    display: block;
    color: var(--pl-text-strong, #051835);
    font-size: 0.9rem;
}

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

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

.cf-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;
}

.cf-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;
}

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

.cf-destino {
    margin: 0.85rem 0 0;
    color: var(--pl-muted, #64748b);
    font-size: 0.8rem;
    font-weight: 600;
}

.cf-modal .btn-success {
    min-width: 11.5rem;
    font-weight: 800;
}

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

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

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

@media (max-width: 799.98px) {
    .cf-lista {
        max-height: 180px;
    }
}
