/* DashboardAlert toast — driven by dashboard-alert.js, loaded site-wide on FF. */
.dashboard-alert {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.dashboard-alert__toast {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    max-width: 360px;
    padding: 8px 16px 8px 12px;
    border-radius: 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #101828;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    opacity: 0;
    transform: translateX(120%);
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    pointer-events: auto;
    cursor: pointer;
}

.dashboard-alert__toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.dashboard-alert__toast--success {
    background: #d1fadf;
}

.dashboard-alert__toast--success .dashboard-alert__icon {
    color: #12b76a;
}

.dashboard-alert__toast--danger {
    background: #fef3f2;
}

.dashboard-alert__toast--danger .dashboard-alert__icon {
    color: #f04438;
}

.dashboard-alert__icon {
    display: inline-flex;
    align-items: flex-start;
    padding-top: 2px;
    flex-shrink: 0;
}

.dashboard-alert__icon svg {
    width: 20px;
    height: 20px;
}

.dashboard-alert__message {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .dashboard-alert {
        left: 16px;
        right: 16px;
        bottom: 16px;
        align-items: stretch;
    }

    .dashboard-alert__toast {
        max-width: none;
        transform: translateY(140%);
    }

    .dashboard-alert__toast--visible {
        transform: translateY(0);
    }
}
