/* ============================================================================
   RS-TH08 — Unified Feedback, Dialogs & Overlay System
   Shared modal, alert, toast, confirmation, dropdown, offcanvas and state UI.
   Loaded after page-local styles so the interaction layer remains consistent.
============================================================================ */

:root {
  --feedback-radius-sm: .75rem;
  --feedback-radius-md: 1rem;
  --feedback-radius-lg: 1.35rem;
  --feedback-shadow: 0 24px 68px rgba(15, 35, 26, .2);
  --feedback-backdrop: rgba(6, 17, 12, .62);
  --feedback-info-bg: #e8f6fb;
  --feedback-info-border: #75bdd1;
  --feedback-info-text: #164f63;
  --feedback-success-bg: #eaf8f0;
  --feedback-success-border: #76c89d;
  --feedback-success-text: #155f3c;
  --feedback-warning-bg: #fff6df;
  --feedback-warning-border: #e8bd5e;
  --feedback-warning-text: #6c4800;
  --feedback-danger-bg: #fff0ee;
  --feedback-danger-border: #eaa099;
  --feedback-danger-text: #84251d;
}

html[data-theme="dark"] {
  --feedback-shadow: 0 28px 76px rgba(0, 0, 0, .48);
  --feedback-backdrop: rgba(0, 0, 0, .78);
  --feedback-info-bg: #102f39;
  --feedback-info-border: #458da2;
  --feedback-info-text: #d9f5fb;
  --feedback-success-bg: #113326;
  --feedback-success-border: #4aa578;
  --feedback-success-text: #dff8e9;
  --feedback-warning-bg: #3b2c0f;
  --feedback-warning-border: #b9892f;
  --feedback-warning-text: #ffecbc;
  --feedback-danger-bg: #3d1d1b;
  --feedback-danger-border: #b45b54;
  --feedback-danger-text: #ffe3df;
}

/* Bootstrap dialogs -------------------------------------------------------- */
.modal {
  --bs-modal-color: var(--theme-text);
  --bs-modal-bg: var(--theme-surface-raised);
  --bs-modal-border-color: var(--theme-border);
  --bs-modal-header-border-color: var(--theme-border);
  --bs-modal-footer-border-color: var(--theme-border);
  --bs-modal-border-radius: var(--feedback-radius-lg);
  --bs-modal-inner-border-radius: calc(var(--feedback-radius-lg) - 1px);
  --bs-modal-box-shadow: var(--feedback-shadow);
  color: var(--theme-text);
}

.modal-backdrop {
  background: var(--feedback-backdrop) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-backdrop.show { opacity: 1 !important; }

.modal-dialog {
  margin-top: clamp(.75rem, 4vh, 2.5rem);
  margin-bottom: clamp(.75rem, 4vh, 2.5rem);
}

.modal-content {
  color: var(--theme-text) !important;
  background: var(--theme-surface-raised) !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--feedback-radius-lg) !important;
  box-shadow: var(--feedback-shadow) !important;
  overflow: clip;
}

.modal-header,
.modal-footer {
  color: var(--theme-text) !important;
  background: var(--theme-surface-muted) !important;
  border-color: var(--theme-border) !important;
  padding: 1rem 1.15rem;
}

.modal-header {
  min-height: 4rem;
  gap: .75rem;
}

.modal-header.bg-danger-subtle,
.modal-header.border-danger {
  color: var(--feedback-danger-text) !important;
  background: var(--feedback-danger-bg) !important;
  border-color: var(--feedback-danger-border) !important;
}

.modal-header.bg-warning-subtle,
.modal-header.border-warning {
  color: var(--feedback-warning-text) !important;
  background: var(--feedback-warning-bg) !important;
  border-color: var(--feedback-warning-border) !important;
}

.modal-header.bg-success-subtle,
.modal-header.border-success {
  color: var(--feedback-success-text) !important;
  background: var(--feedback-success-bg) !important;
  border-color: var(--feedback-success-border) !important;
}

.modal-header.bg-info-subtle,
.modal-header.border-info {
  color: var(--feedback-info-text) !important;
  background: var(--feedback-info-bg) !important;
  border-color: var(--feedback-info-border) !important;
}

.modal-header[class*="bg-"] .modal-title,
.modal-header[class*="border-"] .modal-title { color: inherit !important; }

