/**
 * ============================================================
 * SAPL - Sistema de Apoio ao Processo Legislativo
 * Estilos específicos para módulos integrados com SAPL
 * ============================================================
 * 
 * ESTRUTURA DE CLASSES:
 * .sapl-* → Container principal de módulos SAPL
 * .sapl-vereador-* → Elementos específicos de vereadores
 * .sapl-proposicao-* → Elementos específicos de proposições
 * .sapl-sessao-* → Elementos específicos de sessões
 * 
 * @package    Portal Legislativo
 * @subpackage SAPL Integration
 * @version    1.0.0
 * @since      2025-10-10
 */

/* ============================================================
   CONTAINER GERAL SAPL
   ============================================================ */
.sapl-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
.sapl-content {
    padding: 20px 0;
}
/* ============================================================
   FILTROS SAPL
   ============================================================ */
.sapl-filtros {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.sapl-filtros .form-control,
.sapl-filtros .form-control-sm {
    border-radius: 4px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.sapl-filtros .form-control:focus,
.sapl-filtros .form-control-sm:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.sapl-filtros .btn-primary {
    background-color: #17a2b8;
    border-color: #17a2b8;
    transition: all 0.15s ease-in-out;
}
.sapl-filtros .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sapl-filtros .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}
.sapl-filtros .btn-secondary:hover {
    background-color: #545b62;
    border-color: #4e555b;
}
/* ============================================================
   CARDS DE VEREADORES
   ============================================================ */
.sapl-vereadores-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.sapl-vereador-card {
    margin-bottom: 20px;
}
.sapl-vereador-card .cnt-block {
    background: #fff;
    border-radius: 3px;
    padding: 0 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sapl-vereador-card .cnt-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: #17a2b8;
}
.sapl-vereador-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
/* Foto do Vereador - Tratamento consistente e profissional */
.sapl-vereador-foto {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    object-position: center top; /* Foca no rosto, evita cortar cabeça */
    border-radius: 50%;
    margin: 15px auto 0;
    display: block;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
    background-color: #f8f9fa; /* Cor de fundo caso imagem não carregue */
    aspect-ratio: 1 / 1; /* Garante formato quadrado mesmo se imagem vier distorcida */
    overflow: hidden; /* Garante formato circular perfeito */
}
.sapl-vereador-card:hover .sapl-vereador-foto {
    border-color: #17a2b8;
}

/* Classe reutilizável para TODAS as fotos de vereadores */
.sapl-foto-vereador,
.sapl-foto-parlamentar {
    object-fit: cover !important;
    object-position: center top !important; /* Foca no rosto, evita cortar cabeça */
    aspect-ratio: 1 / 1 !important; /* Garante formato quadrado */
    background-color: #f8f9fa; /* Cor de fundo caso imagem não carregue */
}

/* Aplicar regras de foto também no contexto do our-webcoderskull (index.php) */
.our-webcoderskull .cnt-block img.sapl-foto-parlamentar,
.our-webcoderskull .cnt-block img.sapl-foto-vereador {
    object-fit: cover !important;
    object-position: center top !important; /* Foca no rosto, evita cortar cabeça */
    aspect-ratio: 1 / 1 !important; /* Garante formato quadrado mesmo com tamanho fixo do CSS base */
    background-color: #f8f9fa !important;
}
/* Nome do Vereador */
.sapl-vereador-nome {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 8px 0 5px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}
/* Partido */
.sapl-vereador-partido {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
    font-weight: 500;
}
/* Badges de Status */
.sapl-vereador-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 15px;
}
.sapl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    letter-spacing: 0.3px;
    text-align: center;
}
.sapl-badge-ativo {
    background-color: #28a745;
    color: #fff;
}
.sapl-badge-inativo {
    background-color: #dc3545;
    color: #fff;
}
.sapl-badge-afastamento {
    background-color: #fd7e14;
    color: #fff;
}
.sapl-badge-cargo {
    background-color: #17a2b8;
    color: #fff;
}
.sapl-badge-titular {
    background-color: #17a2b8;
    color: #fff;
}
.sapl-badge-suplente {
    background-color: #fd7e14;
    color: #fff;
}
/* Badge especial para cargo na Mesa Diretora */
.sapl-badge-cargo-mesa {
    background-color: #28a745 !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: bold !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    text-transform: none !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}
/* ============================================================
   RESULTADOS E CONTADORES
   ============================================================ */
.sapl-resultados {
    background: #f8f9fa;
    color: #495057;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0 25px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 14px;
    font-weight: 500;
}
.sapl-resultados-texto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sapl-resultados-numero {
    font-size: 18px;
    font-weight: 600;
    color: #17a2b8;
}
.sapl-resultados-icon {
    font-size: 16px;
    color: #6c757d;
    opacity: 0.8;
}
/* Variantes de cor (sutis) */
.sapl-resultados-success {
    background: #f1f9f6;
    border-color: #d4edda;
}
.sapl-resultados-success .sapl-resultados-numero {
    color: #28a745;
}
.sapl-resultados-info {
    background: #f8f9fa;
    border-color: #d1ecf1;
}
.sapl-resultados-info .sapl-resultados-numero {
    color: #17a2b8;
}
.sapl-resultados-warning {
    background: #fff8f5;
    border-color: #ffeaa7;
}
.sapl-resultados-warning .sapl-resultados-numero {
    color: #fd7e14;
}
/* ============================================================
   PERFIL DO PARLAMENTAR - SISTEMA DE ABAS
   ============================================================ */
/* ============================================================
   SISTEMA DE ABAS MODERNO E RESPONSIVO
   ============================================================ */
.sapl-modern-tabs {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}
.sapl-modern-tabs .nav {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 0;
    margin: 0;
}
.sapl-modern-tabs .nav-item {
    flex: 1;
}
.sapl-modern-tabs .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none !important;
    background: transparent !important;
    color: #6c757d !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 65px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}
.sapl-modern-tabs .nav-item:last-child .nav-link {
    border-right: none;
}
.sapl-modern-tabs .nav-link:hover {
    background: rgba(23, 162, 184, 0.08) !important;
    color: #17a2b8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}
.sapl-modern-tabs .nav-link:hover .tab-title {
    color: #17a2b8 !important;
}
.sapl-modern-tabs .nav-link:hover i {
    color: #17a2b8 !important;
}
.sapl-modern-tabs .nav-link.active {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.25);
}
.sapl-modern-tabs .nav-link.active .tab-title {
    color: #fff !important;
}
.sapl-modern-tabs .nav-link.active i {
    color: #fff !important;
}
.sapl-modern-tabs .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #17a2b8;
    border-radius: 3px 3px 0 0;
}
.sapl-modern-tabs .nav-link i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    transform: scale(0.85);
}
.sapl-modern-tabs .nav-link:hover i {
    transform: scale(0.9);
}
.sapl-modern-tabs .nav-link.active i {
    transform: scale(0.85);
}
.sapl-modern-tabs .nav-link .tab-title {
    /*font-weight: 600;*/
    text-align: center;
    line-height: 1.2;
    margin: 0;
}
.sapl-modern-tabs .nav-link .tab-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.sapl-modern-tabs .nav-link.active .tab-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #17a2b8;
}
/* Cards específicos do perfil */
.sapl-perfil-card {
    border: 1px solid #e9ecef;
    border-radius: 2px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.sapl-perfil-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.sapl-perfil-card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    color: #495057;
    border-radius: 8px 8px 0 0;
}
.sapl-perfil-card-body {
    padding: 20px;
}
.sapl-perfil-card-body .sapl-titulo-noticia a {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    margin-top: 0;
}
.sapl-perfil-card-body .sapl-titulo-noticia a:hover {
    color: #17a2b8;
    text-decoration: none;
}
.sapl-perfil-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.sapl-perfil-stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.sapl-perfil-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #17a2b8;
    display: block;
    margin-bottom: 5px;
}
.sapl-perfil-stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}
/* Lista de itens do perfil */
.sapl-perfil-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sapl-perfil-list-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.sapl-perfil-list-item:last-child {
    border-bottom: none;
}
.sapl-perfil-list-item:hover {
    background: rgba(23, 162, 184, 0.05);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
}
.sapl-perfil-list-item-content {
    flex: 1;
}
.sapl-perfil-list-item-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}
.sapl-perfil-list-item-subtitle {
    font-size: 14px;
    color: #6c757d;
}
.sapl-perfil-list-item-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
/* Responsividade para abas */
@media (max-width: 768px) {
    .sapl-modern-tabs .nav {
        flex-wrap: wrap;
    }
    .sapl-modern-tabs .nav-item {
        flex: 0 0 50%; /* 2 abas por linha */
        min-width: auto;
    }
    .sapl-modern-tabs .nav-link {
        padding: 15px 10px;
        min-height: 70px;
    }
    .sapl-modern-tabs .nav-link i {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .sapl-modern-tabs .nav-link .tab-title {
        font-size: 12px;
    }
    .sapl-perfil-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .sapl-perfil-stat-number {
        font-size: 24px;
    }
    .sapl-perfil-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .sapl-perfil-list-item-badges {
        align-self: flex-end;
    }
}
@media (max-width: 576px) {
    .sapl-modern-tabs .nav-item {
        flex: 0 0 50%; /* 2 abas por linha no mobile */
    }
    .sapl-modern-tabs .nav-link {
        padding: 12px 8px;
        min-height: 65px;
    }
    .sapl-modern-tabs .nav-link i {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .sapl-modern-tabs .nav-link .tab-title {
        font-size: 11px;
    }
    .sapl-modern-tabs .nav-link .tab-badge {
        top: 4px;
        right: 4px;
        font-size: 9px;
        padding: 1px 4px;
        min-width: 16px;
    }
    .sapl-perfil-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sapl-perfil-stat-number {
        font-size: 20px;
    }
    .sapl-perfil-card-body {
        padding: 15px;
    }
}
/*  Botão Favoritar - apenas outline, texto e ícone MUITO visíveis */
.sapl-share-btn-favoritar {
    background-color: transparent !important;
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
    width: auto !important;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.sapl-share-btn-favoritar i {
    color: #dc3545 !important;
    font-weight: 600;
}
.sapl-share-btn-favoritar.favoritado {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    opacity: 1;
}
.sapl-share-btn-favoritar.favoritado i {
    color: white !important;
}
.sapl-share-btn-favoritar.favoritado .fa-heart {
    animation: pulse 0.3s ease;
}
.sapl-share-btn-favoritar.favoritado .fa-heart:before {
    content: "\f004"; /* Solid heart quando favoritado */
}
.sapl-favoritar-texto {
    font-size: 0.75rem;
    font-weight: 600 !important;
    white-space: nowrap;
    margin-left: 4px;
    color: #dc3545 !important;
}
.sapl-share-btn-favoritar.favoritado .sapl-favoritar-texto {
    color: white !important;
}
/* Responsivo: esconder texto em telas muito pequenas */
@media (max-width: 576px) {
    .sapl-favoritar-texto {
        display: none;
    }
    .sapl-share-btn-favoritar {
        width: 28px !important;
        min-width: 28px;
        padding: 4px;
    }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
/* ============================================================
   BIOGRAFIA - ESTILOS ESPECÍFICOS
   ============================================================ */
/* ⚡ Foto principal do parlamentar - Tratamento consistente */
.sapl-perfil-foto-principal {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top; /* Foca no rosto, evita cortar cabeça */
    border: 3px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    background-color: #f8f9fa; /* Cor de fundo caso imagem não carregue */
    aspect-ratio: 1 / 1; /* Garante formato quadrado mesmo se imagem vier distorcida */
    display: block;
    overflow: hidden; /* Garante formato circular perfeito */
}
/* Nome principal */
.sapl-perfil-nome-principal {
    font-size: 24px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 10px;
    margin-top: 0;
}
/* Nome completo */
.sapl-perfil-nome-completo {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 15px;
}
.sapl-perfil-nome-completo i {
    color: #17a2b8;
    margin-right: 8px;
}
/* Badges principais */
.sapl-perfil-badges-principais {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.sapl-perfil-badges-principais .sapl-badge {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 3px;
    font-weight: 600;
}
/* Badge primário (partido) */
.sapl-badge-primary {
    background: #17a2b8;
    color: #fff;
    transition: all 0.2s ease;
}
.sapl-badge-primary:hover {
    background: #0d5d6b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}
/* Espaçamento entre foto e texto em telas grandes */
/* ⚡ Específico apenas para a row que contém a foto e dados principais */
@media (max-width: 1200px) {
    .sapl-perfil-card-body > .row.align-items-center > div:last-child {
        padding-left: 40px;
    }
}
/* Responsividade para foto principal */
/* ⚡ Específico apenas para a row que contém a foto e dados principais */
@media (max-width: 991px) {
    .sapl-perfil-card-body > .row.align-items-center > div:first-child {
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .sapl-perfil-foto-principal {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
        object-position: center top; /* Mantém foco no rosto */
        aspect-ratio: 1 / 1; /* Mantém formato quadrado */
    }
    .sapl-perfil-nome-principal {
        font-size: 20px;
    }
    .sapl-perfil-nome-completo {
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .sapl-perfil-foto-principal {
        width: 80px;
        height: 80px;
        margin-bottom: 8px;
        object-position: center top; /* Mantém foco no rosto */
        aspect-ratio: 1 / 1; /* Mantém formato quadrado */
    }
    .sapl-perfil-nome-principal {
        font-size: 18px;
    }
    .sapl-perfil-nome-completo {
        font-size: 13px;
    }
    .sapl-perfil-badges-principais {
        gap: 8px;
    }
    .sapl-perfil-badges-principais .sapl-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
}
/* ============================================================
   HUB DE INFORMAÇÕES SAPL - CARDS DE ESTATÍSTICAS
   ============================================================ */
.sapl-hub-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    color: #495057;
}
.sapl-hub-stat-card:hover {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-color: #17a2b8;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.3);
}
.sapl-hub-stat-card:hover .sapl-hub-stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.sapl-hub-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #17a2b8;
    margin-bottom: 5px;
    line-height: 1.2;
    transition: color 0.3s ease;
}
.sapl-hub-stat-card:hover .sapl-hub-stat-number {
    color: #fff;
}
.sapl-hub-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.sapl-hub-stat-card:hover .sapl-hub-stat-label {
    color: rgba(255, 255, 255, 0.9);
}
/* Responsividade para hub de estatísticas */
@media (max-width: 768px) {
    .sapl-hub-stat-card {
        min-height: 120px;
        padding: 15px 10px;
    }
    .sapl-hub-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    .sapl-hub-stat-number {
        font-size: 24px;
    }
    .sapl-hub-stat-label {
        font-size: 12px;
    }
}
@media (max-width: 576px) {
    .sapl-hub-stat-card {
        min-height: 110px;
        padding: 12px 8px;
    }
    .sapl-hub-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    .sapl-hub-stat-number {
        font-size: 20px;
    }
    .sapl-hub-stat-label {
        font-size: 11px;
    }
}
/* Card Total de Matérias */
.sapl-hub-total-card {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-radius: 8px;
    padding: 20px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}
.sapl-hub-total-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 8px;
}
.sapl-hub-total-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}
.sapl-hub-total-subtitle {
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
}
/* Legenda de Tipos (Clicável) */
.sapl-hub-tipos-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.sapl-hub-tipo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 3px;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.sapl-hub-tipo-badge:hover {
    background: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}
.sapl-hub-tipo-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.sapl-hub-tipo-badge:hover .sapl-hub-tipo-color {
    border-color: rgba(255, 255, 255, 0.5);
}
.sapl-hub-tipo-label {
    font-weight: 600;
}
.sapl-hub-tipo-count {
    font-size: 12px;
    opacity: 0.8;
}
.sapl-hub-tipo-badge:hover .sapl-hub-tipo-count {
    opacity: 0.9;
}
/* Responsividade para card total e legenda */
@media (max-width: 768px) {
    .sapl-hub-total-number {
        font-size: 36px;
    }
    .sapl-hub-tipo-badge {
        padding: 8px 12px;
        font-size: 13px;
    }
    .sapl-hub-tipo-color {
        width: 14px;
        height: 14px;
    }
}
@media (max-width: 576px) {
    .sapl-hub-total-card {
        padding: 15px;
    }
    .sapl-hub-total-number {
        font-size: 32px;
    }
    .sapl-hub-tipo-badge {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
    }
    .sapl-hub-tipo-color {
        width: 12px;
        height: 12px;
    }
}
.sapl-perfil-card .info-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}
.sapl-perfil-card .info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sapl-perfil-card .info-item label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}
.sapl-perfil-card .info-item label i {
    margin-right: 8px;
    color: #17a2b8;
    width: 16px;
    text-align: center;
}
.sapl-perfil-card .info-item .value {
    color: #212529;
    font-size: 15px;
    line-height: 1.5;
}
.sapl-perfil-card .info-item .value a {
    color: #17a2b8;
    text-decoration: none;
}
.sapl-perfil-card .info-item .value a:hover {
    color: #138496;
    text-decoration: underline;
}
/* Responsividade para biografia */
@media (max-width: 768px) {
    .sapl-perfil-card .info-item {
        padding: 12px 0;
    }
    .sapl-perfil-card .info-item label {
        font-size: 13px;
    }
    .sapl-perfil-card .info-item .value {
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .sapl-perfil-card .info-item {
        padding: 10px 0;
    }
    .sapl-perfil-card .info-item label {
        font-size: 12px;
    }
    .sapl-perfil-card .info-item .value {
        font-size: 13px;
    }
}
/* ============================================================
   MENSAGENS E ALERTAS
   ============================================================ */
.sapl-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.sapl-alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}
.sapl-alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}
.sapl-alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.sapl-alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
/* ============================================================
   CUSTOM ALERTS - Bootstrap Override
   ============================================================ */
.alert-white {
    background-color: #ffffff;
    border: 1px solid #dee2e6cf;
    border-radius: 2px !important;
    color: #212529;
}
.alert-white hr {
    border-top-color: #c6cbd1;
}
.alert-white .alert-link {
    color: #0056b3;
}
/* ============================================================
   SISTEMA DE LOADER GLOBAL
   ============================================================ */
.sapl-loader-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sapl-loader-card {
    background: white;
    padding: 30px 50px;
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 300px;
    animation: fadeInScale 0.3s ease;
}
.sapl-loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
.sapl-loader-titulo {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}
.sapl-loader-subtexto {
    margin: 10px 0 0;
    color: #666;
    font-size: 14px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.sapl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}
.sapl-pagination .btn {
    min-width: 100px;
}
.sapl-pagination-info {
    font-size: 14px;
    color: #666;
    margin: 0 15px;
}
/* ============================================================
   DEBUG PANEL
   ============================================================ */
.sapl-debug-panel {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.sapl-debug-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #856404;
}
.sapl-debug-toggle:hover {
    color: #533f03;
}
.sapl-debug-content {
    margin-top: 20px;
}
.sapl-debug-section {
    margin-bottom: 20px;
}
.sapl-debug-section h6 {
    color: #856404;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sapl-debug-section pre {
    background: #fff;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    font-size: 12px;
    max-height: 400px;
    overflow-y: auto;
}
/* ============================================================
   LOADING E ESTADOS
   ============================================================ */
.sapl-loading {
    text-align: center;
    padding: 40px 20px;
}
.sapl-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: sapl-spin 1s linear infinite;
}
@keyframes sapl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.sapl-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.sapl-empty-state i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}
.sapl-empty-state h4 {
    color: #999;
    font-weight: 600;
    margin-bottom: 10px;
}
.sapl-empty-state p {
    color: #999;
    font-size: 14px;
}
/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 768px) {
    .sapl-filtros {
        padding: 15px;
    }
    .sapl-filtros .col-md-2,
    .sapl-filtros .col-md-3,
    .sapl-filtros .col-md-4 {
        margin-bottom: 15px;
    }
    .sapl-resultados {
        padding: 10px 18px;
        margin: 18px 0 22px;
        font-size: 13px;
    }
    .sapl-resultados-numero {
        font-size: 16px;
    }
    .sapl-resultados-icon {
        font-size: 14px;
    }
    .sapl-vereador-foto {
        width: 90px !important;
        height: 90px !important;
        margin: 12px auto 8px;
        object-position: center top; /* Mantém foco no rosto */
        aspect-ratio: 1 / 1; /* Mantém formato quadrado */
    }
    .sapl-vereador-nome {
        font-size: 14px;
        min-height: 35px;
        margin: 6px 0 4px;
    }
    .sapl-vereador-partido {
        font-size: 12px;
        margin: 0 0 6px;
    }
    .sapl-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    .sapl-vereador-badges {
        gap: 3px;
        margin-bottom: 12px;
    }
}
@media (max-width: 576px) {
    .sapl-resultados {
        padding: 10px 15px;
        margin: 15px 0 20px;
        font-size: 13px;
        border-radius: 6px;
    }
    .sapl-resultados-numero {
        font-size: 16px;
    }
    .sapl-resultados-icon {
        font-size: 14px;
    }
    .sapl-resultados-texto {
        gap: 6px;
    }
    .sapl-vereador-card {
        padding: 0 5px;
        margin-bottom: 15px;
    }
    .sapl-vereador-card .cnt-block {
        padding: 0 10px;
    }
    .sapl-vereador-foto {
        width: 80px !important;
        height: 80px !important;
        margin: 10px auto 6px;
        object-position: center top; /* Mantém foco no rosto */
        aspect-ratio: 1 / 1; /* Mantém formato quadrado */
    }
    .sapl-vereador-nome {
        font-size: 13px;
        min-height: 30px;
        margin: 5px 0 3px;
    }
    .sapl-vereador-partido {
        font-size: 11px;
        margin: 0 0 5px;
    }
    .sapl-vereador-badges {
        margin-bottom: 10px;
    }
    .sapl-debug-panel {
        padding: 15px;
    }
}
/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.sapl-text-center {
    text-align: center;
}
.sapl-text-muted {
    color: #6c757d;
}
.sapl-mb-0 { margin-bottom: 0 !important; }
.sapl-mb-1 { margin-bottom: 0.25rem !important; }
.sapl-mb-2 { margin-bottom: 0.5rem !important; }
.sapl-mb-3 { margin-bottom: 1rem !important; }
.sapl-mb-4 { margin-bottom: 1.5rem !important; }
.sapl-mb-5 { margin-bottom: 3rem !important; }
.sapl-mt-0 { margin-top: 0 !important; }
.sapl-mt-1 { margin-top: 0.25rem !important; }
.sapl-mt-2 { margin-top: 0.5rem !important; }
.sapl-mt-3 { margin-top: 1rem !important; }
.sapl-mt-4 { margin-top: 1.5rem !important; }
.sapl-mt-5 { margin-top: 3rem !important; }
/* ============================================================
   DATATABLES SAPL
   ============================================================ */

