/* Messages partagés : palette Assime et visibilité au-dessus des boîtes de dialogue. */
body .assime-messages {
    scroll-margin-top: 82px;
    outline: none;
}
body .ui-messages-info,
body .ui-message-info {
    --feedback-color: var(--primary);
    --feedback-bg: #edf7f2;
    --feedback-border: #b8daca;
}
body .ui-messages-warn,
body .ui-message-warn {
    --feedback-color: #735711;
    --feedback-bg: #fff8db;
    --feedback-border: #e9d58c;
}
body .ui-messages-error,
body .ui-messages-fatal,
body .ui-message-error,
body .ui-message-fatal {
    --feedback-color: #a11130;
    --feedback-bg: #fff1f3;
    --feedback-border: #e8b6c1;
}
body .ui-messages > div[class*="ui-messages-"],
body .ui-message[class*="ui-message-"] {
    position: relative;
    background: var(--feedback-bg, #edf7f2);
    color: var(--feedback-color, var(--primary));
    border: 1px solid var(--feedback-border, #b8daca);
    border-left: 4px solid var(--feedback-color, var(--primary));
    border-radius: 12px;
    box-shadow: none;
    padding: 16px 44px 16px 16px;
    margin: 0 0 16px;
    font: inherit;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
body .ui-messages ul {
    margin: 0 0 0 34px;
    padding: 0;
    list-style: none;
}
body .ui-messages li + li {
    margin-top: 8px;
}
body .ui-messages-summary {
    margin: 0;
    font-weight: 700;
}
body .ui-messages-detail {
    display: block;
    margin: 3px 0 0;
    font-weight: 400;
}
body .ui-messages .ui-messages-close {
    position: absolute;
    color: inherit;
    top: 14px;
    right: 14px;
}
body .ui-messages-info-icon,
body .ui-messages-error-icon,
body .ui-messages-warn-icon,
body .ui-messages-fatal-icon {
    background: none;
    color: inherit;
    width: 24px;
    height: 24px;
    margin: 0 10px 0 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    text-indent: 0;
    text-align: center;
    line-height: 22px;
}
body .ui-messages-info-icon::before {
    content: "i";
    font-weight: 700;
}
body .ui-messages-error-icon::before,
body .ui-messages-warn-icon::before,
body .ui-messages-fatal-icon::before {
    content: "!";
    font-weight: 700;
}
body .ui-growl {
    top: 78px !important;
    right: 18px;
    width: min(400px, calc(100vw - 32px));
    z-index: 20000 !important;
}
body .ui-growl .ui-growl-item-container {
    background: var(--surface);
    color: var(--text);
    opacity: 1;
    border: 1px solid var(--border);
    border-left: 4px solid var(--danger);
    border-radius: 12px;
    box-shadow: 0 10px 32px #192d2926;
    margin-bottom: 12px;
}
body .ui-growl-item {
    padding: 18px 32px 18px 16px;
}
body .ui-growl-message {
    float: none;
    width: auto;
    margin-left: 36px;
    padding: 0;
    overflow-wrap: anywhere;
}
body .ui-growl-title {
    padding: 0 0 5px;
    font-size: 15px;
    color: #a11130;
}
body .ui-growl-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
}
body .ui-growl-image {
    font-family: inherit;
    background: #fff1f3;
    color: #a11130;
    width: 26px;
    height: 26px;
    border: 1px solid #e8b6c1;
    border-radius: 50%;
    text-indent: 0;
}
body .ui-growl-image::before {
    content: "!";
    display: block;
    text-align: center;
    line-height: 24px;
    font-weight: 700;
}
body .ui-growl-icon-close {
    color: var(--muted);
    top: 10px;
    right: 10px;
    cursor: pointer;
}
body .ui-growl-icon-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
body .ui-state-error:not(.ui-messages-error):not(.ui-message-error) {
    border-color: var(--danger);
}
@media (max-width: 600px) {
    body .ui-growl {
        left: 16px;
        right: 16px;
        width: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    body .assime-messages {
        scroll-behavior: auto;
    }
}

body .ui-growl .ui-growl-icon-close {
    display: block !important;
    background: none;
    text-indent: 0;
    width: 22px;
    height: 22px;
}
body .ui-growl-icon-close::before,
body .ui-messages-close::before {
    content: "×";
    font:
        22px/22px system-ui,
        sans-serif;
}
body .ui-messages-close .ui-icon {
    display: none;
}
body.feedback-ready:not(.feedback-in-dialog) .ui-growl {
    display: none !important;
}

body .ui-messages-error-icon,
body .ui-messages-warn-icon,
body .ui-messages-fatal-icon,
body .ui-messages-info-icon {
    font-family: inherit;
}
