/* Final override for Mis Partidos match detail modal.
   Keep the modal header fixed and make only the modal body scroll. */

#match-modal.sd-modal--match-detail .modal-dialog {
  height: 92vh !important;
  max-height: 92vh !important;
  margin-top: 4vh !important;
  margin-bottom: 4vh !important;
}

#match-modal.sd-modal--match-detail .modal-content,
#match-modal.sd-modal--match-detail .sd-match-modal-content {
  height: 92vh !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#match-modal.sd-modal--match-detail .modal-header {
  flex: 0 0 auto !important;
}

#match-modal.sd-modal--match-detail #modal-body-mis_partidos,
#match-modal.sd-modal--match-detail .sd-match-modal-body-shell {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
  padding: 0 !important;
}

#match-modal.sd-modal--match-detail #modal-zoom-wrapper {
  zoom: .8 !important;
  transform: none !important;
  transform-origin: top center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

#match-modal.sd-modal--match-detail #modal-body-content,
#match-modal.sd-modal--match-detail #modal-body-content > div,
#match-modal.sd-modal--match-detail #match-main-panes,
#match-modal.sd-modal--match-detail .mp-modal-new-datos-scope,
#match-modal.sd-modal--match-detail .modal-main-pane {
  height: auto !important;
  min-height: max-content !important;
  max-height: none !important;
  overflow: visible !important;
}

#match-modal.sd-modal--match-detail .modal-main-pane--partido-new,
#match-modal.sd-modal--match-detail .modal-main-pane--previa-new,
#match-modal.sd-modal--match-detail .modal-main-pane--plantillas-new {
  padding-bottom: 0 !important;
}
