/* PMD_HISTORY_STABLE_R20
 * Final first-paint + confirm-modal authority for /admin/history.
 * Loaded from the global admin manifest so it exists before History body paint.
 */

html {
  background-color: #f8fbfd !important;
  background-image: none !important;
  scroll-behavior: auto !important;
}

html body.page.pmd-history-shell-r18,
html body.page.pmd-history-shell-r18 .page,
html body.page.pmd-history-shell-r18 .page-wrapper,
html body.page.pmd-history-shell-r18 .page-content,
html body.page.pmd-history-shell-r18 .content-wrapper,
html body.page.pmd-history-shell-r18 .content,
html body.page.pmd-history-shell-r18 .main-content,
html body.page.pmd-history-shell-r18 .nk-wrap,
html body.page.pmd-history-shell-r18 .nk-content,
html body.page.pmd-history-shell-r18 .nk-content-inner,
html body.page.pmd-history-shell-r18 .nk-content-body,
html body.page.pmd-history-shell-r18 .nk-content-wrap,
html body.page.pmd-history-shell-r18 .container,
html body.page.pmd-history-shell-r18 .container-fluid,
html body.page.pmd-history-shell-r18 #pmd-history-page {
  background-color: #f8fbfd !important;
  background-image: none !important;
  transform: none !important;
  translate: none !important;
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
}

html body.page.pmd-history-shell-r18 {
  position: relative !important;
  min-height: 100vh !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

@media (min-width: 821px) {
  html.pmd-side-menu2-global-page.pmd-sm2-collapsed
  body.page.pmd-history-shell-r18 .page-wrapper {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    bottom: auto !important;
    margin-left: 86px !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    width: calc(100vw - 86px) !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    transform: none !important;
    transition: none !important;
  }

  html.pmd-side-menu2-global-page.pmd-sm2-expanded
  body.page.pmd-history-shell-r18 .page-wrapper {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    bottom: auto !important;
    margin-left: 198px !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    width: calc(100vw - 198px) !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 820px) {
  html body.page.pmd-history-shell-r18 .page-wrapper {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-y: visible !important;
    transform: none !important;
    transition: none !important;
  }
}

html body.page.pmd-history-shell-r18 .page-content,
html body.page.pmd-history-shell-r18 .content-wrapper,
html body.page.pmd-history-shell-r18 .main-content,
html body.page.pmd-history-shell-r18 .nk-content,
html body.page.pmd-history-shell-r18 .nk-content-inner,
html body.page.pmd-history-shell-r18 .nk-content-body,
html body.page.pmd-history-shell-r18 .nk-content-wrap {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  transform: none !important;
  transition: none !important;
}

html body.page.pmd-history-shell-r18 .navbar-top,
html body.page.pmd-history-shell-r18 .navbar-fixed-top,
html body.page.pmd-history-shell-r18 .page-title-section {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

html body.page.pmd-history-shell-r18 #pmd-history-page,
html body.page.pmd-history-shell-r18 .pmd-history-header,
html body.page.pmd-history-shell-r18 .pmd-history-shell,
html body.page.pmd-history-shell-r18 .pmd-history-card,
html body.page.pmd-history-shell-r18 .pmd-history-list {
  transform: none !important;
  translate: none !important;
  animation: none !important;
  transition: none !important;
}

/* History-only generic confirmation modal: match current PayMyDine owner UI. */
body.page.pmd-history-shell-r18 #adminConfirmModal .modal-dialog {
  width: min(460px, calc(100vw - 32px)) !important;
  max-width: 460px !important;
  margin: 1.5rem auto !important;
  transform: none !important;
  transition: opacity 120ms ease !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .modal-content {
  overflow: hidden !important;
  border: 1px solid #dce8e4 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 22px 60px rgba(9, 45, 38, 0.18) !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .modal-header {
  min-height: 68px !important;
  padding: 18px 20px !important;
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e4ece9 !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .modal-title {
  margin: 0 !important;
  color: #122a25 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .modal-title i,
body.page.pmd-history-shell-r18 #adminConfirmModal .modal-title [class*="fa-"],
body.page.pmd-history-shell-r18 #adminConfirmModal .admin-confirm-delete i,
body.page.pmd-history-shell-r18 #adminConfirmModal .admin-confirm-delete [class*="fa-"] {
  display: none !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .modal-header .btn-close,
body.page.pmd-history-shell-r18 #adminConfirmModal .modal-header .close {
  width: 38px !important;
  height: 38px !important;
  margin-left: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background-color: transparent !important;
  color: #17342e !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .modal-body {
  padding: 22px 20px !important;
  background: #ffffff !important;
  color: #445b56 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  border: 0 !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .modal-footer {
  padding: 16px 20px 20px !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  background: #ffffff !important;
  border-top: 1px solid #e4ece9 !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .admin-confirm-cancel,
body.page.pmd-history-shell-r18 #adminConfirmModal .admin-confirm-delete {
  min-width: 112px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border-radius: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transform: none !important;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .admin-confirm-cancel {
  background: #ffffff !important;
  border: 1px solid #cfdcd8 !important;
  color: #183a33 !important;
  box-shadow: none !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .admin-confirm-cancel:hover,
body.page.pmd-history-shell-r18 #adminConfirmModal .admin-confirm-cancel:focus-visible {
  background: #f4f8f7 !important;
  border-color: #b9cbc5 !important;
  color: #183a33 !important;
  box-shadow: 0 0 0 3px rgba(8, 128, 103, 0.08) !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .admin-confirm-delete {
  background: #b42318 !important;
  border: 1px solid #b42318 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.16) !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal .admin-confirm-delete:hover,
body.page.pmd-history-shell-r18 #adminConfirmModal .admin-confirm-delete:focus-visible {
  background: #97180f !important;
  border-color: #97180f !important;
  color: #ffffff !important;
  box-shadow: 0 9px 20px rgba(151, 24, 15, 0.2) !important;
}

body.page.pmd-history-shell-r18 #adminConfirmModal.fade,
body.page.pmd-history-shell-r18 #adminConfirmModal.fade .modal-dialog,
body.page.pmd-history-shell-r18 #adminConfirmModal.show .modal-dialog {
  transform: none !important;
}

body.page.pmd-history-shell-r18:has(#adminConfirmModal.show) .modal-backdrop,
body.page.pmd-history-shell-r18 .modal-backdrop.show {
  background: #082f27 !important;
  opacity: 0.32 !important;
}
