
.situacao-votacao {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    margin-top: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

    .situacao-votacao i {
        font-size: 22px;
    }

.situacao-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.situacao-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.75;
    letter-spacing: .5px;
}

.situacao-status {
    font-size: 16px;
    font-weight: bold;
}

.situacao-aprovado {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.situacao-rejeitado {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal de votacao - regras escopadas em .modal-votacao para nao afetar
   os outros modais da pagina. */
.modal-dialog.modal-votacao {
    width: 95%;
    max-width: 1600px;
    margin: 20px auto;
}

/* .modal-dialog-centered e do Bootstrap 4; aqui o projeto usa o BS3,
   entao a centralizacao vertical e feita manualmente. */
.modal-dialog.modal-votacao.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 40px);
}

/* O spl/css/style.bundle.css (tema baseado no Bootstrap 4) aplica
   "transform: translate(0,-50px)" em .modal.fade .modal-dialog e so limpa
   esse deslocamento em .modal.show. O Bootstrap 3 usado no projeto marca o
   modal aberto com .in (nunca .show), entao o dialogo ficava 50px acima do
   centro. As regras abaixo mantem a animacao de entrada e zeram o
   deslocamento quando o modal esta aberto. */
.modal.fade .modal-dialog.modal-votacao {
    -webkit-transform: translate(0, -50px);
    -ms-transform: translate(0, -50px);
    -o-transform: translate(0, -50px);
    transform: translate(0, -50px);
}

.modal.fade.in .modal-dialog.modal-votacao,
.modal.in .modal-dialog.modal-votacao,
.modal.show .modal-dialog.modal-votacao {
    -webkit-transform: none;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
}

.modal-votacao .modal-content {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.modal-votacao .modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 4px;
}

    .modal-header-flex .modal-title {
        margin: 15px;
        line-height: 1.4;
        padding-top: 2px;
    }

.votos-colunas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.voto-card {
    flex: 1 1 135px;
    min-width: 135px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.voto-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
}

.total-votos {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 20px;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}

.voto-body {
    padding: 10px;
}

.voto-item {
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #f1f1f1;
    word-break: break-word;
}

    .voto-item:last-child {
        border-bottom: 0;
    }


.voto-sim .voto-header {
    background: #28a745;
    color: #fff;
}

.voto-nao .voto-header {
    background: #dc3545;
    color: #fff;
}

.voto-abs .voto-header {
    background: #ffc107;
    color: #212529;
}

.voto-branco .voto-header {
    background: #adb5bd;
    color: #212529;
}

.voto-ausente .voto-header {
    background: #6c757d;
    color: #fff;
}

.voto-naovotou .voto-header {
    background: #6f42c1;
    color: #fff;
}

.voto-licenciado .voto-header {
    background: #1d4ed8;
    color: #fff;
}

@media (min-width: 1200px) {

    .modal-dialog.modal-votacao {
        width: 96%;
        max-width: 1700px;
    }
}

@media (max-width: 768px) {

    .voto-card {
        flex: 1 1 100%;
    }
}
/* Cabeçalho da sessão e informações principais */
.votacao-sessao {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: bold;
}

    .votacao-sessao a {
        color: #0d6efd;
        text-decoration: none;
    }

.info-principal {
    display: flex;
    justify-content: space-between;
    background: #f6f9fe;
    border: 1px solid #e6ebff;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px; /* espaço maior entre título e contadores */
}