/* Container principal do DataTables com espaçamento */
.sapl-container .dataTables_wrapper,
.sapl-vereador-container .dataTables_wrapper {
    margin-bottom: 1.5rem !important;
}
/* Espaçamento específico para busca do DataTables em módulos SAPL */
.sapl-container .dataTables_filter,
.sapl-vereador-container .dataTables_filter {
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
}
/* Espaçamento específico para botões do DataTables em módulos SAPL */
.sapl-container .dt-buttons,
.sapl-vereador-container .dt-buttons {
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
}
div.dt-container div.dt-search label {
    margin-left: 1rem !important;
}
/* Container de botões alinhado à esquerda */
.sapl-container .dt-buttons,
.sapl-vereador-container .dt-buttons {
    text-align: left !important;
    float: left !important;
}
/* Espaçamento entre elementos do DataTables */
.sapl-container .dataTables_length,
.sapl-vereador-container .dataTables_length {
    margin-bottom: 0.5rem !important;
}
/* Espaçamento específico para mobile */
@media (max-width: 768px) {
    .sapl-container .dataTables_filter,
    .sapl-vereador-container .dataTables_filter {
        margin-bottom: 1.5rem !important;
        margin-top: 1rem !important;
    }
    .sapl-container .dt-buttons,
    .sapl-vereador-container .dt-buttons {
        margin-bottom: 1rem !important;
        margin-top: 0.5rem !important;
    }
}
/* ============================================
   SKELETON LOADING - UX PROFISSIONAL
   Carregamento elegante de dados da API
   ============================================ */
