﻿/* =============================================================
   SEDUC INTRANET — site.css
   ============================================================= */

/* =============================================================
   1. VARIÁVEIS GLOBAIS
   ============================================================= */
:root {
    --color-primary: #0a4a84;
    --color-primary-mid: #0d5ea6;
    --color-primary-light: #eff6ff;
    --color-bg: #f5f6fa;
    --color-surface: #ffffff;
    --color-border: #e5e7eb;
    --color-text: #111827;
    --color-text-muted: #6b7280;
    --sidebar-width: 280px;
}

/* =============================================================
   2. BASE
   ============================================================= */
#blazor-error-ui {
    display: none;
}

.validation-message {
    display: block !important;
    margin-top: 6px !important;
    color: #b91c1c !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

    .validation-message::before {
        content: "⚠ " !important;
        font-size: 0.8rem !important;
    }

/* =============================================================
   3. LAYOUT GERAL
   ============================================================= */
.page {
    position: relative;
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
}

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    background: #0a4a84 !important;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 30;
    transition: transform 0.3s ease;
}

main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.content {
    flex: 1;
    position: relative;
    background: var(--color-bg);
    overflow-y: auto;
}

.page-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.section-divider {
    width: 100%;
    height: 1px;
    margin: 56px 0 24px;
    background: linear-gradient( 90deg, rgba(203, 213, 225, 0) 0%, rgba(203, 213, 225, 0.95) 12%, rgba(203, 213, 225, 0.95) 88%, rgba(203, 213, 225, 0) 100% );
}

/* =============================================================
   4. TOPBAR
   ============================================================= */
.top-row {
    height: 52px;
    border-bottom: 1px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    flex-shrink: 0;
}

    .top-row a {
        color: #0d6efd;
        text-decoration: none;
    }

        .top-row a:hover {
            text-decoration: underline;
        }

.topbar-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.topbar-org {
    font-size: 0.95rem;
    color: #2563eb;
    font-weight: 500;
    white-space: nowrap;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid #e5e7eb;
    position: relative;
    z-index: 21;
    background: transparent;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
    min-width: 0;
}

.topbar-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111827;
    line-height: 1.2;
}

.topbar-user-role {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.2;
}

.topbar-user-avatar {
    font-size: 1.6rem;
    color: #4b5563;
    line-height: 1;
}

/* =============================================================
   5. SIDEBAR / NAVMENU
   ============================================================= */
.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: transparent !important;
    overflow: hidden;
}

.sidebar-brand {
    padding: 22px 0 18px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #f4b400;
    flex-shrink: 0;
}

.sidebar-logo {
    width: 200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.sidebar-title {
    padding: 22px 18px 12px 18px;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    word-break: break-word;
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px 24px 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.30) rgba(255, 255, 255, 0.08);
}

    .sidebar-nav::-webkit-scrollbar {
        width: 10px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.08);
        border-radius: 999px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.30);
        border-radius: 999px;
    }

        .sidebar-nav::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.42);
        }

/* --- Nav items --- */
.nav-item,
.nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease;
}

    .nav-item,
    .nav-item:link,
    .nav-item:visited,
    .nav-subitem,
    .nav-subitem:link,
    .nav-subitem:visited {
        text-decoration: none;
    }

        .nav-item:hover,
        .nav-group-toggle:hover {
            background: #0f5da7;
            color: #fff;
        }

        .nav-item.active {
            background: #1565c0;
            color: #fff;
        }

.nav-item-content {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.nav-icon {
    width: 24px;
    min-width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-text {
    font-size: 1rem;
    font-weight: 600;
}

.nav-arrow {
    font-size: .9rem;
    flex-shrink: 0;
}

/* --- Submenus --- */
.nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-group-toggle.open {
    background: #0f5da7;
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,0.12);
}

.nav-subitem {
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.92);
    font-size: .96rem;
}

    .nav-subitem:hover {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

    .nav-subitem.active {
        background: rgba(255,255,255,0.10);
        color: #fff;
    }

    .nav-subitem .nav-external-icon {
        margin-left: .15rem;
        font-size: .7em;
        opacity: .6;
        transition: opacity .15s ease;
    }

    .nav-subitem:hover .nav-external-icon,
    .nav-subitem:focus-visible .nav-external-icon {
        opacity: 1;
    }

/* --- Mobile toggler --- */
.sidebar-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 25;
}

/* =============================================================
   6. HOME — CAROUSEL
   ============================================================= */
.home-page {
    padding-top: 1rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.carousel-section {
    width: 100%;
    margin: 0 0 2.5rem 0;
    position: relative;
    z-index: 1;
}

.home-carousel {
    width: 100%;
    position: relative;
    z-index: 1;
}

    .home-carousel .carousel-inner {
        border-radius: 0;
        overflow: hidden;
    }

    .home-carousel .carousel-item {
        transition: transform 0.8s ease-in-out;
        position: relative;
        z-index: 1;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

.home-carousel-banner {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
    background: #0f3f7a;
    z-index: 1;
}

.home-carousel-banner-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

    .home-carousel-banner-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1) translateZ(0);
        transition: transform 6s ease;
        will-change: transform;
    }

.home-carousel .carousel-item.active .home-carousel-banner-image img {
    transform: scale(1.05) translateZ(0);
}

.home-carousel-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.10) 100%), linear-gradient(to right, rgba(10,74,132,0.30), rgba(10,74,132,0.12));
}

.home-carousel-banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px 56px 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.carousel-caption-custom {
    max-width: 720px;
    color: #fff;
    animation: fadeUp 0.7s ease;
}

    .carousel-caption-custom h2 {
        margin: 0 0 14px 0;
        font-size: 3rem;
        line-height: 1.08;
        font-weight: 800;
        color: #fff;
        text-shadow: 0 2px 12px rgba(0,0,0,0.28);
    }

    .carousel-caption-custom p {
        margin: 0 0 22px 0;
        font-size: 1.08rem;
        line-height: 1.6;
        color: rgba(255,255,255,0.94);
        text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }

    .carousel-caption-custom .btn {
        background: linear-gradient(135deg, #1e88e5, #1976d2);
        border: none;
        border-radius: 12px;
        padding: 11px 24px;
        font-weight: 700;
        font-size: 0.98rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.18);
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }

        .carousel-caption-custom .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.22);
            background: linear-gradient(135deg, #2196f3, #1565c0);
        }

.home-carousel .carousel-indicators {
    margin-bottom: 22px;
    gap: 6px;
}

    .home-carousel .carousel-indicators button {
        width: 30px;
        height: 4px;
        border: 0;
        border-radius: 999px;
        opacity: .45;
    }

    .home-carousel .carousel-indicators .active {
        opacity: 1;
    }

.home-carousel .carousel-control-prev,
.home-carousel .carousel-control-next {
    width: 7%;
    z-index: 4;
}

