/* R152 — workflow notification only. Avoid fixed-position containing block
   created by the sticky header's backdrop-filter when the popup is open. */
.topbar:has(.finance-notification-modal) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.modal.modal-front.finance-notification-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(76px, 10vh, 104px) 16px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal.modal-front.finance-notification-modal > .modal-card.finance-notification-card {
  flex: 0 1 500px;
  width: min(500px, 100%);
  min-width: 0;
  max-height: calc(100dvh - clamp(76px, 10vh, 104px) - 20px);
  margin: 0;
  align-self: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 18px;
}
@media (max-width: 640px) {
  .modal.modal-front.finance-notification-modal {
    padding: 64px 12px 14px;
  }
  .modal.modal-front.finance-notification-modal > .modal-card.finance-notification-card {
    max-height: calc(100dvh - 78px);
    border-radius: 16px;
  }
}