.sapl-skeleton-container {
    animation: sapl-skeleton-fade-in 0.3s ease-in;
}
.sapl-skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: sapl-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}
@keyframes sapl-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes sapl-skeleton-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Tipos de skeleton */
.sapl-skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}
.sapl-skeleton-title {
    height: 24px;
    margin-bottom: 12px;
    width: 60%;
}
.sapl-skeleton-card {
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.sapl-skeleton-table-row {
    height: 45px;
    margin-bottom: 2px;
}
.sapl-skeleton-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
}
/* Fade out do skeleton quando dados carregam */
.sapl-content-loaded .sapl-skeleton-container {
    animation: sapl-skeleton-fade-out 0.3s ease-out forwards;
}
@keyframes sapl-skeleton-fade-out {
    from { 
        opacity: 1; 
        transform: scale(1);
    }
    to { 
        opacity: 0; 
        transform: scale(0.98);
        display: none; 
    }
}
/* Conteúdo real (inicialmente oculto) */
.sapl-content-real {
    display: none;
}
.sapl-content-loaded .sapl-content-real {
    display: block;
    animation: sapl-content-appear 0.4s ease-out;
}
@keyframes sapl-content-appear {
    from { 
        opacity: 0; 
        transform: translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}
/* Skeleton específico para cards de vereadores */
.sapl-skeleton-vereador-card {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Skeleton específico para tabelas DataTables */
.sapl-skeleton-datatable {
    padding: 20px;
    background: #fff;
    border-radius: 4px;
}
/* Skeleton para abas/perfil */
.sapl-skeleton-perfil-header {
    height: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.sapl-skeleton-aba-content {
    min-height: 300px;
    padding: 20px;
}
/* Responsivo */
@media (max-width: 768px) {
    .sapl-skeleton-card {
        height: 180px;
    }
    .sapl-skeleton-avatar {
        width: 100px;
        height: 100px;
    }
}
/* ============================================================
   SESSÃO PLENÁRIA - SISTEMA DE ABAS COM SUBMENUS
   ============================================================ */
.sessao-tabs-container {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
    z-index: 2000; /* alto para sobrepor conteúdos adjacentes */
    overflow: visible;
}
.sessao-tabs-main {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    background: #f8f9fa;
    flex-wrap: wrap;
    position: relative;
    z-index: 2500;
}
.sessao-tab-item {
    flex: 1;
    min-width: 150px;
    position: relative;
    overflow: visible; /* garantir que o submenu não seja cortado */
}
/* Active state visível e prioritário */
.sessao-tab-link.active {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: #fff !important;
}
.sessao-tab-link.active i,
.sessao-tab-link.active .tab-title,
.sessao-tab-link.active .tab-title::after {
    color: #fff !important;
    opacity: 1 !important;
}
/* Submenu (dropdown) sempre acima do conteúdo/rodapé */
.sessao-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    margin-top: 6px;
    z-index: 3000; /* acima de tudo ao redor */
}
.sessao-submenu.show,
.sessao-submenu.pinned {
    display: block;
    z-index: 3000;
}
.sessao-tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 80px;
    width: 100%;
}
/* Remover seta abaixo (layout antigo) */
.sessao-tab-link::after {
    content: none;
}
.sessao-tab-link .tab-title {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* espaço entre texto e seta */
}
/* Seta ao lado do texto (à direita) */
.sessao-tab-link .tab-title::after {
    content: '▼';
    font-size: 10px;
    opacity: 0.6;
}
.sessao-tab-link.active .tab-title::after {
    opacity: 1;
}
/* Submenu (dropdown) */
.sessao-submenu-item {
    display: block;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}
.sessao-submenu-item:last-child {
    border-bottom: none;
}
.sessao-submenu-item:hover {
    background: #f8f9fa;
    color: #17a2b8;
    padding-left: 25px;
}
.sessao-submenu-item.active {
    background: #17a2b8;
    color: #fff;
    font-weight: 600;
}
.sessao-submenu-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}
/* Quando a aba está ativa, também manter o ícone e seta em branco/visível */
.sessao-tab-link.active i { color: #fff; }
.sessao-tab-link.active .tab-title { color: #fff; }
/* Garantir que submenus visíveis fiquem por cima e exibidos */
.sessao-tab-item .sessao-submenu.show,
.sessao-tab-item .sessao-submenu.pinned {
    display: block;
}
/* Responsivo */
@media (max-width: 768px) {
    .sessao-tabs-main {
        flex-direction: column;
    }
    .sessao-tab-item {
        min-width: 100%;
    }
    .sessao-tab-link {
        min-height: 60px;
        padding: 10px;
    }
    .sessao-submenu {
        position: static;
        border-radius: 0;
        box-shadow: none;
        border-left: 3px solid #17a2b8;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid #dee2e6;
    }
}
/* Forçar dropdown acima de tudo (fallback) */
.sessao-submenu.force-top {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    z-index: 4000 !important;
}
/* ============================================================
   CARDS SAPL (evita conflito com CSS global)
   ============================================================ */
.sapl-card {
    border: 1px solid #dee2e6cf !important;
    border-radius: 2px !important;
    background-color: #fff !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    margin-bottom: 1rem !important;
    float: none !important;
    width: 100% !important;
}
.sapl-card-header {
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid #dee2e6 !important;
    border-top-left-radius: calc(0.375rem - 1px) !important;
    border-top-right-radius: calc(0.375rem - 1px) !important;
}
.sapl-card-body {
    padding: 1.25rem !important;
    flex: 1 1 auto !important;
}
.sapl-card-footer {
    padding: 0.75rem 1.25rem !important;
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-top: 1px solid #dee2e6 !important;
    border-bottom-left-radius: calc(0.375rem - 1px) !important;
    border-bottom-right-radius: calc(0.375rem - 1px) !important;
}
/* ============================================================
   MODAL DE AVISO - Filtro Lento
   ============================================================ */
#modalAvisoFiltroLento .modal-header {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    font-weight: 600;
}
#modalAvisoFiltroLento .modal-body {
    padding: 1.5rem;
}
#modalAvisoFiltroLento .alert-warning {
    border-left: 4px solid #ffc107;
}
#modalAvisoFiltroLento .alert-info {
    border-left: 4px solid #17a2b8;
}
#modalAvisoFiltroLento ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}
#modalAvisoFiltroLento ul li {
    margin-bottom: 0.5rem;
}
#modalAvisoFiltroLento .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    font-weight: 600;
}
#modalAvisoFiltroLento .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* ============================================================
   MODAL DE BUSCA DE AUTOR - Sistema de busca inteligente
   ============================================================ */

/* Dialog do modal - controla tamanho */
#modalBuscarAutor .modal-dialog {
    max-width: 800px;
    max-height: 90vh;
    margin: 1.75rem auto;
}
#modalBuscarAutor .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
/* Cabeçalho do modal (fixo) */
#modalBuscarAutor .modal-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
    border-bottom: none;
    border-radius: 0.3rem 0.3rem 0 0;
    flex-shrink: 0;
}
#modalBuscarAutor .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}
/* Body do modal (scrollável) */
#modalBuscarAutor .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    padding: 1.5rem;
}
/* Footer do modal (fixo) */
#modalBuscarAutor .modal-footer {
    flex-shrink: 0;
    border-top: 1px solid #dee2e6;
}
/* Campo de busca grande e destacado */
#inputBuscarAutor {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}
#inputBuscarAutor:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
    transform: scale(1.01);
}
#inputBuscarAutor::placeholder {
    color: #adb5bd;
    font-style: italic;
}
/* Botão de busca do input-group */
#btnBuscarAutorModal {
    background: #17a2b8;
    border-color: #17a2b8;
    transition: all 0.3s ease;
}
#btnBuscarAutorModal:hover {
    background: #138496;
    border-color: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* Select de tipo com estilo */
#selectTipoAutorModal {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}
#selectTipoAutorModal:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.15);
}
/* Loading spinner */
#loadingAutoresModal {
    padding: 3rem 1rem;
}
#loadingAutoresModal .spinner-border {
    border-width: 0.3rem;
}
/* Lista de autores - com scroll interno */
#listaAutoresModal {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
}
/* Estilo do scrollbar da lista (Webkit) */
#listaAutoresModal::-webkit-scrollbar {
    width: 10px;
}
#listaAutoresModal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 4px 0;
}
#listaAutoresModal::-webkit-scrollbar-thumb {
    background: #17a2b8;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}
