/*
 * Fabricación · catálogo tablet — mismas proporciones compactas de Pedidos.
 * Escritorio y móvil conservan su presentación actual.
 */
@media (min-width: 681px) and (max-width: 1024px),
       (min-width: 1025px) and (max-width: 1366px) and (pointer: coarse) and (min-height: 500px) {
    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo.pv-pedido-cards-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo.pv-pedido-cards-grid > .pv-pedido-card-producto {
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 168px !important;
        min-height: 168px !important;
        max-height: 168px !important;
        padding: 10px !important;
        gap: 7px !important;
        border-radius: 13px !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-top {
        flex: 0 0 14px !important;
        box-sizing: border-box !important;
        height: 14px !important;
        min-height: 14px !important;
        max-height: 14px !important;
        gap: 4px !important;
        font-size: 10.5px !important;
        font-weight: 750 !important;
        line-height: 12.6px !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-main {
        display: grid !important;
        flex: 0 0 35px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: start !important;
        box-sizing: border-box !important;
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
        gap: 5px !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-nombre {
        display: -webkit-box !important;
        min-width: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        color: #172036 !important;
        font-size: 11.5px !important;
        font-weight: 750 !important;
        line-height: 1.3 !important;
        text-overflow: ellipsis !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-resumen {
        display: flex !important;
        flex: 0 0 32px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        gap: 4px 6px !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-precio {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        color: #5B32E6 !important;
        font-size: 12.5px !important;
        font-weight: 850 !important;
        line-height: 1.15 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-precio .pv-pedido-card-moneda {
        margin-left: 2px !important;
        font-size: 8.5px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-resumen .pv-estado-badge {
        align-self: center !important;
        flex: 0 0 auto !important;
        max-width: 68px !important;
        margin: 0 !important;
        padding: 3px 6px !important;
        overflow: hidden !important;
        font-size: 8.5px !important;
        line-height: 1 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-btn {
        display: flex !important;
        flex: 0 0 44px !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        gap: 7px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-producto.pv-item-seleccionado {
        overflow: visible !important;
    }

    html body #pvf-shell#pvf-shell .pvf-main-body.pvf-view-fabricacion_nuevo
    #pv-fab-form #pv-fab-grid-catalogo .pv-pedido-card-producto > .pv-item-badge {
        top: 6px !important;
        right: 6px !important;
        min-width: 23px !important;
        height: 23px !important;
        padding: 0 5px !important;
        font-size: 9px !important;
    }
}
