/* M9: listado independiente y modal adaptable al zoom de navegador. */
.audit-layout .audit-table-wrap { max-height: min(55vh, 560px); overflow:auto; min-height: 130px; }
.audit-layout .audit-table-wrap table { min-width: 860px; }
.audit-layout .audit-table-wrap thead th { position:sticky; top:0; background:var(--bs-body-bg,#fff); z-index:1; white-space:nowrap; padding:.65rem .55rem; }
.audit-layout .audit-table-wrap td { max-width:240px; overflow-wrap:anywhere; padding:.55rem; }
#auditoriaDetalleModal .modal-dialog { max-height:calc(100dvh - 1rem); margin-top:.5rem; margin-bottom:.5rem; }
#auditoriaDetalleModal .modal-content { max-height:calc(100dvh - 1rem); min-height:0; display:flex; flex-direction:column; }
#auditoriaDetalleModal .modal-header, #auditoriaDetalleModal .modal-footer { flex-shrink:0; }
#auditoriaDetalleModal .modal-body { min-height:0; overflow-y:auto; }
#auditoriaDetalleModal .audit-detail-value { white-space:pre-wrap; overflow-wrap:anywhere; }
@media (max-width:576px), (max-height:560px) {
  #auditoriaDetalleModal .modal-dialog { margin:.3rem; max-width:calc(100% - .6rem); }
  #auditoriaDetalleModal .modal-content { max-height:calc(100dvh - .6rem); }
  .audit-layout .audit-table-wrap { max-height:45vh; }
}