.modal-title {
  margin: 0;
  color: var(--theme-text) !important;
  font-size: clamp(1rem, .96rem + .22vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.modal-body {
  color: var(--theme-text-soft) !important;
  background: var(--theme-surface-raised) !important;
  padding: 1.1rem 1.15rem;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}

.modal-footer > * { margin: 0 !important; }

.modal-dialog-scrollable .modal-content {
  max-height: min(92dvh, calc(100dvh - 1.5rem));
}

.modal-dialog-scrollable .modal-body {
  min-height: 0;
  overflow-y: auto;
}

.modal .btn-close,
.offcanvas .btn-close,
.toast .btn-close,
.alert .btn-close,
.app-toast__close {
  --feedback-close-fg: var(--theme-text);
  --feedback-close-bg: var(--theme-surface-strong);
  --feedback-close-hover-fg: var(--theme-brand-contrast);
  --feedback-close-hover-bg: var(--theme-brand);
  position: relative;
  flex: 0 0 44px;
  inline-size: 44px;
  block-size: 44px;
  margin: -.35rem -.35rem -.35rem auto !important;
  padding: 0 !important;
  border: 1px solid var(--theme-border-strong) !important;
  border-radius: .8rem !important;
  background: var(--feedback-close-bg) !important;
  background-image: none !important;
  color: var(--feedback-close-fg) !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.modal .btn-close::before,
.offcanvas .btn-close::before,
.toast .btn-close::before,
.alert .btn-close::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: currentColor;
  font: 800 1.55rem/1 var(--theme-font-sans);
}

.modal .btn-close:hover,
.modal .btn-close:focus-visible,
.offcanvas .btn-close:hover,
.offcanvas .btn-close:focus-visible,
.toast .btn-close:hover,
.toast .btn-close:focus-visible,
.alert .btn-close:hover,
.alert .btn-close:focus-visible,
.app-toast__close:hover,
.app-toast__close:focus-visible {
  color: var(--feedback-close-hover-fg) !important;
  background: var(--feedback-close-hover-bg) !important;
  border-color: var(--feedback-close-hover-bg) !important;
  box-shadow: var(--theme-focus-ring) !important;
}

/* Alerts ------------------------------------------------------------------- */
.alert {
  position: relative;
  display: block;
  color: var(--theme-text-soft) !important;
  background: var(--theme-surface-muted) !important;
  border: 1px solid var(--theme-border-strong) !important;
  border-inline-start-width: .3rem !important;
  border-radius: var(--feedback-radius-md) !important;
  padding: .9rem 1rem !important;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.alert-dismissible { padding-inline-end: 4.35rem !important; }
.alert > :last-child:not(.btn-close) { margin-bottom: 0; }
.alert-heading { color: inherit !important; font-weight: 800; }
.alert-link { color: inherit !important; font-weight: 800; }
.alert .btn-close {
  position: absolute;
  inset-block-start: .55rem;
  inset-inline-end: .55rem;
  margin: 0 !important;
}

.alert-primary,
.alert-info {
  color: var(--feedback-info-text) !important;
  background: var(--feedback-info-bg) !important;
  border-color: var(--feedback-info-border) !important;
}

.alert-success {
  color: var(--feedback-success-text) !important;
  background: var(--feedback-success-bg) !important;
  border-color: var(--feedback-success-border) !important;
}

.alert-warning {
  color: var(--feedback-warning-text) !important;
  background: var(--feedback-warning-bg) !important;
  border-color: var(--feedback-warning-border) !important;
}

.alert-danger {
  color: var(--feedback-danger-text) !important;
  background: var(--feedback-danger-bg) !important;
  border-color: var(--feedback-danger-border) !important;
}

.alert-secondary,
.alert-light,
.alert-dark {
  color: var(--theme-text-soft) !important;
  background: var(--theme-surface-muted) !important;
  border-color: var(--theme-border-strong) !important;
}

/* Dropdowns and offcanvas -------------------------------------------------- */
.dropdown-menu {
  --bs-dropdown-color: var(--theme-text-soft);
  --bs-dropdown-bg: var(--theme-surface-raised);
  --bs-dropdown-border-color: var(--theme-border);
  --bs-dropdown-link-color: var(--theme-text-soft);
  --bs-dropdown-link-hover-color: var(--theme-text);
  --bs-dropdown-link-hover-bg: var(--theme-surface-strong);
  --bs-dropdown-link-active-color: var(--theme-brand-contrast);
  --bs-dropdown-link-active-bg: var(--theme-brand);
  --bs-dropdown-link-disabled-color: var(--theme-muted);
  --bs-dropdown-header-color: var(--theme-muted);
  min-width: min(18rem, calc(100vw - 1.5rem));
  padding: .45rem;
  border-radius: var(--feedback-radius-md) !important;
  box-shadow: var(--theme-shadow-md);
}

.dropdown-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .75rem;
  border-radius: .65rem;
  font-weight: 650;
  white-space: normal;
}

.dropdown-divider { border-color: var(--theme-border); }

.offcanvas {
  --bs-offcanvas-color: var(--theme-text);
  --bs-offcanvas-bg: var(--theme-surface-raised);
  --bs-offcanvas-border-color: var(--theme-border);
  color: var(--theme-text) !important;
  background: var(--theme-surface-raised) !important;
  border-color: var(--theme-border) !important;
  box-shadow: var(--feedback-shadow);
}

.offcanvas-header,
.offcanvas-footer {
  color: var(--theme-text) !important;
  background: var(--theme-surface-muted) !important;
  border-color: var(--theme-border) !important;
}

.offcanvas-title { font-weight: 800; }
.offcanvas-body { color: var(--theme-text-soft); overscroll-behavior: contain; }

/* Tooltips and popovers --------------------------------------------------- */
.tooltip {
  --bs-tooltip-color: var(--theme-brand-contrast);
  --bs-tooltip-bg: var(--theme-brand);
  --bs-tooltip-opacity: 1;
  --bs-tooltip-border-radius: .65rem;
  --bs-tooltip-padding-x: .7rem;
  --bs-tooltip-padding-y: .45rem;
  font-family: var(--theme-font-sans);
}

.popover {
  --bs-popover-bg: var(--theme-surface-raised);
  --bs-popover-border-color: var(--theme-border);
  --bs-popover-header-bg: var(--theme-surface-muted);
  --bs-popover-header-color: var(--theme-text);
  --bs-popover-body-color: var(--theme-text-soft);
  --bs-popover-border-radius: var(--feedback-radius-md);
  box-shadow: var(--theme-shadow-md);
}

.spinner-border,
.spinner-grow { color: var(--theme-brand); }

.herb-page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 4990;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-canvas) 76%, transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.herb-page-loading-overlay__panel {
  min-width: min(100%, 17rem);
  display: grid;
  place-items: center;
  gap: .75rem;
  padding: 1.2rem;
  text-align: center;
  background: var(--theme-surface-raised);
  border: 1px solid var(--theme-border);
  border-radius: var(--feedback-radius-lg);
  box-shadow: var(--feedback-shadow);
}

/* Bootstrap toasts --------------------------------------------------------- */
.toast-container {
  z-index: 1095;
  max-width: calc(100vw - 1.5rem);
}

.toast {
  --bs-toast-color: var(--theme-text);
  --bs-toast-bg: color-mix(in srgb, var(--theme-surface-raised) 96%, transparent);
  --bs-toast-border-color: var(--theme-border);
  --bs-toast-header-color: var(--theme-text);
  --bs-toast-header-bg: var(--theme-surface-muted);
  --bs-toast-header-border-color: var(--theme-border);
  color: var(--theme-text) !important;
  background: color-mix(in srgb, var(--theme-surface-raised) 96%, transparent) !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--feedback-radius-md) !important;
  box-shadow: var(--theme-shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.toast-header { color: var(--theme-text) !important; background: var(--theme-surface-muted) !important; }
.toast-body { color: var(--theme-text-soft) !important; line-height: 1.55; }

/* AppNotify confirmation and toast system -------------------------------- */
.app-notify-root {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
}

.app-notify-root.is-open { pointer-events: auto; }

.app-notify-backdrop {
  position: absolute;
  inset: 0;
  background: var(--feedback-backdrop);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity var(--theme-motion-base) ease;
}

.app-notify-backdrop.show { opacity: 1; }

.app-notify-modal-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 2vw, 1.25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.app-notify-modal {
  width: min(100%, 31rem);
  max-height: min(92dvh, 44rem);
  display: flex;
  flex-direction: column;
  color: var(--theme-text);
  background: var(--theme-surface-raised);
  border: 1px solid var(--theme-border);
  border-radius: var(--feedback-radius-lg);
  box-shadow: var(--feedback-shadow);
  overflow: hidden;
  transform: translateY(.75rem) scale(.985);
  opacity: 0;
  transition: transform var(--theme-motion-base) ease, opacity var(--theme-motion-base) ease;
  pointer-events: auto;
}

.app-notify-modal.show { transform: none; opacity: 1; }

.app-notify-head {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.1rem .85rem;
  background: var(--theme-surface-muted);
  border-bottom: 1px solid var(--theme-border);
}

.app-notify-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .9rem;
  display: inline-grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--theme-shadow-sm);
}

