﻿/* ===========================
   WhatsApp / Imagen del tiquete
   =========================== */

.wa-modal-backdrop,
.wa-img-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wa-modal,
.wa-img-modal {
    width: min(520px, 92vw);
    max-height: 92vh;
    overflow: hidden; /* ✅ sin scroll */
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
    .wa-modal h3,
    .wa-img-modal h3 {
        margin: 0 0 12px 0;
        font-size: 18px;
    }

.wa-input,
.wa-select {
    width: 100%;
    height: 42px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #cfd6e4;
    outline: none;
    margin-bottom: 10px;
}

.wa-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 8px;
}

    .wa-actions button {
        height: 34px;
        padding: 0 12px;
        border-radius: 9px;
        border: 1px solid rgba(0,0,0,.18);
        background: #f6f7fb;
        cursor: pointer;
    }

        .wa-actions button:hover {
            background: #eef1fb;
        }

.wa-note {
    margin-top: 10px;
    font-size: 12px;
    opacity: .75;
}

/* ✅ Imagen centrada dentro del modal */
.wa-img-modal img {
    display: block; /* aunque en HTML lo tengas display:none, al setear src lo pones en block */
    margin: 12px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px dashed rgba(0,0,0,.18);
    padding: 8px;
    background: #fff;
}