.home-carousel .carousel-control-prev-icon,
.home-carousel .carousel-control-next-icon {
    transform: scale(0.95);
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================
   7. CARDS — NOTÍCIAS
   ============================================================= */
.noticia-card {
    transition: transform .2s;
}

    .noticia-card:hover {
        transform: translateY(-4px);
    }

.noticia-card-placeholder {
    height: 210px;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .noticia-card-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* =============================================================
   8. BREADCRUMB
   ============================================================= */
.breadcrumb-modern {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.breadcrumb-link {
    color: #0a58ca;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .breadcrumb-link:hover {
        color: #084298;
        text-decoration: underline;
    }

.breadcrumb-separator {
    color: #999;
    font-weight: 400;
}

.breadcrumb-current {
    color: #6c757d;
    font-weight: 500;
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-header-top {
    max-width: 100%;
}

/* =============================================================
   9. PÁGINA — HEADER PADRÃO
   ============================================================= */
.pages-full-header {
    margin-bottom: 20px;
    padding: 20px 24px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    position: relative;
}

    .pages-full-header::before {
        content: "";
        position: absolute;
        top: 18px;
        left: 0;
        bottom: 18px;
        width: 4px;
        border-radius: 0 999px 999px 0;
        background: var(--color-primary-mid);
    }

.pages-full-title {
    margin: 0;
    padding-left: 16px;
    font-size: 1.9rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

    .pages-full-title:focus,
    .pages-full-title:focus-visible {
        outline: none;
        box-shadow: none;
    }

.pages-full-subtitle {
    margin: 10px 0 0;
    padding-left: 16px;
    max-width: 780px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #64748b;
}

/* =============================================================
   10. BOTÕES UTILITÁRIOS
   ============================================================= */
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .btn-logout:hover {
        background: #fef2f2;
        color: #b91c1c;
    }

.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-primary-modern:hover {
        transform: translateY(-1px);
        color: #fff;
    }

.btn-icon {
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

    .btn-icon.btn-icon-primary {
        color: var(--color-primary-mid);
        background: #e6f0fa;
    }

        .btn-icon.btn-icon-primary:hover {
            background: #d4e6f7;
            transform: translateY(-1px);
        }

    .btn-icon.btn-icon-danger {
        color: #b91c1c;
        background: #fee2e2;
    }

        .btn-icon.btn-icon-danger:hover {
            background: #fecaca;
            transform: translateY(-1px);
        }

/* =============================================================
   11. NOTÍCIAS — DETALHE E INTERAÇÕES
   ============================================================= */
.noticia-detalhe {
    width: 100%;
}

.noticia-conteudo-mock p {
    font-size: 1.04rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1rem;
}

.noticia-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.noticia-interacoes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0 4px;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.btn-acao-noticia {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    color: #374151;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .btn-acao-noticia:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #111827;
    }

    .btn-acao-noticia i {
        font-size: 1rem;
    }

    .btn-acao-noticia.curtido {
        background: #fff1f2;
        border-color: #fecdd3;
        color: #e11d48;
    }

.acao-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15,23,42,0.06);
    font-size: 0.78rem;
    font-weight: 700;
}

/* =============================================================
   12. COMENTÁRIOS
   ============================================================= */
.comentarios-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-top: 3rem;
}

.comentarios-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.comentarios-titulo {
    font-size: 1.55rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.comentarios-subtitulo {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.comentarios-total {
    background: #eff6ff;
    color: #0a58ca;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.comentarios-lista {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Card */
.comentario-card {
    background: transparent;
}

.comentario-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comentario-conteudo {
    flex: 1;
    min-width: 0;
}

/* Avatar */
.comentario-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(13,110,253,0.18);
}

    .comentario-avatar.pequeno {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 11px;
    }

.comentario-avatar-usuario {
    background: linear-gradient(135deg,#10b981,#059669);
    box-shadow: 0 6px 18px rgba(16,185,129,0.18);
}

.comentario-avatar-resposta {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(13,110,253,0.14);
}

/* Bubble */
.comentario-bubble {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

    .comentario-bubble:hover {
        background: #f3f7fb;
        border-color: #d9e2ec;
    }

.comentario-bubble-resposta {
    background: #ffffff;
}

.comentario-bubble.resposta {
    background: #f1f5f9;
    padding: 10px 12px;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
}

.comentario-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 6px;
}

    .comentario-meta strong {
        font-size: 0.94rem;
        color: #111827;
    }

.comentario-data {
    font-size: 0.8rem;
    color: #6b7280;
}

.comentario-texto {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    word-break: break-word;
}

/* Ações */
.comentario-acoes,
.comentario-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 8px 6px 0 6px;
}

.btn-comentario-acao,
.btn-like-mock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #6b7280;
    padding: 4px 0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .btn-comentario-acao:hover, .btn-like-mock:hover {
        color: #111827;
    }

    .btn-comentario-acao i, .btn-like-mock i {
        font-size: 0.95rem;
    }

    .btn-comentario-acao.curtido, .btn-like-mock.curtido {
        color: #e11d48;
    }

.like-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: inherit;
}

/* Respostas */
.comentario-respostas {
    margin-top: 12px;
    margin-left: 10px;
    padding-left: 18px;
    border-left: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comentario-resposta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comentario-resposta-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.comentario-resposta-box {
    margin-top: 12px;
    margin-left: 10px;
    padding-left: 18px;
}

.comentario-resposta-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Box novo comentário */
.comentario-box {
    background: linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}

.comentario-box-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.comentario-input-wrapper {
    flex: 1;
    min-width: 0;
}

.comentario-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.comentario-textarea,
.comentario-textarea-resposta {
    border-radius: 16px;
    border: 1px solid #dbe3ee;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.55;
    resize: vertical;
    background: #fff;
    box-shadow: none;
}

    .comentario-textarea:focus,
    .comentario-textarea-resposta:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.12);
    }

.comentario-box-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comentario-dica {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.88rem;
}

.comentario-box .btn:disabled,
.comentario-textarea:disabled,
.comentario-textarea-resposta:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

/* =============================================================
   13. TELAS INSTITUCIONAIS — ÁREAS SEDUC
   ============================================================= */
.detalhe-coordenadoria-header {
    margin-bottom: 24px;
}

.detalhe-coordenadoria-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.detalhe-coordenadoria-subtitle {
    margin: 10px 0 0;
    max-width: 820px;
    font-size: 1rem;
    line-height: 1.65;
    color: #6b7280;
}

.detalhe-coordenadoria-content-card {
    margin-bottom: 32px;
    background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    overflow: hidden;
}

    .detalhe-coordenadoria-content-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(15,23,42,0.08);
    }

.detalhe-coordenadoria-content {
    padding: 28px 30px;
}

    .detalhe-coordenadoria-content p {
        margin: 0 0 18px;
        font-size: 0.98rem;
        line-height: 1.9;
        color: #374151;
        text-align: justify;
    }

        .detalhe-coordenadoria-content p:last-child {
            margin-bottom: 0;
        }

/* =============================================================
   14. LOADING OVERLAY
   ============================================================= */
.app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245,247,250,0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

    .app-loading-overlay.opening {
        animation: app-loading-overlay-in 0.25s ease-out forwards;
    }

    .app-loading-overlay.closing {
        animation: app-loading-overlay-out 0.30s ease-in forwards;
    }

    .app-loading-overlay.opening .app-loading-hero {
        animation: app-loading-hero-in 0.32s ease-out forwards;
    }

    .app-loading-overlay.closing .app-loading-hero {
        animation: app-loading-hero-out 0.30s ease-in forwards;
    }

.app-loading-hero {
    position: fixed;
    top: 48%;
    left: 0;
    transform: translateY(-50%);
    width: 100vw;
    height: 130px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10,74,132,0.25);
}

    .app-loading-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 0%,transparent 35%,rgba(255,255,255,0.10) 35%,rgba(255,255,255,0.10) 50%,transparent 50%,transparent 100%);
        animation: app-loading-shine 3s linear infinite;
    }

.app-loading-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 24px;
}

.app-loading-logo {
    width: 100px;
    margin-bottom: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    animation: app-pulse-logo 1.6s ease-in-out infinite;
}

.app-loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

    .app-loading-dots span {
        width: 7px;
        height: 7px;
        background: #fff;
        border-radius: 50%;
        animation: app-bounce-dots 1.4s infinite;
    }

        .app-loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .app-loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

.app-loading-hero-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.app-loading-hero-content p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.95;
}

@keyframes app-loading-shine {
    from {
        transform: translateX(-35%);
    }

    to {
        transform: translateX(35%);
    }
}

@keyframes app-pulse-logo {
    0%,100% {
        transform: scale(1);
        opacity: .85;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes app-bounce-dots {
    0%,80%,100% {
        transform: scale(0.7);
        opacity: .5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes app-loading-overlay-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes app-loading-overlay-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes app-loading-hero-in {
    from {
        opacity: 0;
        transform: translateY(calc(-50% + 18px));
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes app-loading-hero-out {
    from {
        opacity: 1;
        transform: translateY(-50%);
    }

    to {
        opacity: 0;
        transform: translateY(calc(-50% - 18px));
    }
}

/* =============================================================
   15. MODAL CONFIRMAÇÃO
   ============================================================= */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    backdrop-filter: blur(2px);
}

.confirm-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 20px 50px rgba(15,23,42,0.18);
    animation: confirmFadeIn 0.2s ease;
}

.confirm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.confirm-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.confirm-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
}

.confirm-close {
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    background: transparent;
    font-size: 18px;
    opacity: 0.6;
    transition: 0.2s;
}

    .confirm-close:hover {
        opacity: 1;
    }

.confirm-body {
    margin-top: 12px;
    color: #475569;
    font-size: 0.95rem;
}

.confirm-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes confirmFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =============================================================
   16. TOAST
   ============================================================= */
.app-toast-host {
    position: fixed !important;
    top: 72px !important;
    right: 24px !important;
    z-index: 2147483647 !important;
    pointer-events: none;
}

    .app-toast-host > * {
        pointer-events: auto;
    }

/* =============================================================
   17. FORMULÁRIO DE NOTÍCIA
   ============================================================= */
.noticia-form-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.noticia-form-card {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    padding: 28px;
}

.noticia-form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px;
}

.noticia-form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.noticia-form-field-full {
    grid-column: 1 / -1;
}

.noticia-form-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.noticia-form-required {
    color: #dc2626;
}

/* Upload */
.noticia-upload-card {
    width: 100%;
    min-height: 240px;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .noticia-upload-card:hover {
        border-color: var(--color-primary-mid);
        box-shadow: 0 12px 28px rgba(15,23,42,0.08);
        transform: translateY(-1px);
    }

.noticia-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 28px;
}

.noticia-upload-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,94,166,0.10);
    color: var(--color-primary-mid);
    font-size: 1.6rem;
}

.noticia-upload-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.noticia-upload-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.noticia-upload-subtitle {
    font-size: 0.87rem;
    color: #64748b;
}

.noticia-upload-preview {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* Inputs */
.noticia-input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid #d7e0ea;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15,23,42,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .noticia-input-shell:focus-within {
        border-color: var(--color-primary-mid);
        box-shadow: 0 0 0 4px rgba(13,94,166,0.10);
        transform: translateY(-1px);
    }

.noticia-input-shell-highlight {
    min-height: 62px;
    border-color: #c8d7e8;
    background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
}

.noticia-input-shell:has(textarea) {
    align-items: flex-start;
}

    .noticia-input-shell:has(textarea) .noticia-input-icon {
        margin-top: 14px;
    }

.noticia-input-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--color-primary-mid);
    font-size: 0.95rem;
}

.noticia-textbox {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.4;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

    .noticia-textbox:focus,
    .noticia-textbox:focus-visible,
    .noticia-textbox:active {
        border: 0;
        outline: 0;
        background: transparent;
        box-shadow: none;
    }

    .noticia-textbox::placeholder {
        color: #94a3b8;
        opacity: 1;
    }

.noticia-textbox-lg {
    font-size: 1.05rem;
    font-weight: 600;
}

.noticia-textbox-date {
    min-height: 56px;
    padding-right: 4px;
}

.noticia-textbox[type="date"]::-webkit-inner-spin-button,
.noticia-textbox[type="date"]::-webkit-clear-button {
    display: none;
}

.noticia-textbox[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    margin: 0;
    opacity: 0.9;
}

.noticia-textbox:-webkit-autofill,
.noticia-textbox:-webkit-autofill:hover,
.noticia-textbox:-webkit-autofill:focus,
.noticia-textbox:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #0f172a !important;
    transition: background-color 9999s ease-out 0s;
}

