/* Global validation message dialog: visible regardless of page scroll position. */
.oms-global-alert-overlay[hidden]{display:none!important}
.oms-global-alert-overlay{
  position:fixed;inset:0;z-index:2147483000;
  background:rgba(10,24,42,.62);
  display:flex;align-items:center;justify-content:center;
  padding:16px;overscroll-behavior:contain
}
.oms-global-alert-dialog{
  width:min(100%,490px);max-height:min(80dvh,620px);overflow:auto;
  background:#fff;color:#16314b;border-radius:18px;
  box-shadow:0 18px 60px rgba(7,17,35,.35);
  padding:24px;box-sizing:border-box;
  font-family:inherit
}
.oms-global-alert-heading{display:flex;align-items:center;gap:12px}
.oms-global-alert-heading h2{font-size:22px;line-height:1.3;margin:0;color:#a92323}
.oms-global-alert-symbol{
  display:grid;place-items:center;flex:0 0 37px;height:37px;
  background:#fce7e7;color:#b42318;border-radius:50%;font-size:24px;font-weight:700
}
#oms-global-alert-message{
  margin:18px 0 24px;white-space:pre-wrap;overflow-wrap:anywhere;
  font-size:16px;line-height:1.55
}
.oms-global-alert-actions{display:flex;justify-content:flex-end}
.oms-global-alert-ok{
  border:0;border-radius:9px;background:#17649b;color:#fff;
  padding:11px 24px;min-height:44px;font-size:16px;font-weight:700;
  cursor:pointer
}
.oms-global-alert-ok:focus-visible{outline:3px solid #ff9b19;outline-offset:3px}
@media(max-width:600px){
  .oms-global-alert-dialog{padding:20px}
  .oms-global-alert-actions{display:block}
  .oms-global-alert-ok{width:100%}
}

/* Unified success/info notification — fixed in viewport, independent of long pages. */
.oms-notification-toast[hidden]{display:none!important}
.oms-notification-toast{
 position:fixed;z-index:2147482999;top:max(16px,env(safe-area-inset-top));right:16px;
 display:flex;align-items:flex-start;gap:12px;width:min(440px,calc(100vw - 32px));
 max-height:min(45dvh,360px);overflow-y:auto;background:#fff;color:#17364a;
 padding:16px;border:1px solid #c7dded;border-left:5px solid #1c79b9;border-radius:13px;
 box-shadow:0 14px 42px rgba(8,29,50,.25);font:inherit;line-height:1.4
}
.oms-notification-toast--success{border-left-color:#158453;background:#f4fbf7}
.oms-notification-toast--warning{border-left-color:#c77d13;background:#fffaee}
.oms-notification-toast--error{border-left-color:#c13a42;background:#fff5f5}
.oms-notification-toast-icon{
 display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;
 background:#e4f0fa;color:#1867a1;border-radius:50%;font-size:20px;font-weight:800
}
.oms-notification-toast--success .oms-notification-toast-icon{color:#157247;background:#dbf3e7}
.oms-notification-toast--warning .oms-notification-toast-icon{color:#925b13;background:#fff0cf}
.oms-notification-toast-content{flex:1;min-width:0;overflow-wrap:anywhere}
.oms-notification-toast-title{display:block;font-size:15px;font-weight:750;margin:0 0 4px}
.oms-notification-toast-message{margin:0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.oms-notification-toast-close{
 flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;
 background:transparent;color:#4e6575;border:1px solid #d0dce5;border-radius:8px;
 font:24px/1 system-ui;cursor:pointer
}
.oms-notification-toast-close:hover{background:#e8eff4}
.oms-notification-toast-close:focus-visible{outline:3px solid #1464ad;outline-offset:2px}
.oms-global-alert-overlay[data-kind="warning"] .oms-global-alert-heading h2{color:#9d620d}
.oms-global-alert-overlay[data-kind="warning"] .oms-global-alert-symbol{color:#8c5813;background:#fff0d3}
@media(max-width:600px){
 .oms-notification-toast{top:max(10px,env(safe-area-inset-top));left:10px;right:10px;width:auto;padding:12px;gap:9px;max-height:40dvh}
 .oms-notification-toast-title{font-size:14px}
 .oms-notification-toast-message{font-size:13px}
}