#listaAutoresModal::-webkit-scrollbar-thumb:hover {
    background: #138496;
}
#listaAutoresModal .list-group-item {
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}
#listaAutoresModal .list-group-item:first-child {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}
#listaAutoresModal .list-group-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}
#listaAutoresModal .list-group-item:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 3px solid #17a2b8;
    padding-left: calc(1.25rem - 3px);
    transform: translateX(3px);
}
#listaAutoresModal .list-group-item:active {
    background: linear-gradient(90deg, #d1ecf1 0%, #bee5eb 100%);
}
/* Nome do autor em destaque */
#listaAutoresModal .list-group-item strong {
    font-size: 1.05rem;
    color: #495057;
    display: block;
    margin-bottom: 0.25rem;
}
#listaAutoresModal .list-group-item:hover strong {
    color: #17a2b8;
}
/* Tipo do autor (subtitle) */
#listaAutoresModal .list-group-item small {
    font-size: 0.875rem;
    color: #6c757d;
}
/* Ícone de adicionar */
#listaAutoresModal .fa-plus-circle {
    font-size: 1.5rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}
#listaAutoresModal .list-group-item:hover .fa-plus-circle {
    opacity: 1;
    transform: scale(1.2);
}
/* Contador de resultados */
#totalAutoresModal {
    font-weight: 700;
    color: #17a2b8;
    font-size: 1.1rem;
}
/* Alertas informativos */
#nenhumAutorModal,
#mensagemInicialModal {
    border-left: 4px solid;
}
#nenhumAutorModal {
    border-left-color: #17a2b8;
}
#mensagemInicialModal {
    border-left-color: #ffc107;
    background-color: #fffbf0;
}
#mensagemInicialModal ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}
#mensagemInicialModal li {
    margin-bottom: 0.5rem;
}
#mensagemInicialModal li:last-child {
    margin-bottom: 0;
}
/* Feedback de autor selecionado no formulário */
#nome_autor {
    font-size: 1rem;
    transition: all 0.3s ease;
}
#nome_autor i {
    font-size: 1.1rem;
}
/* Badge de tipo no nome do autor */
#nome_autor .badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    vertical-align: middle;
}
/* Animação de seleção bem-sucedida */
@keyframes autor-selecionado-pulse {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: #d4edda;
    }
}
/* Botões do formulário principal */
#btn-pesquisar-autor,
#btn-limpar-autor {
    transition: all 0.3s ease;
}
#btn-pesquisar-autor:hover {
    background-color: #138496;
    border-color: #117a8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#btn-limpar-autor:hover {
    background-color: #5a6268;
    border-color: #545b62;
}
/* ============================================================
   CAMPO AUTOR - Layout melhorado e responsivo
   ============================================================ */

/* Container do campo autor */
.sapl-autor-container {
    position: relative;
}
/* Status do autor selecionado */
.sapl-autor-status,
#status_autor {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    min-height: calc(1.5em + 0.75rem + 2px); /* Mesma altura do .form-control Bootstrap */
    height: auto;
    display: flex;
    align-items: center;
}
.sapl-autor-status:hover,
#status_autor:hover {
    border-color: #17a2b8;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.1);
}
.sapl-autor-status i {
    color: #6c757d;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}
.sapl-autor-status .text-muted {
    color: #6c757d !important;
    font-size: 0.95rem;
    line-height: 1.4;
}
/* Autor selecionado - estilo diferente */
.sapl-autor-status.autor-selecionado,
#status_autor.autor-selecionado {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
}
.sapl-autor-status.autor-selecionado i,
#status_autor.autor-selecionado i {
    color: #28a745;
}
.sapl-autor-status.autor-selecionado .text-muted,
#status_autor.autor-selecionado .text-muted {
    color: #155724 !important;
    font-weight: 500;
}
/* Botões de ação do autor */
.sapl-autor-botoes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.sapl-autor-botoes .btn {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 0.375rem;
}
.sapl-autor-botoes .btn-primary {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    flex: 1;
    min-width: 140px;
}
.sapl-autor-botoes .btn-primary:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}
.sapl-autor-botoes .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    min-width: 80px;
}
.sapl-autor-botoes .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}
/* Texto de ajuda */
.sapl-autor-ajuda {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.sapl-autor-ajuda i {
    color: #17a2b8;
    font-size: 0.9rem;
}
/* Responsividade */
@media (max-width: 768px) {
    .sapl-autor-botoes {
        flex-direction: column;
    }
    .sapl-autor-botoes .btn {
        width: 100%;
        min-width: auto;
    }
    .sapl-autor-status {
        padding: 0.6rem 0.8rem;
        min-height: 2.2rem;
    }
    .sapl-autor-status .text-muted {
        font-size: 0.9rem;
    }
}
@media (max-width: 576px) {
    .sapl-autor-status {
        padding: 0.5rem 0.7rem;
        min-height: 2rem;
    }
    .sapl-autor-status .text-muted {
        font-size: 0.85rem;
    }
    .sapl-autor-ajuda {
        font-size: 0.8rem;
    }
}
/* Responsividade */
@media (max-width: 768px) {
    /* Modal ocupa mais espaço em mobile */
    #modalBuscarAutor .modal-dialog {
        margin: 0.5rem;
        max-height: 95vh;
    }
    #modalBuscarAutor .modal-content {
        max-height: 95vh;
    }
    #modalBuscarAutor .modal-body {
        padding: 1rem;
    }
    #inputBuscarAutor {
        font-size: 1rem;
        padding: 0.65rem 0.85rem;
    }
    #btnBuscarAutorModal {
        padding: 0.65rem 1.25rem;
        font-size: 1rem;
    }
    /* Lista um pouco menor em tablets */
    #listaAutoresModal {
        max-height: 300px;
    }
    #listaAutoresModal .list-group-item {
        padding: 0.85rem 1rem;
    }
    #listaAutoresModal .list-group-item strong {
        font-size: 1rem;
    }
    /* Scrollbar mais fina em mobile */
    #listaAutoresModal::-webkit-scrollbar {
        width: 6px;
    }
}
@media (max-width: 576px) {
    /* Modal fullscreen em smartphones */
    #modalBuscarAutor .modal-dialog {
        margin: 0;
        max-width: 100%;
        max-height: 100vh;
    }
    #modalBuscarAutor .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    #modalBuscarAutor .modal-header {
        border-radius: 0;
    }
    #modalBuscarAutor .modal-title {
        font-size: 1.1rem;
    }
    #inputBuscarAutor {
        font-size: 0.95rem;
    }
    #btnBuscarAutorModal {
        padding: 0.65rem 1rem;
    }
    /* Lista ocupa mais espaço em mobile */
    #listaAutoresModal {
        max-height: 50vh;
    }
    #listaAutoresModal .list-group-item {
        padding: 0.75rem 0.85rem;
    }
    #listaAutoresModal .fa-plus-circle {
        font-size: 1.25rem;
    }
    /* Scrollbar ainda mais fina */
    #listaAutoresModal::-webkit-scrollbar {
        width: 4px;
    }
}
/* =====================================================
   LISTA DETALHADA DE MATÉRIAS - Pesquisar Matéria
   ===================================================== */

/* Sidebar com borda verde - IDÊNTICA ao materia-info-box mas VERDE */
.materia-info-sidebar {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 1px solid #c8e6c9;
    border-radius: 2px;
    padding: 1rem;
    position: sticky;
    top: 20px;
}
.materia-info-sidebar h6 {
    font-weight: 600;
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-bottom: 2px solid #28a745;
    padding-bottom: 0.5rem;
}
.materia-info-sidebar h6 i {
    margin-right: 0.5rem;
}
.materia-info-sidebar .info-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(40, 167, 69, 0.1);
}
.materia-info-sidebar .info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.materia-info-sidebar .info-item label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    display: block;
}
.materia-info-sidebar .info-value {
    font-weight: 600;
    color: #28a745;
}
/* Norma com fundo verde claro */
.norma-campo {
    background-color: #f8fff9;
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 3px solid #28a745;
}
.borda-norma-item-verde {
    background: #f8f9fa; 
    border-radius: 4px; 
    border-left: 2px solid #28a745;
}
.borda-norma-item-azul {
    background: #f8f9fa; 
    border-radius: 4px; 
    border-left: 2px solid #17a2b8;
}
/* Container da lista */
.materia-lista-detalhada {
    padding: 0;
}
/* Item individual da matéria */
.materia-item-detalhado {
    border: 1px solid #dee2e6cf;
    border-radius: 2px;
    margin-bottom: 1rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    overflow: hidden;
}
.materia-item-detalhado:last-child {
    margin-bottom: 0;
}
.materia-item-detalhado:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* ============================================================
   MATÉRIAS LEGISLATIVAS
   ============================================================ */

/* Cores dinâmicas para estatísticas gerais de matérias */
#sapl-estatisticas-materia-gerais .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-materia-gerais .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-materia-gerais .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-materia-gerais .col-md-2:nth-child(2) .sapl-stat-number { color: #28a745; } /* Em Tramitação */
#sapl-estatisticas-materia-gerais .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-materia-gerais .col-md-2:nth-child(3) .sapl-stat-number { color: #6c757d; } /* Tipos */

