/* ESTRUCTURA PARA REMESAS B */
#ventanaRemesasB {
    display: none;
    /* Oculto por defecto */
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    padding: 10px 20px;
    gap: 20px;
    height: 520px;
    box-sizing: border-box;
}

/* Solo se muestra cuando JS añade 'visible' */
#ventanaRemesasB.visible {
    display: flex;
}

.panelRemesa {
    width: 48%;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* CABECERAS INTERNAS */
.remesaSubHeader {
    flex-shrink: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

.remesaBusqueda {
    display: flex;
    gap: 10px;
    margin-bottom: auto;
    justify-content: center;
    background-color: #4a4d62;
    /* Mismo color que el panel derecho */
    padding: 10px;
    border-radius: 6px;
    align-items: center;
    height: 60px;
    /* Altura fija para alineación */
    box-sizing: border-box;
}

.remesaBusqueda input {
    width: 120px !important;
    margin: 0 !important;
    height: 35px !important;
    font-size: 13px !important;
    border: none !important;
    text-align: center;
}

.remesaInfoBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remesaInfoBar p {
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    color: #4a4d62;
}

.btnAccionAll {
    cursor: pointer;
    transition: transform 0.2s;
    height: 24px;
}

.btnAccionAll:hover {
    transform: scale(1.1);
}

/* TABLA PERSONALIZADA */
.tablaRemesaContenedor {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.tablaRemesaContenedor::-webkit-scrollbar {
    width: 6px;
}

.tablaRemesaContenedor::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.tablaRemesa {
    width: 100%;
    border-collapse: collapse;
}

/* DISEÑO DE FILA (TARJETA) */
.filaRemesa {
    background-color: white;
    border-bottom: 1px solid #eee;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.filaRemesa:hover {
    background-color: #f0f7ff;
}

.filaRemesa .cliente {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.filaRemesa .detalles {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.filaRemesa .importe {
    font-weight: bold;
    color: #5dbdaa;
    /* Color corporativo Lidau */
}

/* ANIMACIONES */
.anim-entrada {
    animation: slideIn 0.3s forwards;
}

.anim-salida {
    animation: fadeOut 0.3s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* TOTALES PANEL DERECHO */
.remesaTotalesBox {
    background-color: #4a4d62;
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: auto;
    /* Para alinearse arriba igual que el buscador */
    height: 60px;
    /* Misma altura que el buscador */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.remesaTotalesBox p {
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.remesaTotalesBox span {
    font-size: 18px;
    font-weight: bold;
    display: block;
}