.noticia-textarea {
    resize: vertical;
    min-height: 140px;
    padding-top: 14px;
    line-height: 1.5;
}

/* Segmented control */
.noticia-segmented-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    background: #f8fafc;
}

.noticia-segmented-btn {
    min-height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .noticia-segmented-btn:hover {
        background: rgba(15,23,42,0.04);
    }

    .noticia-segmented-btn.active.success {
        background: rgba(13,94,166,0.12);
        color: var(--color-primary-mid);
        border: 1px solid rgba(13,94,166,0.25);
    }

    .noticia-segmented-btn.active.danger {
        background: rgba(220,38,38,0.12);
        color: #dc2626;
        border: 1px solid rgba(220,38,38,0.25);
    }

/* Content header */
.noticia-content-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.noticia-content-subtitle {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.85rem;
}

.noticia-content-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.noticia-content-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #bfd3ea;
    background: #f8fbff;
    color: var(--color-primary-mid);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .noticia-content-upload-btn:hover {
        background: #eef6ff;
        border-color: #9ec2e8;
        color: var(--color-primary);
        box-shadow: 0 6px 18px rgba(13,94,166,0.08);
    }

    .noticia-content-upload-btn i {
        font-size: 1rem;
    }

/* Editor */
.noticia-editor-wrapper .rz-html-editor {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d9e3f0;
    background: #fff;
}

.noticia-editor-wrapper .rz-html-editor-toolbar {
    border-bottom: 1px solid #e6edf5;
    background: #fbfdff;
}

.noticia-editor-wrapper .rz-html-editor-content {
    min-height: 280px;
    padding: 14px;
}

    .noticia-editor-wrapper .rz-html-editor-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        display: block;
        margin: 12px auto;
    }

.noticia-content-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.noticia-input-helper {
    color: #64748b;
    font-size: 0.85rem;
}

.noticia-img-temp {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 12px auto;
    cursor: default;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    transition: box-shadow 0.2s ease;
}

    .noticia-img-temp.is-selected {
        box-shadow: 0 0 0 3px rgba(13,94,166,0.25), 0 8px 24px rgba(15,23,42,0.08);
    }

.noticia-img-resize-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--color-primary-mid);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: nwse-resize;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.highlight-upload {
    outline: 2px solid var(--color-primary-mid);
    box-shadow: 0 0 0 4px rgba(13,94,166,0.2);
    transform: scale(1.03);
    transition: all 0.2s ease;
}

/* Ações */
.noticia-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
}

.noticia-form-btn-primary {
    min-width: 180px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0 22px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(13,94,166,0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

    .noticia-form-btn-primary:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(13,94,166,0.24);
    }

    .noticia-form-btn-primary:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.noticia-form-validation-summary {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* Preview */
.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preview-modal {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.preview-body {
    padding: 20px;
}

/* =============================================================
   18. SORTEIO — FORM
   ============================================================= */
.noticia-form-sorteio {
    width: 100%;
    margin-top: 16px;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .noticia-form-sorteio:hover {
        border-color: #cbd5e1;
        box-shadow: 0 10px 26px rgba(15,23,42,0.06);
    }

.sorteio-divider {
    margin-bottom: 22px;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.01em;
}

    .sorteio-divider::before, .sorteio-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg,transparent,#e5e7eb,transparent);
    }

    .sorteio-divider i {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--color-primary-mid);
        background: #eff6ff;
        border: 1px solid #dbeafe;
        font-size: 16px;
    }

.sorteio-section-title {
    margin: 22px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .sorteio-section-title i {
        color: var(--color-primary-mid);
        font-size: 16px;
    }

.sorteio-multiplo-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 18px rgba(15,23,42,0.04);
}

.sorteio-multiplo-form {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.sorteio-add-wrapper {
    display: flex;
    align-items: end;
    width: 100%;
}

    .sorteio-add-wrapper .btn {
        width: 100%;
        height: 56px;
        border-radius: 14px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: var(--color-primary-mid);
        font-weight: 600;
        box-shadow: none;
    }

        .sorteio-add-wrapper .btn:hover {
            background: #dbeafe;
            border-color: #93c5fd;
            color: var(--color-primary);
        }

        .sorteio-add-wrapper .btn:focus, .sorteio-add-wrapper .btn:active {
            background: #dbeafe !important;
            border-color: #60a5fa !important;
            color: var(--color-primary) !important;
            box-shadow: 0 0 0 3px rgba(13,94,166,0.12) !important;
        }

.sorteio-grid-wrapper {
    margin-top: 18px;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.sorteio-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    overflow: hidden;
}

    .sorteio-grid thead th {
        padding: 14px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        color: #475569;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-align: left;
        white-space: nowrap;
    }

    .sorteio-grid tbody td {
        padding: 14px 16px;
        border-bottom: 1px solid #f1f5f9;
        color: #334155;
        font-size: 14px;
        vertical-align: middle;
        white-space: nowrap;
    }

    .sorteio-grid tbody tr {
        transition: background-color 0.2s ease;
    }

        .sorteio-grid tbody tr:hover {
            background: #f8fafc;
        }

        .sorteio-grid tbody tr:last-child td {
            border-bottom: none;
        }

.sorteio-grid-actions {
    width: 90px;
    text-align: center !important;
}

.sorteio-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--color-primary-mid);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #dbeafe;
}

.sorteio-ticket-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #bbf7d0;
}

.sorteio-remove-button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #fef2f2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .sorteio-remove-button:hover {
        background: #fee2e2;
        transform: translateY(-1px);
        box-shadow: 0 8px 16px rgba(220,38,38,0.12);
    }

