.bn-stack{position:fixed;inset-block-start:5rem;inset-inline-end:1rem;width:min(390px,calc(100vw - 2rem));z-index:1090;display:grid;gap:.75rem;pointer-events:none}.bn-toast{pointer-events:auto;display:flex;align-items:flex-start;gap:.8rem;padding:1rem;border:1px solid var(--default-border,#e4e7ee);border-inline-start:4px solid #635bca;border-radius:14px;background:var(--custom-white,#fff);color:var(--default-text-color,#263246);box-shadow:0 8px 30px #172b4d22;animation:bn-enter .18s ease-out}.bn-icon{position:relative;display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:#635bca15;color:#635bca;font-size:22px}.bn-avatar{position:absolute;inset:0;width:40px;height:40px;object-fit:cover;border-radius:12px}.bn-copy{min-width:0;flex:1}.bn-copy strong{font-size:.92rem;display:block}.bn-copy p{margin:.3rem 0;font-size:.84rem;overflow-wrap:anywhere;white-space:pre-wrap;max-height:7rem;overflow:auto}.bn-copy small{font-size:.72rem;opacity:.7}.bn-close{border:0;background:transparent;color:inherit;font-size:22px;line-height:1;padding:0 .2rem}.bn-open{display:block;border:0;background:transparent;color:#635bca;font-size:.8rem;padding:.45rem 0 0;text-decoration:underline}.bn-alert,.bn-failed,.bn-rejected{border-inline-start-color:#c84646}.bn-delivered,.bn-accepted{border-inline-start-color:#248565}.bn-finance{border-inline-start-color:#b17b21}.bn-settings{padding:.7rem 1rem;border-block:1px solid var(--default-border,#e4e7ee);font-size:.8rem}.bn-settings summary{cursor:pointer;font-weight:600}.bn-preferences{display:grid;gap:.7rem;padding-block-start:.8rem;max-height:55vh;overflow:auto}.bn-control{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin:0}.bn-control select{width:46%;min-width:0;background:var(--custom-white,#fff);color:inherit;border:1px solid var(--default-border,#ddd);border-radius:5px;padding:.2rem}.bn-control input[type=range]{width:48%}.bn-help{opacity:.7;line-height:1.5}.bn-toast:focus-within{outline:2px solid #635bca}.bn-settings button[hidden]{display:none}@keyframes bn-enter{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}@media(max-width:480px){.bn-stack{inset-block-start:4.4rem;inset-inline-end:.5rem;width:calc(100vw - 1rem)}.bn-toast{padding:.8rem;gap:.6rem}.bn-copy strong{font-size:.87rem}.bn-preferences{max-height:48vh}}@media(prefers-reduced-motion:reduce){.bn-toast{animation:none}}
/* Local Almarai applies only to Arabic notification text, preserving icon fonts. */
@font-face{font-family:Almarai;src:url('fonts/almarai/Almarai-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Almarai;src:url('fonts/almarai/Almarai-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
html[lang=ar] .notifications-dropdown,.bn-stack[dir=rtl],.bn-settings[dir=rtl]{font-family:Almarai,'Droid Arabic Kufi',sans-serif}
html[lang=ar] .notifications-dropdown :is(button,input,select),.bn-stack[dir=rtl] button{font-family:inherit}
/* Bootstrap RTL sets its Arabic face with !important on element selectors, so text
   descendants are named directly; <i> icon fonts are left alone. */
html[lang=ar] :is(.notification-container .card-body,.notifications-dropdown) :not(i){font-family:Almarai,'Droid Arabic Kufi',sans-serif!important}
/* Inbox page: long unbroken copy (references, links) wraps instead of widening a phone screen. */
.notification-container .card-body .flex-fill,.notification-container .card-body .flex-fill>.d-flex>:first-child{min-width:0}
.notification-container .card-body p{overflow-wrap:anywhere}
.main-header-container .notifications-dropdown .main-header-dropdown{max-height:calc(100vh - 5rem);max-height:calc(100dvh - 5rem);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:575.98px){
    .main-header-container .notifications-dropdown .main-header-dropdown{width:min(22rem,calc(100vw - 1rem))}
    .notifications-dropdown .bn-settings summary{padding-block:.35rem;min-height:2.75rem}
    .notifications-dropdown .bn-control{min-height:2.75rem}
    .notifications-dropdown .bn-control select,.notifications-dropdown .bn-control input[type=range],.notifications-dropdown .bn-preferences>button{min-height:2.75rem}
}