.info-principal-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* espaço entre ícone e texto */
}

    .info-principal-item i {
        font-size: 18px;
    }

    .info-principal-item .info-texto {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

.info-label {
    font-size: 12px;
    color: #6c757d;
}

.info-valor {
    font-size: 14px;
    font-weight: bold;
    color: #212529;
}
/* Container geral */
.votacao-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.votacao-info {
    display: flex;
    gap: 10px;
    margin: 12px 0 20px 0; /* mais espaço entre título e info */
}

.info-item {
    flex: 1;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px; /* reduzido para caixas menores */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* espaço entre ícone e texto */
    font-size: 13px; /* tamanho menor */
}

.voto-col {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    padding: 0;
}

    .voto-col strong {
        margin: 0;
        padding: 10px;
        font-size: 13px;
        font-weight: bold;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

.voto-col {
    flex: 1 1 14%;
    min-width: 160px; /* menor largura */
    max-width: 100%;
    padding: 6px; /* menor padding */
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    text-align: center;
    word-break: break-word;
}

.voto-item {
    font-size: 12px;
    padding: 1px 0;
}

/* Painel de aviso */
.caixa-aviso {
    display: flex;
    gap: 6px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 8px; /* menor */
    border-radius: 4px;
    font-size: 13px;
    align-items: center;
    margin-top: 10px;
}

    .caixa-aviso .icone {
        font-size: 16px;
        line-height: 1;
        flex-shrink: 0;
    }

.sessao-info {
    display: flex;
    flex-wrap: wrap; /* permite quebrar em telas menores */
    gap: 12px; /* espaço entre os itens */
    margin-bottom: 16px; /* separa do restante do layout */
}

.info-item {
    display: flex;
    align-items: center;
    flex: 1 1 200px; /* largura mínima e flexível */
    gap: 8px; /* espaço entre ícone e texto */
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
}

    .info-item i {
        font-size: 18px; /* tamanho do ícone */
        color: #0d6efd; /* cor padrão, pode variar por tipo */
    }

.info-texto {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #6c757d;
}

.info-valor {
    font-size: 14px;
    font-weight: bold;
    color: #212529;
}

.sessao-link {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* espaço entre ícone e texto */
    font-size: 14px;
    font-weight: bold;
    color:black ;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    margin-bottom: 10px;
}

.link-processo {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* espaço entre ícone e texto */
    font-size: 16px;
    font-weight: bold;
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    margin-bottom: 10px;
}


.sessao-link:hover {
    color: #0a58ca; /* azul mais escuro no hover */
    transform: translateX(2px); /* leve movimento no hover */
}

/* ==========================================================================
   Acoes do cabecalho do modal (Imprimir / DOWNLOAD / fechar)
   Os tres botoes tinham tamanhos diferentes: "Imprimir" usava .btn-sm,
   o "DOWNLOAD" nao usava nenhuma classe de tamanho (herdava o .btn padrao)
   e o "x" tinha padding/fonte proprios. As regras abaixo fixam a mesma
   altura, fonte e raio para os tres, independente do tema do Bootstrap.
   ========================================================================== */
.modal-header-acoes {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.modal-votacao .modal-header-acoes .btn-group {
    display: inline-flex;
}

.modal-votacao .btn.btn-acao-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #d5dbe6;
    border-radius: 6px;
    background-color: #fff;
    background-image: none;
    color: #4a5568;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .2px;
    white-space: nowrap;
    text-transform: none;
    box-shadow: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

    .modal-votacao .btn.btn-acao-modal i {
        font-size: 13px;
        line-height: 1;
        color: #7b8ce8;
    }

    .modal-votacao .btn.btn-acao-modal:hover,
    .modal-votacao .btn.btn-acao-modal:focus,
    .modal-votacao .btn-group.open > .btn.btn-acao-modal {
        background-color: #f4f6fb;
        border-color: #b9c4d8;
        color: #2d3748;
        box-shadow: none;
    }

    .modal-votacao .btn.btn-acao-modal:focus {
        outline: 0;
    }

/* O tema BS4 desenha o caret do dropdown via .dropdown-toggle::after;
   aqui so garantimos o espacamento em relacao ao texto. */
.modal-votacao .btn.btn-acao-modal.dropdown-toggle::after {
    margin-left: 2px;
}

/* Botao de fechar: mesma altura dos demais, em formato quadrado. */
.modal-votacao .btn-close,
.btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #718096;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

    .modal-votacao .btn-close:hover,
    .btn-close:hover {
        background-color: #f4f6fb;
        color: #2d3748;
    }

    .modal-votacao .btn-close:focus,
    .btn-close:focus {
        outline: 0;
        border-color: #b9c4d8;
    }

.sessao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.status {
    font-weight: bold;
}

.aprovado {
    color: green;
}

.reprovado {
    color: red;
}

/* Responsividade */
@media (max-width: 768px) {

    .situacao-votacao {
        width: 100%;
        justify-content: center;
    }

    .modal-votacao .modal-header {
        padding-top: 20px;
        padding-bottom: 14px;
    }

    .modal-header-flex .modal-title {
        width: 100%;
        text-align: center;
        padding-top: 6px;
        font-size: 18px;
        line-height: 1.4;
    }

    .votos-colunas {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .voto-col {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .votacao-info {
        flex-direction: column;
        gap: 5px;
    }

    .sessao-info {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {

    .modal-votacao .modal-header {
        padding-top: 20px;
        padding-bottom: 14px;
    }

    .modal-header-flex .modal-title {
        width: 100%;
        text-align: center;
        padding-top: 6px;
        font-size: 18px;
        line-height: 1.4;
    }

    .voto-col {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* ==========================================================================
   Botao "Ver Votacao" (painel Resultado da Votacao)
   ========================================================================== */
.votacao-acoes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

a.btn.btn-ver-votacao,
a.btn.btn-ver-votacao:link,
a.btn.btn-ver-votacao:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border: 0;
    border-radius: 24px;
    background-color: #1b4fd8;
    background-image: linear-gradient(135deg, #3d7bff 0%, #1b4fd8 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .3px;
    white-space: nowrap;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(27,79,216,.30);
    transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
}

    a.btn.btn-ver-votacao i {
        font-size: 14px;
        line-height: 1;
        opacity: .95;
    }

    a.btn.btn-ver-votacao:hover,
    a.btn.btn-ver-votacao:focus {
        color: #fff;
        text-decoration: none;
        filter: brightness(1.06);
        box-shadow: 0 4px 12px rgba(27,79,216,.40);
        transform: translateY(-1px);
    }

    a.btn.btn-ver-votacao:focus {
        outline: 0;
        box-shadow: 0 4px 12px rgba(27,79,216,.40), 0 0 0 3px rgba(61,123,255,.28);
    }

    a.btn.btn-ver-votacao:active {
        filter: brightness(.96);
        box-shadow: 0 1px 3px rgba(27,79,216,.35);
        transform: translateY(0);
    }

/* Variante compacta: usada nas listagens de sessao, onde o botao divide uma
   linha estreita com a data (col-sm-5, ~134px uteis). Com o tamanho padrao
   o botao estouraria a coluna para a direita. */
a.btn.btn-ver-votacao.btn-ver-votacao-compacto {
    height: 28px;
    padding: 0 14px;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0;
}

    a.btn.btn-ver-votacao.btn-ver-votacao-compacto i {
        font-size: 12px;
    }

@media (max-width: 480px) {

    .votacao-acoes {
        display: block;
    }

    /* Full-width so no celular apenas onde o botao e a acao principal do
       painel (.votacao-acoes). Nas listagens de sessao ele fica no tamanho
       natural, alinhado a direita da linha. */
    .votacao-acoes a.btn.btn-ver-votacao {
        width: 100%;
        justify-content: center;
    }
}

/* Correcoes do modal quando usado em paginas com Bootstrap 3 (ex.: Sistema).
   1) O .modal-header do BS3 tem :before/:after (clearfix, display: table); dentro do flex eles
      viram itens e o space-between deixa os botoes Imprimir/DOWNLOAD longe da borda direita.
   2) O corpo rola sozinho: o cabecalho com os botoes fica sempre visivel, mesmo com muitos votos. */
.modal-header-flex:before,
.modal-header-flex:after {
    display: none;
    content: none;
}

.modal-votacao .modal-body-votacao {
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}
