/* Autos Esquivel CRM — Rentabilidad
   Evita duplicar los datos financieros y convierte la ecuación superior
   en el punto de entrada para completar información pendiente. */

.prep-profitability-requirements {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.prep-profitability-requirements > h3,
.prep-profitability-requirements > div {
    display: none !important;
}

.prep-profitability-requirements > .prep-profitability-warning {
    display: inline-flex !important;
    width: max-content;
    max-width: 100%;
    margin: 0 !important;
}

.prep-profitability-requirements > footer {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 0 0 auto !important;
    padding: 7px 0;
    color: var(--ae-muted, #707b8d);
    font-size: 0.49rem;
    white-space: nowrap;
}

.prep-profitability-equation > div.ae-profit-node-action {
    position: relative;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.prep-profitability-equation > div.ae-profit-node-action:hover {
    border-color: #aeb7c2;
    background: var(--ae-surface-soft, #f8f9fa);
    box-shadow: 0 6px 18px rgba(28, 36, 48, 0.08);
    transform: translateY(-1px);
}

.prep-profitability-equation > div.ae-profit-node-action:focus-visible {
    outline: 3px solid rgba(99, 112, 128, 0.2);
    outline-offset: 2px;
}

.prep-profitability-equation > div.ae-profit-node-action > em.ae-profit-node-action__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin-top: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef1f4;
    color: #4f5a68;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.prep-profitability-equation > div.ae-profit-node-action.is-pending > em.ae-profit-node-action__hint,
.prep-profitability-equation > div.ae-profit-node-action[data-ae-profit-action="capture-acquisition"] > em,
.prep-profitability-equation > div.ae-profit-node-action[data-ae-profit-action="capture-price"] > em {
    background: #fff4e1;
    color: #9b5a00;
}

html[data-crm-theme="dark"] .prep-profitability-equation > div.ae-profit-node-action:hover {
    border-color: #56616e;
    background: #1b2128;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

html[data-crm-theme="dark"] .prep-profitability-equation > div.ae-profit-node-action > em.ae-profit-node-action__hint {
    background: #252c34;
    color: #c1c8d1;
}

html[data-crm-theme="dark"] .prep-profitability-equation > div.ae-profit-node-action.is-pending > em.ae-profit-node-action__hint,
html[data-crm-theme="dark"] .prep-profitability-equation > div.ae-profit-node-action[data-ae-profit-action="capture-acquisition"] > em,
html[data-crm-theme="dark"] .prep-profitability-equation > div.ae-profit-node-action[data-ae-profit-action="capture-price"] > em {
    background: #332717;
    color: #ffd28b;
}

@media (max-width: 760px) {
    .prep-profitability-requirements {
        flex-direction: column;
    }

    .prep-profitability-requirements > footer {
        margin-left: 0 !important;
        white-space: normal;
    }
}

/* Seguimiento comercial: el panel de productividad no forma parte de Tareas ni Agenda. */
body:has(.eng-task-quick) .eng-productivity,
body:has(.eng-appointment-quick) .eng-productivity {
    display: none !important;
}
