/* WebGIS Mahalona — flash alert, v20261016. Scoped to avoid altering map popups. */
dialog.pm-alert, dialog#logoutConfirm.auth-dialog {
  --pm-accent: #307fc0;
  --pm-wash: #eaf3fc;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(370px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 36px 28px 60px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fff;
  color: #263541;
  box-shadow: 0 18px 60px #14273826, 0 3px 12px #14273812;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  overflow: auto;
  isolation: isolate;
}
dialog.pm-alert:not([open]), dialog#logoutConfirm:not([open]) { display: none; }
dialog.pm-alert[open], dialog#logoutConfirm[open] { animation: pm-alert-enter .18s ease-out; }
dialog.pm-alert::backdrop, dialog#logoutConfirm::backdrop { background: #14243266; backdrop-filter: blur(3px); }
dialog.pm-alert[data-kind="danger"] { --pm-accent: #c92f2c; --pm-wash: #f9eae8; }
dialog.pm-alert[data-kind="warning"] { --pm-accent: #93610b; --pm-wash: #fcf3df; }
dialog.pm-alert[data-kind="info"] { --pm-accent: #307fc0; --pm-wash: #eaf3fc; }
dialog.pm-alert::after, dialog#logoutConfirm::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 53px;
  background: var(--pm-wash);
  clip-path: polygon(0 43%, 12% 17%, 26% 35%, 41% 66%, 55% 50%, 69% 25%, 84% 47%, 100% 30%, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: -1;
}
dialog.pm-alert::before, dialog#logoutConfirm::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--pm-accent);
  opacity: .06;
  clip-path: polygon(0 30%, 20% 60%, 36% 28%, 57% 72%, 74% 42%, 100% 16%, 100% 100%, 0 100%);
  pointer-events: none;
}
dialog.pm-alert .pm-alert__icon, dialog#logoutConfirm .auth-dialog__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--pm-accent);
  background: transparent;
}
dialog.pm-alert .pm-alert__icon svg { display: block; width: 60px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
dialog#logoutConfirm .auth-dialog__icon { border: 2px solid currentColor; }
dialog#logoutConfirm .auth-dialog__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; }
dialog.pm-alert h2, dialog#logoutConfirm h2 { margin: 0 0 13px; color: var(--pm-accent); font-size: 22px; font-weight: 600; line-height: 1.3; }
dialog.pm-alert #flashPopupMessage, dialog#logoutConfirm #logoutDescription { margin: 0 0 24px; color: #596571; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
dialog.pm-alert #flashPopupDetails { max-height: 28vh; overflow: auto; text-align: left; padding-left: 20px; margin: 0 0 20px; color: #596571; overflow-wrap: anywhere; }
dialog.pm-alert #flashPopupDetails li + li { margin-top: 7px; }
dialog.pm-alert .pm-alert__counter { margin: 0 0 14px; font-size: 12px; color: #66717c; }
dialog.pm-alert .pm-alert__button, dialog#logoutConfirm .auth-dialog__button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 160px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 10px 22px;
  background: var(--pm-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
dialog.pm-alert .pm-alert__button:hover, dialog#logoutConfirm .auth-dialog__button:hover { filter: brightness(.94); }
dialog.pm-alert button:focus-visible, dialog#logoutConfirm button:focus-visible { outline: 3px solid var(--pm-accent); outline-offset: 4px; }
dialog#logoutConfirm .auth-dialog__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
dialog#logoutConfirm .auth-dialog__button { min-width: 120px; flex: 1; }
dialog#logoutConfirm .auth-dialog__button--neutral { background: #f4f6f8; color: #43505b; border-color: #dce2e7; }
dialog#logoutConfirm .auth-dialog__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: transparent; color: #67727e; font-size: 26px; cursor: pointer; }
[data-pm-flash-status][data-pm-alert-bound="true"] { display: none !important; }
dialog.pm-alert [hidden] { display: none !important; }
@keyframes pm-alert-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.pm-alert[open], dialog#logoutConfirm[open] { animation: none; } }
@media (max-width: 400px) { dialog.pm-alert, dialog#logoutConfirm.auth-dialog { padding: 28px 20px 55px; } }

/* Confirmation actions share the same flash visual style. */
dialog.pm-alert .pm-alert__actions {display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
dialog.pm-alert .pm-alert__actions button {min-width:120px}
dialog.pm-alert .pm-alert__button--neutral {background:#f3f5f7;color:#43505b;border-color:#dce2e7}