/* Cores dinâmicas para estatísticas filtradas de matérias */
#sapl-estatisticas-materia-filtrados .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-materia-filtrados .col-md-2:nth-child(1) .sapl-stat-number { color: #6c757d; } /* Resultados */
#sapl-estatisticas-materia-filtrados .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-materia-filtrados .col-md-2:nth-child(2) .sapl-stat-number { color: #28a745; } /* Em Tramitação */
#sapl-estatisticas-materia-filtrados .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-materia-filtrados .col-md-2:nth-child(3) .sapl-stat-number { color: #6c757d; } /* Tipos */
/* Cabeçalho da matéria */
.materia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}
.materia-titulo {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.materia-titulo strong {
    font-size: 1.1rem;
    color: #212529;
}
.materia-titulo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}
.materia-titulo-link:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.8;
}
.materia-titulo-link:focus {
    text-decoration: none;
    color: inherit;
    outline: 2px solid #007bff;
    outline-offset: 2px;
}
.materia-titulo .badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
}
.materia-acoes {
    display: flex;
    gap: 0.5rem;
}
/* Corpo da matéria */
.materia-corpo {
    padding: 1.25rem;
}
/* Campo individual */
.materia-campo {
    margin-bottom: 1rem;
}
.materia-campo:last-child {
    margin-bottom: 0;
}
.materia-campo label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.materia-campo label i {
    color: #0066cc;
    margin-right: 0.35rem;
    width: 1.2rem;
    text-align: center;
}
.materia-campo p {
    margin: 0;
    color: #212529;
    line-height: 1.6;
}
.materia-campo p.text-muted {
    font-size: 0.9rem;
}
/* Info Box (Coluna Direita) */
.materia-info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8fe 100%);
    border: 1px solid #bbdefb;
    border-radius: 0.5rem;
    padding: 1rem;
    position: sticky;
    top: 20px;
}
.materia-info-box h6 {
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 0.5rem;
}
.materia-info-box h6 i {
    margin-right: 0.5rem;
}
.info-item {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(25, 118, 210, 0.1);
}
.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.info-item small {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.info-item strong {
    display: block;
    color: #1976d2;
    font-size: 0.95rem;
}
.info-item-verde {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(25, 118, 210, 0.1);
}
.info-item-verde:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.info-item-verde small {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.info-item-verde strong {
    display: block;
    color: #28a745;
    font-size: 0.95rem;
}
/* Badges customizados */
.materia-campo .badge-light {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
}
/* Botão de documento */
.materia-campo .btn-outline-danger {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.materia-campo .btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}
/* Responsividade */
@media (max-width: 768px) {
    .materia-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .materia-titulo {
        width: 100%;
    }
    .materia-acoes {
        width: 100%;
    }
    .materia-acoes .btn {
        width: 100%;
    }
    .materia-info-box {
        position: static;
        margin-top: 1rem;
    }
    .materia-corpo {
        padding: 1rem;
    }
    .materia-campo {
        margin-bottom: 1.25rem;
    }
}
/* Animação de entrada suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Texto articulado */
.ta-texto {
    font-family: 'Roboto', sans-serif;
}
.cp {
    font-size: 1rem;
}
.cp .cp-linha-vigencias {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 3rem 0 2rem;
    padding: 0;
    justify-content: center;
}
.cp .cp-linha-vigencias ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cp .cp-linha-vigencias>li {
    display: flex;
    position: relative;
    flex: 1 1 auto;
    justify-content: center;
    line-height: 0;
    background: #000;
    height: 2px;
    text-align: center;
    max-width: 4rem;
}
.cp .cp-linha-vigencias>li .circle {
    display: block;
    width: 10px;
    background: #000;
    height: 10px;
    margin: -5px auto 0;
    border-radius: 50%;
}
.cp .cp-linha-vigencias>li>a {
    position: absolute;
    white-space: nowrap;
    line-height: 1rem;
    text-align: center;
    color: #000;
}
.cp .cp-linha-vigencias>li:nth-child(2n)>a {
    top: 100%;
    margin-top: 5px;
}
.cp .cp-linha-vigencias>li:nth-child(odd)>a {
    bottom: 100%;
    margin-bottom: 5px;
}
.cp .cp-linha-vigencias>li ul {
    position: absolute;
    display: none;
    background: #fff;
    margin: 30px 0;
    border: 1px solid #aaa;
    box-shadow: 0 0 10px #aaa;
    align-items: center;
    z-index: 5;
}
.cp .cp-linha-vigencias>li ul:before {
    content: " ";
    width: 2px;
    height: 30px;
    position: absolute;
    display: block;
    background-color: #aaa;
    bottom: 100%;
    left: 50%;
    margin-left: -1px;
}
.cp .cp-linha-vigencias>li.active .circle,
.cp .cp-linha-vigencias>li.ta-vigencia-open .circle {
    width: 18px;
    height: 18px;
    margin: -9px auto 0;
    background: #666;
}
.cp .cp-linha-vigencias>li.active ul,
.cp .cp-linha-vigencias>li.ta-vigencia-open ul {
    display: flex;
    flex-direction: column;
}
.tipo-vigencias {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    background: rgba(9, 22, 46, 0.92);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tipo-vigencias:hover {
    opacity: 1;
}
.tipo-vigencias .btn-group-sm>.btn {
    border: 0;
    background: transparent !important;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0 0.15rem;
    padding: 0.35rem 0.9rem;
    min-width: 3.1rem;
}
.tipo-vigencias .btn-group-sm>.btn:not(.active) {
    color: rgba(255, 255, 255, 0.72);
}
.tipo-vigencias .btn-group-sm>.btn.active {
    background: #f2f4ff !important;
    color: #0f2858;
    border-radius: 999px;
}
@media (max-width: 768px) {
    .tipo-vigencias {
        width: calc(100% - 2rem);
        left: 50%;
        transform: translateX(-50%);
        padding: 0.3rem 0.4rem;
    }
    .tipo-vigencias .btn-group-sm>.btn {
        flex: 1;
        margin: 0 0.05rem;
        font-size: 0.85rem;
    }
}
.cp .cp-linha-vigencias>li ul a {
    display: block;
    white-space: nowrap;
    line-height: 1.8rem;
    padding: 0 10px;
    font-size: 0.95rem;
    color: #222;
}
.cp .cp-linha-vigencias>li ul a:hover {
    background: #eee;
}
.cp .desativado .dpt-link,
.cp .desativado .dtxt {
    text-decoration: line-through;
    color: #999 !important;
}
.cp a {
    text-decoration: none;
    cursor: pointer;
}
.cp .dpt {
    font-size: 1em;
    position: relative;
    padding: 0.2rem 0;
}
.cp .dpt.indent {
    padding-left: 1em;
}
.cp .dpt .dtxt {
    display: inline;
}
.cp .dpt .dtxt>:not(table):first-child {
    display: inline !important;
}
.cp .dpt .titulo,
.cp .dpt .capitulo,
.cp .dpt .secao,
.cp .dpt .subsecao,
.cp .dpt .disp_preliminares,
.cp .dpt .disp_gerais,
.cp .dpt .disp_finais,
.cp .dpt .disp_transitorias {
    text-align: center;
    margin-bottom: 1em;
    margin-top: 2em;
    font-weight: 700;
    font-variant: small-caps;
}
.cp .dpt .artigo {
    font-size: 1.15em;
    float: left;
}
.cp .dpt .caput {
    margin-top: 0.35em;
    font-size: 1.15em;
}
.cp .dpt .texto_n_estruturado {
    margin-top: 0.35em;
    font-size: 1.05em;
}
.cp .dpt .texto_n_estruturado .dtxt {
    display: inline;
}
.cp .dpt .texto_n_estruturado .dtxt>:not(table):first-child {
    display: inline !important;
}
.cp .dpt .ementa {
    padding: 2em 0 2em 35%;
    font-weight: 700;
    font-size: 1.15em;
}
.cp .dpt .paragrafo {
    font-size: 1.1em;
    margin-top: 0.25em;
}
.cp .dpt .inciso {
    font-size: 1.1em;
    margin-top: 0.2em;
}
.cp .dpt .alinea,
.cp .dpt .item {
    font-size: 1em;
    margin-top: 2px;
}
.cp .dpt .assinatura,
.cp .dpt .fecho_lei {
    margin-top: 0.6em;
    font-size: 1.1em;
    font-weight: 600;
}
.cp .dpt .bloco_alteracao {
    padding-left: 10%;
    font-style: italic;
    color: #018;
}
.cp .dpt .bloco_alteracao a,
.cp .dpt .bloco_alteracao table,
.cp .dpt .bloco_alteracao table td {
    color: #018 !important;
    text-decoration: underline;
}
.cp .dpt .dn {
    font-weight: 400;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}
.cp .dpt .dn ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cp .dpt .dn .dnli ul {
    display: inline-flex;
    gap: 0.25rem;
    color: #888;
}
.cp .dpt .dn .ntexto a {
    color: #03a203;
}
.cp .dpt .dptt {
    clear: left;
}
.cp .dpt .dptt>a {
    color: #000;
    font-weight: 600;
}
.cp .dpt .dptt>a.nota-alteracao {
    color: #02baf2;
    font-size: 0.75em;
    margin-left: 0.5em;
}
.cp .dpt .dptt>a.nota-alteracao:hover {
    text-decoration: underline;
}
.cp .revogado {
    color: #800;
}
.cp .revogado .dpt-link {
    color: #999 !important;
}
.nota-alteracao {
    display: inline-block;
    margin-left: 0.5rem;
}
.ta-timeline li {
    border-bottom: 1px dashed #e5e5e5;
    padding-bottom: 0.5rem;
}
.ta-timeline li:last-child {
    border-bottom: none;
}
.ta-node__texto {
    display: inline;
    line-height: 1.6;
}
.ta-node__texto--diff {
    display: inline;
}
.ta-node__texto--alterado {
    color: #13824f !important;
    font-weight: 600;
}
.ta-node--desativado .dpt-link,
.ta-node--desativado .dtxt,
.ta-node--desativado .ta-node__texto {
    color: #79808d !important;
    text-decoration: line-through;
}
.ta-node--revogado .dpt-link,
.ta-node--revogado .dtxt,
.ta-node--revogado .ta-node__texto {
    color: #b23c17 !important;
    text-decoration: line-through;
}
.ta-node--hidden {
    display: none !important;
}
.ta-node__alteracao {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #6c757d;
}
.ta-node__alteracao a {
    color: inherit;
    text-decoration: underline;
}
.ta-note-hidden {
    display: none !important;
}
.ta-node--focus {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
    border-color: #0d6efd;
}
.ta-node__texto--diff .ta-diff--added {
    background-color: rgba(18, 156, 95, 0.15);
    border-radius: 2px;
    color: #0d7d4a;
    font-weight: 600;
}
.ta-node__texto--diff .ta-diff--removed {
    background-color: transparent;
    text-decoration: line-through;
    border-radius: 2px;
    color: #b22f2f;
}
.ta-vigencia-wrapper {
    padding-top: 0.5rem;
}
.ta-vigencia-line {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    border-top: 2px solid #e3e6ef;
}
.ta-vigencia-item {
    position: relative;
    text-align: center;
    margin-right: 1.25rem;
    padding-top: 0.75rem;
}
.ta-vigencia-link {
    display: inline-block;
    font-weight: 600;
    color: #0d6efd;
}
.ta-vigencia-link:hover,
.ta-vigencia-link:focus {
    text-decoration: underline;
}
.ta-vigencia-year {
    font-weight: 600;
    font-size: 0.95rem;
    color: #343a40;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.ta-vigencia-year:focus {
    outline: none;
    text-decoration: underline;
}
.ta-vigencia-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d6efd;
    display: block;
    margin: 0.35rem auto 0;
}
.ta-vigencia-item.active .ta-vigencia-dot {
    background: #495057;
}
.ta-vigencia-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e3e6ef;
    border-radius: 0.5rem;
    min-width: 260px;
    list-style: none;
    padding: 0.75rem 1rem;
    text-align: left;
    z-index: 5;
}
.ta-vigencia-item.ta-vigencia-ano.ta-vigencia-item--open .ta-vigencia-dropdown {
    display: block;
}
.ta-vigencia-dropdown li {
    margin-bottom: 0.5rem;
}
.ta-vigencia-dropdown li:last-child {
    margin-bottom: 0;
}
.ta-vigencia-dropdown strong {
    display: block;
    color: #212529;
}
.ta-vigencia-dropdown small {
    font-size: 0.8rem;
}
.ta-vigencia-active {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #f8f9fb;
    border: 1px solid #e3e6ef;
}
.ta-vigencia-item.active .ta-vigencia-link,
.ta-vigencia-item.active .ta-vigencia-year {
    color: #0d6efd;
    font-weight: 700;
}
@media (max-width: 768px) {
    .ta-vigencia-line {
        flex-direction: column;
        border-top: none;
    }
    .ta-vigencia-item {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .ta-vigencia-dropdown {
        position: relative;
        transform: none;
        left: 0;
        width: 100%;
        box-shadow: none;
    }
}
.materia-item-detalhado {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}
.materia-item-detalhado:nth-child(1) { animation-delay: 0.05s; }
.materia-item-detalhado:nth-child(2) { animation-delay: 0.1s; }
.materia-item-detalhado:nth-child(3) { animation-delay: 0.15s; }
.materia-item-detalhado:nth-child(4) { animation-delay: 0.2s; }
.materia-item-detalhado:nth-child(5) { animation-delay: 0.25s; }
/* Lista de votações */
.votacoes-lista {
    margin-top: 0.5rem;
}
.votacao-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-left: 2px solid #0066cc;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}
.votacao-item:last-child {
    margin-bottom: 0;
}
.votacao-item .badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
}
.votacao-item .btn-xs {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
/* Lista de normas */
.normas-lista p {
    padding: 0.5rem 0.75rem;
    background: #e8f5e9;
    border-left: 2px solid #4caf50;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.normas-lista p:last-child {
    margin-bottom: 0;
}
.normas-lista .btn-xs {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
/* Ajustes para impressão */
@media print {
    .materia-header {
        background: white !important;
        border: 1px solid #000;
    }
    .materia-acoes {
        display: none;
    }
    .materia-info-box {
        border: 1px solid #000;
        break-inside: avoid;
    } 
    .materia-item-detalhado {
        page-break-inside: avoid;
        break-inside: avoid;
    } 
    .votacao-item .btn,
    .normas-lista .btn {
        display: none;
    }
}
/* ========================================================================
   MÓDULO MATÉRIAS - LAYOUT MODERNO
   ======================================================================== */

/* Cards de Matérias */
.materia-card {
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}
.materia-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.materia-card-header {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 16px;
    color: #495057;
}
.materia-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.materia-card-header i {
    font-size: 18px;
    opacity: 0.95;
}
.materia-card-body {
    padding: 24px;
}
/* Grid de Informações */
.materia-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 0;
}
.materia-info-item {
    padding: 10px 18px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 2px solid #17a2b8;
    transition: all 0.2s ease;
}
.materia-info-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}
.materia-info-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.materia-info-item label i {
    color: #17a2b8;
    font-size: 16px;
}
.materia-info-item .value {
    color: #212529;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}
.materia-info-item .value.text-muted {
    color: #6c757d !important;
    font-style: italic;
    font-weight: 400;
}
/* Badges de Status */
.materia-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 14px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.materia-badge-primary {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
}
.materia-badge-success {
    background: linear-gradient(135deg, #11998e 0%, #13a149 100%);
    color: #fff;
}
.materia-badge-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}
.materia-badge-info {
    background: linear-gradient(135deg, #4facfe 0%, #03c0c9 100%);
    color: #fff;
}
.materia-badge-secondary {
    background: #e9ecef;
    color: #495057;
}
/* Seções com Ícones */
.materia-section {
    margin-bottom: 24px;
}
.materia-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #17a2b8;
    display: flex;
    align-items: center;
    gap: 10px;
}
.materia-section-title i {
    color: #17a2b8;
    font-size: 20px;
}
/* Lista de Anexadas */
.materia-anexadas-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}
.materia-anexadas-lista li {
    padding: 14px 18px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 2px solid #17a2b8;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.materia-anexadas-lista li:hover {
    background: #e9ecef;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.materia-anexadas-lista li:before {
    content: "\f0c1";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #17a2b8;
    font-size: 16px;
}
.materia-anexadas-lista li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    transition: color 0.2s ease;
}
.materia-anexadas-lista li a:hover {
    color: #17a2b8;
}
/* Texto Completo - Ementa */
.materia-ementa {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 2px solid #e9ecef;
    line-height: 1.8;
    font-size: 15px;
    color: #495057;
    position: relative;
}
.materia-ementa:before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 32px;
    color: #e9ecef;
    opacity: 0.5;
}
.materia-ementa p {
    margin: 0;
    position: relative;
    z-index: 1;
    padding-left: 40px;
}
/* Mensagem Vazia */
.materia-empty {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}
.materia-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #dee2e6;
}
.materia-empty p {
    margin: 0;
    font-size: 15px;
}
/* Animação de Entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.materia-card {
    animation: fadeInUp 0.4s ease-out;
}
.materia-card:nth-child(1) { animation-delay: 0.05s; }
.materia-card:nth-child(2) { animation-delay: 0.1s; }
.materia-card:nth-child(3) { animation-delay: 0.15s; }
.materia-card:nth-child(4) { animation-delay: 0.2s; }
.materia-card:nth-child(5) { animation-delay: 0.25s; }
/* Responsivo */
@media (max-width: 768px) {
    .materia-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }    
    .materia-card-body {
        padding: 18px 16px;
    }   
    .materia-card-header {
        padding: 10px 16px;
    }
    .materia-card-header h3 {
        font-size: 15px;
    } 
    .materia-section-title {
        font-size: 16px;
    }
}
.tramitacao-timeline {
    position: relative;
    padding: 20px 0;
}
.tramitacao-timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #17a2b8;
}
.tramitacao-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}
.tramitacao-item:nth-child(1) { animation-delay: 0.1s; }
.tramitacao-item:nth-child(2) { animation-delay: 0.2s; }
.tramitacao-item:nth-child(3) { animation-delay: 0.3s; }
.tramitacao-item:nth-child(4) { animation-delay: 0.4s; }
.tramitacao-item:nth-child(5) { animation-delay: 0.5s; }
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.tramitacao-icon {
    position: absolute;
    left: 1px;
    top: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 2;
}
.tramitacao-icon.ativo {
    background: linear-gradient(135deg, #28a745, #20c997);
}
.tramitacao-icon.arquivado {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}
.tramitacao-icon.aguardando {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}
.tramitacao-icon.enviado {
    background: linear-gradient(135deg, #17a2b8, #138496);
}
.tramitacao-icon.default {
    background: linear-gradient(135deg, #6c757d, #495057);
}
.tramitacao-card {
    background: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-left: 2px solid #17a2b8;
    transition: all 0.3s ease;
}
.tramitacao-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}
.tramitacao-data {
    font-size: 16px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 12px;
}
.tramitacao-data i {
    color: #17a2b8;
}
.tramitacao-fluxo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}
.tramitacao-unidade {
    background: #f8f9fa;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    border-left: 2px solid #17a2b8;
}
.tramitacao-arrow {
    color: #17a2b8;
    font-size: 22px;
    font-weight: bold;
}
.tramitacao-status {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}
.tramitacao-status.ativo {
    background: #d4edda;
    color: #155724;
}
.tramitacao-status.arquivado {
    background: #f8d7da;
    color: #721c24;
}
.tramitacao-status.aguardando {
    background: #fff3cd;
    color: #856404;
}
.tramitacao-status.enviado {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #17a2b8;
}
.tramitacao-status.default {
    background: #e2e3e5;
    color: #383d41;
}
.tramitacao-detalhes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}
.tramitacao-detalhes p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}
.tramitacao-detalhes strong {
    color: #495057;
}

