        body {
            font-family: 'Poppins', sans-serif;
            min-height: 100vh;
        }

        /* Loading Spinner Styles */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #127bb5 0%, #0a5a8a 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .loading-overlay.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loading-content {
            text-align: center;
            color: white;
        }

        .spinner-orbit {
            width: 120px;
            height: 120px;
            position: relative;
            margin: 0 auto 2rem;
        }

        .orbit-ring {
            position: absolute;
            top: 50%;
            left: 50%;
            border: 3px solid transparent;
            border-top-color: white;
            border-radius: 50%;
            animation: orbit-spin 1.5s linear infinite;
        }

        .orbit-ring:nth-child(1) {
            width: 120px;
            height: 120px;
            margin-left: -60px;
            margin-top: -60px;
            animation-duration: 1.5s;
            border-top-color: rgba(255, 255, 255, 0.9);
            border-right-color: rgba(255, 255, 255, 0.3);
        }

        .orbit-ring:nth-child(2) {
            width: 90px;
            height: 90px;
            margin-left: -45px;
            margin-top: -45px;
            animation-duration: 1.2s;
            animation-direction: reverse;
            border-top-color: rgba(255, 255, 255, 0.7);
            border-right-color: rgba(255, 255, 255, 0.2);
        }

        .orbit-ring:nth-child(3) {
            width: 60px;
            height: 60px;
            margin-left: -30px;
            margin-top: -30px;
            animation-duration: 0.9s;
            border-top-color: rgba(255, 255, 255, 0.5);
            border-right-color: rgba(255, 255, 255, 0.1);
        }

        @keyframes orbit-spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        .loading-text {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: white;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            animation: pulse-text 2s ease-in-out infinite;
        }

        .loading-subtext {
            font-size: 1rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.9);
            margin: 0;
            animation: pulse-text 2s ease-in-out infinite;
            animation-delay: 0.2s;
        }

        @keyframes pulse-text {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.7;
            }
        }

        /* Aplicar Poppins em todos os elementos */
        * {
            font-family: 'Poppins', sans-serif !important;
        }

        /* Estilos específicos para diferentes elementos */
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 700;
            color: #127bb5 !important;
        }

        .btn {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .form-label {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
        }

        .card-title,
        .card-header h5 {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
            color: #127bb5 !important;
        }

        .table th {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
        }

        .table td {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .badge {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .dropdown-menu {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .alert {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        /* Estilos específicos para elementos customizados */
        .divider-text {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .filter-label {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
            color: #127bb5 !important;
        }

        .table-info {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .sortable {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
        }

        .dropdown-toggle {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .form-check-label {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .text-muted {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .fw-semibold {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
        }

        /* Estilos para elementos específicos do projeto */
        .card-header {
            font-family: 'Poppins', sans-serif !important;
        }

        .card-body {
            font-family: 'Poppins', sans-serif !important;
        }

        .form-control {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .form-select {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .form-check-input {
            font-family: 'Poppins', sans-serif !important;
        }

        .nav-link {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .navbar-brand {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 700;
        }

        .modal-title {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
            color: #127bb5 !important;
        }

        .modal-body {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .tooltip {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .popover {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        /* Estilos para ECharts */
        .echarts-tooltip {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .echarts-legend {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .echarts-title {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
            color: #127bb5 !important;
        }

        /* Garantir que todos os elementos de texto usem Poppins */
        input,
        textarea,
        select,
        option {
            font-family: 'Poppins', sans-serif !important;
        }

        /* Garantir que os ícones Font Awesome sejam exibidos */
        .fas,
        .far,
        .fab,
        .fal,
        .fad {
            font-family: "Font Awesome 6 Free" !important;
            font-weight: 900 !important;
            display: inline-block !important;
            font-style: normal !important;
            font-variant: normal !important;
            text-rendering: auto !important;
            line-height: 1 !important;
        }

        .far {
            font-weight: 400 !important;
        }

        /* Estilos para elementos específicos do Bootstrap */
        .list-group-item {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .breadcrumb {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .pagination {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .progress-bar {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        #chart {
            width: 100%;
            height: 600px;
        }

        .legend-circle {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 5px;
            vertical-align: middle;
        }

        /* Sombreamento das áreas principais */
        .card {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
            border: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.95);
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.12);
        }

        /* Header moderno com design UX avançado */
        .header-modern {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            padding: 2rem 0;
            margin-bottom: 0;
        }

        .header-modern::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
            pointer-events: none;
        }

        .header-content {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            position: relative;
            z-index: 2;
        }

        .header-icon {
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .header-icon:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        }

        .header-icon i {
            font-size: 2.5rem;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .header-text {
            flex: 1;
        }

        .header-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            margin: 0 0 0.5rem 0;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            line-height: 1.2;
        }

        .header-subtitle {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.9);
            margin: 0;
            font-weight: 400;
            line-height: 1.4;
        }

        .header-stats {
            display: flex;
            gap: 2rem;
            justify-content: flex-end;
            position: relative;
            z-index: 2;
        }

        .stat-item {
            text-align: center;
            background: rgba(255, 255, 255, 0.1);
            padding: 1.5rem 1.25rem;
            border-radius: 16px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            min-width: 120px;
        }

        .stat-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
            background: rgba(255, 255, 255, 0.15);
        }

        .stat-number {
            font-size: 2.25rem;
            font-weight: 800;
            color: white;
            margin: 0 0 0.25rem 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            line-height: 1;
        }

        .stat-label {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 0;
        }

        .header-decoration {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
        }

        /* Responsividade do header */
        @media (max-width: 768px) {
            .header-modern {
                padding: 1.5rem 0;
            }

            .header-content {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }

            .header-icon {
                width: 60px;
                height: 60px;
            }

            .header-icon i {
                font-size: 2rem;
            }

            .header-title {
                font-size: 2rem;
            }

            .header-subtitle {
                font-size: 1rem;
            }

            .header-stats {
                justify-content: center;
                gap: 1rem;
                margin-top: 1rem;
            }

            .stat-item {
                padding: 1rem 0.75rem;
                min-width: 100px;
            }

            .stat-number {
                font-size: 1.75rem;
            }
        }

        /* Alert personalizado */
        .alert {
            border: none;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        .alert-success {
            background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(25, 135, 84, 0.05) 100%);
            border-left: 4px solid #28a745;
        }

        /* Card do gráfico principal */
        .chart-card {
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
            border-radius: 15px;
            overflow: hidden;
            background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
        }

        /* Cards de filtro e controles */
        .control-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
        }

        /* Dropdown personalizado */
        .form-select {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .form-select:focus {
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
            border-color: #667eea;
        }

        /* Legend com gradiente */
        .legend-card {
            background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
            border-top: 3px solid #667eea;
        }

        .legend-card .card-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
        }

        /* Badges com sombra */
        .badge {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* Efeito glass morphism nos containers */
        .glass-effect {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.18);
        }

        .dropdown-menu {
            border: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            z-index: 1050;
            position: absolute;
            background-color: #fff;
            pointer-events: auto;
            top: 100%;
            left: 0;
            margin-top: 0.5rem;
            min-width: 300px;
            border-radius: 12px;
        }

        /*.dropdown-menu.show {
            position: fixed !important;
            z-index: 1001 !important;
        }*/

        .dropdown-backdrop {
            position: fixed;
            inset: 0;
            z-index: 1040;
            background: transparent;
        }

        .dropdown {
            position: relative;
            z-index: auto;
        }

        .form-check-input:checked {
            background-color: #667eea;
            border-color: #667eea;
        }

        .dropdown-toggle::after {
            margin-left: auto;
        }

        /* Garantir que o gráfico fique atrás */
        #chart,
        .chart-card,
        .echarts-container,
        .echarts-container canvas {
            z-index: 1;
            position: relative;
        }

        /* Dropdown filter tweaks - z-index muito alto para sobrepor ECharts */
        .dropdown-menu {
            border: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            z-index: 1001 !important;
            position: absolute !important;
            top: 100%;
            left: 0;
        }

        .dropdown-backdrop {
            position: fixed;
            inset: 0;
            z-index: 1001;
            background: transparent;
        }

        .dropdown {
            z-index: 1000;
            position: relative;
        }

        .form-check-input:checked {
            background-color: #667eea;
            border-color: #667eea;
        }

        /* Table styling */
        #campaignsTable tbody tr {
            transition: all 0.3s ease;
            border-bottom: 1px solid #f1f3f4;
        }

        #campaignsTable tbody tr:hover {
            background-color: rgba(102, 126, 234, 0.05);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        #campaignsTable tbody td {
            padding: 8px 12px;
            vertical-align: middle;
            border: none;
            font-size: 0.85rem;
        }

        #campaignsTable tbody td:first-child {
            font-weight: 600;
            color: #2c3e50;
        }

        #campaignsTable tbody td:nth-child(2) {
            color: #667eea;
            font-weight: 500;
        }

        #campaignsTable tbody td:nth-child(3),
        #campaignsTable tbody td:nth-child(4),
        #campaignsTable tbody td:nth-child(5) {
            font-weight: 600;
            color: #495057;
        }

        #campaignsTable tbody td:nth-child(6) {
            font-weight: 700;
            color: #28a745;
        }

        #campaignsTable tbody td:last-child {
            font-weight: 600;
            color: #6c757d;
        }

        .badge {
            font-size: 0.75em;
            padding: 0.5em 0.75em;
        }


        /* Sortable column headers */
        .sortable {
            cursor: pointer;
            user-select: none;
            transition: all 0.3s ease;
            position: relative;
        }

        .sortable:hover {
            background-color: rgba(102, 126, 234, 0.1) !important;
            color: #667eea !important;
        }

        .sortable:hover i {
            color: #667eea !important;
        }

        .sortable.active {
            background-color: rgba(102, 126, 234, 0.15) !important;
            color: #667eea !important;
        }

        .sortable.active i {
            color: #667eea !important;
        }

        .sortable i {
            transition: all 0.3s ease;
        }

        /* Table row selection */
        #campaignsTable tbody tr {
            cursor: pointer;
        }

        #campaignsTable tbody tr.selected {
            background-color: rgba(102, 126, 234, 0.15) !important;
            border-left: 4px solid #667eea;
            transform: translateX(2px);
        }

        #campaignsTable tbody tr.selected td {
            color: #667eea !important;
            font-weight: 600;
        }

        /* Container do filtro com z-index alto */
        /*.control-card {
            z-index: 999999 !important;
            position: relative;
        }*/

        /* Garantir que o container de filtros tenha z-index alto */
        /*.filter-container {
            z-index: 1000000 !important;
            position: relative;
        }*/

        /* Filter Container - Layout unificado */
        .filter-container {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            overflow: visible;
            position: relative;
        }

        .filter-container .card-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 1.5rem 2rem;
        }

        .filter-container .card-header h5 {
            font-weight: 600;
            font-size: 1.1rem;
            margin: 0;
        }

        .filter-container .card-body {
            padding: 2rem;
            overflow: visible;
        }

        .filter-group {
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: visible;
        }

        .filter-label {
            font-weight: 600;
            color: #495057;
            margin-bottom: 0.75rem;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
        }

        .filter-label i {
            color: #667eea;
            font-size: 0.8rem;
        }

        .filter-container .btn {
            border-radius: 8px;
            padding: 0.75rem 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 2px solid;
        }

        .filter-container .btn-outline-primary {
            border-color: #667eea;
            color: #667eea;
            background: rgba(102, 126, 234, 0.05);
        }

        .filter-container .btn-outline-primary:hover {
            background-color: #667eea;
            border-color: #667eea;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .filter-container .btn-outline-success {
            border-color: #28a745;
            color: #28a745;
            background: rgba(40, 167, 69, 0.05);
        }

        .filter-container .btn-outline-success:hover {
            background-color: #28a745;
            border-color: #28a745;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }

        .filter-container .text-muted {
            font-size: 0.8rem;
            font-weight: 500;
            color: #6c757d !important;
        }

        .filter-container .dropdown-menu {
            border: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-radius: 12px;
            z-index: 1000001 !important;
            position: absolute !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            transform: none !important;
            margin-top: 0.5rem;
            min-width: 300px;
        }

        .filter-container .dropdown {
            position: relative;
        }
        .filter-container .dropdown-menu {
          position: absolute;
          top: 100%;
          left: 0;
          margin-top: 0.5rem;
          min-width: 300px;
          border-radius: 12px;
          border: 1px solid rgba(0,0,0,0.1);
          box-shadow: 0 4px 15px rgba(0,0,0,0.1);
          background-color: #fff;
          pointer-events: auto;
          z-index: 1050;
        }

        .filter-container .dropdown.show .dropdown-menu {
            display: block !important;
        }

        .filter-container .form-check-input:checked {
            background-color: #667eea;
            border-color: #667eea;
        }

        .btn .btn-outline-primary {
            border-color: #667eea;
            color: #667eea;
            background: rgba(102, 126, 234, 0.05);
        }

        /* Responsividade para filter container */
        @media (max-width: 768px) {
            .filter-container .card-body {
                padding: 1.5rem;
            }

            .filter-container .card-header {
                padding: 1rem 1.5rem;
            }

            .filter-container .card-header h5 {
                font-size: 1rem;
            }

            .filter-group {
                margin-bottom: 1.5rem;
            }
        }

        /* Container da tabela - responsivo */
        .table-container {
            max-height: 600px;
            overflow-y: auto;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            background: #fff;
            position: relative;
            scrollbar-width: thin;
            scrollbar-color: #667eea #f1f1f1;
            /* Forçar adaptação ao conteúdo */
            height: auto !important;
            min-height: auto !important;
        }
        
        /* Forçar tabela a se adaptar ao conteúdo */
        .table-container table {
            height: auto !important;
            min-height: auto !important;
            width: auto !important;
        }
        
        .table-container tbody {
            height: auto !important;
            min-height: auto !important;
        }
        
        .table-container tbody tr {
            height: auto !important;
            min-height: auto !important;
        }
        
        /* Sobrescrever qualquer regra do Bootstrap ou outros frameworks */
        .table-container .table {
            height: auto !important;
            min-height: auto !important;
        }
        
        .table-container .table tbody {
            height: auto !important;
            min-height: auto !important;
        }
        
        .table-container .table tbody tr {
            height: auto !important;
            min-height: auto !important;
        }
        
        .table-container .table tbody tr td {
            height: auto !important;
            min-height: auto !important;
        }

        .table-container::-webkit-scrollbar {
            width: 10px;
        }

        .table-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 5px;
            margin: 5px 0;
        }

        .table-container::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 5px;
            border: 2px solid #f1f1f1;
        }

        .table-container::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            border: 2px solid #e9ecef;
        }


        /* Scroll sempre visível no WebKit */
        .table-container::-webkit-scrollbar {
            -webkit-appearance: none;
            width: 12px;
        }

        .table-container::-webkit-scrollbar:vertical {
            width: 12px;
        }

        .table-container::-webkit-scrollbar:horizontal {
            height: 12px;
        }

        /* Estilização do cabeçalho fixo */
        .table-container thead th {
            position: sticky;
            top: 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            z-index: 10;
            border-bottom: 2px solid #dee2e6;
        }

        /* Indicador de itens limitados */
        .table-info {
            background: rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.2);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: #495057;
        }

        .table-info i {
            color: #667eea;
            margin-right: 0.5rem;
        }

        /* Melhorar visualização com 20 itens */
        .table-container tbody td {
            padding: 8px 12px;
            vertical-align: middle;
            font-size: 0.85rem;
        }

        .table-container thead th {
            padding: 6px 8px;
            font-size: 0.7rem;
        }

        /* Destacar quando há scroll ativo */
        .table-container:has(.table-info[style*="block"]) {
            border: 2px solid rgba(102, 126, 234, 0.2);
            box-shadow: inset 0 0 10px rgba(102, 126, 234, 0.1);
        }


        /* Scrollbar mais visível */
        .table-container::-webkit-scrollbar-track {
            background: #f8f9fa;
            border-radius: 6px;
            margin: 8px 0;
        }

        .table-container::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 6px;
            border: 3px solid #f8f9fa;
            min-height: 40px;
        }

        .table-container::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            border: 3px solid #e9ecef;
        }

        /* Garantir que o conteúdo se adapte ao container */
        .table-container table {
            width: 100%;
        }


        /* Scrollbar mais visível */
        .table-container::-webkit-scrollbar {
            width: 14px;
            height: 14px;
        }

        .table-container::-webkit-scrollbar-corner {
            background: #f8f9fa;
        }

        th.col-reverberacao,
        td.col-reverberacao { width: 25px; }

        th.col-repercussao,
        td.col-repercussao { width: 70px; }

        th.col-referenciacao,
        td.col-referenciacao { width: 90px; }


        /* Estilização da logo no título */
        .header-logo {
            height: 60px;
            width: 50px;
            margin-right: 20px;
            vertical-align: middle;
            transition: transform 0.3s ease, opacity 0.3s ease;
            cursor: pointer;
        }

        .header-logo:hover {
            transform: scale(1.05);
            opacity: 0.8;
        }

        .header-title {
            display: flex;
            align-items: center;
            margin-bottom: 0;
        }

        .header-title h1 {
            margin: 0;
            font-size: 2.5rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            color: #127bb5;
        }

        /* Responsividade para a logo */
        @media (max-width: 768px) {
            .header-logo {
                height: 40px;
                margin-right: 15px;
            }

            .header-title h1 {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 576px) {
            .header-logo {
                height: 35px;
                margin-right: 10px;
            }

            .header-title h1 {
                font-size: 1.5rem;
            }

            .header-title {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }

        /* Footer Styles */
        .footer {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            padding: 2rem 0;
            margin-top: 3rem;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        }

        .footer-logo {
            transition: transform 0.3s ease;
        }

        .footer-logo:hover {
            transform: scale(1.05);
        }

        .footer-links .nav-link {
            color: rgba(255, 255, 255, 0.8) !important;
            transition: color 0.3s ease;
        }

        .footer-links .nav-link:hover {
            color: white !important;
        }

        .footer-center p {
            color: rgba(255, 255, 255, 0.9);
        }

        /* Responsividade do footer */
        @media (max-width: 768px) {
            .footer .container {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .footer-left,
            .footer-right {
                width: 100%;
                justify-content: center;
            }

            .footer-right .nav {
                justify-content: center !important;
            }
        }

        /* Miniatura do gráfico */
        .chart-miniature {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 300px;
            height: 200px;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .chart-miniature.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .miniature-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 12px 12px 0 0;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .btn-close-miniature {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: background-color 0.2s ease;
        }

        .btn-close-miniature:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .miniature-chart {
            width: 100%;
            height: 160px;
            padding: 8px;
        }

        /* Botão para mostrar miniatura */
        .show-miniature-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(102, 126, 234, 0.9);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 0.75rem;
            cursor: pointer;
            z-index: 100;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .show-miniature-btn:hover {
            background: rgba(102, 126, 234, 1);
            transform: translateY(-1px);
        }

.filter-col { flex: 0 0 25% !important; max-width: 25% !important; }

@media (max-width: 1200px){
  .filter-col { flex: 0 0 33.333%; max-width: 33.333%; }
}
@media (max-width: 992px){
  .filter-col { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 576px){
  .filter-col { flex: 0 0 100%; max-width: 100%; }
}

.filter-container .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  white-space: normal; 
  overflow: visible;   
  text-overflow: unset;
  line-height: 1.2;    
  padding-right: 2rem; 
  box-sizing: border-box;
}

@media (max-width: 576px) {
  .control-card, .filter-container, .filter-container .dropdown {
    z-index: auto !important;
    position: relative;
  }

  .dropdown {
    z-index: 12311944834123124;
  }

  #chart, .chart-card, .echarts-container, .echarts-container canvas {
    z-index: 1 !important;
    position: relative
  }

  .dropdown-menu.portalized-mobile {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;

    /* bottom-sheet */
    max-height: 80vh;
    width: 100vw !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;

    z-index: 1100 !important;
    background-color: #fff; 
    box-shadow: 0 -8px 24px rgba(0,0,0,0.18);

    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: auto;
  }

  .dropdown-menu.portalized-mobile .dropdown-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
  }

  .dropdown-backdrop-portal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0,0,0,0);
    touch-action: none;
  }

  body.mobile-dropdown-open {
    overflow: hidden !important;
    position: relative;
    touch-action: none;
  }

  .filter-container .dropdown-menu {
    min-width: 280px;
  }
}

