.ef-flow-alert-attention-root {
    position: fixed;
    top: 78px;
    right: 18px;
    z-index: 1092;
    width: min(390px, calc(100vw - 36px));
    max-height: calc(100vh - 100px);
    overflow: hidden;
    border: 1px solid rgba(220, 53, 69, .22);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(23, 43, 77, .24);
    transition: top .18s ease;
}

.ef-flow-alert-attention-root[hidden] {
    display: none !important;
}

.ef-flow-alert-attention-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    background: #fff5f5;
    border-bottom: 1px solid #f3d5d8;
}

.ef-flow-alert-attention-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    color: #7f1d1d;
    font-weight: 700;
}

.ef-flow-alert-attention-title i {
    color: #dc3545;
}

.ef-flow-alert-sound-toggle {
    flex: 0 0 auto;
    padding: 4px 8px;
    color: #6c757d;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 7px;
    font-size: 12px;
    cursor: pointer;
}

.ef-flow-alert-sound-toggle.is-active {
    color: #0b6b2f;
    background: #edf9f1;
    border-color: #83c99f;
}

.ef-flow-alert-attention-list {
    max-height: calc(100vh - 155px);
    overflow-y: auto;
}

.ef-flow-alert-attention-card {
    position: relative;
    padding: 13px 40px 13px 14px;
    background: #fff;
    border-bottom: 1px solid #edf0f3;
    border-left: 5px solid #dc3545;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
}

.ef-flow-alert-attention-card:last-child {
    border-bottom: 0;
}

.ef-flow-alert-attention-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ef-flow-alert-attention-card.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.ef-flow-alert-attention-kicker {
    margin-bottom: 4px;
    color: #dc3545;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.ef-flow-alert-attention-heading {
    color: #212529;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.ef-flow-alert-attention-message {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: #5f6b76;
    font-size: 13px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ef-flow-alert-attention-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.ef-flow-alert-attention-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    padding: 0;
    color: #8b96a8;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 20px;
    line-height: 24px;
    cursor: pointer;
}

.ef-flow-alert-attention-close:hover {
    color: #dc3545;
    background: #fff1f0;
}

/*
 * O botão continua executando a mesma action de ativação. O destaque apenas
 * informa, também para quem disparou o alerta, que a demanda já foi alertada.
 */
a.flow-alert-source-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 6px;
    vertical-align: middle;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

a.flow-alert-source-trigger i {
    margin-left: 0 !important;
    color: #0d6efd !important;
}

a.flow-alert-source-trigger:hover {
    background: #edf4ff;
    text-decoration: none;
}

a.flow-alert-source-trigger.is-alerted {
    background: #fff3cd;
    border-color: #f2b705;
    box-shadow: 0 0 0 3px rgba(242, 183, 5, .16);
}

a.flow-alert-source-trigger.is-alerted i {
    color: #dc3545 !important;
}

a.flow-alert-source-trigger.is-alerted::after {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    content: '';
    background: #dc3545;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Caso o toast genérico chegue antes do card prioritário, ele funciona como
 * fallback. Quando o card especializado é montado, o JS remove o duplicado. */
.notification-toast.flow-alert-priority-fallback {
    border-left-color: #dc3545;
}

@media (max-width: 575.98px) {
    .ef-flow-alert-attention-root {
        top: 68px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 82px);
    }

    .ef-flow-alert-attention-list {
        max-height: calc(100vh - 140px);
    }
}
