/* -----------------------------
   Comunicações (modern)
   Used in: app/communications/** e no banner do topo dos dashboards (app/communications/banner/banner.html)
   Usa as classes partilhadas do design novo (dashboard-admin.css e userDetailsModern* em
   user-ics-calendar.css); aqui fica só o que é próprio das Comunicações (prefixo communicationsModern).
   ----------------------------- */

/* Hero */
.communicationsModern.dashboardAdmin--modern .hero-top {
    background: linear-gradient(135deg, #3d5afe 0%, #5b7cff 45%, #48c6ef 100%);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 22px;
    padding: 28px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernHeroIcon {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .32);
    box-shadow: 0 16px 34px rgba(8, 29, 56, .18);
    font-size: 40px;
    color: #ffffff;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernHeroText {
    min-width: 0;
    flex: 1 1 auto;
}

.communicationsModern.dashboardAdmin--modern .hero-title {
    margin: 0 0 4px 0;
}

.communicationsModern.dashboardAdmin--modern .userDetailsModernHeroChip strong {
    font-weight: 800;
    margin-right: 2px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernHeroActions {
    margin-left: auto;
    flex: 0 0 auto;
}

/* Botões */
.communicationsModern.dashboardAdmin--modern .communicationsModernPrimaryBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    border: 0;
    padding: 10px 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #5b7cff, #48c6ef);
    box-shadow: 0 8px 18px rgba(79, 124, 255, .25);
}

.communicationsModern.dashboardAdmin--modern .hero-top .communicationsModernPrimaryBtn {
    background: #ffffff;
    color: #3d5afe;
    box-shadow: 0 10px 22px rgba(8, 29, 56, .18);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernPrimaryBtn.is-small {
    padding: 6px 12px;
    font-size: 13px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernPrimaryBtn[disabled] {
    opacity: .55;
    box-shadow: none;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernSecondaryBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    border: 1px solid var(--dm-border-soft);
    background: var(--dm-surface);
    color: var(--dm-text);
    font-weight: 600;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernSecondaryBtn:hover {
    background: var(--dm-soft-blue);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernIconBtn {
    border-radius: 10px;
    border: 1px solid var(--dm-border-soft);
    background: var(--dm-white);
    color: #5f6b7a;
    flex: 0 0 auto;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernIconBtn:hover {
    background: var(--dm-soft-blue);
    color: #2a5aa6;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernIconBtn.is-danger:hover {
    background: #fdecec;
    color: #c0392b;
}

/* Separadores e seletores segmentados (mesmo padrão do filtro das Moradas: pílula com borda, ativo em azul, sem sombra) */
.communicationsModern.dashboardAdmin--modern .communicationsModernTabs,
.communicationsModern.dashboardAdmin--modern .communicationsModernSegmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--dm-border-soft);
    border-radius: 999px;
    background: var(--dm-surface-2);
    margin-bottom: 18px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernTabs .btn,
.communicationsModern.dashboardAdmin--modern .communicationsModernSegmented .btn {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #556d88;
    font-weight: 700;
    padding: 5px 12px;
    box-shadow: none;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernTabs .btn.is-active,
.communicationsModern.dashboardAdmin--modern .communicationsModernSegmented .btn.is-active {
    background: linear-gradient(180deg, #6c98ee 0%, #5685df 100%);
    color: #ffffff;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernSegmented.is-small {
    margin-bottom: 12px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernTabCount {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    margin-left: 4px;
    border-radius: 999px;
    background: #e7505a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

/* Recebidas e Enviadas: cartões grandes (imagem em cima, título, remetente/data, excerto) */
.communicationsModern.dashboardAdmin--modern .communicationsModernCards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 20px;
    border: 1px solid var(--dm-border-soft);
    background: var(--dm-white);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s ease;
}

/* Como os outros cartões do design novo: sem sombra; o hover e as por ler distinguem-se pela borda */
.communicationsModern.dashboardAdmin--modern .communicationsModernCard:hover,
.communicationsModern.dashboardAdmin--modern .communicationsModernCard:focus {
    border-color: rgba(79, 124, 255, .45);
    outline: none;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCard.is-unread {
    border-color: #c9d6ff;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCard.is-archived {
    opacity: .7;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardMedia {
    height: 170px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5b7cff, #48c6ef);
    color: #ffffff;
    font-size: 54px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardMedia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardContent {
    flex: 1 1 auto;
    padding: 16px 18px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardTags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 22px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardBadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--dm-soft-blue);
    color: #2a5aa6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardBadge.is-new {
    background: #eef3ff;
    color: #2a43c9;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardBadge.is-new i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e7505a;
    display: inline-block;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardChannels {
    margin-left: auto;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardTitle {
    font-size: 17px;
    font-weight: 800;
    color: var(--dm-text);
    margin: 2px 0 0 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardMeta {
    font-size: 12px;
    color: var(--dm-muted);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardText {
    font-size: 14px;
    line-height: 1.5;
    color: #5f6b7a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardText.is-short {
    -webkit-line-clamp: 2;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardReads {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardReadsHead {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--dm-muted);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 14px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCardRead {
    font-size: 13px;
    font-weight: 700;
    color: #3b7bd9;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernDot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3d5afe;
    flex: 0 0 auto;
    display: inline-block;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernTag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--dm-soft-blue);
    color: #2a5aa6;
    font-size: 11px;
    font-weight: 700;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernEmpty {
    padding: 18px;
    border-radius: 16px;
    background: var(--dm-soft-blue);
    border: 1px dashed var(--dm-border);
    color: var(--dm-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernMore,
.communicationsModern.dashboardAdmin--modern .communicationsModernPager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: var(--dm-muted);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernChannel {
    margin-left: 6px;
    color: #5f6b7a;
    font-size: 15px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernReads strong {
    color: #0f8a4b;
}

/* Formulário */
.communicationsModern.dashboardAdmin--modern .communicationsModernField {
    margin-bottom: 16px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernField > label {
    font-weight: 600;
    color: #6b7c93;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernField .form-control {
    border-radius: 10px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCounter {
    text-align: right;
    font-size: 12px;
    color: var(--dm-muted);
    margin-top: 4px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernCounter.is-over,
.communicationsModern.dashboardAdmin--modern .communicationsModernError {
    color: #c0392b;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernError {
    margin-top: 6px;
    font-size: 13px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernHint,
.communicationsModern.dashboardAdmin--modern .communicationsModernMuted {
    color: var(--dm-muted);
    font-size: 13px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernImagePick {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernImagePreview {
    width: 140px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--dm-border-soft);
    background: var(--dm-surface);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernImagePreview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernImageActions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernImageActions > label {
    margin: 0;
    cursor: pointer;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernHiddenFile {
    display: none;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernSubTitle {
    font-size: 15px;
    font-weight: 700;
    color: var(--dm-text);
    margin: 22px 0 10px 0;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernChannels {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 12px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernChannels .mt-checkbox {
    margin-bottom: 0;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernDate {
    max-width: 220px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernFormActions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.communicationsModern.dashboardAdmin--modern .ui-select-multiple.ui-select-bootstrap {
    border-radius: 10px;
    min-height: 38px;
}

/* Detalhe */
.communicationsModern.dashboardAdmin--modern .communicationsModernDetailsMeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--dm-muted);
    font-size: 12px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernDetailsTitle {
    overflow-wrap: anywhere;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernDetailsImage {
    margin-bottom: 18px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--dm-surface);
    text-align: center;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernDetailsImage img {
    max-width: 100%;
    max-height: 480px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernDetailsBody {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dm-text);
    overflow-wrap: anywhere;
    margin-bottom: 18px;
}

/* Texto formatado (filtro textoFormatado): parágrafos, títulos, listas e links */
.communicationsModern.dashboardAdmin--modern .communicationsModernRichText p {
    margin: 0 0 10px 0;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRichText h4 {
    font-size: 17px;
    font-weight: 800;
    color: var(--dm-text);
    margin: 14px 0 6px 0;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRichText h4:first-child {
    margin-top: 0;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRichText ul,
.communicationsModern.dashboardAdmin--modern .communicationsModernRichText ol {
    margin: 0 0 10px 0;
    padding-left: 22px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRichText a {
    color: #3b7bd9;
    font-weight: 600;
    text-decoration: underline;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRichText > :last-child {
    margin-bottom: 0;
}

/* Formulário: barra de formatação e pré-visualização */
.communicationsModern.dashboardAdmin--modern .communicationsModernToolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    margin-bottom: 6px;
    border: 1px solid var(--dm-border-soft);
    border-radius: 10px;
    background: var(--dm-surface-2);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernToolbar .btn {
    width: 32px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #556d88;
    box-shadow: none;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernToolbar .btn:hover {
    background: var(--dm-white);
    color: #2a5aa6;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernPreview {
    padding: 14px 16px;
    border: 1px dashed var(--dm-border);
    border-radius: 12px;
    background: var(--dm-surface-2);
    font-size: 14px;
    line-height: 1.55;
    color: var(--dm-text);
    overflow-wrap: anywhere;
    max-height: 320px;
    overflow-y: auto;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernEmails {
    padding: 14px;
    border-radius: 16px;
    background: var(--dm-surface);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernEmailsHead {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    color: var(--dm-text);
    font-weight: 600;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernProgress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e3e9f6;
    overflow: hidden;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernProgressFill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5b7cff, #48c6ef);
    transition: width .3s ease;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernProgressFill.is-green {
    background: linear-gradient(90deg, #36c6d3, #4fda89);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRecipients {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 520px;
    overflow-y: auto;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRecipient {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--dm-surface);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRecipientName {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: var(--dm-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRecipientIcons {
    display: inline-flex;
    gap: 8px;
    color: var(--dm-muted);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRecipientRead {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--dm-muted);
}

.communicationsModern.dashboardAdmin--modern .communicationsModernRecipientRead.is-read {
    color: #0f8a4b;
    font-weight: 600;
}

@media (max-width: 1199px) {
    .communicationsModern.dashboardAdmin--modern .communicationsModernCards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .communicationsModern.dashboardAdmin--modern .communicationsModernCards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .communicationsModern.dashboardAdmin--modern .hero-top {
        flex-wrap: wrap;
    }

    .communicationsModern.dashboardAdmin--modern .communicationsModernHeroIcon {
        width: 64px;
        height: 64px;
        font-size: 30px;
    }

    .communicationsModern.dashboardAdmin--modern .communicationsModernHeroActions {
        margin-left: 0;
    }
}

/* -----------------------------
   Banner do dashboard (carrossel das por ler) — app/communications/banner/banner.html
   Fica por cima da .dashboard-grid, na largura toda.
   ----------------------------- */
.dashboardAdmin--modern .communications-banner {
    position: relative;
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #c9d6ff;
    background: var(--dm-white);
    overflow: hidden;
}

.dashboardAdmin--modern .communications-banner-slide {
    display: flex;
    align-items: stretch;
    gap: 26px;
}

.dashboardAdmin--modern .communications-banner-media {
    width: 330px;
    height: 190px;
    flex: 0 0 auto;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5b7cff, #48c6ef);
    color: #ffffff;
    font-size: 64px;
}

.dashboardAdmin--modern .communications-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dashboardAdmin--modern .communications-banner-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboardAdmin--modern .communications-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #2a43c9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.dashboardAdmin--modern .communications-banner-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e7505a;
    display: inline-block;
}

.dashboardAdmin--modern .communications-banner-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dm-text);
    margin: 10px 0 4px 0;
    overflow-wrap: anywhere;
}

.dashboardAdmin--modern .communications-banner-meta {
    font-size: 13px;
    color: var(--dm-muted);
    margin-bottom: 10px;
}

.dashboardAdmin--modern .communications-banner-text {
    font-size: 15px;
    line-height: 1.55;
    color: #5f6b7a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboardAdmin--modern .communications-banner-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
}

.dashboardAdmin--modern .communications-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #5b7cff, #48c6ef);
    box-shadow: 0 8px 18px rgba(79, 124, 255, .25);
}

.dashboardAdmin--modern .communications-banner-btn:hover,
.dashboardAdmin--modern .communications-banner-btn:focus {
    color: #ffffff;
    filter: brightness(1.05);
}

.dashboardAdmin--modern .communications-banner-link {
    font-size: 13px;
    font-weight: 700;
    color: #3b7bd9;
    text-decoration: none;
}

.dashboardAdmin--modern .communications-banner-link:hover,
.dashboardAdmin--modern .communications-banner-link:focus {
    color: #2e64b1;
    text-decoration: underline;
}

/* Carrossel */
.dashboardAdmin--modern .communications-banner-nav {
    position: absolute;
    right: 18px;
    top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboardAdmin--modern .communications-banner-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--dm-border-soft);
    background: var(--dm-white);
    color: #2a5aa6;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboardAdmin--modern .communications-banner-arrow:hover {
    background: var(--dm-soft-blue);
}

.dashboardAdmin--modern .communications-banner-dots {
    display: inline-flex;
    gap: 6px;
}

.dashboardAdmin--modern .communications-banner-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c9d6ff;
    transition: width .2s ease;
}

.dashboardAdmin--modern .communications-banner-dots button.is-active {
    width: 22px;
    background: #3d5afe;
}

.dashboardAdmin--modern .communications-banner-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--dm-muted);
    min-width: 30px;
    text-align: center;
}

@media (max-width: 991px) {
    .dashboardAdmin--modern .communications-banner-slide {
        flex-direction: column;
        gap: 16px;
    }

    .dashboardAdmin--modern .communications-banner-media {
        width: 100%;
        height: 180px;
    }

    .dashboardAdmin--modern .communications-banner-nav {
        position: static;
        justify-content: center;
        margin-top: 14px;
    }
}

/* Detalhe: ações no fundo do cartão (voltar à esquerda; arquivar/apagar à direita) */
.communicationsModern.dashboardAdmin--modern .communicationsModernFormActions.is-split {
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 18px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernActionsRight {
    display: inline-flex;
    gap: 8px;
}

.communicationsModern.dashboardAdmin--modern .communicationsModernSecondaryBtn.is-danger:hover {
    background: #fdecec;
    color: #c0392b;
}

/* Menu: o megafone (Font Awesome) alinhado com os ícones simple-line dos outros itens */
.page-sidebar .page-sidebar-menu > li > a > i.fa-bullhorn {
    margin-left: 1px;
    margin-right: 4px;
}

/* -----------------------------
   Janelas (confirmação do envio, inserir link) — $uibModal com windowClass "communicationsModal"
   Abertas no <body> (fora de .dashboardAdmin--modern): cores fixas, as mesmas do design novo. Sem sombra nos cartões.
   ----------------------------- */
.communicationsModal .modal-dialog {
    width: 520px;
    max-width: calc(100% - 20px);
}

.communicationsModal .modal-content {
    border: 1px solid #e8edf5;
    border-radius: 20px;
    overflow: hidden;
}

.communicationsModal .communicationsModalBody {
    padding: 24px;
    margin: 0;
}

.communicationsModal .communicationsModalHead {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.communicationsModal .communicationsModalIcon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5b7cff, #48c6ef);
    color: #ffffff;
    font-size: 20px;
}

.communicationsModal .communicationsModalTitle {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2f3e4e;
}

.communicationsModal .communicationsModalSub {
    margin-top: 2px;
    font-size: 13px;
    color: #8c99a6;
    overflow-wrap: anywhere;
}

.communicationsModal .communicationsModalRecipients {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: #eef3ff;
}

.communicationsModal .communicationsModalNumber {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #3d5afe;
}

.communicationsModal .communicationsModalNumberLabel {
    font-size: 15px;
    font-weight: 600;
    color: #2f3e4e;
}

.communicationsModal .communicationsModalLabel {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #8c99a6;
    margin-bottom: 8px;
}

.communicationsModal .communicationsModalChips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.communicationsModal .communicationsModalChip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e8edf5;
    background: #f7f9ff;
    color: #556d88;
    font-size: 13px;
    font-weight: 600;
}

.communicationsModal .communicationsModalNote,
.communicationsModal .communicationsModalHint {
    font-size: 13px;
    color: #8c99a6;
}

.communicationsModal .communicationsModalHint {
    margin-top: 6px;
}

.communicationsModal .communicationsModalField {
    margin-bottom: 14px;
}

.communicationsModal .communicationsModalField label {
    font-weight: 600;
    color: #6b7c93;
}

.communicationsModal .communicationsModalField .form-control {
    border-radius: 10px;
}

.communicationsModal .communicationsModalField .form-control.is-invalid {
    border-color: #e7505a;
}

.communicationsModal .communicationsModalError {
    margin-top: 6px;
    font-size: 13px;
    color: #c0392b;
}

.communicationsModal .communicationsModalActions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.communicationsModal .communicationsModalSecondaryBtn {
    border-radius: 12px;
    border: 1px solid #e8edf5;
    background: #f6f8ff;
    color: #2f3e4e;
    font-weight: 600;
    padding: 9px 16px;
}

.communicationsModal .communicationsModalSecondaryBtn:hover {
    background: #eef3ff;
}

.communicationsModal .communicationsModalPrimaryBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 9px 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #5b7cff, #48c6ef);
    box-shadow: 0 8px 18px rgba(79, 124, 255, .25);
}

.communicationsModal .communicationsModalPrimaryBtn:hover,
.communicationsModal .communicationsModalPrimaryBtn:focus {
    color: #ffffff;
}

.communicationsModal .communicationsModalPrimaryBtn[disabled] {
    opacity: .55;
    box-shadow: none;
}
