/* One shared presentation for application feedback; semantic colors do not depend on tenant branding. */
:root .alert {
    padding: 16px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.alert.alert-info { border-color: #b2ddff; color: #1849a9; background-color: #eff8ff; }
.alert.alert-success { border-color: #a6f4c5; color: #05603a; background-color: #ecfdf3; }
.alert.alert-warning { border-color: #fedf89; color: #7a2e0e; background-color: #fffaeb; }
.alert.alert-danger { border-color: #fecdca; color: #912018; background-color: #fef3f2; }
.fm-feedback-shell,
body .jconfirm .jconfirm-box {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    color: #344054;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
}
body .jconfirm[class] .jconfirm-box { border-radius: 12px; }
body .jconfirm[class] .jconfirm-box.fm-feedback-shell {
    border: 1px solid #e4e7ec;
    box-shadow: 0 20px 64px rgb(16 24 40 / 22%);
}
dialog.fm-feedback-shell {
    box-sizing: border-box;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    overflow: auto;
    background: #fff;
    box-shadow: 0 20px 64px rgb(16 24 40 / 22%);
}
dialog.fm-feedback-shell::backdrop { background: rgb(16 24 40 / 45%); }
.fm-feedback-open { overflow: hidden; }
.fm-feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgb(16 24 40 / 45%);
}
.fm-feedback-overlay dialog.fm-feedback-shell { position: relative; display: block; }
.fm-feedback-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fm-feedback-title,
.jconfirm .jconfirm-title {
    margin: 0;
    color: #101828;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.fm-feedback-symbol {
    display: inline-flex;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #175cd3;
    background: #eff8ff;
    font-size: 21px;
    font-weight: 600;
}
:is(.fm-feedback-shell--warning, .fm-feedback-alert--warning) .fm-feedback-symbol { color: #854a0e; background: #fef0c7; }
:is(.fm-feedback-shell--error, .fm-feedback-alert--error) .fm-feedback-symbol { color: #b42318; background: #fee4e2; }
:is(.fm-feedback-shell--success, .fm-feedback-alert--success) .fm-feedback-symbol { color: #027a48; background: #d1fadf; }
.fm-feedback-close {
    display: inline-flex;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: #475467;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}
.fm-feedback-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.fm-feedback-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.fm-feedback-action,
.jconfirm .jconfirm-box .jconfirm-buttons button {
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font: inherit;
    line-height: 1.35;
    white-space: normal;
    cursor: pointer;
}
.fm-feedback-action { color: #344054; background: #fff; }
.fm-feedback-action--primary,
.jconfirm .jconfirm-box .jconfirm-buttons .fm-feedback-action--primary {
    border-color: var(--fm-brand-primary, #00695c);
    color: var(--fm-brand-on-primary, #fff);
    background: var(--fm-brand-primary, #00695c);
}
.fm-feedback-action:focus-visible,
.fm-feedback-close:focus-visible { outline: 3px solid #175cd3; outline-offset: 2px; }
.alert.fm-feedback-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 52px 16px 16px;
    border: 1px solid #b2ddff;
    border-radius: 10px;
    color: #1849a9;
    background: #eff8ff;
}
.alert.fm-feedback-alert--success { border-color: #a6f4c5; color: #05603a; background: #ecfdf3; }
.alert.fm-feedback-alert--warning { border-color: #fedf89; color: #7a2e0e; background: #fffaeb; }
.alert.fm-feedback-alert--error { border-color: #fecdca; color: #912018; background: #fef3f2; }
.fm-feedback-alert .fm-feedback-close { position: absolute; top: 10px; right: 10px; margin: 0; color: inherit; }
.fm-feedback-alert-title { display: block; margin-bottom: 3px; font-weight: 600; }
.fm-feedback-alert-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
    dialog.fm-feedback-shell { padding: 20px; }
    .fm-feedback-actions .fm-feedback-action { flex: 1 1 auto; }
    .jconfirm .jconfirm-box .jconfirm-buttons { display: flex; flex-wrap: wrap; gap: 8px; float: none; }
    .jconfirm .jconfirm-box .jconfirm-buttons button { flex: 1 1 auto; margin: 0; }
}