.sorteio-total-box {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg,#f8fafc 0%,#eff6ff 100%);
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .sorteio-total-box span {
        font-size: 13px;
        font-weight: 700;
        color: #475569;
    }

    .sorteio-total-box strong {
        min-width: 42px;
        height: 32px;
        padding: 0 12px;
        border-radius: 999px;
        background: var(--color-primary-mid);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 800;
    }

.sorteio-empty-state {
    margin-top: 18px;
    min-height: 96px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

    .sorteio-empty-state i {
        color: var(--color-primary-mid);
        font-size: 20px;
    }

.sorteio-grid-unificado {
    align-items: end;
}

    .sorteio-grid-unificado .sorteio-add-wrapper {
        display: flex;
        align-items: end;
    }

    .sorteio-grid-unificado .sorteio-add-button {
        width: 100%;
    }

/* =============================================================
   19. ANEXOS
   ============================================================= */
.noticia-anexos-lista {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.noticia-anexos-grupo-titulo {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-top: 4px;
}

.noticia-anexo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    box-shadow: 0 8px 24px rgba(15,23,42,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .noticia-anexo-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(15,23,42,0.08);
        border-color: #cbd5e1;
    }

    .noticia-anexo-card.novo {
        border-color: #bfdbfe;
        background: linear-gradient(180deg,#eff6ff 0%,#f8fbff 100%);
    }

.noticia-anexo-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: #e2e8f0;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.noticia-anexo-card.novo .noticia-anexo-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.noticia-anexo-content {
    flex: 1;
    min-width: 0;
}

.noticia-anexo-topo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.noticia-anexo-nome {
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.noticia-anexo-meta {
    margin-top: 4px;
    font-size: 0.84rem;
    color: #64748b;
}

.noticia-anexo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

    .noticia-anexo-badge.salvo {
        background: #ecfdf5;
        color: #047857;
    }

    .noticia-anexo-badge.novo {
        background: #dbeafe;
        color: #1d4ed8;
    }

.noticia-anexo-actions {
    display: flex;
    gap: 8px;
}

.noticia-anexo-download-btn,
.noticia-anexo-remove-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: none;
    border-radius: 12px;
    background: #eef2f7;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .noticia-anexo-download-btn:hover {
        background: #dbeafe;
        color: #1d4ed8;
        transform: scale(1.03);
    }

    .noticia-anexo-remove-btn:hover {
        background: #e2e8f0;
        color: #0f172a;
        transform: scale(1.03);
    }

    .noticia-anexo-remove-btn.danger:hover {
        background: #fee2e2;
        color: #dc2626;
    }

.noticia-anexos-vazio {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.94rem;
}

.anexo-upload-container {
    width: 100%;
    min-height: 140px;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .anexo-upload-container:hover {
        border-color: var(--color-primary-mid);
        box-shadow: 0 12px 28px rgba(15,23,42,0.08);
        transform: translateY(-1px);
    }

    .anexo-upload-container.drag-active {
        border-color: var(--color-primary-mid);
        background: linear-gradient(180deg,#eff6ff 0%,#f8fbff 100%);
        box-shadow: 0 12px 28px rgba(13,94,166,0.12);
    }

.anexo-upload-content {
    text-align: center;
    color: #475569;
}

    .anexo-upload-content i {
        font-size: 2rem;
        color: var(--color-primary-mid);
        margin-bottom: 10px;
    }

.anexo-upload-text {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

    .anexo-upload-text strong {
        color: #0f172a;
    }

    .anexo-upload-text span {
        font-size: 0.85rem;
        color: #64748b;
    }

.anexo-upload-hint {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* =============================================================
   20. RADZEN — DATEPICKER
   ============================================================= */
.rz-datepicker {
    border-radius: 16px !important;
    border: 1px solid #d7e0ea !important;
    background: #ffffff !important;
    height: 56px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(15,23,42,0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

    .rz-datepicker:focus-within {
        border-color: var(--color-primary-mid) !important;
        box-shadow: 0 0 0 4px rgba(13,94,166,0.10) !important;
        transform: translateY(-1px);
    }

    .rz-datepicker input, .rz-datepicker .rz-inputtext, .rz-datepicker .rz-datepicker-input {
        border: none !important;
        outline: none !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 1rem;
        color: #0f172a !important;
        height: 56px;
        padding: 0 14px !important;
    }

.rz-state-focus, .rz-datepicker-input:focus {
    box-shadow: none !important;
}

.rz-datepicker-trigger {
    color: var(--color-primary-mid) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 42px;
}

.rz-popup {
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 20px 48px rgba(15,23,42,0.16) !important;
    overflow: hidden;
}

.rz-calendar-header {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-mid) 100%) !important;
    color: #ffffff !important;
    padding: 10px 12px !important;
    border-radius: 18px 18px 0 0 !important;
    border-bottom: none !important;
}

    .rz-calendar-header button, .rz-calendar-header .rz-button, .rz-calendar-header .rz-button-icon, .rz-calendar-header .rz-icon, .rz-calendar-header [class*="rzi-"] {
        color: #ffffff !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .rz-calendar-header .rz-dropdown {
        background: rgba(255,255,255,0.16) !important;
        border: 1px solid rgba(255,255,255,0.14) !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        min-height: 36px;
    }

        .rz-calendar-header .rz-dropdown:hover {
            background: rgba(255,255,255,0.22) !important;
        }

        .rz-calendar-header .rz-dropdown-label, .rz-calendar-header .rz-dropdown-trigger, .rz-calendar-header .rz-inputtext, .rz-calendar-header .rz-dropdown .rz-icon {
            color: #ffffff !important;
            background: transparent !important;
        }

    .rz-calendar-header button:hover {
        background: rgba(255,255,255,0.15) !important;
        border-radius: 8px;
    }

    .rz-calendar-header * {
        color: #ffffff !important;
    }

    .rz-calendar-header svg, .rz-calendar-header svg path, .rz-calendar-header svg polygon {
        fill: #ffffff !important;
        stroke: #ffffff !important;
    }

    .rz-calendar-header *::before, .rz-calendar-header *::after {
        color: #ffffff !important;
    }

.rz-calendar {
    background: #ffffff !important;
}

    .rz-calendar table {
        background: #ffffff !important;
    }

    .rz-calendar thead th {
        color: #64748b !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        padding-top: 12px !important;
        padding-bottom: 8px !important;
    }

    .rz-calendar td {
        border-radius: 12px !important;
    }

        .rz-calendar td a, .rz-calendar td span {
            border-radius: 12px !important;
            color: #334155 !important;
            transition: all 0.2s ease;
        }

.rz-state-active {
    background: var(--color-primary-mid) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 18px rgba(13,94,166,0.22) !important;
}

.rz-calendar td:hover {
    background: rgba(13,94,166,0.08) !important;
}

.rz-calendar .rz-other-month {
    color: #cbd5e1 !important;
}

.rz-timepicker {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 12px !important;
    border-radius: 0 0 18px 18px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .rz-timepicker input {
        background: #ffffff !important;
        border: 1px solid #d7e0ea !important;
        color: #0f172a !important;
        font-weight: 600;
        border-radius: 10px !important;
        text-align: center;
        min-height: 40px;
    }

    .rz-timepicker span {
        color: #475569 !important;
        font-weight: 700;
    }

.rz-spinner-button {
    background: transparent !important;
    border: none !important;
    color: var(--color-primary-mid) !important;
}

.rz-timepicker-ok-button {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-mid) 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0 16px !important;
    min-height: 40px;
}

.rz-button {
    color: var(--color-primary-mid) !important;
}

/* =============================================================
   21. RESPONSIVIDADE — MOBILE
   ============================================================= */

/* --- Carousel tablet --- */
@media (max-width: 991px) {
    .home-carousel-banner {
        min-height: 340px;
    }

    .home-carousel-banner-content {
        padding: 0 28px 38px 28px;
    }

    .carousel-caption-custom h2 {
        font-size: 2.1rem;
    }

    .carousel-caption-custom p {
        font-size: 1rem;
    }
}

/* --- Carousel mobile --- */
@media (max-width: 576px) {
    .home-carousel-banner {
        min-height: 280px;
    }

    .home-carousel-banner-content {
        padding: 0 18px 28px 18px;
    }

    .carousel-caption-custom {
        max-width: 100%;
    }

        .carousel-caption-custom h2 {
            font-size: 1.55rem;
            margin-bottom: 10px;
        }

        .carousel-caption-custom p {
            font-size: 0.92rem;
            margin-bottom: 16px;
        }

    .home-carousel .carousel-control-prev,
    .home-carousel .carousel-control-next {
        display: none;
    }

    .home-carousel .carousel-indicators {
        margin-bottom: 14px;
    }
}

/* --- Layout + Sidebar mobile --- */
@media (max-width: 991px) {
    .sidebar-mobile-toggle {
        display: flex;
    }

    .page {
        flex-direction: column;
    }

    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: var(--sidebar-width) !important;
        min-width: var(--sidebar-width) !important;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
        overflow: hidden;
    }

        .sidebar.sidebar-open {
            transform: translateX(0);
        }

    .sidebar-overlay.sidebar-overlay-visible {
        display: block;
    }

    main {
        height: 100vh;
    }

    .top-row {
        justify-content: flex-start;
        gap: 12px;
        padding-left: 12px;
    }

    .topbar-right {
        flex: 1;
        justify-content: flex-end;
    }

    .content {
        padding: 20px;
    }
}

/* --- Sorteio form --- */
@media (max-width: 1100px) {
    .sorteio-multiplo-form {
        grid-template-columns: 1fr 1fr;
    }

    .sorteio-add-wrapper {
        grid-column: 1 / -1;
    }

    .sorteio-add-button {
        width: 100%;
    }
}

/* --- Comentários mobile --- */
@media (max-width: 768px) {
    .comentarios-section {
        padding-top: 1.5rem;
    }

    .comentarios-header {
        flex-direction: column;
        align-items: stretch;
    }

    .comentarios-total {
        align-self: flex-start;
    }

    .comentario-box {
        padding: 14px;
        border-radius: 16px;
    }

    .comentario-box-top,
    .comentario-card-top,
    .comentario-resposta {
        gap: 10px;
    }

    .comentario-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 0.84rem;
    }

    .comentario-avatar-resposta {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.74rem;
    }

    .comentario-bubble {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .comentario-box-footer {
        flex-direction: column;
        align-items: stretch;
    }

        .comentario-box-footer .btn {
            width: 100%;
        }

    .noticia-interacoes {
        gap: 8px;
    }

    .btn-acao-noticia {
        width: 100%;
        justify-content: center;
    }

    .comentario-respostas,
    .comentario-resposta-box {
        margin-left: 0;
        padding-left: 14px;
    }

    .noticia-form-sorteio {
        padding: 16px;
        border-radius: 16px;
    }

    .sorteio-multiplo-form {
        grid-template-columns: 1fr;
    }

    .sorteio-total-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* --- Notícia form mobile --- */
@media (max-width: 900px) {
    .noticia-form-grid {
        grid-template-columns: 1fr;
    }

    .noticia-form-card {
        padding: 20px;
    }

    .noticia-form-actions {
        justify-content: stretch;
    }

    .noticia-form-btn-primary {
        width: 100%;
    }

    .noticia-upload-card,
    .noticia-upload-preview {
        min-height: 220px;
        height: 220px;
    }
}

/* =============================================================
   22. LOGIN
   ============================================================= */
.login-page-sed {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: radial-gradient(circle at top left, rgba(13, 94, 166, 0.08), transparent 24%), radial-gradient(circle at bottom right, rgba(10, 74, 132, 0.10), transparent 30%), linear-gradient(180deg, #f4f7fb 0%, #edf3f9 100%);
}

.login-shell-sed {
    width: min(1180px, 100%);
    min-height: 700px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #dbe4ee;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.login-brand-sed {
    position: relative;
    background: linear-gradient(160deg, #0a4a84 0%, #0d5ea6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
}

    .login-brand-sed::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.10), transparent 22%), radial-gradient(circle at 85% 85%, rgba(255,255,255,0.08), transparent 24%);
        pointer-events: none;
    }

.login-brand-inner-sed {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 52px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-brand-logo-sed {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 24px;
}

.login-brand-badge-sed {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.login-brand-title-sed {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 2.8vw, 3.3rem);
    line-height: 1.08;
    font-weight: 700;
    color: #ffffff;
}

    .login-brand-title-sed:focus,
    .login-brand-title-sed:focus-visible {
        outline: none;
        box-shadow: none;
    }

.login-brand-text-sed {
    margin: 0;
    max-width: 360px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.90);
}

.login-brand-info-sed {
    margin-top: 32px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(6px);
    text-align: left;
}

    .login-brand-info-sed h3 {
        margin: 0 0 10px;
        font-size: 1.12rem;
        font-weight: 700;
        color: #ffffff;
    }

    .login-brand-info-sed p {
        margin: 0;
        line-height: 1.8;
        color: rgba(255,255,255,0.86);
    }

.login-form-panel-sed {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.login-form-card-sed {
    width: 100%;
    max-width: 500px;
    padding: 36px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5edf5;
    box-shadow: 0 14px 40px rgba(15,23,42,0.06);
}

.login-form-header-sed {
    margin-bottom: 30px;
}

    .login-form-header-sed h2 {
        margin: 0 0 8px;
        font-size: 2rem;
        font-weight: 700;
        color: #0f172a;
    }

    .login-form-header-sed p {
        margin: 0;
        color: #5b6472;
        line-height: 1.7;
        font-size: 0.98rem;
    }

.login-form-sed {
    display: flex;
    flex-direction: column;
}

.form-group-sed {
    margin-bottom: 20px;
}

.form-label-sed {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #334155;
}

.input-sed,
.login-form-sed .form-control {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid #d6e0ea;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1rem;
    box-shadow: none;
    transition: all 0.2s ease;
}

    .input-sed:focus,
    .login-form-sed .form-control:focus {
        border-color: #0d5ea6;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(13,94,166,0.12);
        outline: none;
    }

.login-submit-wrap-sed {
    margin-top: 10px;
    margin-bottom: 18px;
}

.login-submit-sed {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a4a84 0%, #0d5ea6 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.18s ease, filter 0.18s ease;
}

    .login-submit-sed:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
    }

    .login-submit-sed:active {
        transform: translateY(0);
    }

.login-link-row-sed {
    margin-bottom: 20px;
}

    .login-link-row-sed a,
    .login-box-sed a {
        color: #0d5ea6;
        text-decoration: none;
        font-weight: 600;
    }

        .login-link-row-sed a:hover,
        .login-box-sed a:hover {
            text-decoration: underline;
        }

.login-box-sed {
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e6edf5;
}

    .login-box-sed + .login-box-sed {
        margin-top: 12px;
    }

    .login-box-sed p {
        margin: 0;
        line-height: 1.75;
        color: #475569;
    }

        .login-box-sed p + p {
            margin-top: 6px;
        }

.support-box-sed {
    margin-top: 12px;
}

.field-validation-error {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #dc2626;
}

@media (max-width: 980px) {
    .login-shell-sed {
        grid-template-columns: 1fr;
    }

    .login-brand-inner-sed {
        max-width: 100%;
        padding: 38px 28px;
    }

    .login-form-panel-sed {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .login-page-sed {
        padding: 16px;
    }

    .login-brand-logo-sed {
        width: 180px;
    }

    .login-brand-title-sed {
        font-size: 2rem;
    }

    .login-form-panel-sed {
        padding: 20px;
    }

    .login-form-card-sed {
        padding: 24px 20px;
        border-radius: 20px;
    }
}

/* =============================================================
   23. A SECRETARIA
   ============================================================= */
.a-secretaria-page {
    padding-bottom: 32px;
}

.a-secretaria-breadcrumb-header {
    margin-bottom: 12px;
}

.a-secretaria-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.a-secretaria-breadcrumb-link {
    text-decoration: none;
}

.a-secretaria-breadcrumb-separator {
    color: #9ca3af;
}

.a-secretaria-breadcrumb-current {
    color: #c62828;
    font-weight: 600;
}

.a-secretaria-header {
    margin-bottom: 24px;
}

.a-secretaria-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.a-secretaria-subtitle {
    margin: 10px 0 0;
    max-width: 820px;
    font-size: 1rem;
    line-height: 1.65;
    color: #6b7280;
}

.a-secretaria-content-card {
    margin-bottom: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    overflow: hidden;
}

    .a-secretaria-content-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(15,23,42,0.08);
    }

.a-secretaria-content {
    padding: 28px 30px;
}

    .a-secretaria-content p {
        margin: 0 0 18px;
        font-size: 0.98rem;
        line-height: 1.9;
        color: #374151;
        text-align: justify;
    }

        .a-secretaria-content p:last-child {
            margin-bottom: 0;
        }

.a-secretaria-organograma-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.a-secretaria-section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.a-secretaria-section-title {
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid #0a4a84;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.a-secretaria-section-description {
    margin: 0;
    padding-left: 18px;
    font-size: 0.96rem;
    line-height: 1.6;
    color: #6b7280;
}

.a-secretaria-organograma {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.05);
    padding: 24px;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .a-secretaria-title {
        font-size: 1.7rem;
    }

    .a-secretaria-content {
        padding: 22px 18px;
    }

        .a-secretaria-content p {
            font-size: 0.95rem;
            text-align: left;
        }

    .a-secretaria-organograma {
        padding: 16px;
        border-radius: 16px;
    }

    .a-secretaria-section-title {
        font-size: 1.15rem;
    }

    .a-secretaria-section-description {
        padding-left: 0;
    }
}

/* =============================================================
   24. BENEFÍCIOS
   ============================================================= */
.beneficios-page {
    padding-bottom: 40px;
}

.beneficio-section {
    margin-bottom: 40px;
}

.beneficio-section-header {
    margin-bottom: 18px;
}

.beneficio-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #24384d;
    letter-spacing: -0.01em;
}

.beneficio-section-icon {
    --beneficio-icon-color: #0a4a84;
    --beneficio-icon-bg: rgba(10, 74, 132, 0.12);
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--beneficio-icon-bg);
    color: var(--beneficio-icon-color);
    border: 1px solid rgba(217,226,236,0.95);
    font-size: 1rem;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.beneficio-card {
    --beneficio-card-color: #0a4a84;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(220,228,238,0.95);
    border-top: 3px solid var(--beneficio-card-color);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15,23,42,0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .beneficio-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px rgba(15,23,42,0.10);
    }

.beneficio-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 18px;
}

.beneficio-logo-box {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
    border: 1px solid rgba(224,232,242,0.95);
}

.beneficio-logo {
    max-width: 100%;
    max-height: 88px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.beneficio-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.beneficio-publico-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid transparent;
    width: fit-content;
}

.beneficio-publico-badge-servidor {
    background: linear-gradient(135deg,#e0f2fe,#dbeafe);
    color: #0c4a6e;
    border-color: rgba(14,116,144,0.18);
}

.beneficio-publico-badge-professor {
    background: linear-gradient(135deg,#dcfce7,#d1fae5);
    color: #166534;
    border-color: rgba(22,101,52,0.18);
}

.beneficio-card-title {
    margin: 0 0 10px;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1e3550;
}

.beneficio-card-description {
    margin: 0;
    color: #5f6f80;
    font-size: 0.94rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.beneficio-card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(227,234,242,0.95);
}

.beneficio-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0d5ea6;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .beneficio-card-link:hover {
        color: #0a4a84;
        transform: translateX(2px);
    }

.beneficios-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: white;
    border: 1px solid rgba(220,228,238,0.95);
    box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}

.beneficio-tab {
    --beneficio-tab-color: #0a4a84;
    --beneficio-tab-bg: rgba(10,74,132,0.10);
    appearance: none;
    border: 1px solid rgba(217,226,236,0.95);
    background: #ffffff;
    color: #28445f;
    border-radius: 999px;
    padding: 8px 14px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.22s ease;
}

    .beneficio-tab:hover {
        transform: translateY(-1px);
        background: #f8fbff;
    }

    .beneficio-tab.active {
        background: var(--beneficio-tab-color);
        color: #ffffff;
        border-color: transparent;
        box-shadow: 0 8px 18px rgba(15,23,42,0.08);
    }

.beneficio-tab-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--beneficio-tab-bg);
    color: var(--beneficio-tab-color);
    font-size: 0.9rem;
}

.beneficio-tab.active .beneficio-tab-icon {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
}

.beneficio-tab-text {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .beneficio-section-title {
        font-size: 1.2rem;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .beneficio-card-description {
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .beneficios-tabs-wrapper {
        padding: 14px;
        gap: 10px;
    }

    .beneficio-tab {
        width: 100%;
        justify-content: flex-start;
    }
}

/* =============================================================
   25. LINKS ÚTEIS
   ============================================================= */
.links-uteis-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.links-uteis-section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.links-uteis-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.links-uteis-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

    .links-uteis-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

.links-uteis-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.links-uteis-card-content h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.links-uteis-card-content p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.links-uteis-card-action {
    margin-left: auto;
    font-size: 16px;
    opacity: 0.6;
}

/* =============================================================
   26. INSCRIÇÃO SORTEIO
   ============================================================= */
.inscricao-sorteio-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pages-full-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pages-full-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pages-action-btn {
    min-width: 190px;
    border-radius: 14px;
    font-weight: 700;
    padding: 10px 18px;
}

.inscricao-toolbar-card,
.datatable-card,
.usuario-resumo {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(15,23,42,0.05);
}

.usuario-resumo {
    padding: 16px 18px;
}

.usuario-linha-principal {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
}

.usuario-separador {
    color: #94a3b8;
    font-weight: 600;
}

.usuario-linha-secundaria {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
}

    .usuario-linha-secundaria i {
        margin-right: 6px;
        color: #0d5ea6;
    }

.usuario-emails-inline {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.usuario-email-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0d5ea6;
    font-size: 0.8rem;
    font-weight: 600;
    word-break: break-word;
}

.inscricao-toolbar-card {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.inscricao-toolbar-left, .inscricao-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inscricao-search-box {
    position: relative;
    min-width: 320px;
}

    .inscricao-search-box i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 0.95rem;
    }

    .inscricao-search-box .form-control {
        height: 46px;
        border-radius: 14px;
        border: 1px solid #cbd5e1;
        padding-left: 40px;
        box-shadow: none;
    }

        .inscricao-search-box .form-control:focus {
            border-color: #0d5ea6;
            box-shadow: 0 0 0 0.2rem rgba(13,94,166,0.12);
        }

.inscricao-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

    .inscricao-summary-chip .label {
        color: #1d4ed8;
        font-weight: 700;
    }

    .inscricao-summary-chip .value {
        min-width: 28px;
        height: 28px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #1d4ed8;
        color: #fff;
        font-size: 0.85rem;
        font-weight: 800;
    }

.datatable-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-modern {
    min-width: 980px;
}

    .table-modern thead th {
        background: #f8fafc;
        color: #334155;
        font-weight: 800;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        border-bottom: 1px solid #e2e8f0;
        padding: 16px 18px;
        white-space: nowrap;
    }

    .table-modern tbody td {
        padding: 16px 18px;
        border-bottom: 1px solid #eef2f7;
        vertical-align: middle;
    }

    .table-modern tbody tr {
        transition: background-color 0.2s ease;
    }

        .table-modern tbody tr:hover {
            background: #f8fbff;
        }

        .table-modern tbody tr:last-child td {
            border-bottom: none;
        }

.td-primary {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.25;
}

.td-sub {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.td-muted {
    color: #475569;
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

.status-pendente {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

.status-vigente {
    background: #ecfdf5;
    color: #15803d;
    border-color: #86efac;
}

.status-encerrado {
    background: #f8fafc;
    color: #64748b;
    border-color: #cbd5e1;
}

.status-nao-inscrito {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5f5;
}

.status-inscrito {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

.status-sorteado {
    background: #ecfdf5;
    color: #15803d;
    border-color: #86efac;
}

.status-nao-sorteado {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.datatable-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: #64748b;
}

    .datatable-empty i {
        font-size: 2rem;
        margin-bottom: 10px;
        color: #94a3b8;
    }

    .datatable-empty h5 {
        margin: 0;
        color: #334155;
        font-weight: 800;
    }

    .datatable-empty p {
        margin: 8px 0 0;
    }

@media (max-width: 768px) {
    .pages-full-header-content {
        padding: 22px;
    }

    .pages-full-actions {
        width: 100%;
    }

    .pages-action-btn {
        width: 100%;
    }

    .inscricao-search-box {
        min-width: 100%;
        width: 100%;
    }
}

/* =============================================================
   27. QUEM É QUEM
   ============================================================= */
.quem-header {
    margin-bottom: 42px;
}

    .quem-header h1 {
        margin: 0 0 10px;
        font-size: 3rem;
        line-height: 1.05;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.04em;
    }

    .quem-header p {
        margin: 0;
        font-size: 1.1rem;
        color: #64748b;
    }

.fade-up {
    opacity: 0;
    transform: translateY(26px);
    animation: fadeUp 0.7s ease forwards;
}

@media (max-width: 991px) {
    .quem-header h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 576px) {
    .quem-header {
        margin-bottom: 28px;
    }

        .quem-header h1 {
            font-size: 2rem;
        }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* =============================================================
   28. URE
   ============================================================= */
.ure-page-header {
    margin-bottom: 24px;
}

.ure-page-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

.ure-select-card {
    border: none;
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    overflow: visible;
    position: relative;
    z-index: 20;
}

    .ure-select-card .card-body {
        padding: 1.35rem 1.35rem 1.2rem 1.35rem;
    }

.ure-select-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.ure-select-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ure-select-label {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.ure-select-helper {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.ure-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.ure-selected-badge-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ure-selected-badge-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.ure-autocomplete {
    position: relative;
    z-index: 30;
}

.ure-select-leading-icon {
    position: absolute;
    left: 18px;
    top: 0;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.ure-autocomplete-input {
    width: 100%;
    height: 58px;
    padding: 0 18px 0 46px;
    border: 1px solid #d7e0ea;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    box-shadow: 0 4px 14px rgba(15,23,42,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .ure-autocomplete-input:hover {
        border-color: #93c5fd;
    }

    .ure-autocomplete-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.22rem rgba(59,130,246,0.14);
    }

.ure-autocomplete-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(15,23,42,0.16);
    max-height: 260px;
    overflow-y: auto;
    z-index: 9999;
    border: 1px solid #e2e8f0;
    padding: 0.4rem;
}

.ure-autocomplete-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.85rem 0.95rem;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    border-radius: 12px;
    transition: background 0.15s ease;
}

    .ure-autocomplete-item:hover {
        background: #eff6ff;
        color: #1d4ed8;
    }

.ure-autocomplete-empty {
    padding: 0.75rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.ure-wrapper {
    overflow: hidden;
    border: none;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15,23,42,0.10);
}

    .ure-wrapper .card-body {
        padding: 1.6rem;
    }

.ure-card {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .ure-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(15,23,42,0.10);
    }

.ure-card-banner {
    height: 140px;
    overflow: hidden;
    background: #e5e7eb;
    position: relative;
}

.ure-card-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ure-card-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.16), rgba(15,23,42,0.02));
    pointer-events: none;
}

.ure-polo-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0a4a84 0%, #2563eb 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

.ure-card-body {
    display: flex;
    gap: 24px;
    padding: 24px;
    align-items: stretch;
}

.ure-card-media {
    flex: 0 0 120px;
    margin-top: -54px;
    position: relative;
    z-index: 1;
}

.ure-avatar-wrap {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}

.ure-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ure-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .ure-card-content h2 {
        margin: 0 0 12px;
        padding-right: 130px;
        font-size: 1.4rem;
        font-weight: 700;
        color: #1f2937;
        line-height: 1.25;
    }

.ure-dados {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.55;
    word-break: break-word;
}

    .ure-dados strong {
        color: #374151;
        font-weight: 600;
    }

.ure-section-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 20px;
    margin-top: 18px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .ure-section-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(15,23,42,0.08);
    }

.ure-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

    .ure-section-title i {
        color: #2563eb;
        font-size: 1rem;
        flex-shrink: 0;
    }

.ure-text {
    color: #475569;
    line-height: 1.75;
    font-size: 0.98rem;
    margin-bottom: 0;
}

    .ure-text strong {
        color: #334155;
        font-weight: 700;
    }

.ure-phone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ure-phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.92rem;
    color: #475569;
}

    .ure-phone-item i {
        color: #2563eb;
        flex-shrink: 0;
    }

.ure-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ure-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .ure-contact-item i {
        color: #2563eb;
        flex-shrink: 0;
    }

    .ure-contact-item span {
        word-break: break-word;
    }

    .ure-contact-item:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        transform: translateY(-1px);
    }

@media (max-width: 768px) {
    .ure-select-card .card-body {
        padding: 1.1rem;
    }

    .ure-select-top {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ure-autocomplete-input {
        height: 54px;
    }

    .ure-select-leading-icon {
        height: 54px;
    }

    .ure-card-banner {
        height: 110px;
    }

    .ure-card-body {
        flex-direction: column;
        gap: 18px;
        padding: 18px;
    }

    .ure-card-media {
        margin-top: -44px;
        flex: 0 0 auto;
    }

    .ure-avatar-wrap {
        width: 96px;
        height: 96px;
    }

    .ure-card-content h2 {
        padding-right: 0;
        font-size: 1.2rem;
    }

    .ure-section-title {
        font-size: 1rem;
    }
}

/* =============================================================
   29. COORDENADORIAS VIEWER
   ============================================================= */
.coordenadorias-section {
    margin-top: 0;
}

.coordenadorias-header {
    margin-bottom: 28px;
}

    .coordenadorias-header h2 {
        margin: 0 0 8px;
        font-size: 2rem;
        font-weight: 700;
        color: #1f2937;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    .coordenadorias-header p {
        margin: 0;
        font-size: 1rem;
        color: #475569;
        line-height: 1.6;
    }

.coordenadorias-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.coordenadoria-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    cursor: pointer;
    outline: none;
}

    .coordenadoria-card::before {
        content: "";
        display: block;
        height: 4px;
        width: 100%;
        background: linear-gradient(90deg, #0a4a84 0%, #2563eb 100%);
        position: absolute;
        top: 0;
        left: 0;
    }

    .coordenadoria-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(15,23,42,0.10);
        border-color: #dbe4f0;
    }

.coordenadoria-card-body {
    padding: 22px 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.coordenadoria-avatar-wrapper {
    flex-shrink: 0;
}

.coordenadoria-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    background: #f3f4f6;
}

.coordenadoria-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.coordenadoria-card h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.coordenadoria-responsavel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #0a4a84;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}

    .coordenadoria-responsavel::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #2563eb;
        flex-shrink: 0;
    }

.coordenadoria-resumo {
    margin-top: auto;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .coordenadorias-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .coordenadoria-card-body {
        padding: 18px;
        flex-direction: column;
    }

    .coordenadoria-avatar {
        width: 56px;
        height: 56px;
    }

    .coordenadoria-card h3 {
        font-size: 1rem;
    }

    .coordenadoria-responsavel {
        width: 100%;
        font-size: 0.92rem;
    }
}

/* =============================================================
   30. ORGANOGRAMA VIEWER
   ============================================================= */
.organograma-section {
    margin-top: 0;
}

.organograma-header {
    margin-bottom: 28px;
}

.organograma-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #0a4a84;
    font-size: 0.9rem;
    font-weight: 600;
}

.organograma-header h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.organograma-header p {
    margin: 0;
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    max-width: 780px;
}

.organograma-container {
    display: flex;
    padding: 10px 0 0;
}

.organograma-scroll {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
}

.organograma-preview-button {
    border: none;
    background: none;
    padding: 0;
    cursor: zoom-in;
    width: 100%;
}

.organograma-preview-frame {
    position: relative;
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15,23,42,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

    .organograma-preview-frame::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg, #0a4a84 0%, #2563eb 100%);
    }

.organograma-preview-button:hover .organograma-preview-frame {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

.organograma-img {
    display: block;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

.organograma-preview-button:hover .organograma-img {
    transform: scale(1.02);
}

.organograma-overlay {
    position: absolute;
    inset: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,0.44);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.organograma-preview-button:hover .organograma-overlay {
    opacity: 1;
}

.organograma-overlay-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
}

.organograma-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(15,23,42,0.65);
    backdrop-filter: blur(8px);
    animation: organograma-modal-fade-in 0.25s ease;
}

.organograma-modal-content {
    position: relative;
    width: min(96vw,1400px);
    height: min(92vh,960px);
    background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
    border: 1px solid rgba(219,228,240,0.9);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.30);
    padding: 20px;
    overflow: hidden;
    animation: organograma-modal-scale-in 0.25s ease;
}

