/*
 * Note that this is toastr v2.1.3, the "latest" version in url has no more maintenance,
 * please go to https://cdnjs.com/libraries/toastr.js and pick a certain version you want to use,
 * make sure you copy the url from the website since the url may change between versions.
 * */
.toast-title {
    font-weight: 700;
}
.toast-message {
    font-weight: 900;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}
.toast-message a,
.toast-message label {
    color: #fff;
}
.toast-message a:hover {
    color: #ccc;
    text-decoration: none;
}
.toast-close-button {
    position: relative;
    inset-inline-end: -0.3em;
    top: -0.3em;
    float: right;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    -webkit-text-shadow: 0 1px 0 #fff;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.8;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
    filter: alpha(opacity=80);
    line-height: 1;
}
.toast-close-button:focus,
.toast-close-button:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.4;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
    filter: alpha(opacity=40);
}
.rtl .toast-close-button {
    inset-inline-start: -0.3em;
    float: left;
    inset-inline-end: 0.3em;
}
button.toast-close-button {
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
    -webkit-appearance: none;
}
.toast-top-center {
    top: 0;
    inset-inline-end: 0;
    width: 100%;
}
.toast-bottom-center {
    bottom: 0;
    inset-inline-end: 0;
    width: 100%;
}
.toast-top-full-width {
    top: 0;
    inset-inline-end: 0;
    width: 100%;
}
.toast-bottom-full-width {
    bottom: 0;
    inset-inline-end: 0;
    width: 100%;
}
.toast-top-left {
    top: 12px;
    inset-inline-start: 12px;
}
.toast-top-right {
    top: 12px;
    inset-inline-end: 12px;
}
.toast-bottom-right {
    inset-inline-end: 12px;
    bottom: 12px;
}
.toast-bottom-left {
    bottom: 12px;
    inset-inline-start: 12px;
}
#toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}
#toast-container * {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
#toast-container > div {
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    margin: 0 0 6px;
    /* padding: 15px 15px 15px 50px; */
    padding: 15px 15px 15px 50px;
    padding-inline-start: 50px;
    padding-inline-end: 15px;
    width: 300px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    background-position: 15px center;
    background-repeat: no-repeat;
    -moz-box-shadow: 0 0 12px #999;
    -webkit-box-shadow: 0 0 12px #999;
    box-shadow: 0 0 12px #999;
    color: #fff;
    opacity: 1;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
    filter: alpha(opacity=80);
}
#toast-container > div.rtl {
    direction: rtl;
    padding: 15px 50px 15px 15px;
    background-position: right 15px center;
}
#toast-container > div:hover {
    -moz-box-shadow: 0 0 12px #000;
    -webkit-box-shadow: 0 0 12px #000;
    box-shadow: 0 0 12px #000;
    opacity: 1;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
    filter: alpha(opacity=100);
    cursor: pointer;
}
#toast-container > .toast-info {
    background-color: #00bbff !important;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=) !important;
}
#toast-container > .toast-error {
    background-color: #b24400 !important;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=) !important;
}
#toast-container > .toast-success {
    background-color: #006444 !important;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==) !important;
}
#toast-container > .toast-warning {
    background-color: #ff7800 !important;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=) !important;
}

[dir="rtl"] #toast-container > .toast-info,
[dir="rtl"] #toast-container > .toast-error,
[dir="rtl"] #toast-container > .toast-success,
[dir="rtl"] #toast-container > .toast-warning {
    background-position: calc(100% - 10px);
}

#toast-container.toast-bottom-center > div,
#toast-container.toast-top-center > div {
    width: 300px;
    margin-inline-start: auto;
    margin-inline-end: auto;
}
#toast-container.toast-bottom-full-width > div,
#toast-container.toast-top-full-width > div {
    width: 96%;
    margin-inline-start: auto;
    margin-inline-end: auto;
}
.toast {
    background-color: #030303;
}
.toast-success {
    background-color: #06fc8b;
}
.toast-error {
    background-color: #fc3e06;
}
.toast-info {
    background-color: #08e7e6;
}
.toast-warning {
    background-color: #fc8114;
}
.toast-progress {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    height: 4px;
    background-color: #000;
    opacity: 0.4;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
    filter: alpha(opacity=40);
}
@media all and (max-width: 240px) {
    #toast-container > div {
        padding: 8px 8px 8px 50px;
        width: 11em;
    }
    #toast-container > div.rtl {
        padding: 8px 50px 8px 8px;
    }
    #toast-container .toast-close-button {
        inset-inline-end: -0.2em;
        top: -0.2em;
    }
    #toast-container .rtl .toast-close-button {
        inset-inline-start: -0.2em;
        inset-inline-end: 0.2em;
    }
}
@media all and (min-width: 241px) and (max-width: 480px) {
    #toast-container > div {
        padding: 8px 8px 8px 50px;
        width: 18em;
    }
    #toast-container > div.rtl {
        padding: 8px 50px 8px 8px;
    }
    #toast-container .toast-close-button {
        inset-inline-end: -0.2em;
        top: -0.2em;
    }
    #toast-container .rtl .toast-close-button {
        inset-inline-start: -0.2em;
        inset-inline-end: 0.2em;
    }
}
@media all and (min-width: 481px) and (max-width: 768px) {
    #toast-container > div {
        padding: 15px 15px 15px 50px;
        width: 25em;
    }
    #toast-container > div.rtl {
        padding: 15px 50px 15px 15px;
    }
}