/* ============================================================
   ESTATÍSTICAS DE VEREADORES (Lista de Vereadores)
   ============================================================ */

/* Container principal das estatísticas */
.sapl-estatisticas-container {
    padding: 5px 7px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

/* Item individual de estatística */
.sapl-stat-item {
    padding: 6px;
    transition: transform 0.2s ease;
    border-radius: 4px;
}

.sapl-stat-item:hover {
    transform: translateY(-2px);
    background-color: rgba(0, 0, 0, 0.02);
}

/* Número da estatística (aumentado) */
.sapl-stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

/* Cores específicas para cada tipo de estatística */
#sapl-estatisticas-vereadores .col-6:nth-child(1) .sapl-stat-number {
    color: #17a2b8; /* Total */
}

#sapl-estatisticas-vereadores .col-6:nth-child(2) .sapl-stat-number {
    color: #28a745; /* Ativos */
}

#sapl-estatisticas-vereadores .col-6:nth-child(3) .sapl-stat-number {
    color: #6c757d; /* Inativos */
}

#sapl-estatisticas-vereadores .col-6:nth-child(4) .sapl-stat-number {
    color: #007bff; /* Titulares */
}

#sapl-estatisticas-vereadores .col-6:nth-child(5) .sapl-stat-number {
    color: #ffc107; /* Suplentes */
}

#sapl-estatisticas-vereadores .col-6:nth-child(6) .sapl-stat-number {
    color: #6610f2; /* Partidos */
}

/* Label da estatística (aumentado) */
.sapl-stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* Cores dinâmicas para estatísticas de cargos (Mesa Diretora) */
#sapl-estatisticas-mesa .col-6:nth-child(2) .sapl-stat-number {
    color: #17a2b8; /* Primeiro cargo */
}
#sapl-estatisticas-mesa .col-6:nth-child(3) .sapl-stat-number {
    color: #28a745; /* Segundo cargo */
}
#sapl-estatisticas-mesa .col-6:nth-child(4) .sapl-stat-number {
    color: #007bff; /* Terceiro cargo */
}
#sapl-estatisticas-mesa .col-6:nth-child(5) .sapl-stat-number {
    color: #ffc107; /* Quarto cargo */
}
#sapl-estatisticas-mesa .col-6:nth-child(6) .sapl-stat-number {
    color: #6610f2; /* Quinto cargo */
}
#sapl-estatisticas-mesa .col-6:nth-child(7) .sapl-stat-number {
    color: #6c757d; /* Partidos */
}

/* ============================================================
   FILTROS ATIVOS (Badges)
   ============================================================ */

/* Container de filtros ativos */
.sapl-filtros-ativos-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sapl-filtros-ativos-label {
    margin-right: 5px;
}

/* Link de remoção de filtro dentro do badge */
.sapl-filtro-badge-remove {
    text-decoration: none;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
}

.sapl-filtro-badge-remove:hover {
    opacity: 1;
}

/* Espaçamento da seção de estatísticas */
.sapl-estatisticas-section {
    margin-bottom: 1rem;
}

/* Wrapper para estatísticas (margem superior) */
.sapl-estatisticas-wrapper {
    margin-top: 1rem;
}

/* Distribuição igual das estatísticas (flexbox) */
#sapl-estatisticas-bancadas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.sapl-stat-col {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 768px) {
    .sapl-stat-col {
        flex: 0 1 calc(20% - 10px); /* 5 itens por linha, cada um com ~20% menos espaçamento */
        max-width: calc(20% - 10px);
        margin: 0 5px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sapl-stat-item {
        margin-bottom: 5px;
    }
    
    .sapl-stat-number {
        font-size: 26px;
    }
    
    .sapl-stat-label {
        font-size: 11px;
    }
    
    .sapl-stat-col {
        flex: 0 1 calc(50% - 10px); /* 2 por linha no mobile */
        max-width: calc(50% - 10px);
        margin: 0 5px;
    }
}

/* ============================================================
   BANCADAS PARLAMENTARES
   ============================================================ */

