/* the announcements of the staff: the bars on every page, the cards of the dashboard, the popups and the acknowledgement page */

.ann-bars {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 1rem;
}

.ann-bar {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 16px;
    color: #fff;
    font-size: 0.95rem;
}

.ann-bar-icon {
    font-size: 1.4rem;
    margin-inline-end: 8px;
    flex-shrink: 0;
}

.ann-bar-text,
.ann-bar-text:hover {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ann-bar-title {
    font-weight: 600;
}

.ann-bar-link {
    margin-inline-start: 8px;
    font-weight: 700;
}

.ann-bar-close {
    flex-shrink: 0;
    margin-inline-start: 8px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #fff;
    line-height: 1;
    cursor: pointer;
}

    .ann-bar-close i {
        color: #fff;
        font-size: 0.7rem;
    }

.ann-main {
    min-width: 0;
}

.ann-image {
    display: block;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.ann-body {
    overflow-wrap: anywhere;
}

    .ann-body img {
        max-width: 100%;
        height: auto;
    }

    .ann-body p:last-child {
        margin-bottom: 0;
    }

.ann-ack-page {
    max-width: 760px;
}

/* the phones: one bar (the first of the highest priority) on two lines at most, next to the mobile bottom bar */
@media (max-width: 575.98px) {
    .ann-bar:not(:first-child) {
        display: none;
    }

    .ann-bar {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .ann-bar-text,
    .ann-bar-text:hover {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .ann-card .card-body {
        padding: 1rem !important;
    }

    .ann-popup .modal-dialog {
        margin: 0.5rem;
    }
}