.filter-container .dropdown.show .dropdown-toggle,
.filter-container .dropdown-toggle:focus,
.filter-container .dropdown-toggle[aria-expanded="true"] {
  background-color: #667eea;
  color: #fff !important;   
  border-color: #667eea;
}

/* Otimização de largura das colunas da tabela */
#campaignsTable {
    table-layout: fixed;
    width: auto !important;
    min-width: 900px;
    max-width: none !important;
}

#campaignsTable th {
    padding: 6px 8px !important;
    font-size: 0.7rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    line-height: 1.2;
}

/* Colunas com quebra de linha no cabeçalho */
#campaignsTable th:nth-child(4),
#campaignsTable th:nth-child(6),
#campaignsTable th:nth-child(8) {
    white-space: normal;
    min-height: 45px;
}

#campaignsTable td {
    padding: 6px 8px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Larguras específicas das colunas */
/* Campanha */
#campaignsTable th:nth-child(1),
#campaignsTable td:nth-child(1) {
    width: 15%;
    min-width: 120px;
    max-width: 200px;
    white-space: normal;
}

/* Marca */
#campaignsTable th:nth-child(2),
#campaignsTable td:nth-child(2) {
    width: 8%;
    min-width: 80px;
    max-width: 120px;
}

/* Reverberação */
#campaignsTable th:nth-child(3),
#campaignsTable td:nth-child(3) {
    width: 10%;
    min-width: 60px;
    max-width: 100px;
}