.organograma-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.organograma-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
}

.organograma-close-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(241,245,249,0.92);
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

    .organograma-close-btn:hover {
        background: #e2e8f0;
        transform: scale(1.05);
    }

.organograma-modal-scroll {
    width: 100%;
    height: calc(100% - 56px);
    overflow: auto;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.organograma-modal-img {
    display: block;
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 12px;
}

@keyframes organograma-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes organograma-modal-scale-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .organograma-header h2 {
        font-size: 1.6rem;
    }

    .organograma-preview-frame {
        padding: 12px;
        border-radius: 20px;
    }

    .organograma-modal {
        padding: 12px;
    }

    .organograma-modal-content {
        width: 100%;
        height: 90vh;
        padding: 16px;
        border-radius: 20px;
    }
}

/* =============================================================
   31. ÓRGÃOS VINCULADOS VIEWER
   ============================================================= */
.orgaos-section {
    margin-top: 0;
}

.orgaos-header {
    margin-bottom: 28px;
}

    .orgaos-header h2 {
        margin: 0 0 8px;
        font-size: 2rem;
        font-weight: 700;
        color: #1f2937;
        letter-spacing: -0.02em;
    }

    .orgaos-header p {
        margin: 0;
        font-size: 1rem;
        color: #475569;
        line-height: 1.6;
    }

