/* A single row of service actions and a separate, stable grid for work that needs attention. */
.crm-alerts {
    --notice-surface: #b52d37;
    --notice-hover: #9b222e;
    --notice-gap: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--notice-gap);
    min-width: 0;
    margin: 0;
}
.crm-alerts:has(.crm-alert) { margin: 10px 0 12px; }
#workspaceAlerts > div, #workspaceAlerts > section, #workspaceAlerts > span { display: contents; }
#workspaceAlerts #missedCalls { order: 1; }
#workspaceAlerts #operatorReadyAlert { order: 2; }
#workspaceAlerts .avito-alert-unread { order: 3; }
#workspaceAlerts #marketplaceChatNotice .crm-alert { order: 4; }
#workspaceAlerts #customerChatNotice .crm-alert { order: 5; }
#workspaceAlerts #fireSafetyOpen { order: 6; }
#workspaceAlerts #metalReviewNotice .crm-alert { order: 7; }
#workspaceAlerts [data-health-notice] { order: 8; }
#metalReviewNotice.crm-alerts { margin: 0; }
#metalReviewNotice.crm-alerts:has(.crm-alert) { margin: 10px 0 12px; }
:is(#workspaceAlerts,#metalReviewNotice).crm-alerts .crm-alert {
    box-sizing: border-box; flex: 0 1 auto;
    display: inline-flex; flex-direction: row; align-items: center; justify-content: center;
    width: auto; min-width: 0; max-width: 100%; min-height: 44px;
    gap: 8px; margin: 0; padding: 12px 18px;
    color: #fff !important; background: var(--notice-surface); border: 0; border-radius: 8px;
    font-family: inherit; font-weight: 650; font-size: 15px; line-height: 1.5;
    text-align: center; text-decoration: none; white-space: normal; cursor: pointer;
}
.crm-alert .crm-alert-text { min-width: 0; overflow-wrap: anywhere; }
#workspaceAlerts .crm-alert .crm-alert-count, #metalReviewNotice .crm-alert .crm-alert-count {
    display: inline-grid; place-items: center; flex: none; box-sizing: border-box;
    min-width: 19px; min-height: 18px; height: 18px; margin: 0; padding: 0 4px;
    border-radius: 5px; color: #952130; background: #fff; font: 700 12px/1 system-ui,sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums;
}
:is(#workspaceAlerts,#metalReviewNotice).crm-alerts .crm-alert:hover { background: var(--notice-hover); }
.crm-alerts .crm-alert:focus-visible { outline: 3px solid #267cf0; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .crm-alerts .crm-alert { animation: crm-notice-pulse 2.8s ease-in-out infinite; }
    @keyframes crm-notice-pulse { 50% { box-shadow: 0 0 0 2px rgb(194 50 64 / 32%); } }
}
@media (prefers-reduced-motion: reduce) { .crm-alerts .crm-alert { animation: none; } }
#workspaceAlerts:empty, #workspaceAlerts:not(:has(.crm-alert)) { display: none; }
@media (max-width: 720px) {
    :is(#workspaceAlerts,#metalReviewNotice).crm-alerts .crm-alert { font-size: 13px; }
}
@media screen and (min-width: 721px) {
    .toolbar > .crm-pwa-install-link {
        min-height: 32px; padding: 6px 11px; font-size: 12px; font-weight: 650;
    }
}
.toolbar > .buttonlink { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media print { .crm-alerts { display: none !important; } }
.crm-health-details .connection-warning { padding: 5px 0; border-bottom: 1px solid var(--line,#cbd6df); }
.crm-health-details .connection-warning-body small { color: var(--muted,#486074); }
.crm-health-details > button { margin-top: 10px; }