/* Termômetro Reverberação */
#campaignsTable th:nth-child(4),
#campaignsTable td:nth-child(4) {
    width: 10%;
    min-width: 100px;
    max-width: 140px;
}

/* Repercussão */
#campaignsTable th:nth-child(5),
#campaignsTable td:nth-child(5) {
    width: 10%;
    min-width: 60px;
    max-width: 100px;
}

/* Termômetro Repercussão */
#campaignsTable th:nth-child(6),
#campaignsTable td:nth-child(6) {
    width: 10%;
    min-width: 100px;
    max-width: 140px;
}

/* Referenciação */
#campaignsTable th:nth-child(7),
#campaignsTable td:nth-child(7) {
    width: 10%;
    min-width: 60px;
    max-width: 100px;
}

/* Termômetro Referenciação */
#campaignsTable th:nth-child(8),
#campaignsTable td:nth-child(8) {
    width: 10%;
    min-width: 100px;
    max-width: 140px;
}

/* Pontuação */
#campaignsTable th:nth-child(9),
#campaignsTable td:nth-child(9) {
    width: 8%;
    min-width: 70px;
    max-width: 100px;
}

/* Nível */
#campaignsTable th:nth-child(10),
#campaignsTable td:nth-child(10) {
    width: 6%;
    min-width: 60px;
    max-width: 80px;
}

/* Ano */
#campaignsTable th:nth-child(11),
#campaignsTable td:nth-child(11) {
    width: 5%;
    min-width: 50px;
    max-width: 70px;
}

/* Tabela com scroll horizontal se necessário */
.table-container {
    overflow-x: auto !important;
    overflow-y: auto;
    white-space: nowrap;
}

/* Ajuste responsivo */
@media (max-width: 1400px) {
    #campaignsTable th {
        font-size: 0.65rem !important;
        padding: 5px 6px !important;
    }
    
    #campaignsTable td {
        font-size: 0.75rem !important;
        padding: 5px 6px !important;
    }
}

/* Classificação */
#campaignsTable th:nth-child(11),
#campaignsTable td:nth-child(11) {
    width: auto !important;
    min-width: 120px !important;
    max-width: none !important;
    white-space: normal !important;
    text-align: left;
}