.orgaos-lista {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.orgao-item-link {
    text-decoration: none;
}

.orgao-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
}

    .orgao-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: -20px;
        width: 1px;
        height: 40px;
        background: #d1d5db;
    }

    .orgao-item img {
        height: 60px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.orgao-nome {
    max-width: 220px;
    font-size: 1.08rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.45;
}

.orgao-item:hover, .orgao-item-link:hover .orgao-item {
    background: #f8fafc;
    transform: translateY(-2px);
}

    .orgao-item:hover img {
        transform: scale(1.05);
    }

@media (max-width: 768px) {
    .orgaos-lista {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .orgao-item::after {
        display: none;
    }
}

/* =============================================================
   32. PESSOAS QUEM É QUEM VIEWER
   ============================================================= */
.qp-lista {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.qp-card {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(10,74,132,0.08);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    overflow: hidden;
    position: relative;
}

    .qp-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 6px;
        background: linear-gradient(180deg, #0a4a84 0%, #2f80d1 100%);
        border-radius: 28px 0 0 28px;
    }

    .qp-card.qp-reverse {
        grid-template-columns: minmax(0,1fr) 380px;
    }

        .qp-card.qp-reverse .qp-card-media {
            order: 2;
        }

        .qp-card.qp-reverse .qp-card-content {
            order: 1;
        }

.qp-card-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qp-card-image-wrap {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4/4.35;
    border-radius: 24px;
    overflow: hidden;
    background: #eef3f8;
    box-shadow: 0 14px 35px rgba(10,74,132,0.12);
}

.qp-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.qp-card:hover .qp-card-image {
    transform: scale(1.035);
}

.qp-card-content {
    min-width: 0;
}

.qp-cargo {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0a4a84;
}

.qp-card-content h2 {
    margin: 0 0 16px;
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
}

.qp-resumo {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #334155;
}

.qp-link {
    margin-top: 22px;
    border: none;
    background: none;
    color: #d92d20;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.qp-detalhes {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.5s;
}

    .qp-detalhes.qp-aberto {
        max-height: 1200px;
        opacity: 1;
        margin-top: 20px;
    }

.qp-detalhes-inner {
    padding-top: 18px;
    border-top: 1px solid #ccc;
}

.qp-fade-up {
    opacity: 0;
    transform: translateY(26px);
    animation: qpFadeUp 0.7s ease forwards;
}

@keyframes qpFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page {
        display: block;
        min-height: 100vh;
    }

    main {
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
        padding-top: 52px;
    }

    .top-row {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        height: 52px;
        z-index: 90;
        background: #fff;
    }

    .content {
        min-height: calc(100vh - 52px);
        overflow-y: visible !important;
        padding: 20px;
    }

    .sidebar-mobile-toggle {
        display: inline-flex !important;
        position: relative;
        z-index: 120;
    }

    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100dvh;
        transform: translateX(-100%);
        z-index: 110;
    }

        .sidebar.sidebar-open {
            transform: translateX(0);
        }

    .sidebar-overlay.sidebar-overlay-visible {
        display: block;
        z-index: 100;
    }
}

.sidebar-close-mobile {
    display: none;
}

@media (max-width: 768px) {
    .sidebar-close-mobile {
        display: inline-flex;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 10px;
        background: rgba(255,255,255,0.12);
        color: #fff;
        align-items: center;
        justify-content: center;
        z-index: 130;
    }
}

/* =============================================================
   BENEFÍCIO MODAL
   ============================================================= */

.beneficio-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    animation: beneficio-modal-fade-in 0.25s ease;
}

