/* Ventana autocontenida: el ticket nunca abandona ADHA Gestión */
.adhaTicketModalV40[hidden]{display:none!important}
.adhaTicketModalV40{position:fixed;inset:0;z-index:999999;background:rgba(16,24,38,.77);display:flex;justify-content:center;align-items:center;padding:12px;box-sizing:border-box}
.adhaTicketPanelV40{background:var(--card,#fff);color:var(--text,#172033);border-radius:17px;box-shadow:0 22px 75px #0008;width:min(550px,100%);max-height:96dvh;display:flex;flex-direction:column;overflow:hidden}
.adhaTicketHeadV40{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 15px;border-bottom:1px solid #aaa5}
.adhaTicketHeadV40 b,.adhaTicketHeadV40 small{display:block}
.adhaTicketHeadV40 small{font-size:12px;opacity:.8;margin-top:2px}
.adhaTicketHeadV40 button{min-width:38px;flex:none}
.adhaTicketBodyV40{min-height:0;overflow:auto;display:flex;justify-content:center;background:#e5e7eb;padding:10px 8px}
#adhaTicketFrameV40{border:1px solid #d7d7d7;width:100%;max-width:430px;height:min(60dvh,660px);min-height:240px;background:#fff}
.adhaTicketButtonsV40{display:flex;gap:8px;flex-wrap:wrap;padding:12px 15px;border-top:1px solid #aaa5}
.adhaTicketButtonsV40 button{flex:1 1 145px}
@media(max-width:650px){.adhaTicketPanelV40{max-height:96dvh}.adhaTicketButtonsV40{padding:9px;gap:6px}.adhaTicketButtonsV40 button{font-size:13px;min-height:38px}.adhaTicketBodyV40{padding:5px}}
