/* Shared admin and school messages, including dynamically inserted alerts. */
body .alert.app-message-note {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-block: 12px 18px;
    text-transform: none;
    letter-spacing: normal;
}
body .app-message-note > .app-message-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    border: 0;
    background: color-mix(in srgb, var(--message-accent) 9%, white);
    color: var(--message-accent);
    font-size: 15px;
}
body .app-message-note-icon > i {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1;
}
.app-message-note-body { min-width: 0; }
body .app-message-note .app-message-note-title { display: block; font-size: 13px; line-height: 1.4; margin: 0 0 4px; font-weight: 600; }
.app-message-note-text { font-size: 13px; line-height: 1.6; }

body .alert.alert-info,
body .alert.alert-danger,
body .alert.alert-warning,
body .alert.alert-success {
    --message-bg: #eff6ff;
    --message-border: #cbdff8;
    --message-accent: #3976ba;
    --message-text: #294c72;
    position: relative;
    padding: 16px 20px;
    border: 1px solid var(--message-border) !important;
    border-inline-start: 4px solid var(--message-accent) !important;
    border-radius: 12px !important;
    background: var(--message-bg) !important;
    color: var(--message-text) !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    overflow-wrap: anywhere;
    text-align: start;
}

body .alert.app-message-note {
    padding: 14px 16px;
    border-inline-start-width: 1px !important;
    border-radius: 10px !important;
}
body .alert.app-message-note.alert-info {
    --message-bg: #f8fafc;
    --message-border: #e7e3f5;
    --message-accent: #7367f0;
    --message-text: #656078;
}
body .app-message-note.alert-info .app-message-note-title { color: #3e3855; }

body .alert.alert-warning, body .jq-toast-single.jq-icon-warning {
    --message-bg: #fffbef;
    --message-border: #f1dfb0;
    --message-accent: #a87313;
    --message-text: #755319;
}
body .alert.alert-danger, body .jq-toast-single.jq-icon-error {
    --message-bg: #fff4f5;
    --message-border: #f4cdd3;
    --message-accent: #c74c60;
    --message-text: #923549;
}
body .alert.alert-success, body .jq-toast-single.jq-icon-success {
    --message-bg: #f0fbf6;
    --message-border: #c5e9d7;
    --message-accent: #23855a;
    --message-text: #296647;
}

body .alert :is(h4, h5, h6, .alert-heading, strong, b) { color: inherit; }
body .alert :is(h4, h5, h6, .alert-heading) { font-size: 15px; font-weight: 600; }
body .alert :is(p, ul, ol):last-child { margin-bottom: 0; }
body .alert :is(ul, ol) { padding-inline-start: 20px; margin-top: 8px; }
body .alert li + li { margin-top: 5px; }
body .alert a:not(.btn) { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
body .alert.alert-dismissible { padding-inline-end: 48px; }
body .alert.alert-dismissible .close {
    inset-inline-end: 8px;
    inset-inline-start: auto;
    top: 9px;
    padding: 8px;
    color: inherit;
    opacity: .7;
    text-shadow: none;
}

body .jq-toast-wrap {
    width: 360px;
    max-width: calc(100vw - 24px);
    font-family: inherit;
}
body .jq-toast-wrap.top-right { top: 86px; right: 20px; }
body .jq-toast-wrap.top-left { top: 86px; left: 20px; }
body .jq-toast-single {
    --message-bg: #eff6ff;
    --message-border: #cbdff8;
    --message-accent: #3976ba;
    --message-text: #294c72;
    padding: 18px 42px 18px 18px;
    margin-bottom: 12px;
    border: 1px solid var(--message-border);
    border-radius: 14px;
    background: var(--message-bg) !important;
    color: var(--message-text) !important;
    box-shadow: 0 8px 28px rgba(42, 38, 68, .13);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
body .jq-toast-single.jq-has-icon { padding-inline-start: 60px; }
body .jq-toast-single.jq-has-icon::before {
    content: 'i';
    position: absolute;
    top: 17px;
    inset-inline-start: 17px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--message-border);
    border-radius: 9px;
    background: #fff;
    color: var(--message-accent);
    font-size: 18px;
    font-weight: 600;
}
body .jq-toast-single.jq-icon-error::before { content: '!'; }
body .jq-toast-single.jq-icon-warning::before { content: '!'; }
body .jq-toast-single.jq-icon-success::before { content: '\2713'; }
body .jq-toast-single h2 { margin-bottom: 5px; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.5; }
body .jq-toast-single a { color: inherit; border: 0; text-decoration: underline; padding: 0; }
body .jq-toast-single .jq-toast-loader { top: 0; height: 3px; background: var(--message-accent) !important; }
body .jq-toast-single .close-jq-toast-single {
    top: 8px;
    inset-inline-end: 8px;
    inset-inline-start: auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: inherit;
    font-size: 20px;
    opacity: .7;
}
body .close-jq-toast-single:hover { background: rgba(0, 0, 0, .05); opacity: 1; }
body .close-jq-toast-single:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
html[dir="rtl"] .jq-toast-single { padding-left: 42px; padding-right: 18px; text-align: right !important; }
html[dir="rtl"] .jq-toast-single.jq-has-icon { padding-inline-start: 60px; }

@media (max-width: 575.98px) {
    body .jq-toast-wrap.top-right { right: 12px; }
    body .jq-toast-wrap.top-left { left: 12px; }
    body .alert.alert-info, body .alert.alert-danger,
    body .alert.alert-warning, body .alert.alert-success { padding: 13px 15px; }
    body .alert.alert-dismissible { padding-inline-end: 44px; }
}