/* Modern Toastr Theme Override */
:root {
    --oa-toast-bg: rgba(255, 255, 255, 0.94);
    --oa-toast-text: #0f172a;
    --oa-toast-muted: #475569;
    --oa-toast-border: #dbe2ee;
    --oa-toast-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    --oa-toast-success: #10b981;
    --oa-toast-error: #ef4444;
    --oa-toast-warning: #f59e0b;
    --oa-toast-info: #3b82f6;
}

body.theme-dark {
    --oa-toast-bg: rgba(14, 23, 45, 0.93);
    --oa-toast-text: #e5ecfb;
    --oa-toast-muted: #9fb0d1;
    --oa-toast-border: rgba(129, 152, 201, 0.28);
    --oa-toast-shadow: 0 22px 48px rgba(2, 8, 23, 0.48);
}

#toast-container {
    z-index: 2147483646;
}

#toast-container > div {
    width: min(420px, calc(100vw - 24px)) !important;
    margin: 0 0 10px !important;
    padding: 14px 14px 14px 56px !important;
    border-radius: 14px !important;
    border: 1px solid var(--oa-toast-border) !important;
    background: var(--oa-toast-bg) !important;
    box-shadow: var(--oa-toast-shadow) !important;
    color: var(--oa-toast-text) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1 !important;
    background-image: none !important;
    animation: oa-toast-in .24s ease-out;
}

#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-warning,
#toast-container > .toast-info {
    background-image: none !important;
}

#toast-container > .toast-success::before,
#toast-container > .toast-error::before,
#toast-container > .toast-warning::before,
#toast-container > .toast-info::before {
    content: "";
    position: absolute;
    inset-inline-start: 14px;
    left: 14px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    box-sizing: border-box;
}

#toast-container > .toast-success::before {
    border-color: rgba(16, 185, 129, 0.9);
    box-shadow: inset 0 0 0 6px rgba(16, 185, 129, 0.22);
}

#toast-container > .toast-error::before {
    border-color: rgba(239, 68, 68, 0.9);
    box-shadow: inset 0 0 0 6px rgba(239, 68, 68, 0.22);
}

#toast-container > .toast-warning::before {
    border-color: rgba(245, 158, 11, 0.9);
    box-shadow: inset 0 0 0 6px rgba(245, 158, 11, 0.24);
}

#toast-container > .toast-info::before {
    border-color: rgba(59, 130, 246, 0.9);
    box-shadow: inset 0 0 0 6px rgba(59, 130, 246, 0.22);
}

#toast-container > div.rtl {
    padding: 14px 56px 14px 14px !important;
}

#toast-container > div.rtl::before {
    inset-inline-start: auto;
    inset-inline-end: 14px;
}

.toast-title {
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    color: var(--oa-toast-text) !important;
}

.toast-message {
    font-weight: 500 !important;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--oa-toast-muted) !important;
}

.toast-message a,
.toast-message label {
    color: inherit !important;
}

.toast-close-button {
    color: var(--oa-toast-muted) !important;
    text-shadow: none !important;
    opacity: .85 !important;
    font-size: 18px !important;
}

.toast-close-button:hover,
.toast-close-button:focus {
    color: var(--oa-toast-text) !important;
    opacity: 1 !important;
}

.toast-progress {
    height: 3px !important;
    opacity: 1 !important;
    background: linear-gradient(90deg, #111827 0%, #4b5563 100%) !important;
}

#toast-container > .toast-success .toast-progress {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%) !important;
}

#toast-container > .toast-error .toast-progress {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%) !important;
}

#toast-container > .toast-warning .toast-progress {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%) !important;
}

#toast-container > .toast-info .toast-progress {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%) !important;
}

@keyframes oa-toast-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Final contrast overrides (higher specificity than legacy toastr rules) */
#toast-container > div.toast-success,
#toast-container > div.toast-error,
#toast-container > div.toast-warning,
#toast-container > div.toast-info {
    color: var(--oa-toast-text) !important;
    background: var(--oa-toast-bg) !important;
}

#toast-container > div.toast-success {
    border-inline-start: 4px solid var(--oa-toast-success) !important;
}

#toast-container > div.toast-error {
    border-inline-start: 4px solid var(--oa-toast-error) !important;
}

#toast-container > div.toast-warning {
    border-inline-start: 4px solid var(--oa-toast-warning) !important;
}

#toast-container > div.toast-info {
    border-inline-start: 4px solid var(--oa-toast-info) !important;
}

#toast-container > div.toast-success .toast-title,
#toast-container > div.toast-success .toast-message,
#toast-container > div.toast-error .toast-title,
#toast-container > div.toast-error .toast-message,
#toast-container > div.toast-warning .toast-title,
#toast-container > div.toast-warning .toast-message,
#toast-container > div.toast-info .toast-title,
#toast-container > div.toast-info .toast-message {
    color: var(--oa-toast-text) !important;
}

/* Keep toasts truly centered at top */
#toast-container.toast-top-center {
    top: 14px !important;
    left: 50% !important;
    right: auto !important;
    width: auto !important;
    transform: translateX(-50%);
}

#toast-container.toast-top-center > div {
    margin-inline-start: auto !important;
    margin-inline-end: auto !important;
}

/* RTL spacing/icon fixes */
[dir="rtl"] #toast-container > div,
html[dir="rtl"] #toast-container > div,
body[dir="rtl"] #toast-container > div,
html.active #toast-container > div {
    padding: 14px 56px 14px 14px !important;
    text-align: right !important;
}

[dir="rtl"] #toast-container > div::before,
html[dir="rtl"] #toast-container > div::before,
body[dir="rtl"] #toast-container > div::before,
html.active #toast-container > div::before {
    inset-inline-start: auto !important;
    inset-inline-end: 14px !important;
    left: auto !important;
    right: 14px !important;
}
