.mod-grouprequest .list-group-item { border-radius: .5rem; }
.mod-grouprequest .list-group-item .btn { min-width: 9rem; }

/* Ensure modal sits above backdrop and content is full opacity */
#menuPdfModal { z-index: 1060; }
.modal-backdrop { z-index: 1050; }
#menuPdfModal .modal-content { background-color: #fff; }
#menuPdfModal iframe, #menuPdfModal object { opacity: 1 !important; filter: none !important; position: relative; z-index: 1; }

/* v1.2.6 modal stacking + brightness fixes */
#menuPdfModal { position: relative; z-index: 200000 !important; }
.modal-backdrop { z-index: 199990 !important; }
#menuPdfModal .modal-dialog { z-index: 200001 !important; }
#menuPdfModal .modal-content { background-color: #fff !important; }
#menuPdfModal iframe, #menuPdfModal object {
  opacity: 1 !important;
  filter: none !important;
  background: #ffffff !important; /* ensures no underlying dark layer shows through */
  position: relative;
  z-index: 200002 !important;
}


/* v1.2.7: Disable dim overlay for our modal explicitly */
#menuPdfModal ~ .modal-backdrop { display: none !important; }


/* v1.2.8: Ensure close button is clickable above PDF */
#menuPdfModal .modal-header { position: relative; z-index: 200005 !important; }
#menuPdfModal .modal-body { position: relative; z-index: 200004 !important; }
#menuPdfModal iframe, #menuPdfModal object { z-index: 200002 !important; display: block; }
#menuPdfModal .btn-close { position: relative; z-index: 200006 !important; }


/* v1.2.9: Ensure modal header and close button are always above site menu */
#menuPdfModal { position: fixed; z-index: 2147483000 !important; } /* near max int */
#menuPdfModal .modal-dialog { z-index: 2147483001 !important; }
#menuPdfModal .modal-content { z-index: 2147483002 !important; background:#fff !important; }
#menuPdfModal .modal-header { position: relative; z-index: 2147483004 !important; background:#fff !important; pointer-events: auto !important; }
#menuPdfModal .btn-close { position: relative; z-index: 2147483005 !important; pointer-events: auto !important; }
#menuPdfModal .modal-body { position: relative; z-index: 2147483003 !important; }
#menuPdfModal iframe, #menuPdfModal object {
  opacity: 1 !important;
  filter: none !important;
  background: #fff !important;
  position: relative;
  z-index: 2147483002 !important;
}

/* Some templates place a global sticky header above modals. Force our modal overlay to top. */
.modal-backdrop { z-index: 2147482999 !important; }


/* v1.3.0: Cassiopeia menu ~50px lower when this module is on the page */
.mod-grouprequest ~ .container-header,
.mod-grouprequest + .container-header,
body:has(.mod-grouprequest) .container-header {
  top: 50px !important;
}
/* Add spacing so content doesn't jump under the header */
body:has(.mod-grouprequest) { padding-top: 50px; }

/* Keep our modal stacking fixes */


/* v1.3.2: Lower only the PDF modal by ~50px */
body .mod-grouprequest #menuPdfModal .modal-dialog { 
  margin-top: 150px !important;
}
@media (max-width: 991.98px) {
  body .mod-grouprequest #menuPdfModal .modal-dialog { 
    margin-top: 100px !important; 
  }
}

/* v1.3.9 no CSS changes required */
