        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background: linear-gradient(135deg, #78be20 0%, #035f1d 100%);
            min-height: 100vh;
            padding: 20px;
        }
        .logo {
        max-height: 100px;
        width: auto;
        display: block;
        margin: 0 auto 20px auto; /* Centraliza e adiciona margem inferior */
        }
        .header {
        display: flex;
        align-items: center; /* alinha verticalmente */
        gap: 10px; /* espaço entre a logo e o texto */
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 2.5em;
        }

        .form-container {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 10px;
            margin-bottom: 30px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        label {
            font-weight: bold;
            margin-bottom: 5px;
            color: #34495e;
        }

        input, select {
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s;
        }

        input:focus, select:focus {
            outline: none;
            border-color: #3498db;
        }

        .btn {
            background: linear-gradient(45deg, #28a745, #20c997);
            color: white;
            padding: 15px 30px;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .tables-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 30px;
        }

        .table-wrapper {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .table-header {
            background: #2c5f2d;
            color: white;
            padding: 20px;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            position: relative;
        }

        .summary-row {
            background: #f8f9fa;
            padding: 15px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            border-bottom: 2px solid #e0e0e0;
        }

        .summary-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .summary-label {
            font-size: 12px;
            color: #6c757d;
            margin-bottom: 5px;
        }

        .summary-value {
            font-weight: bold;
            font-size: 16px;
            color: #2c3e50;
        }

        .converted-row {
            background: #e9ecef; /* Light gray background for converted values */
            padding: 10px 15px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            border-bottom: 2px solid #e0e0e0;
            font-size: 0.9em; /* Slightly smaller font */
            color: #495057;
        }

        .converted-row .summary-item {
            align-items: center; /* Center items in the converted row */
        }

        .converted-row .summary-label {
            font-size: 10px; /* Smaller label for converted row */
            margin-bottom: 3px;
        }

        .converted-row .summary-value {
            font-size: 14px; /* Smaller value for converted row */
            font-weight: normal; /* Normal weight for converted values */
        }


        .table-content {
            max-height: 500px;
            overflow-y: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th {
            background: #2c5f2d;
            color: white;
            padding: 12px 8px;
            text-align: center;
            font-weight: bold;
            font-size: 14px;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        td {
            padding: 10px 8px;
            text-align: center;
            border-bottom: 1px solid #e0e0e0;
            font-size: 14px;
        }

        tr:nth-child(even) {
            background: #f8f9fa;
        }

        tr:hover {
            background: #e3f2fd;
        }

        .carencia-row {
            background: #fff3cd !important;
            color: #856404;
        }

        .carencia-row:hover {
            background: #ffeaa7 !important;
        }

        .hidden {
            display: none;
        }

        .insight-section {
            background: #eaf4f7;
            padding: 30px;
            border-radius: 15px;
            margin-top: 40px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            text-align: center;
        }

        .insight-section h2 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 2em;
        }

        /* Estilos para o summary do details */
        .insight-section summary {
            cursor: pointer;
            font-weight: bold;
            font-size: 1.5em; /* Ajustado para ser visível como título */
            color: #2c3e50;
            padding-bottom: 10px;
            margin-bottom: 10px;
            border-bottom: 2px solid #b0d8e4; /* Linha sutil para separar do conteúdo */
            list-style: none; /* Remove o marcador padrão do summary */
        }

        .insight-section summary::-webkit-details-marker {
            display: none; /* Remove o triângulo padrão em navegadores WebKit */
        }

        .insight-section summary::before {
            content: '►'; /* Adiciona um ícone de triângulo */
            margin-right: 10px;
            transition: transform 0.2s ease;
            display: inline-block;
        }

        .insight-section details[open] summary::before {
            transform: rotate(90deg); /* Gira o ícone quando aberto */
        }

        .insight-section p {
            color: #34495e;
            line-height: 1.6;
            margin-bottom: 15px;
            font-size: 1.1em;
        }

        .insight-section ul {
            list-style: none;
            padding: 0;
            margin-top: 20px;
            display: inline-block; /* Para centralizar a lista */
            text-align: left;
        }

        .insight-section ul li {
            background: #d4edda;
            border-left: 5px solid #28a745;
            padding: 10px 15px;
            margin-bottom: 10px;
            border-radius: 8px;
            font-size: 1em;
            color: #155724;
        }


        @media (max-width: 768px) {
            .tables-container {
                grid-template-columns: 1fr;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
            }
            
            .summary-row {
                grid-template-columns: repeat(2, 1fr);
            }
            .converted-row {
                grid-template-columns: repeat(2, 1fr);
            }
        }