/* Modal de ajuste manual de encuadre (Cropper.js) */

.encuadre-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(16, 21, 28, 0.62);
    backdrop-filter: blur(2px);
}

.encuadre-modal {
    width: min(560px, 100%);
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 21, 28, 0.35);
}

.encuadre-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f3;
}

.encuadre-cabecera strong {
    font-size: 15px;
}

.encuadre-cerrar {
    width: 32px;
    height: 32px;
    font-size: 22px;
    line-height: 1;
    color: #6b757b;
    background: #f2f5f5;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.encuadre-lienzo {
    max-height: 60vh;
    padding: 12px;
    background: #f6f8f8;
}

.encuadre-lienzo img {
    display: block;
    max-width: 100%;
}

.encuadre-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid #eef2f3;
}

.encuadre-acciones button {
    min-height: 42px;
    padding: 9px 16px;
    font: inherit;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
}

.encuadre-cancelar {
    color: #566067;
    background: #f2f5f5;
    border-color: #e1e7e8;
}

.encuadre-guardar {
    color: #ffffff;
    background: #009b95;
}

/* Botón "Ajustar encuadre" en las tarjetas del banco */
.boton-ajustar-encuadre {
    display: none;
    width: 100%;
    margin-top: 6px;
    padding: 7px 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #0b6b66;
    background: #e4f4f2;
    border: 1px solid #bfe6e2;
    border-radius: 9px;
    cursor: pointer;
}

.tarjeta-banco-imagen.seleccionada .boton-ajustar-encuadre {
    display: block;
}