/* Cores dinâmicas para estatísticas de bancadas */
#sapl-estatisticas-bancadas .col-6:nth-child(1) .sapl-stat-number { color: #17a2b8; } /* Total */
#sapl-estatisticas-bancadas .col-6:nth-child(2) .sapl-stat-number { color: #28a745; } /* Ativas */
#sapl-estatisticas-bancadas .col-6:nth-child(3) .sapl-stat-number { color: #dc3545; } /* Extintas */
#sapl-estatisticas-bancadas .col-6:nth-child(4) .sapl-stat-number { color: #007bff; } /* Legislaturas */
#sapl-estatisticas-bancadas .col-6:nth-child(5) .sapl-stat-number { color: #6c757d; } /* Partidos */

/* Links de bancadas na tabela */
.sapl-bancada-link {
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.sapl-bancada-link:hover {
    color: #0056b3;
    text-decoration: underline;
    transform: translateX(2px);
}

.sapl-bancada-link strong {
    font-weight: 600;
}

/* Badges de status */
.sapl-bancada-status {
    font-size: 0.875rem;
    padding: 5px 10px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 3px;
}

.sapl-bancada-status i {
    font-size: 0.75rem;
}

/* Badges de partido */
.sapl-bancada-partido {
    font-size: 0.875rem;
    padding: 5px 10px;
    font-weight: 500;
    background-color: #6c757d;
    border-color: #6c757d;
}

.sapl-bancada-partido:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Botão de detalhes */
.sapl-bancada-btn-detalhes {
    transition: all 0.2s ease;
    font-weight: 500;
}

.sapl-bancada-btn-detalhes:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Footer da tabela */
.sapl-bancada-tfoot {
    background-color: #f8f9fa;
    padding: 12px;
    font-size: 0.95rem;
    border-top: 2px solid #dee2e6;
}

/* Melhorias visuais na tabela de bancadas */
#tabela-bancadas tbody tr {
    transition: background-color 0.15s ease;
}

#tabela-bancadas tbody tr:hover {
    background-color: #f8f9fa;
}

#tabela-bancadas thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
}

#tabela-bancadas tbody td {
    padding: 12px 8px;
    vertical-align: middle;
}

#tabela-bancadas tbody td strong {
    color: #212529;
}

/* Responsive para tabela de bancadas */
@media (max-width: 768px) {
    .sapl-bancada-link {
        font-size: 0.9rem;
    }
    
    .sapl-bancada-status,
    .sapl-bancada-partido {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .sapl-bancada-btn-detalhes {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    #tabela-bancadas thead th,
    #tabela-bancadas tbody td {
        padding: 8px 5px;
        font-size: 0.875rem;
    }
}

/* ============================================================
   BLOCOS PARLAMENTARES
   ============================================================ */

/* Cores dinâmicas para estatísticas de blocos */
#sapl-estatisticas-blocos .col-6:nth-child(1) .sapl-stat-number { color: #17a2b8; } /* Total */
#sapl-estatisticas-blocos .col-6:nth-child(2) .sapl-stat-number { color: #28a745; } /* Ativos */
#sapl-estatisticas-blocos .col-6:nth-child(3) .sapl-stat-number { color: #dc3545; } /* Dissolvidos */
#sapl-estatisticas-blocos .col-6:nth-child(4) .sapl-stat-number { color: #6c757d; } /* Partidos */

/* Links de blocos na tabela */
.sapl-bloco-link {
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.sapl-bloco-link:hover {
    color: #0056b3;
    text-decoration: underline;
    transform: translateX(2px);
}

.sapl-bloco-link strong {
    font-weight: 600;
}

/* Badges de status */
.sapl-bloco-status {
    font-size: 0.875rem;
    padding: 5px 10px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 3px;
}

.sapl-bloco-status i {
    font-size: 0.75rem;
}

/* Badges de partido */
.sapl-bloco-partido {
    font-size: 0.875rem;
    padding: 5px 10px;
    font-weight: 500;
    background-color: #6c757d;
    border-color: #6c757d;
}

.sapl-bloco-partido:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Botão de detalhes */
.sapl-bloco-btn-detalhes {
    transition: all 0.2s ease;
    font-weight: 500;
}

.sapl-bloco-btn-detalhes:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Footer da tabela */
.sapl-bloco-tfoot {
    background-color: #f8f9fa;
    padding: 12px;
    font-size: 0.95rem;
    border-top: 2px solid #dee2e6;
}

/* Melhorias visuais na tabela de blocos */
#tabela-blocos tbody tr {
    transition: background-color 0.15s ease;
}

#tabela-blocos tbody tr:hover {
    background-color: #f8f9fa;
}

#tabela-blocos thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
}

#tabela-blocos tbody td {
    padding: 12px 8px;
    vertical-align: middle;
}

#tabela-blocos tbody td strong {
    color: #212529;
}

/* Responsive para tabela de blocos */
@media (max-width: 768px) {
    .sapl-bloco-link {
        font-size: 0.9rem;
    }
    
    .sapl-bloco-status,
    .sapl-bloco-partido {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .sapl-bloco-btn-detalhes {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    #tabela-blocos thead th,
    #tabela-blocos tbody td {
        padding: 8px 5px;
        font-size: 0.875rem;
    }
}

/* ============================================================
   MEMBROS DE BLOCOS
   ============================================================ */

/* Cores dinâmicas para estatísticas de membros de blocos */
#sapl-estatisticas-membros-bloco .col-6:nth-child(1) .sapl-stat-number { color: #17a2b8; } /* Total */
#sapl-estatisticas-membros-bloco .col-6:nth-child(2) .sapl-stat-number { color: #28a745; } /* Ativos */
#sapl-estatisticas-membros-bloco .col-6:nth-child(3) .sapl-stat-number { color: #dc3545; } /* Inativos */
#sapl-estatisticas-membros-bloco .col-6:nth-child(4) .sapl-stat-number { color: #6c757d; } /* Cargos */

/* Links de membros na tabela */
.sapl-membro-link {
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.sapl-membro-link:hover {
    color: #0056b3;
    text-decoration: underline;
    transform: translateX(2px);
}

.sapl-membro-link strong {
    font-weight: 600;
}

/* Badges de status */
.sapl-membro-status {
    font-size: 0.875rem;
    padding: 5px 10px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 3px;
}

.sapl-membro-status i {
    font-size: 0.75rem;
}

/* Badges de cargo */
.sapl-membro-cargo {
    font-size: 0.875rem;
    padding: 5px 10px;
    font-weight: 500;
    background-color: #6c757d;
    border-color: #6c757d;
}

.sapl-membro-cargo:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Botão de detalhes */
.sapl-membro-btn-detalhes {
    transition: all 0.2s ease;
    font-weight: 500;
}

.sapl-membro-btn-detalhes:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Footer da tabela */
.sapl-membro-tfoot {
    background-color: #f8f9fa;
    padding: 12px;
    font-size: 0.95rem;
    border-top: 2px solid #dee2e6;
}

/* Melhorias visuais na tabela de membros */
#tabela-membros tbody tr {
    transition: background-color 0.15s ease;
}

#tabela-membros tbody tr:hover {
    background-color: #f8f9fa;
}

#tabela-membros thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
}

#tabela-membros tbody td {
    padding: 12px 8px;
    vertical-align: middle;
}

#tabela-membros tbody td strong {
    color: #212529;
}

/* Responsive para tabela de membros */
@media (max-width: 768px) {
    .sapl-membro-link {
        font-size: 0.9rem;
    }
    
    .sapl-membro-status,
    .sapl-membro-cargo {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .sapl-membro-btn-detalhes {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    #tabela-membros thead th,
    #tabela-membros tbody td {
        padding: 8px 5px;
        font-size: 0.875rem;
    }
}

/* ============================================================
   COMISSÕES
   ============================================================ */

/* Cores dinâmicas para estatísticas de comissões */
#sapl-estatisticas-comissoes .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-comissoes .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-comissoes .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-comissoes .col-md-2:nth-child(2) .sapl-stat-number { color: #28a745; } /* Ativas */
#sapl-estatisticas-comissoes .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-comissoes .col-md-2:nth-child(3) .sapl-stat-number { color: #6c757d; } /* Extintas */
#sapl-estatisticas-comissoes .col-6:nth-child(4) .sapl-stat-number,
#sapl-estatisticas-comissoes .col-md-2:nth-child(4) .sapl-stat-number { color: #6c757d; } /* Tipos */

/* Links de comissões na tabela */
.sapl-comissao-link {
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.sapl-comissao-link:hover {
    color: #0056b3;
    text-decoration: underline;
    transform: translateX(2px);
}

.sapl-comissao-link strong {
    font-weight: 600;
}

/* Badges de status */
.sapl-comissao-status {
    font-size: 0.875rem;
    padding: 5px 10px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 3px;
}

.sapl-comissao-status i {
    font-size: 0.75rem;
}

/* Badges de tipo */
.sapl-comissao-tipo {
    font-size: 0.875rem;
    padding: 5px 10px;
    font-weight: 500;
    background-color: #6c757d;
    border-color: #6c757d;
}

.sapl-comissao-tipo:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Botão de detalhes */
.sapl-comissao-btn-detalhes {
    transition: all 0.2s ease;
    font-weight: 500;
}

.sapl-comissao-btn-detalhes:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Footer da tabela */
.sapl-comissao-tfoot {
    background-color: #f8f9fa;
    padding: 12px;
    font-size: 0.95rem;
    border-top: 2px solid #dee2e6;
}

/* Melhorias visuais na tabela de comissões */
#tabela-comissoes tbody tr {
    transition: background-color 0.15s ease;
}

#tabela-comissoes tbody tr:hover {
    background-color: #f8f9fa;
}

#tabela-comissoes thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
}

#tabela-comissoes tbody td {
    padding: 12px 8px;
    vertical-align: middle;
}

#tabela-comissoes tbody td strong {
    color: #212529;
}