.app-notify-icon svg { width: 1.4rem; height: 1.4rem; stroke: currentColor; }
.app-notify-icon.info { background: #146c85; }
.app-notify-icon.success { background: #157347; }
.app-notify-icon.warning { color: #2d2000; background: #ffd37a; }
.app-notify-icon.error { background: #b42318; }
.app-notify-icon.question { background: var(--theme-brand); color: var(--theme-brand-contrast); }

.app-notify-title {
  margin: 0;
  color: var(--theme-text);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.app-notify-sub { margin-top: .15rem; color: var(--theme-muted); font-size: .86rem; }

.app-notify-body {
  min-height: 0;
  padding: 1rem 1.1rem;
  overflow-y: auto;
}

.app-notify-message {
  color: var(--theme-text-soft);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.app-notify-input {
  width: 100%;
  min-height: 48px;
  margin-top: .9rem;
}

.app-notify-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  padding: .9rem 1.1rem 1.05rem;
  background: var(--theme-surface-muted);
  border-top: 1px solid var(--theme-border);
}

.app-notify-btn {
  min-width: 7rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: .78rem;
  padding: .55rem 1rem;
  font: 750 .92rem/1.25 var(--theme-font-sans);
  cursor: pointer;
  transition: transform var(--theme-motion-fast) ease, background var(--theme-motion-fast) ease, border-color var(--theme-motion-fast) ease;
}

.app-notify-btn:hover { transform: translateY(-1px); }
.app-notify-btn:focus-visible { box-shadow: var(--theme-focus-ring); }
.app-notify-btn.secondary { color: var(--theme-text); background: var(--theme-surface-raised); border-color: var(--theme-border-strong); }
.app-notify-btn.secondary:hover { background: var(--theme-surface-strong); }
.app-notify-btn.primary { color: var(--theme-brand-contrast); background: var(--theme-brand); border-color: var(--theme-brand); }
.app-notify-btn.primary:hover { background: var(--theme-brand-hover); border-color: var(--theme-brand-hover); }
.app-notify-btn.danger { color: #fff; background: #b42318; border-color: #b42318; }
.app-notify-btn.danger:hover { background: #8f1c14; border-color: #8f1c14; }

.app-toast-stack {
  position: fixed;
  top: max(.75rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 1.5rem), 28rem);
  z-index: 5100;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  pointer-events: none;
}

.app-toast {
  --toast-accent: var(--theme-info);
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) 44px;
  align-items: start;
  gap: .7rem;
  padding: .8rem .75rem .8rem .85rem;
  color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-surface-raised) 96%, transparent);
  border: 1px solid var(--theme-border);
  border-inline-start: .3rem solid var(--toast-accent);
  border-radius: var(--feedback-radius-md);
  box-shadow: var(--theme-shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(-.5rem);
  opacity: 0;
  overflow: hidden;
  transition: transform var(--theme-motion-base) ease, opacity var(--theme-motion-base) ease;
}

.app-toast.show { transform: none; opacity: 1; }
.app-toast.success { --toast-accent: var(--theme-success); }
.app-toast.error { --toast-accent: var(--theme-danger); }
.app-toast.warning { --toast-accent: var(--theme-warning); }
.app-toast.info { --toast-accent: var(--theme-info); }

.app-toast__icon {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  color: var(--toast-accent);
  background: color-mix(in srgb, var(--toast-accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--toast-accent) 42%, var(--theme-border));
  border-radius: .75rem;
}

.app-toast__icon svg { width: 1.15rem; height: 1.15rem; stroke: currentColor; }
.app-toast__content { min-width: 0; padding-top: .05rem; }
.app-toast__title { color: var(--theme-text); font-weight: 800; line-height: 1.35; }
.app-toast__text { margin-top: .18rem; color: var(--theme-text-soft); font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; }

.app-toast__close {
  align-self: start;
  inline-size: 44px;
  block-size: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: .7rem;
  background: transparent;
  color: var(--theme-muted);
  cursor: pointer;
  font: 800 1.3rem/1 var(--theme-font-sans);
}

.app-toast__progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: color-mix(in srgb, var(--toast-accent) 75%, transparent);
  transform-origin: left center;
  animation: herb-toast-progress var(--toast-duration, 2600ms) linear forwards;
}

.app-toast.is-paused .app-toast__progress { animation-play-state: paused; }

@keyframes herb-toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Loading, empty and error states ----------------------------------------- */
:where(.loading-state, .empty-state, .error-state, .no-data, .no-results, [data-ui-state]) {
  min-height: 8rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .65rem;
  padding: clamp(1rem, 3vw, 2rem);
  text-align: center;
  color: var(--theme-text-soft);
  background: var(--theme-surface-muted);
  border: 1px dashed var(--theme-border-strong);
  border-radius: var(--feedback-radius-md);
  overflow-wrap: anywhere;
}

:where(.loading-state, [data-ui-state="loading"]) { color: var(--theme-muted); }
:where(.error-state, [data-ui-state="error"]) { color: var(--feedback-danger-text); border-color: var(--feedback-danger-border); background: var(--feedback-danger-bg); }

.herb-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: .22rem solid color-mix(in srgb, var(--theme-brand) 22%, var(--theme-border));
  border-top-color: var(--theme-brand);
  border-radius: 50%;
  animation: herb-feedback-spin .75s linear infinite;
}

@keyframes herb-feedback-spin { to { transform: rotate(1turn); } }

button.is-loading,
.btn.is-loading {
  position: relative;
  pointer-events: none;
  cursor: wait;
  opacity: .78;
}

button.is-loading > :not(.herb-button-spinner),
.btn.is-loading > :not(.herb-button-spinner) { visibility: hidden; }

.herb-button-spinner {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin: -.575rem 0 0 -.575rem;
  border: .16rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: herb-feedback-spin .65s linear infinite;
}

body.herb-overlay-open { overflow: hidden; }

/* Mobile ------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .modal-dialog:not(.modal-fullscreen-sm-down) {
    width: auto;
    max-width: none;
    margin: auto .5rem max(.5rem, env(safe-area-inset-bottom));
    min-height: calc(100dvh - max(.5rem, env(safe-area-inset-bottom)));
    display: flex;
    align-items: flex-end;
  }

  .modal-dialog:not(.modal-fullscreen-sm-down) .modal-content {
    max-height: min(92dvh, calc(100dvh - .75rem));
    border-radius: 1.25rem 1.25rem .85rem .85rem !important;
  }

  .modal-header,
  .modal-body,
  .modal-footer { padding-inline: 1rem; }

  .modal-footer > .btn,
  .modal-footer > button,
  .modal-footer > a.btn {
    flex: 1 1 100%;
    min-height: 46px;
  }

  .modal-footer > .btn-primary,
  .modal-footer > .btn-success,
  .modal-footer > .btn-danger,
  .modal-footer > [type="submit"] { order: -1; }

  .offcanvas { width: min(92vw, 24rem) !important; }

  .app-notify-modal-wrap { align-items: end; padding: .5rem .5rem max(.5rem, env(safe-area-inset-bottom)); }
  .app-notify-modal { width: 100%; max-height: 92dvh; border-radius: 1.25rem 1.25rem .85rem .85rem; }
  .app-notify-actions { flex-direction: column-reverse; }
  .app-notify-btn { width: 100%; }

  .app-toast-stack {
    top: max(.5rem, env(safe-area-inset-top));
    left: .5rem;
    right: .5rem;
    transform: none;
    width: auto;
  }

  body.public-shell .app-toast-stack {
    bottom: calc(var(--public-mobile-nav-height, 74px) + env(safe-area-inset-bottom) + .75rem);
    top: auto;
  }

  .dropdown-menu { max-width: calc(100vw - 1rem); }
}

@media (max-width: 390px) {
  .modal-dialog:not(.modal-fullscreen-sm-down) { margin-inline: .25rem; }
  .modal-header { padding: .85rem .9rem; }
  .modal-body { padding: .95rem .9rem; }
  .modal-footer { padding: .8rem .9rem .95rem; }
  .app-toast { grid-template-columns: 2.2rem minmax(0, 1fr) 44px; padding-inline: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal-dialog,
  .app-notify-backdrop,
  .app-notify-modal,
  .app-toast,
  .app-toast__progress,
  .herb-loading-spinner,
  .herb-button-spinner {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .modal,
  .modal-backdrop,
  .offcanvas,
  .offcanvas-backdrop,
  .toast-container,
  .app-notify-root,
  .app-toast-stack,
  .dropdown-menu,
  .herb-loading-spinner { display: none !important; }

  .alert {
    color: #111 !important;
    background: #fff !important;
    border-color: #777 !important;
    box-shadow: none !important;
  }
}
