/**
 * style_prd.css - Módulo de Producción de Pacas (Independiente)
 * Reglas confinadas estrictamente a .modulo-produccion-prd
 * Estética: Plana, simétrica y uniforme (Match exacto con Módulo Recepción)
 */

.modulo-produccion-prd {
    /* Color Morado Sólido Uniforme (Estilo Recepción) */
    --lux-primary-prd: #6b5b95; 
    --lux-secondary-prd: #f8f9fa;
    --lux-dark-prd: #495057;
    --lux-border-prd: #ced4da;
    
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f6f9;
    padding-bottom: 30px;
    min-height: 100vh;
}

/* Cabecera Principal (Plana, sin degradados, color puro) */
.modulo-produccion-prd .luxor-header {
    background-color: var(--lux-primary-prd);
    color: white;
    padding: 16px 20px;
    border-radius: 4px; /* Redondeo sutil, no agresivo */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* Sombra plana */
}

/* Tarjetas Base (Sin sombras pesadas) */
.modulo-produccion-prd .card-luxor {
    border: 1px solid var(--lux-border-prd);
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Sombra casi invisible */
    transition: all 0.2s ease;
}

/* Encabezados de Tarjeta */
.modulo-produccion-prd .card-header-luxor {
    background-color: #ffffff;
    color: var(--lux-primary-prd);
    padding: 15px 20px;
    border-bottom: 1px solid var(--lux-border-prd);
    border-radius: 6px 6px 0 0;
    font-weight: bold;
    font-size: 1rem;
}

/* Inputs y Selects (Planos y limpios) */
.modulo-produccion-prd .form-control-lg, 
.modulo-produccion-prd .form-select-lg {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--lux-border-prd);
    background-color: #ffffff;
    color: var(--lux-dark-prd);
}

/* Foco en Inputs y Selects */
.modulo-produccion-prd .form-control:focus, 
.modulo-produccion-prd .form-select:focus,
.modulo-produccion-prd .border-luxor-prd:focus {
    border-color: var(--lux-primary-prd) !important;
    box-shadow: none !important; /* Eliminamos el resplandor de Bootstrap para un look más limpio */
    outline: 1px solid var(--lux-primary-prd);
}

/* Botones Estándar (Comportamiento plano) */
.modulo-produccion-prd .btn-luxor {
    background-color: var(--lux-primary-prd);
    color: white;
    border: 1px solid var(--lux-primary-prd);
    font-weight: 600;
    border-radius: 4px;
    padding: 12px 20px;
    transition: background-color 0.2s, border-color 0.2s;
}

.modulo-produccion-prd .btn-luxor:hover,
.modulo-produccion-prd .btn-luxor:active {
    background-color: #554877; /* Un tono ligeramente más oscuro al pasar el mouse */
    border-color: #554877;
    color: white;
}

.modulo-produccion-prd .btn-luxor:disabled {
    background-color: #a399b8;
    border-color: #a399b8;
    cursor: not-allowed;
}

/* Items del Buscador Flotante (Similar a Recepción) */
.modulo-produccion-prd .list-group-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.modulo-produccion-prd .item-prod-prd {
    cursor: pointer;
    transition: background-color 0.1s;
    border-left: 3px solid transparent;
}

.modulo-produccion-prd .item-prod-prd:hover {
    background-color: #f1f3f5;
    border-left: 3px solid var(--lux-primary-prd);
}

/* Caja de Pesaje (Estación de trabajo) */
.modulo-produccion-prd .weighing-box {
    border: 1px solid var(--lux-border-prd);
    border-radius: 6px;
    padding: 20px;
    background-color: #f8f9fa;
    text-align: center;
}

/* Visor de Peso Alto Contraste */
.modulo-produccion-prd .input-peso-grande {
    font-size: 3.5rem !important;
    height: 90px !important;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900 !important;
    background-color: #000000 !important;
    color: #00ff00 !important; 
    border: 2px solid var(--lux-dark-prd) !important;
    border-radius: 6px !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    cursor: not-allowed;
}

/* Botón de Acción Principal (Imprimir) */
.modulo-produccion-prd .btn-action-main {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: bold;
    background-color: var(--lux-primary-prd);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modulo-produccion-prd .btn-action-main:hover {
    background-color: #554877;
}

.modulo-produccion-prd .btn-action-main:disabled {
    background-color: #a399b8;
    cursor: not-allowed;
}

/* Barra de Resumen Colapsada (Cortina) */
.modulo-produccion-prd .mini-summary-bar {
    background-color: #f1f3f5;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 6px 6px;
    border-top: 1px solid var(--lux-border-prd);
    transition: background-color 0.2s;
}

.modulo-produccion-prd .mini-summary-bar:hover {
    background-color: #e9ecef;
}

/* Grilla de Datos */
.modulo-produccion-prd .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(107, 91, 149, 0.04);
}

.modulo-produccion-prd .row-prd td {
    border-bottom: 1px solid var(--lux-border-prd);
    padding: 12px 8px;
}

.modulo-produccion-prd .table-dark {
    background-color: var(--lux-dark-prd);
    color: white;
}

/* Botones de Iconos (Acciones de grilla) */
.modulo-produccion-prd .btn-icon {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #6c757d;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

.modulo-produccion-prd .btn-icon:hover {
    color: var(--lux-primary-prd);
}

.modulo-produccion-prd .btn-icon:disabled {
    color: var(--lux-border-prd);
    cursor: not-allowed;
}

/* Responsividad Básica */
@media (max-width: 991.98px) {
    .modulo-produccion-prd .order-mobile-1 { order: 1; }
    .modulo-produccion-prd .order-mobile-2 { order: 2; margin-top: 20px; }
    .modulo-produccion-prd .input-peso-grande { font-size: 2.5rem !important; height: 70px !important; }
}