/* Responsive para tabela de comissões */
@media (max-width: 768px) {
    .sapl-comissao-link {
        font-size: 0.9rem;
    }
    
    .sapl-comissao-status,
    .sapl-comissao-tipo {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .sapl-comissao-btn-detalhes {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    #tabela-comissoes thead th,
    #tabela-comissoes tbody td {
        padding: 8px 5px;
        font-size: 0.875rem;
    }
}

/* ============================================================
   REUNIÕES DE COMISSÕES
   ============================================================ */

/* Cores dinâmicas para estatísticas de reuniões */
#sapl-estatisticas-reunioes .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-reunioes .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-reunioes .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-reunioes .col-md-2:nth-child(2) .sapl-stat-number { color: #28a745; } /* Com Ata */
#sapl-estatisticas-reunioes .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-reunioes .col-md-2:nth-child(3) .sapl-stat-number { color: #6c757d; } /* Sem Ata */

/* Links de reuniões na tabela */
.sapl-reuniao-link {
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.sapl-reuniao-link:hover {
    color: #0056b3;
    text-decoration: underline;
    transform: translateX(2px);
}

/* Botão de detalhes de reunião */
.sapl-reuniao-btn-detalhes {
    transition: all 0.2s ease;
    font-weight: 500;
}

.sapl-reuniao-btn-detalhes:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Footer da tabela de reuniões */
.sapl-reuniao-tfoot {
    background-color: #f8f9fa;
    padding: 12px;
    font-size: 0.95rem;
    border-top: 2px solid #dee2e6;
}

/* ============================================================
   COMPOSIÇÕES DE COMISSÕES
   ============================================================ */

/* Cores dinâmicas para estatísticas de composições */
#sapl-estatisticas-composicoes .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-composicoes .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-composicoes .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-composicoes .col-md-2:nth-child(2) .sapl-stat-number { color: #28a745; } /* Titulares */
#sapl-estatisticas-composicoes .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-composicoes .col-md-2:nth-child(3) .sapl-stat-number { color: #dc3545; } /* Suplentes */
#sapl-estatisticas-composicoes .col-6:nth-child(4) .sapl-stat-number,
#sapl-estatisticas-composicoes .col-md-2:nth-child(4) .sapl-stat-number { color: #6c757d; } /* Cargos */

/* Links de composições na tabela */
.sapl-composicao-link {
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.sapl-composicao-link:hover {
    color: #0056b3;
    text-decoration: underline;
    transform: translateX(2px);
}

/* Badges de cargo em composições */
.sapl-composicao-cargo {
    font-size: 0.875rem;
    padding: 5px 10px;
    font-weight: 500;
    background-color: #6c757d;
    border-color: #6c757d;
}

.sapl-composicao-cargo:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Botão de detalhes de composição */
.sapl-composicao-btn-detalhes {
    transition: all 0.2s ease;
    font-weight: 500;
}

.sapl-composicao-btn-detalhes:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Footer da tabela de composições */
.sapl-composicao-tfoot {
    background-color: #f8f9fa;
    padding: 12px;
    font-size: 0.95rem;
    border-top: 2px solid #dee2e6;
}

/* Alinhar botões DataTables à esquerda */
.dt-buttons {
    text-align: left !important;
    float: left !important;
}

/* ============================================================
   FRENTES PARLAMENTARES
   ============================================================ */

/* Cores dinâmicas para estatísticas de frentes */
#sapl-estatisticas-frentes .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-frentes .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-frentes .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-frentes .col-md-2:nth-child(2) .sapl-stat-number { color: #28a745; } /* Ativas */
#sapl-estatisticas-frentes .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-frentes .col-md-2:nth-child(3) .sapl-stat-number { color: #dc3545; } /* Extintas */
#sapl-estatisticas-frentes .col-6:nth-child(4) .sapl-stat-number,
#sapl-estatisticas-frentes .col-md-2:nth-child(4) .sapl-stat-number { color: #6c757d; } /* Resultados */

/* Links de frentes na tabela */
.sapl-frente-link {
    color: #212529;
    font-weight: 600;
}

.sapl-frente-link:hover {
    color: #007bff;
}

/* Badges de status de frentes */
.sapl-frente-status {
    font-size: 0.875rem;
    padding: 5px 10px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 3px;
}

.sapl-frente-status i {
    font-size: 0.75rem;
}

/* Botão de detalhes de frente */
.sapl-frente-btn-detalhes {
    transition: all 0.2s ease;
    font-weight: 500;
}

.sapl-frente-btn-detalhes:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Footer da tabela de frentes */
.sapl-frente-tfoot {
    background-color: #f8f9fa;
    padding: 12px;
    font-size: 0.95rem;
    border-top: 2px solid #dee2e6;
}

/* Melhorias visuais na tabela de frentes */
#tabela-frentes tbody tr {
    transition: background-color 0.15s ease;
}

#tabela-frentes tbody tr:hover {
    background-color: #f8f9fa;
}

#tabela-frentes thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
}

#tabela-frentes tbody td {
    padding: 12px 8px;
    vertical-align: middle;
}

#tabela-frentes tbody td strong {
    color: #212529;
}

/* Responsive para tabela de frentes */
@media (max-width: 768px) {
    .sapl-frente-link {
        font-size: 0.9rem;
    }
    
    .sapl-frente-status {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .sapl-frente-btn-detalhes {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    #tabela-frentes thead th,
    #tabela-frentes tbody td {
        padding: 8px 5px;
        font-size: 0.875rem;
    }
}

/* ============================================================
   ESTATÍSTICAS DE MEMBROS DE FRENTES
   ============================================================ */

/* Cores dinâmicas para estatísticas de membros de frentes */
#sapl-estatisticas-membros-frente .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-membros-frente .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-membros-frente .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-membros-frente .col-md-2:nth-child(2) .sapl-stat-number { color: #28a745; } /* Ativos */
#sapl-estatisticas-membros-frente .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-membros-frente .col-md-2:nth-child(3) .sapl-stat-number { color: #dc3545; } /* Encerrados */
#sapl-estatisticas-membros-frente .col-6:nth-child(4) .sapl-stat-number,
#sapl-estatisticas-membros-frente .col-md-2:nth-child(4) .sapl-stat-number { color: #6c757d; } /* Cargos */

/* ============================================================
   NORMAS JURÍDICAS
   ============================================================ */

/* Cores dinâmicas para estatísticas gerais de normas */
#sapl-estatisticas-norma-gerais .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-norma-gerais .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-norma-gerais .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-norma-gerais .col-md-2:nth-child(2) .sapl-stat-number { color: #6c757d; } /* Tipos */
#sapl-estatisticas-norma-gerais .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-norma-gerais .col-md-2:nth-child(3) .sapl-stat-number { color: #ffc107; } /* Anos */

/* Cores dinâmicas para estatísticas filtradas de normas */
#sapl-estatisticas-norma-filtrados .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-norma-filtrados .col-md-2:nth-child(1) .sapl-stat-number { color: #6c757d; } /* Resultados */
#sapl-estatisticas-norma-filtrados .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-norma-filtrados .col-md-2:nth-child(2) .sapl-stat-number { color: #6c757d; } /* Tipos */
#sapl-estatisticas-norma-filtrados .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-norma-filtrados .col-md-2:nth-child(3) .sapl-stat-number { color: #ffc107; } /* Anos */

/* ============================================================
   DOCUMENTOS ADMINISTRATIVOS
   ============================================================ */

/* Cores dinâmicas para estatísticas gerais de documentos administrativos */
#sapl-estatisticas-docadm-gerais .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-docadm-gerais .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-docadm-gerais .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-docadm-gerais .col-md-2:nth-child(2) .sapl-stat-number { color: #28a745; } /* Em Tramitação */
#sapl-estatisticas-docadm-gerais .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-docadm-gerais .col-md-2:nth-child(3) .sapl-stat-number { color: #6c757d; } /* Tipos */

/* Cores dinâmicas para estatísticas filtradas de documentos administrativos */
#sapl-estatisticas-docadm-filtrados .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-docadm-filtrados .col-md-2:nth-child(1) .sapl-stat-number { color: #6c757d; } /* Resultados */
#sapl-estatisticas-docadm-filtrados .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-docadm-filtrados .col-md-2:nth-child(2) .sapl-stat-number { color: #28a745; } /* Em Tramitação */
#sapl-estatisticas-docadm-filtrados .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-docadm-filtrados .col-md-2:nth-child(3) .sapl-stat-number { color: #6c757d; } /* Tipos */

/* ============================================================
   ESTATÍSTICAS DE TRAMITAÇÃO DE DOCUMENTOS ADMINISTRATIVOS
   ============================================================ */

/* Cores dinâmicas para estatísticas de tramitação */
#sapl-estatisticas-tramitacao-docadm .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-tramitacao-docadm .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-tramitacao-docadm .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-tramitacao-docadm .col-md-2:nth-child(2) .sapl-stat-number { color: #ffc107; } /* Em Andamento */
#sapl-estatisticas-tramitacao-docadm .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-tramitacao-docadm .col-md-2:nth-child(3) .sapl-stat-number { color: #28a745; } /* Concluídas */
#sapl-estatisticas-tramitacao-docadm .col-6:nth-child(4) .sapl-stat-number,
#sapl-estatisticas-tramitacao-docadm .col-md-2:nth-child(4) .sapl-stat-number { color: #dc3545; } /* Urgentes */
#sapl-estatisticas-tramitacao-docadm .col-6:nth-child(5) .sapl-stat-number,
#sapl-estatisticas-tramitacao-docadm .col-md-2:nth-child(5) .sapl-stat-number { color: #6c757d; } /* Status */

/* ============================================================
   ESTATÍSTICAS DE SESSÕES PLENÁRIAS
   ============================================================ */

/* Cores dinâmicas para estatísticas gerais de sessões */
#sapl-estatisticas-sessao-gerais .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-sessao-gerais .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-sessao-gerais .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-sessao-gerais .col-md-2:nth-child(2) .sapl-stat-number { color: #6c757d; } /* Tipos */
#sapl-estatisticas-sessao-gerais .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-sessao-gerais .col-md-2:nth-child(3) .sapl-stat-number { color: #ffc107; } /* Anos */

/* Cores dinâmicas para estatísticas filtradas de sessões */
#sapl-estatisticas-sessao-filtrados .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-sessao-filtrados .col-md-2:nth-child(1) .sapl-stat-number { color: #6c757d; } /* Resultados */
#sapl-estatisticas-sessao-filtrados .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-sessao-filtrados .col-md-2:nth-child(2) .sapl-stat-number { color: #6c757d; } /* Tipos */
#sapl-estatisticas-sessao-filtrados .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-sessao-filtrados .col-md-2:nth-child(3) .sapl-stat-number { color: #ffc107; } /* Anos */

/* ============================================================
   ESTATÍSTICAS DE PAUTAS DE SESSÕES
   ============================================================ */

/* Cores dinâmicas para estatísticas gerais de pautas */
#sapl-estatisticas-pauta-gerais .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-pauta-gerais .col-md-2:nth-child(1) .sapl-stat-number { color: #007bff; } /* Total */
#sapl-estatisticas-pauta-gerais .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-pauta-gerais .col-md-2:nth-child(2) .sapl-stat-number { color: #6c757d; } /* Tipos */
#sapl-estatisticas-pauta-gerais .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-pauta-gerais .col-md-2:nth-child(3) .sapl-stat-number { color: #ffc107; } /* Anos */

/* Cores dinâmicas para estatísticas filtradas de pautas */
#sapl-estatisticas-pauta-filtrados .col-6:nth-child(1) .sapl-stat-number,
#sapl-estatisticas-pauta-filtrados .col-md-2:nth-child(1) .sapl-stat-number { color: #6c757d; } /* Resultados */
#sapl-estatisticas-pauta-filtrados .col-6:nth-child(2) .sapl-stat-number,
#sapl-estatisticas-pauta-filtrados .col-md-2:nth-child(2) .sapl-stat-number { color: #6c757d; } /* Tipos */
#sapl-estatisticas-pauta-filtrados .col-6:nth-child(3) .sapl-stat-number,
#sapl-estatisticas-pauta-filtrados .col-md-2:nth-child(3) .sapl-stat-number { color: #ffc107; } /* Anos */