/* BusinessConnect — bloque de estilo de Pages/BusinessConnect/Componentes/ModalSolicitudPedido.razor (verbatim). */
    .ce-stock-detalle {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px 6px;
        margin-top: 3px;
        font-size: 9px;
        color: #8d9aab;
        line-height: 1.3;
    }

        .ce-stock-detalle b {
            color: #5b6b85;
            font-weight: 700;
            margin-right: 2px;
        }
    /* ce-btn-primary no estaba definida en ningun lado -- "Ver despacho" quedaba sin color. */
    .ce-btn-primary {
        background: var(--em-cobalt, #185FA5);
    }

    .ce-item-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
        font-size: 13px;
    }

        .ce-item-table th {
            text-align: left;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            color: #9ca3af;
            padding: 6px 8px;
            border-bottom: 1px solid #e5e9f2;
        }

        .ce-item-table td {
            padding: 7px 8px;
            border-bottom: 1px solid #f0f4fb;
            color: #374151;
            font-weight: 400;
        }

            .ce-item-table th:not(:first-child), .ce-item-table td:not(:first-child) {
                text-align: right;
            }
    .ce-stock-accion {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 14px;
        flex-wrap: wrap;
    }

    .ce-stock-resumen {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12.5px;
        animation: ce-precio-fadein .25s ease;
    }

        .ce-stock-resumen.ok {
            color: #166534;
        }

        .ce-stock-resumen.falta {
            color: #991b1b;
        }

    .ce-stock-celda {
        text-align: center;
        white-space: nowrap;
    }

    .ce-stock-pendiente {
        color: #c7d2e0;
        font-size: 12px;
    }

    .ce-stock-ok {
        color: #16a34a;
        font-size: 14px;
    }

    /* NUEVO (2026-09-20, pedido de Ivan): antes solo mostraba el icono verde/rojo -- ahora
       siempre muestra el numero de stock disponible junto al icono. */
    .ce-stock-ok-num {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11.5px;
        font-weight: 600;
        color: #166534;
    }

    /* CAMBIO (2026-09-19, a pedido de Ivan): antes ".ce-stock-falta" era texto rojo discreto
       sin animacion -- ahora pulsa igual que la alerta de precio, para que no pase
       desapercibido al confirmar un pedido con stock insuficiente. */
    @keyframes ce-stock-pulse {
        0% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); }
        70% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
        100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
    }

    .ce-stock-falta-pulse {
        color: #dc2626;
        font-size: 11.5px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border: 1.5px solid #dc2626;
        border-radius: 20px;
        padding: 3px 9px;
        background: #fef2f2;
        animation: ce-stock-pulse 1.4s ease-out infinite;
    }
    /* NUEVO: mismo bloque visual que ModalSolicitudCotizacion.ce-vigencia-box. */
    .ce-vigencia-box {
        margin-top: 14px;
        padding: 12px 14px;
        background: #f8fafc;
        border: 1px solid #e5e9f2;
        border-radius: 8px;
    }

    .ce-vigencia-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 18px;
    }

        .ce-vigencia-row label {
            display: block;
            font-size: 11.5px;
            font-weight: 600;
            color: #9ca3af;
            text-transform: uppercase;
            margin-bottom: 4px;
        }

    .ce-vigencia-input {
        width: 100%;
        border: 1px solid #d1d9e6;
        border-radius: 5px;
        padding: 6px 10px;
        font-size: 13.5px;
    }

    .ce-vigencia-fecha {
        margin: 0;
        padding: 6px 0;
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
    }

    .ce-vigencia-hint {
        margin: 8px 0 0;
        font-size: 11.5px;
        color: #9ca3af;
    }
    /* CAMBIO (2026-09-19, aprobado en preview): fila de comprobacion de precios con el mismo
       fondo cobalt-subtle + fade-in y badges de dos lineas que ModalSolicitudCotizacion --
       mantenido idéntico entre ambos modales a propósito (mismo look, mismo endpoint). */
    @keyframes ce-precio-pulse {
        0% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); }
        70% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
        100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
    }

    @keyframes ce-precio-fadein {
        from { opacity: 0; transform: translateY(-3px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .ce-precio-fila {
        padding: 9px 8px 12px;
        background: #f0f4fb;
        animation: ce-precio-fadein .25s ease;
    }

    .ce-precio-alerta {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 10.5px;
        font-weight: 700;
        color: #dc2626;
        border: 1.5px solid #dc2626;
        border-radius: 20px;
        padding: 3px 9px;
        background: #fef2f2;
        margin-bottom: 7px;
        animation: ce-precio-pulse 1.4s ease-out infinite;
    }

    .ce-precio-ok {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 10.5px;
        font-weight: 700;
        color: #166534;
        border: 1.5px solid #bfe3d2;
        border-radius: 20px;
        padding: 3px 9px;
        background: #e6f5ee;
        margin-bottom: 7px;
    }

    .ce-precio-badges {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .ce-precio-badge {
        height: 30px;
        padding: 0 11px;
        border-radius: 5px;
        font-size: 11.5px;
        font-weight: 600;
        cursor: pointer;
        border: 1.5px solid #d1d9e6;
        background: #fff;
        color: #374151;
        text-align: left;
        line-height: 1.1;
    }

        .ce-precio-badge:hover {
            border-color: #2d6ae0;
        }

        .ce-precio-badge.ce-on {
            border-color: #1a4fba;
            background: #e8eef9;
            color: #0f3494;
        }

        .ce-precio-badge .lbl {
            display: block;
            font-size: 9.5px;
            font-weight: 700;
            text-transform: uppercase;
            opacity: .65;
            letter-spacing: .02em;
        }

        .ce-precio-badge .val {
            display: block;
            font-size: 12.5px;
            margin-top: 1px;
        }

    .ce-precio-toolbar {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 12px;
        margin-bottom: 4px;
        flex-wrap: wrap;
    }

    /* NUEVO: spinner dentro del boton mientras "Comprobar precios"/"Comprobar disponibilidad"
       estan en curso -- antes solo cambiaba el texto. */
    .ce-btn-spin {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,.4);
        border-top-color: #fff;
        display: inline-block;
        animation: ce-btn-spin-rot .7s linear infinite;
    }

    @keyframes ce-btn-spin-rot {
        to { transform: rotate(360deg); }
    }