.beneficio-modal-content {
    position: relative;
    width: min(96vw, 780px);
    max-height: min(90vh, 860px);
    background: #ffffff;
    border: 1px solid rgba(219, 228, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: beneficio-modal-scale-in 0.25s ease;
}

.beneficio-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.beneficio-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
}

    .beneficio-modal-title img {
        height: 32px;
        width: auto;
        object-fit: contain;
        border-radius: 4px;
    }

.beneficio-modal-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .beneficio-modal-close:hover {
        background: #e2e8f0;
        transform: scale(1.05);
    }

.beneficio-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
}

.beneficio-modal-resumo {
    color: #444;
    line-height: 1.75;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.beneficio-modal-divider {
    border: none;
    border-top: 1px solid #eee;
    margin-bottom: 20px;
}

.beneficio-modal-conteudo {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

    .beneficio-modal-conteudo > div,
    .beneficio-modal-conteudo [style*="display: grid"],
    .beneficio-modal-conteudo [style*="display:grid"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

.beneficio-modal-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

@keyframes beneficio-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes beneficio-modal-scale-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .beneficio-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .beneficio-modal-content {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }

    .beneficio-modal-body {
        padding: 16px;
    }
}

/* =============================================================
   RELATÓRIO SORTEIOS
   ============================================================= */

.relatorio-dropdown-wrapper {
    position: relative;
    width: 100%;
}

    .relatorio-dropdown-wrapper :deep(input),
    .relatorio-dropdown-wrapper :deep(.dropdown-toggle),
    .relatorio-dropdown-wrapper :deep(.form-control) {
        padding-right: 2.5rem !important;
        width: 100%;
    }

.relatorio-dropdown-chevron {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1;
}


/* =============================================================
   BIBLIOTECA DOCUMENTOS
   ============================================================= */

/* ── Container principal ─────────────────────────────────── */
.bib-doc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

/* ── Cabeçalho ───────────────────────────────────────────── */
.bib-doc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 0.75rem;
}

.bib-doc-title {
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bib-doc-subtitle {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0.2rem 0 0 1.75rem;
}

/* ── Toggle grade/lista ──────────────────────────────────── */
.bib-doc-view-toggle {
    display: flex;
    gap: 2px;
    background: var(--bs-secondary-bg, #e9ecef);
    border-radius: 6px;
    padding: 2px;
}

.bib-view-btn {
    background: none;
    border: none;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    color: var(--bs-secondary-color, #6c757d);
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

    .bib-view-btn:hover {
        color: var(--bs-body-color);
    }

    .bib-view-btn.active {
        background: var(--bs-body-bg, #fff);
        color: var(--bs-primary, #0d6efd);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

/* ── Toolbar ─────────────────────────────────────────────── */
.bib-doc-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bib-doc-busca {
    min-width: 180px;
    max-width: 280px;
    flex: 1;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.bib-doc-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.bib-crumb-btn {
    background: none;
    border: none;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--bs-link-color, #0d6efd);
    font-size: 0.85rem;
    transition: background 0.15s;
}

    .bib-crumb-btn:hover:not(:disabled) {
        background: var(--bs-primary-bg-subtle, #cfe2ff);
    }

    .bib-crumb-btn:disabled,
    .bib-crumb-btn.active {
        color: var(--bs-body-color, #212529);
        font-weight: 600;
        cursor: default;
    }

.bib-crumb-sep {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.75rem;
}

/* ── Label de seção (Pastas / Arquivos) ──────────────────── */
.bib-section-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.25rem;
}

/* ── Grade de pastas ─────────────────────────────────────── */
.bib-grade-pastas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bib-pasta-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg, #fff);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    user-select: none;
    min-width: 0;
}

    .bib-pasta-card:hover,
    .bib-pasta-card.menu-aberto {
        background: var(--bs-primary-bg-subtle, #e8f0fe);
        border-color: var(--bs-primary, #0d6efd);
        box-shadow: 0 1px 4px rgba(13,110,253,0.08);
    }

.bib-pasta-card-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    flex: 1;
}

.bib-pasta-icon {
    font-size: 1.5rem;
    color: #f5a623;
    flex-shrink: 0;
}

.bib-pasta-nome {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--bs-body-color);
}

.bib-pasta-menu-btn {
    background: none;
    border: none;
    padding: 0.2rem 0.3rem;
    border-radius: 4px;
    color: var(--bs-secondary-color, #6c757d);
    cursor: pointer;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.15s, background 0.15s;
    line-height: 1;
}

.bib-pasta-card:hover .bib-pasta-menu-btn,
.bib-pasta-card.menu-aberto .bib-pasta-menu-btn,
.bib-arquivo-card:hover .bib-pasta-menu-btn,
.bib-arquivo-card.menu-aberto .bib-pasta-menu-btn {
    opacity: 1;
}

.bib-pasta-menu-btn:hover {
    background: var(--bs-secondary-bg, #e9ecef);
    color: var(--bs-body-color);
}

/* ── Grade de arquivos ───────────────────────────────────── */
.bib-grade-arquivos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.bib-arquivo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background: var(--bs-body-bg, #fff);
    cursor: default;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    min-width: 0;
    gap: 0.5rem;
}

    .bib-arquivo-card:hover,
    .bib-arquivo-card.menu-aberto {
        background: var(--bs-secondary-bg, #f8f9fa);
        border-color: var(--bs-border-color-translucent);
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }

.bib-arquivo-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
}

.bib-arquivo-card > .bib-pasta-menu-btn {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
}

/* Ícone de arquivo com cor por tipo */
.bib-arquivo-icon-wrap {
    width: 48px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 2rem;
}

.bib-arquivo-icon-pdf {
    color: #dc3545;
    background: rgba(220,53,69,0.08);
}

.bib-arquivo-icon-word {
    color: #0d6efd;
    background: rgba(13,110,253,0.08);
}

.bib-arquivo-icon-excel {
    color: #198754;
    background: rgba(25,135,84,0.08);
}

.bib-arquivo-icon-ppt {
    color: #d45b1a;
    background: rgba(212,91,26,0.08);
}

.bib-arquivo-icon-img {
    color: #6f42c1;
    background: rgba(111,66,193,0.08);
}

.bib-arquivo-icon-txt {
    color: #6c757d;
    background: rgba(108,117,125,0.08);
}

.bib-arquivo-icon-outros {
    color: #6c757d;
    background: rgba(108,117,125,0.08);
}

.bib-arquivo-nome {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: var(--bs-body-color);
}

.bib-arquivo-meta {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* ── Estados ─────────────────────────────────────────────── */
.bib-doc-loading,
.bib-doc-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.9rem;
}

    .bib-doc-empty i {
        font-size: 2rem;
    }

/* ── Tabela (modo lista) ─────────────────────────────────── */
.bib-doc-table-wrapper {
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
    overflow: visible;
}

.bib-doc-table {
    margin: 0;
    font-size: 0.875rem;
}

    .bib-doc-table th {
        font-weight: 600;
        font-size: 0.8rem;
        white-space: nowrap;
        background: var(--bs-light, #f8f9fa);
    }

.bib-doc-row {
    cursor: default;
}

.bib-doc-row-pasta {
    font-weight: 500;
}

.bib-doc-nome-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .bib-doc-nome-cell i {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

.bib-doc-tipo {
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* ── Botão menu (lista) ──────────────────────────────────── */
.btn-ghost {
    background: none;
    border: none;
    color: var(--bs-secondary-color, #6c757d);
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: background 0.15s;
}

    .btn-ghost:hover {
        background: var(--bs-secondary-bg, #e9ecef);
    }

.bib-doc-menu-btn {
    opacity: 0;
    transition: opacity 0.15s;
}

.bib-doc-row:hover .bib-doc-menu-btn {
    opacity: 1;
}

/* ── Cor extra para PowerPoint / imagens ─────────────────── */
.text-orange {
    color: #d45b1a !important;
}

.text-purple {
    color: #6f42c1 !important;
}

/* ── Modais ──────────────────────────────────────────────── */
.bib-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bib-modal {
    background: var(--bs-body-bg, #fff);
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: bibModalIn 0.15s ease;
}

@keyframes bibModalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bib-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
}

    .bib-modal-header h6 {
        margin: 0;
        font-weight: 600;
    }

.bib-modal-body {
    padding: 1rem 1.25rem;
}

.bib-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid var(--bs-border-color);
}

/* ── Menu contextual ─────────────────────────────────────── */
.bib-doc-acoes-td {
    position: relative;
}

.bib-doc-menu-wrapper {
    position: relative;
    display: inline-block;
}

.bib-doc-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    z-index: 1060;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 150px;
    padding: 0.25rem 0;
    animation: bibMenuIn 0.1s ease;
}

@keyframes bibMenuIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bib-doc-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.9rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    color: var(--bs-body-color, #212529);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.1s;
}

    .bib-doc-menu-item:hover {
        background: var(--bs-secondary-bg, #f8f9fa);
    }

.bib-doc-menu-item-danger {
    color: var(--bs-danger, #dc3545) !important;
}

    .bib-doc-menu-item-danger:hover {
        background: rgba(220, 53, 69, 0.08) !important;
    }

.bib-doc-menu-divider {
    height: 1px;
    background: var(--bs-border-color);
    margin: 0.25rem 0;
}

/* =============================================================
   33. SORTEIO — INSCRIÇÃO E RELATÓRIO
   Telas: InscricaoSorteio e RelatorioInscritos.
   Tabela, badges e cards (table-modern, status-badge, datatable-card,
   td-muted) vêm das seções anteriores — aqui só o que é específico
   da lista de horários e dos filtros.
   ============================================================= */

/* ---------- Separação entre linhas nas grids de sorteio ----------
   Os cartões de horário têm fundo e borda próprios, mais definidos que
   a divisória padrão da linha: sem reforçar aqui, o olho agrupa pelos
   cartões e as linhas parecem um bloco só.

   Escopado nas duas páginas de propósito — table-modern é usada em
   outras telas, onde cada linha tem altura única e não precisa de
   divisória grossa nem de respiro extra. */

.inscricao-sorteio-page .table-modern > tbody > tr > td,
.relatorio-inscritos-page .table-modern > tbody > tr > td {
    padding-top: 18px;
    padding-bottom: 18px;
}

/* O :not(:last-child) é necessário: sem ele esta regra empata em
   especificidade com .table-modern tbody tr:last-child td e, por vir
   depois no arquivo, devolveria a borda à última linha. */
.inscricao-sorteio-page .table-modern > tbody > tr:not(:last-child) > td,
.relatorio-inscritos-page .table-modern > tbody > tr:not(:last-child) > td {
    border-bottom: 2px solid #cbd5e1;
}

/* ---------- Lista de horários ---------- */

.col-agendamentos {
    min-width: 26rem;
}

/* O relatório tem 8 colunas e não usa checkbox: cabe mais apertado. */
.relatorio-inscritos-page .col-agendamentos {
    min-width: 20rem;
}

.agendamento-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.agendamento-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .agendamento-item:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

    .agendamento-item.is-selecionado {
        background-color: rgba(13, 110, 253, 0.06);
        border-color: rgba(13, 110, 253, 0.25);
    }

    .agendamento-item.is-inscrito {
        background-color: rgba(25, 135, 84, 0.05);
        border-color: rgba(25, 135, 84, 0.2);
    }

    .agendamento-item.is-sorteado {
        background-color: rgba(25, 135, 84, 0.06);
        border-color: rgba(25, 135, 84, 0.2);
    }

/* Com a divisória da linha reforçada, a borda do cartão passa a competir
   com ela. O fundo sozinho já carrega o significado. */
.inscricao-sorteio-page .agendamento-item.is-selecionado,
.inscricao-sorteio-page .agendamento-item.is-inscrito,
.relatorio-inscritos-page .agendamento-item.is-sorteado {
    border-color: transparent;
}

.agendamento-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin: 0;
    line-height: 1.25;
    cursor: pointer;
}

/* O cursor: pointer existe porque na tela de inscrição o bloco é um
   <label> que marca o checkbox. No relatório nada é clicável. */
.relatorio-inscritos-page .agendamento-info,
.agendamento-item.is-indisponivel .agendamento-info {
    cursor: default;
}

.agendamento-data {
    font-size: 0.875rem;
    font-weight: 500;
}

.agendamento-ingressos {
    font-size: 0.75rem;
    color: #6c757d;
}

.agendamento-item.is-indisponivel .agendamento-data,
.agendamento-item.is-indisponivel .agendamento-ingressos {
    color: #adb5bd;
}

.agendamento-cancelar {
    padding: 0;
    font-size: 0.75rem;
    white-space: nowrap;
    text-decoration: none;
    color: #b02a37;
}

    .agendamento-cancelar:hover,
    .agendamento-cancelar:focus-visible {
        color: #842029;
        text-decoration: underline;
    }

.agendamento-sorteado {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    color: #146c43;
}

/* Sem isto o checkbox desaparece no fundo claro ao navegar por teclado. */
.agendamento-item input:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* ---------- Filtros da toolbar ---------- */

.inscricao-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    flex: 1 1 auto;
}

.inscricao-filtro {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 11rem;
    flex: 0 1 auto;
}

.inscricao-filtro-busca {
    min-width: 16rem;
    flex: 1 1 16rem;
}

.inscricao-filtro-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #495057;
}

.inscricao-filtro-obrigatorio {
    color: #b02a37;
}

.inscricao-limpar-filtros {
    padding: 0;
    font-size: 0.8125rem;
    text-decoration: none;
    white-space: nowrap;
}

    .inscricao-limpar-filtros:hover,
    .inscricao-limpar-filtros:focus-visible {
        text-decoration: underline;
    }

/* ---------- Responsivo ---------- */

@media (max-width: 768px) {
    .col-agendamentos,
    .relatorio-inscritos-page .col-agendamentos {
        min-width: 0;
    }

    .agendamento-item {
        flex-wrap: wrap;
    }

    .agendamento-info {
        flex: 1 1 60%;
    }

    .inscricao-filtro,
    .inscricao-filtro-busca {
        min-width: 0;
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .agendamento-item {
        transition: none;
    }
}
