/* VERSÃO 41 - LARGURA TOTAL DA PÁGINA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Remover barras de rolagem específicas dos painéis de notas */
.painel-controle-notas::-webkit-scrollbar,
.container-notas::-webkit-scrollbar,
.campo-nota-individual::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.painel-controle-notas,
.container-notas,
.campo-nota-individual {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #f5f5f5;
    padding: 90px 0 0;
    /* SEM padding nas laterais */
    min-height: 100vh;
    height: auto;
    display: block;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}

   LAYOUT PRINCIPAL COM PAINÉIS DE NOTAS

.main-layout {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 90px);
    position: relative;
    overflow-x: hidden;
    align-items: flex-start;
}

.painel-controle-notas {
    width: 280px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    height: auto;
    overflow: visible;
    flex-shrink: 0;
    display: none;
    /* Oculto por padrão */
}

.controle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.controle-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.btn-adicionar-nota {
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-adicionar-nota:hover {
    background: #219a52;
    transform: scale(1.05);
}

.container-notas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: visible;
    max-width: 100%;
}

.container-notas:empty::after {
    content: "📝 Clique em 'Nova Nota' para começar!";
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin-top: 10px;
}

/* Garantir que todas as notas sejam sempre visíveis */
.painel-controle-notas .container-notas {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.painel-controle-notas {
    max-height: none !important;
    height: auto !important;
}

.nota-individual {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    transition: all 0.3s ease;
    cursor: move;
    overflow: visible;
}

/* Toolbar de configuração das notas */
.nota-toolbar {
    display: block;
    padding: 15px;
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    margin-top: 10px !important;
    animation: slideDown 0.3s ease;
    border-top: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0;
        margin-top: 0;
    }

    to {
        opacity: 1;
        max-height: 200px;
        padding: 12px;
        margin-top: 8px;
    }
}

.toolbar-grupo {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    flex-wrap: wrap;
}

.toolbar-grupo:last-child {
    margin-bottom: 0;
}

.btn-formato {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.btn-formato:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: scale(1.05);
}

.btn-formato.ativo {
    background: #007bff;
    color: white;
    border-color: #0056b3;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.btn-formato:active {
    transform: scale(0.95);
}

.btn-formato.btn-deletar {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    font-size: 10px;
    font-weight: 600;
    min-width: auto;
    padding: 4px 8px;
}

.btn-formato.btn-deletar:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: scale(1.05);
}

.btn-formato.btn-deletar:active {
    background: #bd2130;
    border-color: #b21f2d;
    transform: scale(0.95);
}

.slider-tamanho {
    width: 60px;
    height: 18px;
    margin: 0 3px;
    cursor: pointer;
}

.slider-tamanho:hover {
    filter: brightness(1.1);
}

.input-cor-texto {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.input-cor-texto:hover {
    border-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.select-fonte {
    font-size: 10px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    max-width: 80px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-fonte:hover {
    border-color: #007bff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.select-fonte:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.seletor-cor-nota {
    font-size: 10px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    max-width: 80px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seletor-cor-nota:hover {
    border-color: #007bff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.seletor-cor-nota:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.label-formato {
    font-size: 9px;
    color: #666;
    white-space: nowrap;
}

/* Responsividade do toolbar */
@media (max-width: 350px) {
    .nota-toolbar {
        flex-direction: column;
        gap: 8px;
    }

    .toolbar-grupo {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 5px;
    }

    .toolbar-grupo:last-child {
        border-bottom: none;
    }
}

/* Melhorias na configuração do texto */
.campo-nota-individual {
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
}

/* Manter formatação no modo expandido */
.campo-nota-individual.expandido {
    line-height: 1.6;
}

.nota-individual:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.nota-individual.arrastando {
    opacity: 0.7;
    transform: rotate(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.nota-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
    width: 100%;
}

.nota-titulo-container {
    flex: 1;
    width: 100%;
    overflow: visible;
}

/* Estados visuais para título */
.campo-nota-titulo.salvando {
    border-color: #f39c12;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
}

.campo-nota-titulo.salvo {
    border-color: #27ae60;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.3);
}

.campo-nota-titulo:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    background: #fff;
}

.nota-acoes {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn-expandir-nota {
    color: #17a2b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-expandir-nota:hover {
    background: #17a2b8;
    color: white;
}

.btn-deletar-nota {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-deletar-nota:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.campo-nota-individual.expandido {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 70vh;
    max-width: 1000px;
    max-height: 800px;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid #3498db;
    background: white;
    resize: both;
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
    border-radius: 12px;
}

.campo-nota-individual.expandido:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(52, 152, 219, 0.3);
}

.nota-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(3px);
    cursor: pointer;
}

.campo-nota-individual.expandido::before {
    content: "🗖 Modo Expandido - ESC para fechar";
    position: absolute;
    top: -35px;
    left: 0;
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 6px 6px 0 0;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Melhorar responsividade no modo expandido */
@media (max-width: 768px) {
    .campo-nota-individual.expandido {
        width: 95vw;
        height: 80vh;
        padding: 15px;
        font-size: 13px;
    }
}

/* Indicador visual para redimensionamento */
.campo-nota-individual.expandido::after {
    content: "↘️";
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: #95a5a6;
    font-size: 14px;
    pointer-events: none;
}

.seletor-cor-nota {
    width: 28px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: all 0.2s ease;
    appearance: none;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.seletor-cor-nota:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border-color: #3498db;
}

.seletor-cor-nota:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Estilos para as opções do select */
.seletor-cor-nota option {
    padding: 5px;
    font-weight: bold;
    text-transform: capitalize;
}

.nota-individual[data-cor="amarelo"] {
    background: linear-gradient(135deg, #fff9e6 0%, #ffeaa7 100%);
    border-color: #fdcb6e;
}

.nota-individual[data-cor="verde"] {
    background: linear-gradient(135deg, #e8f8f5 0%, #55efc4 100%);
    border-color: #00b894;
}

.nota-individual[data-cor="azul"] {
    background: linear-gradient(135deg, #e3f2fd 0%, #74b9ff 100%);
    border-color: #0984e3;
}

.nota-individual[data-cor="rosa"] {
    background: linear-gradient(135deg, #fce4ec 0%, #fd79a8 100%);
    border-color: #e84393;
}

.nota-individual[data-cor="roxo"] {
    background: linear-gradient(135deg, #f3e5f5 0%, #a29bfe 100%);
    border-color: #6c5ce7;
}

.nota-individual[data-cor="laranja"] {
    background: linear-gradient(135deg, #fff3e0 0%, #fab1a0 100%);
    border-color: #e17055;
}

.nota-individual[data-cor="cinza"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #b2bec3 100%);
    border-color: #636e72;
}

.btn-mover-nota {
    color: #6c757d;
    cursor: grab;
}

.btn-mover-nota:active {
    cursor: grabbing;
}

.btn-mover-nota:hover {
    background: #6c757d;
    color: white;
}

.campo-nota-individual {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    resize: none;
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-sizing: border-box;
}

.campo-nota-individual:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.campo-nota-individual::placeholder {
    color: #888;
    font-style: italic;
}

.campo-nota-individual.salvando {
    border-color: #f39c12;
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.4);
    background: #fffbf0;
}

.campo-nota-individual.salvo {
    border-color: #27ae60;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.4);
    background: #f0fff4;
}

.conteudo-principal {
    flex: 1;
    min-width: 800px;
    overflow-x: hidden;
}

.painel-controle-notas {
    order: 1;
}

.conteudo-principal {
    order: 2;
}

/* Mostrar notas APENAS na Análise Financeira e Simulação */
.analise-ativa .painel-controle-notas,
.simulacao-ativa .painel-controle-notas {
    display: block !important;
}

/* Ajustar layout quando notas estão ocultas */
.calculadora-ativa .conteudo-principal,
.configuracoes-ativa .conteudo-principal,
.outras-telas-ativa .conteudo-principal {
    margin: 0 auto;
    max-width: 1200px;
}

/* Responsividade - ocultar painel em telas menores */
@media (max-width: 1400px) {
    .painel-controle-notas {
        display: none !important;
    }

    .conteudo-principal {
        margin: 0 auto;
        max-width: 1200px;
    }
}

/* Para telas maiores, manter o controle baseado na tela ativa */
@media (min-width: 1401px) {

    /* Mostrar apenas nas telas permitidas */
    .analise-ativa .painel-controle-notas,
    .simulacao-ativa .painel-controle-notas {
        display: block !important;
    }

    /* Garantir que esteja oculto em todas as outras telas */
    body:not(.analise-ativa):not(.simulacao-ativa) .painel-controle-notas {
        display: none !important;
    }
}

   ESTILOS DO CABEÇALHO

.header-principal {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    color: white !important;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-titulo {
    font-size: 26px;
    margin: 0;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.logo-subtitulo {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 6px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-container {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.nav-button {
    background: transparent;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-button.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.nav-button.btn-notas {
    background: rgba(220, 53, 69, 0.2);
    margin-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
}

.nav-button.btn-notas:hover {
    background: rgba(220, 53, 69, 0.3);
}

/* Estilos para botões de ação nas configurações */
.btn-deletar {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-deletar:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    margin-left: auto;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 14px;
}

.user-name {
    font-weight: 600;
    color: white;
}

.user-status {
    font-size: 12px;
    color: #4CAF50;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #c82333;
}

.container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    position: relative;
    z-index: 1;
    max-width: 1500px;
}

/* Estilo comum para todos os cabeçalhos de tela */
.header {
    margin: -20px -20px 20px -20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 500;
}

.header .subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

/* Ajustes específicos para cada tela */
#simulacao .header,
#analise .header,
#calculadora .header {
    background: #f8f9fa;
}

.keyboard-hints {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #6c757d;
}

.keyboard-hints .hint {
    display: flex;
    align-items: center;
    gap: 5px;
}

.keyboard-hints kbd {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 12px;
    color: #495057;
}

/* Ajuste para o botão de configurações */
.btn-config-analise {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.btn-config-analise:hover {
    background: #45a049;
}

h1,
h2,
h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: bold;
    font-size: 18px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: 'Courier New', Courier, monospace;
    min-height: 200px;
    resize: vertical;
    white-space: pre;
    overflow-x: auto;
    tab-size: 4;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    line-height: 1.4;
    letter-spacing: normal;
    word-spacing: normal;
    text-align: left;
    text-indent: 0;
    text-transform: none;
    text-rendering: auto;
}

textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Ajuste para manter o alinhamento do texto colado */
#dadosTabela {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    min-height: 200px;
    resize: vertical;
    background-color: white;
    white-space: pre;
    overflow-x: auto;
}

#dadosTabela:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Estilo para o texto */
#dadosTabela {
    text-align: left;
    tab-size: 4;
    -moz-tab-size: 4;
    -o-tab-size: 4;
}

/* Garantir que os caracteres tenham a mesma largura */
@font-face {
    font-family: 'MonoCustom';
    src: local('Courier New');
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

#dadosTabela {
    font-family: 'MonoCustom', 'Courier New', monospace;
}

/* Remover estilos padrão do textarea */
#dadosTabela {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-font-smoothing: none;
    font-smoothing: none;
    text-rendering: geometricPrecision;
}

input:focus,
textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.button-group button {
    flex: 1;
    margin-top: 0;
}

.proposta-container {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.proposta-conteudo {
    white-space: pre-wrap;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Estilos dos cabeçalhos das tabelas */
h3 {
    text-align: center;
    color: #333;
    margin: 30px 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

/* Estilos da tabela melhorados */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    font-size: 15px;
    table-layout: fixed;
    border: 2px solid #2e7d32;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Estilos dos cabeçalhos das colunas melhorados */
th {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-align: center;
    border-bottom: 3px solid #1b5e20;
    position: sticky;
    top: 0;
    padding: 18px 12px;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Estilos das células melhorados */
td {
    padding: 15px 12px;
    border: 1px solid #e0e0e0;
    font-family: 'Arial', sans-serif;
    text-align: center;
    vertical-align: middle;
    height: 50px;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
    transition: background-color 0.2s ease;
}

/* Alinhamentos específicos para tipos de dados */
.valor-moeda {
    text-align: center !important;
    font-family: 'Arial', sans-serif;
    white-space: nowrap;
    font-weight: 700;
    color: #2e7d32;
}

.valor-taxa {
    text-align: center !important;
    font-family: 'Arial', sans-serif;
    white-space: nowrap;
    font-weight: 700;
    color: #ff6f00;
}

.valor-prazo {
    text-align: center !important;
    font-family: 'Arial', sans-serif;
    white-space: nowrap;
    font-weight: 700;
    color: #1976d2;
}

/* Larguras das colunas */
td:nth-child(1),
th:nth-child(1) {
    width: 18%;
}

td:nth-child(2),
th:nth-child(2) {
    width: 12%;
}

td:nth-child(3),
th:nth-child(3) {
    width: 10%;
}

td:nth-child(4),
th:nth-child(4) {
    width: 8%;
}

td:nth-child(5),
th:nth-child(5) {
    width: 8%;
}

td:nth-child(6),
th:nth-child(6) {
    width: 14%;
}

td:nth-child(7),
th:nth-child(7) {
    width: 14%;
}

td:nth-child(8),
th:nth-child(8) {
    width: 14%;
}

td:nth-child(9),
th:nth-child(9) {
    width: 6%;
}

/* Estilo para a linha de totais melhorado */
tfoot tr {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    font-weight: 800;
    font-size: 15px;
    border-top: 3px solid #4CAF50;
}

tfoot td {
    border-top: 3px solid #4CAF50;
    border-bottom: none;
    text-align: center;
    color: #1b5e20;
    font-weight: 800;
    padding: 18px 12px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Hover e zebra striping melhorados */
tbody tr:hover {
    background-color: #f1f8e9;
    transform: scale(1.001);
    transition: all 0.2s ease;
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Checkbox personalizado melhorado */
.checkbox-selecionar {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
    transform: scale(1.2);
    accent-color: #4CAF50;
}

/* Container da tabela melhorado */
.tabela-container {
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 20px;
}

/* Espaçamento entre as tabelas */
#tabelaSelecionados {
    margin-top: 40px;
}

/* Título das tabelas melhorado */
.dados-formatados-titulo,
.contratos-selecionados-titulo {
    text-align: center;
    color: #1b5e20;
    font-size: 24px;
    font-weight: 800;
    margin: 35px 0 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #4CAF50, #2e7d32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Estilo para select */
select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
}

select:focus {
    border-color: #4CAF50;
    outline: none;
}

select:hover {
    border-color: #4CAF50;
}

/* Estilo para a opção vazia/placeholder */
select option[value=""] {
    color: #666;
}

/* Estilo específico para simular Excel */
#dadosTabela {
    font-family: 'Consolas', 'Courier New', monospace;
    letter-spacing: 0;
    word-spacing: 0;
    white-space: pre;
    tab-size: 8;
    -moz-tab-size: 8;
    -o-tab-size: 8;
    -webkit-font-variant-ligatures: none;
    font-variant-ligatures: none;
    -webkit-font-feature-settings: "liga" 0, "calt" 0;
    font-feature-settings: "liga" 0, "calt" 0;
    line-height: 1.3;
}

#dadosTabela::selection {
    background-color: #b5d7ff;
    color: inherit;
}

/* Remover os estilos do banco de origem e configurações */
.select-banco-origem,
.btn-config,
.modal,
.modal-content,
#bancoOrigemTodos {
    display: none !important;
}

/* Ajustar largura das colunas da tabela */
#tabelaDados th:nth-child(9),
#tabelaDados td:nth-child(9) {
    min-width: 150px;
}

/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
}

/* Definição removida - conflito com definição principal */

/* Cabeçalho */
.header {
    margin: -20px -20px 20px -20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 500;
}

.header .subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

/* Ajustes específicos para cada tela */
#simulacao .header,
#analise .header,
#calculadora .header {
    background: #f8f9fa;
}

.keyboard-hints {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #6c757d;
}

.keyboard-hints .hint {
    display: flex;
    align-items: center;
    gap: 5px;
}

.keyboard-hints kbd {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 12px;
    color: #495057;
}

/* Ajuste para o botão de configurações */
.btn-config-analise {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.btn-config-analise:hover {
    background: #45a049;
}

/* Menu de configurações dropdown */
.config-menu {
    position: relative;
    display: inline-block;
}

.config-btn {
    background-color: #4CAF50 !important;
    color: white !important;
    padding: 10px 16px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    width: auto !important;
    margin: 0 !important;
}

.config-btn:hover {
    background-color: #45a049 !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 300px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.config-form {
    padding: 20px;
}

.config-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.config-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.config-form input[type="text"]:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.config-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 15px;
    resize: vertical;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.config-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.config-form button {
    background-color: #4CAF50 !important;
    color: white !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    width: 100% !important;
    margin: 0 !important;
}

.config-form button:hover {
    background-color: #45a049 !important;
}

/* Informações da empresa melhoradas */
.info-empresa {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.empresa-nome {
    font-weight: 800;
    color: #0d4f17 !important;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.data-simulacao {
    color: #2e7d32;
    font-size: 16px;
    font-weight: 600;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #4CAF50;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Tabelas */
.tabela-container {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.valor-moeda {
    text-align: right;
}

/* Botões */
.btn-gerar {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin: 30px 0;
    transition: background-color 0.3s;
}

.btn-gerar:hover {
    background-color: #1976D2;
}

/* Botões da proposta */
.btn-copiar,
.btn-salvar {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-copiar {
    background-color: #4CAF50;
    color: white;
}

.btn-salvar {
    background-color: #2196F3;
    color: white;
}

.btn-copiar:hover {
    background-color: #45a049;
}

.btn-salvar:hover {
    background-color: #1976D2;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Proposta gerada */
.proposta-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.proposta-conteudo {
    white-space: pre-wrap;
    font-family: monospace;
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Menu de navegação no cabeçalho */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 800px;
}

.nav-button {
    flex: 1;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    white-space: nowrap;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-button.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Telas */
.tela {
    display: none;
}

.tela.active {
    display: block;
}

/* Definição removida - conflito com definição principal */

/* Seção de configurações */
.config-section {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.config-section h2 {
    color: #333;
    margin: 30px 0 20px;
    font-size: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    font-style: italic;
}

/* Botões */
.btn-gerar {
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-gerar:hover {
    background-color: #1976D2;
}

.btn-salvar {
    background-color: #4CAF50;
    color: white;
}

.btn-restaurar {
    background-color: #f44336;
    color: white;
}

.btn-exemplo {
    background-color: #2196F3;
    color: white;
}

.btn-copiar:hover {
    background-color: #45a049;
}

.btn-salvar:hover {
    background-color: #43A047;
}

.btn-restaurar:hover {
    background-color: #E53935;
}

.btn-exemplo:hover {
    background-color: #1976D2;
}

/* Container de ações */
.acoes-container {
    display: flex;
    gap: 15px;
    margin: 30px auto;
    justify-content: center;
    max-width: 1400px;
}

/* Botão Gerar Proposta */
.btn-gerar {
    flex: 2;
    padding: 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-gerar:hover {
    background-color: #1976D2;
}

/* Botão Limpar */
.btn-limpar {
    flex: 1;
    padding: 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-limpar:hover {
    background-color: #d32f2f;
}

.btn-limpar .icone {
    font-size: 20px;
}

.btn-limpar .tecla-atalho {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
    margin-left: auto;
}

/* Configuração de Bancos */
.bancos-config {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    width: 100%;
    position: relative;
}

.input-group input {
    flex: 1;
    min-width: 300px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    height: 45px;
    transition: all 0.3s ease;
    background-color: white;
    color: #333;
    z-index: 1;
}

.input-group input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.input-group input::placeholder {
    color: #999;
}

.input-group input:disabled,
.input-group input:read-only {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.btn-add {
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    height: 45px;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    z-index: 1;
}

.btn-add:hover {
    background-color: #45a049;
}

.btn-add:active {
    transform: translateY(1px);
}

.btn-add:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.bancos-lista {
    margin-top: 20px;
}

.bancos-lista h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.lista-bancos {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.banco-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.banco-item:hover {
    background-color: #f8f9fa;
    border-color: #c8c8c8;
}

.banco-nome {
    flex: 1;
    margin-right: 10px;
    font-size: 14px;
    color: #333;
}

.banco-acoes {
    display: flex;
    gap: 5px;
}

.btn-editar,
.btn-excluir,
.btn-salvar,
.btn-cancelar {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.btn-editar {
    background-color: #2196F3;
    color: white;
}

.btn-excluir {
    background-color: #f44336;
    color: white;
}

.btn-salvar {
    background-color: #4CAF50;
    color: white;
}

.btn-cancelar {
    background-color: #9e9e9e;
    color: white;
}

.btn-editar:hover {
    background-color: #1976D2;
}

.btn-excluir:hover {
    background-color: #d32f2f;
}

.btn-salvar:hover {
    background-color: #388E3C;
}

.btn-cancelar:hover {
    background-color: #757575;
}

.btn-editar:active,
.btn-excluir:active,
.btn-salvar:active,
.btn-cancelar:active {
    transform: translateY(1px);
}

.banco-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #2196F3;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 14px;
}

.banco-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-content input:focus {
    border-color: #4CAF50;
    outline: none;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 80px;
    margin: 0;
}

.btn-salvar {
    background-color: #4CAF50;
    color: white;
}

.btn-salvar:hover {
    background-color: #45a049;
}

.btn-cancelar {
    background-color: #f44336;
    color: white;
}

.btn-cancelar:hover {
    background-color: #da190b;
}

/* Estilos específicos para colunas melhorados */
.banco-nome {
    text-align: left !important;
    padding-left: 18px !important;
    font-weight: 700;
    max-width: 200px;
    color: #1b5e20;
}

.contrato-numero {
    text-align: center !important;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    max-width: 130px;
    color: #424242;
}

/* Larguras das colunas atualizadas */
td:nth-child(1),
th:nth-child(1) {
    width: 18%;
    max-width: 180px;
}

td:nth-child(2),
th:nth-child(2) {
    width: 12%;
    max-width: 120px;
}

   ESTILOS DA CALCULADORA FINANCEIRA

.calculadora-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.calculadora-form {
    flex: 1;
    min-width: 400px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #2c5aa0;
}

.calculadora-field {
    margin-bottom: 25px;
}

.calculadora-field label {
    display: block;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 8px;
    font-size: 14px;
}

.field-note {
    display: block;
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 3px;
    margin-bottom: 5px;
}

.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-symbol input {
    flex: 1;
    padding-right: 30px;
}

.input-symbol {
    position: absolute;
    right: 10px;
    color: #2c5aa0;
    font-weight: bold;
    pointer-events: none;
}

.calculadora-field input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.calculadora-field input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 5px rgba(44, 90, 160, 0.3);
}

.calculadora-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.calculadora-buttons button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-calcular {
    background-color: #2c5aa0;
    color: white;
}

.btn-calcular:hover {
    background-color: #1e3f73;
    transform: translateY(-2px);
}

.btn-limpar {
    background-color: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
}

.btn-limpar:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.btn-voltar {
    background-color: #6c757d;
    color: white;
}

.btn-voltar:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

.calculadora-metodologia {
    text-align: center;
    margin-top: 20px;
}

.calculadora-metodologia a {
    color: #2c5aa0;
    text-decoration: underline;
    font-size: 13px;
}

.calculadora-metodologia a:hover {
    color: #1e3f73;
}

.resultado-container {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #28a745;
    max-height: fit-content;
}

.resultado-container h3 {
    color: #28a745;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
}

.resultado-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.resultado-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.resultado-valor {
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Resumo da operação */
.resumo-operacao {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.resumo-operacao h4 {
    color: #2c5aa0;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
}

.resumo-texto {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.resumo-destaque {
    color: #2c5aa0;
    font-weight: bold;
}

.resumo-valor {
    color: #28a745;
    font-weight: bold;
}

.resumo-linha {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    min-height: 20px;
}

.resumo-linha.separador {
    margin-top: 12px;
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 15px;
}

.resumo-linha.info-extra {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d0d0d0;
    font-size: 13px;
    color: #666;
}

/* Responsividade para a calculadora */
@media (max-width: 768px) {
    .calculadora-container {
        flex-direction: column;
    }

    .calculadora-form {
        min-width: auto;
        padding: 20px;
    }

    .calculadora-buttons {
        flex-direction: column;
        align-items: center;
    }

    .calculadora-buttons button {
        width: 100%;
        max-width: 200px;
    }
}

   ESTILOS PARA FUNCIONALIDADES DE TECLADO

/* Notificações de teclado */
.notificacao-teclado {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2c5aa0;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-weight: bold;
    font-size: 14px;
    animation: slideInNotificacao 0.3s ease-out;
}

.notificacao-teclado.info {
    background: #17a2b8;
}

.notificacao-teclado.success {
    background: #28a745;
}

.notificacao-teclado.warning {
    background: #ffc107;
    color: #333;
}

.notificacao-teclado.error {
    background: #dc3545;
    color: white;
}

@keyframes slideInNotificacao {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dicas de teclado na calculadora */
.dicas-teclado {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.dica-teclado {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

.dica-teclado kbd {
    background: #2c5aa0;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    font-family: monospace;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 45px;
    text-align: center;
}

.dica-teclado:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Responsividade para dicas */
@media (max-width: 480px) {
    .dicas-teclado {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .notificacao-teclado {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

   ESTILOS DA ANÁLISE FINANCEIRA

.analise-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn-analisar {
    background: linear-gradient(135deg, #2c5aa0, #1e3f73);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-analisar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.analise-resumo-container {
    margin: 30px 0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.analise-resumo-card {
    flex: 1;
    min-width: 350px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.analise-resumo-card h4 {
    color: #28a745;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 18px;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #dee2e6;
    font-size: 14px;
}

.resumo-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 16px;
    padding-top: 15px;
    border-top: 2px solid #28a745;
    margin-top: 10px;
}

.valor-destaque {
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

.analise-acoes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.btn-gerar-proposta {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-gerar-proposta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-exportar {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-exportar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

/* Melhorias na tabela de análise */
#tabelaAnalise th:nth-child(3),
#tabelaAnalise th:nth-child(6),
#tabelaAnalise th:nth-child(7) {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

#tabelaAnalise td.valor-positivo {
    color: #28a745;
    font-weight: bold;
}

#tabelaAnalise td.valor-negativo {
    color: #dc3545;
    font-weight: bold;
}

#tabelaAnalise td.taxa-alta {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    font-weight: bold;
}

#tabelaAnalise td.taxa-media {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    font-weight: bold;
}

#tabelaAnalise td.taxa-baixa {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    font-weight: bold;
}

/* Responsividade para análise financeira */
@media (max-width: 768px) {
    .analise-resumo-container {
        flex-direction: column;
    }

    .analise-resumo-card {
        min-width: auto;
    }

    .analise-acoes {
        min-width: auto;
    }

    .analise-buttons {
        flex-direction: column;
        align-items: center;
    }

    .analise-buttons button {
        width: 100%;
        max-width: 250px;
    }
}

   RESPONSIVIDADE DO CABEÇALHO

@media (max-width: 768px) {
    body {
        padding-top: 120px;
        /* Mais espaço para header em mobile */
    }

    .header-container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        text-align: center;
    }

    .logo-area {
        align-items: center;
    }

    .logo-titulo {
        font-size: 20px;
    }

    .logo-subtitulo {
        font-size: 11px;
    }

    .nav-menu {
        order: 1;
        width: 100%;
        padding: 10px 0;
    }

    .nav-container {
        justify-content: center;
        gap: 8px;
    }

    .nav-button {
        font-size: 11px;
        padding: 6px 12px;
        min-width: calc(50% - 4px);
    }

    .user-area {
        order: 2;
        justify-content: center;
        gap: 10px;
    }

    .user-info {
        font-size: 12px;
    }

    .btn-logout {
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 140px;
        /* Ainda mais espaço para telas muito pequenas */
    }

    .nav-container {
        flex-direction: column;
        gap: 5px;
    }

    .nav-button {
        width: 100%;
        max-width: 200px;
        text-align: center;
        min-width: 100%;
    }
}

   ESTILOS DA ANÁLISE FINANCEIRA

.input-valor {
    width: 100%;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
    transition: border-color 0.3s;
}

.input-valor:focus {
    border-color: #4CAF50;
    outline: none;
}

.btn-calcular-individual {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s;
}

.btn-calcular-individual:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
}

.btn-remover {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remover:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-1px);
}

.resumo-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.resumo-cards {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 15px;
}

.resumo-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    border: 1px solid #dee2e6;
}

.resumo-card h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 16px;
}

.resumo-card p {
    color: #2c5aa0;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

/* Responsividade para análise */
@media (max-width: 768px) {
    .resumo-cards {
        flex-direction: column;
    }

    .btn-calcular-individual,
    .btn-remover {
        font-size: 10px;
        padding: 4px 8px;
    }

    .input-valor {
        font-size: 12px;
        padding: 6px;
    }
}

.input-editavel,
.input-editavel-numero,
.input-editavel-porcentagem {
    width: 95%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    text-align: center;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-editavel {
    text-align: right;
}

.input-editavel-numero {
    text-align: center;
}

.input-editavel-porcentagem {
    text-align: center;
}

.input-editavel:focus,
.input-editavel-numero:focus,
.input-editavel-porcentagem:focus {
    border-color: #4CAF50;
    background: white;
    outline: none;
    box-shadow: 0 0 3px rgba(76, 175, 80, 0.3);
}

.input-editavel:hover,
.input-editavel-numero:hover,
.input-editavel-porcentagem:hover {
    border-color: #999;
    background: white;
}

/* Tabela de análise LARGURA TOTAL */
#tabelaAnalise {
    width: 100%;
    max-width: none;
    /* Sem limitação */
    min-width: calc(100vw - 50px);
    /* Forçar largura mínima */
    table-layout: auto;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

#tabelaAnalise th,
#tabelaAnalise td {
    padding: 12px 10px !important;
    text-align: center !important;
    border: 1px solid #e0e0e0 !important;
    word-wrap: break-word !important;
    font-size: 13px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
    min-height: 48px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
    /* Melhor espaçamento entre linhas */
}

/* Cabeçalho da tabela - fonte maior e centralizada - FORÇAR COR UNIFORME */
#tabelaAnalise th {
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 16px 8px !important;
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Manter a primeira coluna (Banco) alinhada à esquerda */
#tabelaAnalise th:first-child {
    text-align: left;
}

/* Melhorar contraste das células de dados */
#tabelaAnalise td {
    background-color: #fafafa;
    color: #333;
    border: 1px solid #e0e0e0;
}

/* Alternating row colors para melhor legibilidade */
#tabelaAnalise tbody tr:nth-child(even) td {
    background-color: #f5f5f5;
}

#tabelaAnalise tbody tr:hover td {
    background-color: #e8f5e8;
    transition: background-color 0.2s ease;
}

/* Linha selecionada - cor diferente - SEM AFETAR LAYOUT */
#tabelaAnalise tbody tr.contrato-selecionado td {
    background-color: #e3f2fd !important;
    font-weight: 600;
    color: #1565C0;
    box-shadow: inset 4px 0 0 #2196F3 !important;
}

/* Linha selecionada par - cor alternada */
#tabelaAnalise tbody tr.contrato-selecionado:nth-child(even) td {
    background-color: #e1f5fe !important;
}

/* Hover para linha selecionada */
#tabelaAnalise tbody tr.contrato-selecionado:hover td {
    background-color: #bbdefb !important;
}

/* Linha selecionada com valor liberado NEGATIVO - cor vermelha */
#tabelaAnalise tbody tr.contrato-selecionado.valor-negativo td {
    background-color: #ffebee !important;
    box-shadow: inset 4px 0 0 #f44336 !important;
    font-weight: 600;
    color: #c62828;
}

/* Linha selecionada par com valor negativo */
#tabelaAnalise tbody tr.contrato-selecionado.valor-negativo:nth-child(even) td {
    background-color: #ffcdd2 !important;
}

/* Hover para linha selecionada com valor negativo */
#tabelaAnalise tbody tr.contrato-selecionado.valor-negativo:hover td {
    background-color: #ef9a9a !important;
}

/* Linha selecionada com parcela REDUZIDA e TROCO POSITIVO - cor laranja */
#tabelaAnalise tbody tr.contrato-selecionado.parcela-reduzida td {
    background-color: #fff3e0 !important;
    box-shadow: inset 4px 0 0 #ff9800 !important;
    font-weight: 600;
    color: #e65100;
}

/* Linha selecionada par com parcela reduzida */
#tabelaAnalise tbody tr.contrato-selecionado.parcela-reduzida:nth-child(even) td {
    background-color: #ffe0b2 !important;
}

/* Hover para linha selecionada com parcela reduzida */
#tabelaAnalise tbody tr.contrato-selecionado.parcela-reduzida:hover td {
    background-color: #ffcc02 !important;
}

/* Linha selecionada com parcela AUMENTADA - cor roxa */
#tabelaAnalise tbody tr.contrato-selecionado.parcela-aumentada td {
    background-color: #f3e5f5 !important;
    box-shadow: inset 4px 0 0 #9c27b0 !important;
    font-weight: 600;
    color: #4a148c;
}

/* Linha selecionada par com parcela aumentada */
#tabelaAnalise tbody tr.contrato-selecionado.parcela-aumentada:nth-child(even) td {
    background-color: #e1bee7 !important;
}

/* Hover para linha selecionada com parcela aumentada */
#tabelaAnalise tbody tr.contrato-selecionado.parcela-aumentada:hover td {
    background-color: #ce93d8 !important;
}

#tabelaAnalise th:first-child,
#tabelaAnalise td:first-child {
    width: 220px;
    /* Banco - largura aumentada para nome completo */
    min-width: 220px;
    text-align: left;
    white-space: normal;
    /* Permitir quebra de linha */
    overflow: visible;
    word-wrap: break-word;
    /* Quebrar palavras longas */
    padding: 8px 4px;
    /* Padding adequado */
}

#tabelaAnalise th:nth-child(2),
#tabelaAnalise td:nth-child(2) {
    width: 120px;
    /* Contrato - largura reduzida */
    max-width: 120px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tabelaAnalise th:nth-child(3),
#tabelaAnalise td:nth-child(3) {
    width: 110px;
    /* Parcela - largura fixa reduzida */
}

#tabelaAnalise th:nth-child(4),
#tabelaAnalise td:nth-child(4) {
    width: 70px;
    /* Prazo - largura fixa reduzida */
}

#tabelaAnalise th:nth-child(5),
#tabelaAnalise td:nth-child(5) {
    width: 70px;
    /* Taxa - largura fixa reduzida */
}

#tabelaAnalise th:nth-child(6),
#tabelaAnalise td:nth-child(6) {
    width: 100px;
    /* Quitação - largura ainda mais reduzida para dar mais espaço à coluna SELECIONAR */
}

#tabelaAnalise th:nth-child(7),
#tabelaAnalise td:nth-child(7) {
    width: 120px;
    /* Coeficiente - largura fixa reduzida */
}

#tabelaAnalise th:nth-child(8),
#tabelaAnalise td:nth-child(8) {
    width: 140px;
    /* Banco Destino - largura reduzida para compensar coluna SELECIONAR */
}

#tabelaAnalise th:nth-child(9),
#tabelaAnalise td:nth-child(9) {
    width: 120px;
    /* Vl. Liberado - largura fixa reduzida */
}

#tabelaAnalise th:nth-child(10),
#tabelaAnalise td:nth-child(10) {
    width: 130px;
    /* Selecionar - largura ampliada para botões marcar/desmarcar todos */
}

/* Cabeçalho da coluna SELECIONAR - FORÇAR COR VERDE E ALINHAMENTO */
#tabelaAnalise th:nth-child(10) {
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    vertical-align: middle !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 16px 8px !important;
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Container dos botões de marcar/desmarcar todos na coluna SELECIONAR */
#tabelaAnalise th:nth-child(10)>div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

/* Melhor espaçamento para os botões na coluna */
#tabelaAnalise th:nth-child(10) .btn-selecao {
    margin: 2px;
    font-size: 12px;
    min-width: 30px;
    height: 30px;
    padding: 4px 8px;
}

/* Container específico dos botões de seleção */
#tabelaAnalise th:nth-child(10) .selecao-actions {
    display: block !important;
    margin-top: 10px !important;
    text-align: center !important;
}

#tabelaAnalise th:nth-child(10) .selecao-actions>div {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Configuração dos checkboxes individuais na coluna SELECIONAR */
#tabelaAnalise td:nth-child(10) {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 8px !important;
}

#tabelaAnalise td:nth-child(10) input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transform: scale(1.2);
}

.tabela-container {
    overflow-x: auto;
    /* Allow horizontal scroll when needed */
    overflow-y: visible;
    /* Show all rows */
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

/* Botões de seleção na coluna Selecionar */
.selecao-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    z-index: 10;
    position: relative;
}

.btn-selecao {
    background: #4CAF50;
    color: white;
    border: 2px solid #45a049;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    min-width: 35px;
    height: 35px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-selecao:hover {
    background: #45a049;
    transform: scale(1.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-selecao:nth-child(2) {
    background: #f44336;
    border-color: #d32f2f;
}

.btn-selecao:nth-child(2):hover {
    background: #d32f2f;
    transform: scale(1.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

   ESTILOS PARA CONFIGURAÇÕES DA ANÁLISE FINANCEIRA

/* Botão de Configurações da Análise */
.btn-config-analise {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    white-space: nowrap;
}

.btn-config-analise:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Botão Voltar */
.btn-voltar {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: auto;
}

.btn-voltar:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-1px);
}

/* Ajustes para keyboard hints com botão de configurações */
.keyboard-hints {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Estilos específicos para a tela de configurações da análise */
#configuracoes-analise .config-section {
    max-width: 800px;
    margin: 0 auto;
}

#configuracoes-analise h2 {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
}

#configuracoes-analise .form-group {
    margin-bottom: 20px;
}

#configuracoes-analise .help-text {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

/* Estilo para campos específicos da análise */
#margemSegurancaAnalise {
    max-width: 120px;
}

/* Lista de bancos específica para análise */
#listaBancosAnalise .banco-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
}

/* Botões específicos da análise */
#configuracoes-analise .button-group {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

#configuracoes-analise .btn-salvar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

#configuracoes-analise .btn-restaurar {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

#configuracoes-analise .btn-exemplo {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

#configuracoes-analise .btn-cancelar {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

   ESTILOS PARA CAMPO DE COEFICIENTE

/* Campo de coeficiente no cabeçalho */
.coeficiente-input-header {
    margin-top: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    min-width: 160px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 5;
}

.coeficiente-input-header input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    color: #333;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
    height: 36px;
}

.coef-help-header {
    display: block !important;
    font-size: 9px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: center !important;
    font-style: normal !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 2px 0 0 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.2px !important;
    text-transform: uppercase !important;
}

.btn-reset-global {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border: none !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    width: 100% !important;
    height: 28px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3) !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.btn-reset-global:hover {
    background: linear-gradient(135deg, #218838, #1ea085) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4) !important;
}

.btn-reset-global:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3) !important;
}

/* === PADRONIZAÇÃO TOTAL DOS CONTAINERS === */
/* Força ambos os containers a terem exatamente as mesmas dimensões */
.coeficiente-input-header,
.banco-destino-input-header {
    margin-top: 8px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 6px !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    min-width: 160px !important;
    width: 100% !important;
    min-height: 90px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 5 !important;
    justify-content: space-between !important;
}

/* Padronização dos inputs/selects internos */
.coeficiente-input-header input,
.banco-destino-input-header select {
    width: 100% !important;
    padding: 8px 10px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    background: white !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    height: 36px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
}

/* Padronização dos hovers */
.coeficiente-input-header input:hover,
.banco-destino-input-header select:hover {
    border-color: #007bff !important;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2) !important;
}

/* Padronização dos focus */
.coeficiente-input-header input:focus,
.banco-destino-input-header select:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3) !important;
}



/* Campos de coeficiente individuais nas linhas */
.coeficiente-individual {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    color: #333;
    text-align: center;
    font-weight: 500;
    box-sizing: border-box;
    min-width: 120px;
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.coeficiente-individual:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    position: relative;
    z-index: 2;
}

.coeficiente-individual:hover {
    border-color: #007bff;
}

/* Garantir que mudanças de foco não afetem layout */
.coeficiente-individual:focus,
.coeficiente-individual:active {
    width: 100% !important;
    max-width: 160px !important;
    box-sizing: border-box !important;
}

/* Estilo para campos de valor liberado não selecionados */
.valor-nao-selecionado {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    font-style: italic;
    border: 1px solid #dee2e6 !important;
}

.valor-nao-selecionado:focus {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    box-shadow: none !important;
}

/* === ESTILOS PARA BANCO DE DESTINO === */
/* Container de banco de destino no cabeçalho */
.banco-destino-input-header {
    margin-top: 8px;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 6px !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    min-width: 160px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Select de banco destino no cabeçalho */
.banco-destino-input-header select {
    width: 100% !important;
    padding: 8px 10px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    background: white !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    height: 36px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.banco-destino-input-header select:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3) !important;
}

.banco-destino-input-header select:hover {
    border-color: #007bff !important;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2) !important;
}

/* Select individual de banco destino */
.banco-destino-individual {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    padding: 6px 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #2c3e50 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    height: 32px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    margin: 0 auto !important;
    display: block !important;
}

.banco-destino-individual:focus {
    position: relative !important;
    z-index: 10 !important;
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px) !important;
}

.banco-destino-individual:hover {
    border-color: #0056b3 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

.banco-destino-individual:focus,
.banco-destino-individual:active {
    width: 150px !important;
    max-width: 150px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Garantir alinhamento correto da tabela */
#tabelaAnalise {
    table-layout: fixed !important;
    width: 1220px !important;
    min-width: 1220px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: white !important;
    margin: 0 auto !important;
}

#tabelaAnalise th,
#tabelaAnalise td {
    vertical-align: middle;
    padding: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    overflow: visible;
    white-space: nowrap;
}

/* Cabeçalhos específicos com altura automática */
#tabelaAnalise th {
    height: auto;
    min-height: 60px;
    overflow: visible;
}

/* Larguras específicas das colunas - OTIMIZADAS */
#tabelaAnalise th:nth-child(1),
#tabelaAnalise td:nth-child(1) {
    width: 160px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Banco */

#tabelaAnalise th:nth-child(2),
#tabelaAnalise td:nth-child(2) {
    width: 120px;
}

/* Primeira coluna (BANCO) - com truncamento de texto */
#tabelaAnalise td:nth-child(1) {
    font-size: 12px !important;
    padding: 8px 6px !important;
    line-height: 1.2 !important;
    cursor: help !important;
}

#tabelaAnalise td:nth-child(1):hover {
    background-color: rgba(0, 123, 255, 0.1) !important;
    transition: background-color 0.2s ease !important;
}

/* Contrato */

#tabelaAnalise th:nth-child(3),
#tabelaAnalise td:nth-child(3) {
    width: 120px;
}

/* Parcela */

#tabelaAnalise th:nth-child(4),
#tabelaAnalise td:nth-child(4) {
    width: 80px;
}

/* Prazo */

#tabelaAnalise th:nth-child(5),
#tabelaAnalise td:nth-child(5) {
    width: 80px;
}

/* Taxa */

#tabelaAnalise th:nth-child(5),
#tabelaAnalise td:nth-child(5) {
    width: 130px;
}

/* Quitação */

#tabelaAnalise th:nth-child(6),
#tabelaAnalise td:nth-child(6) {
    width: 200px;
    min-width: 200px;
}

/* Coeficiente */
#tabelaAnalise th:nth-child(7),
#tabelaAnalise td:nth-child(7) {
    width: 120px;
}

/* Banco Destino */
#tabelaAnalise th:nth-child(8),
#tabelaAnalise td:nth-child(8) {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 8px 6px !important;
    position: relative !important;
}

/* Vl. Liberado - FORÇAR ALINHAMENTO IGUAL ÀS OUTRAS COLUNAS COM MÁXIMA PRIORIDADE */
#tabelaAnalise th:nth-child(9) {
    width: 130px !important;
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 16px 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    min-height: auto !important;
    height: auto !important;
    position: static !important;
}

#tabelaAnalise td:nth-child(9) {
    width: 130px;
}

/* FORÇA ADICIONAL PARA GARANTIR ALINHAMENTO CORRETO DA COLUNA VL. LIBERADO */
#tabelaAnalise thead th:nth-child(9) {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 16px 8px !important;
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    width: 130px !important;
    display: table-cell !important;
    position: static !important;
    overflow: visible !important;
}

/* Selecionar */
#tabelaAnalise th:nth-child(10),
#tabelaAnalise td:nth-child(10) {
    width: 90px;
    text-align: center;
}

.coeficiente-input input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
    transform: scale(1.02);
}

.coeficiente-input input:hover {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

/* === PADRONIZAÇÃO DOS CONTAINERS GERAIS === */
/* Ajuste unificado para ambos os cabeçalhos com campos especiais - MANTER COR VERDE */
table th:has(.coeficiente-input-header),
table th:has(.banco-destino-input-header) {
    vertical-align: top !important;
    padding: 12px 8px !important;
    height: auto !important;
    min-height: 140px !important;
    overflow: visible !important;
    position: relative !important;
    text-align: center !important;
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* Largura específica do coeficiente */
table th:has(.coeficiente-input-header) {
    min-width: 200px !important;
    width: 200px !important;
}

/* === PADRONIZAÇÃO TOTAL DOS CABEÇALHOS === */
/* Força ambos os cabeçalhos a terem exatamente as mesmas dimensões */
#tabelaAnalise th:nth-child(8),
#tabelaAnalise th:nth-child(9) {
    min-height: 140px !important;
    height: auto !important;
    overflow: visible !important;
    vertical-align: top !important;
    text-align: center !important;
    padding: 12px 8px !important;
    position: relative !important;
}

/* Largura específica do banco destino */
table th:has(.banco-destino-input-header) {
    min-width: 170px !important;
    width: 170px !important;
    max-width: 170px !important;
}

/* Controles do coeficiente */
.coeficiente-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* === ESTILOS PARA TABELA SIAPE - IDÊNTICOS À TABELA ORIGINAL === */
#tabelaAnaliseSiape {
    width: 100%;
    max-width: none;
    /* Sem limitação */
    min-width: calc(100vw - 50px);
    /* Forçar largura mínima */
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: white !important;
    margin: 0 auto !important;
    width: 1220px !important;
    min-width: 1220px !important;
    font-size: 14px;
}

#tabelaAnaliseSiape th,
#tabelaAnaliseSiape td {
    padding: 12px 10px !important;
    text-align: center !important;
    border: 1px solid #e0e0e0 !important;
    word-wrap: break-word !important;
    font-size: 13px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
    min-height: 48px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
    overflow: visible;
    white-space: nowrap;
}

/* Cabeçalho da tabela Siape - fonte maior e centralizada - FORÇAR COR UNIFORME */
#tabelaAnaliseSiape th {
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 16px 8px !important;
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    height: auto;
    min-height: 60px;
    overflow: visible;
}

/* Manter a primeira coluna (Banco) alinhada à esquerda */
#tabelaAnaliseSiape th:first-child {
    text-align: left;
}

/* Melhorar contraste das células de dados */
#tabelaAnaliseSiape td {
    background-color: #fafafa;
    color: #333;
}

/* Larguras específicas das colunas Siape - OTIMIZADAS */
#tabelaAnaliseSiape th:nth-child(1),
#tabelaAnaliseSiape td:nth-child(1) {
    width: 160px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

#tabelaAnaliseSiape th:nth-child(2),
#tabelaAnaliseSiape td:nth-child(2) {
    width: 120px;
}

#tabelaAnaliseSiape th:nth-child(3),
#tabelaAnaliseSiape td:nth-child(3) {
    width: 120px;
}

#tabelaAnaliseSiape th:nth-child(4),
#tabelaAnaliseSiape td:nth-child(4) {
    width: 80px;
}

#tabelaAnaliseSiape th:nth-child(5),
#tabelaAnaliseSiape td:nth-child(5) {
    width: 80px;
}

#tabelaAnaliseSiape th:nth-child(6),
#tabelaAnaliseSiape td:nth-child(6) {
    width: 130px;
}

#tabelaAnaliseSiape th:nth-child(7),
#tabelaAnaliseSiape td:nth-child(7) {
    width: 200px;
    min-width: 200px;
}

#tabelaAnaliseSiape th:nth-child(8),
#tabelaAnaliseSiape td:nth-child(8) {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 8px 6px !important;
    position: relative !important;
}

#tabelaAnaliseSiape th:nth-child(9),
#tabelaAnaliseSiape td:nth-child(9) {
    width: 120px;
}

#tabelaAnaliseSiape th:nth-child(10),
#tabelaAnaliseSiape td:nth-child(10) {
    width: 130px;
}

/* Cabeçalhos específicos com altura automática */
#tabelaAnaliseSiape th:nth-child(7),
#tabelaAnaliseSiape th:nth-child(8) {
    min-height: 140px !important;
    height: auto !important;
    overflow: visible !important;
    vertical-align: top !important;
    text-align: center !important;
    padding: 12px 8px !important;
    position: relative !important;
}

/* Primeira coluna (BANCO) Siape - com truncamento de texto */
#tabelaAnaliseSiape td:nth-child(1) {
    font-size: 12px !important;
    padding: 8px 6px !important;
    line-height: 1.2 !important;
    cursor: help !important;
}

#tabelaAnaliseSiape td:nth-child(1):hover {
    background-color: rgba(0, 123, 255, 0.1) !important;
    transition: background-color 0.2s ease !important;
}

/* === ELEMENTOS ESPECÍFICOS DA TABELA SIAPE === */

/* Input de coeficiente individual para Siape */
#tabelaAnaliseSiape .input-coeficiente {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    padding: 6px 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #2c3e50 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    height: 32px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#tabelaAnaliseSiape .input-coeficiente:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px) !important;
}

#tabelaAnaliseSiape .input-coeficiente:hover {
    border-color: #0056b3 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Select individual de banco destino para Siape */
#tabelaAnaliseSiape .banco-destino-individual {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    padding: 6px 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #2c3e50 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    height: 32px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    margin: 0 auto !important;
    display: block !important;
}

#tabelaAnaliseSiape .banco-destino-individual:focus {
    position: relative !important;
    z-index: 10 !important;
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px) !important;
}

#tabelaAnaliseSiape .banco-destino-individual:hover {
    border-color: #0056b3 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Checkbox de seleção para Siape */
#tabelaAnaliseSiape .checkbox-selecao {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    transform: scale(1.2) !important;
    accent-color: #4CAF50 !important;
}

#tabelaAnaliseSiape .checkbox-selecao:hover {
    transform: scale(1.3) !important;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3) !important;
}

/* Botões de seleção para Siape */
#tabelaAnaliseSiape .btn-selecao {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    margin: 0 2px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: bold !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

#tabelaAnaliseSiape .btn-selecao:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

#tabelaAnaliseSiape .btn-selecao:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Container das ações de seleção para Siape */
#tabelaAnaliseSiape .selecao-actions {
    display: flex !important;
    gap: 4px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 8px !important;
}

/* Inputs do cabeçalho para Siape */
#tabelaAnaliseSiape .coeficiente-input-header input,
#tabelaAnaliseSiape .banco-destino-input-header select {
    width: 100% !important;
    max-width: 120px !important;
    padding: 6px 8px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 4px auto !important;
    display: block !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

#tabelaAnaliseSiape .coeficiente-input-header input:focus,
#tabelaAnaliseSiape .banco-destino-input-header select:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* Botões de reset do cabeçalho para Siape */
#tabelaAnaliseSiape .btn-reset-global {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    padding: 4px 6px !important;
    margin: 2px auto !important;
    cursor: pointer !important;
    font-size: 10px !important;
    transition: all 0.2s ease !important;
    display: block !important;
}

#tabelaAnaliseSiape .btn-reset-global:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* Texto de ajuda do cabeçalho para Siape */
#tabelaAnaliseSiape .coef-help-header {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    text-align: center !important;
    margin-top: 2px !important;
    display: block !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Container da tabela Siape com scroll horizontal */
#tabelaAnaliseVisualizadaSiape {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin: 20px 0 !important;
    padding: 0 !important;
}

/* Ajuste do container principal para permitir scroll */
#tabelaAnaliseVisualizadaSiape .tabela-container {
    min-width: 1220px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* Scrollbar personalizada para a tabela Siape */
#tabelaAnaliseVisualizadaSiape::-webkit-scrollbar {
    height: 12px !important;
}

#tabelaAnaliseVisualizadaSiape::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 6px !important;
}

#tabelaAnaliseVisualizadaSiape::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    border-radius: 6px !important;
    border: 2px solid #f1f1f1 !important;
}

#tabelaAnaliseVisualizadaSiape::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40) !important;
}

/* Estilo para mensagem de modelo detectado */
.modelo-detectado {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    padding: 8px 16px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modelo-detectado span {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* Força todas as colunas da tabela Siape a manterem suas larguras */
#tabelaAnaliseSiape {
    white-space: nowrap !important;
}

#tabelaAnaliseSiape th,
#tabelaAnaliseSiape td {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Exceção para a primeira coluna (Banco) que pode quebrar linha */
#tabelaAnaliseSiape th:first-child,
#tabelaAnaliseSiape td:first-child {
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* === INPUTS EDITÁVEIS DA TABELA SIAPE === */

/* Inputs editáveis gerais para Siape */
#tabelaAnaliseSiape .input-editavel {
    width: 100% !important;
    max-width: 100px !important;
    padding: 6px 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #2c3e50 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    height: 32px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#tabelaAnaliseSiape .input-editavel:focus {
    outline: none !important;
    border-color: #007bff !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px) !important;
}

#tabelaAnaliseSiape .input-editavel:hover {
    border-color: #0056b3 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Inputs editáveis numéricos para Siape */
#tabelaAnaliseSiape .input-editavel-numero {
    width: 70px !important;
    max-width: 70px !important;
    padding: 6px 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #2c3e50 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    height: 32px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#tabelaAnaliseSiape .input-editavel-numero:focus {
    outline: none !important;
    border-color: #007bff !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px) !important;
}

#tabelaAnaliseSiape .input-editavel-numero:hover {
    border-color: #0056b3 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Inputs editáveis de porcentagem para Siape */
#tabelaAnaliseSiape .input-editavel-porcentagem {
    width: 70px !important;
    max-width: 70px !important;
    padding: 6px 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #2c3e50 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    height: 32px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#tabelaAnaliseSiape .input-editavel-porcentagem:focus {
    outline: none !important;
    border-color: #007bff !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px) !important;
}

#tabelaAnaliseSiape .input-editavel-porcentagem:hover {
    border-color: #0056b3 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Campos não selecionados para Siape */
#tabelaAnaliseSiape .valor-nao-selecionado {
    background: #f8f9fa !important;
    color: #6c757d !important;
    font-style: italic !important;
}

/* Animações de hover para todos os inputs Siape */
#tabelaAnaliseSiape .input-editavel:focus,
#tabelaAnaliseSiape .input-editavel-numero:focus,
#tabelaAnaliseSiape .input-editavel-porcentagem:focus,
#tabelaAnaliseSiape .input-coeficiente:focus {
    animation: focusGlow 0.3s ease-in-out;
}

@keyframes focusGlow {
    0% {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* === ESTILOS PARA LINHAS SELECIONADAS SIAPE === */

/* ===== CORES IDÊNTICAS AO MENU ORIGINAL ===== */

/* Melhorar contraste das células de dados */
#tabelaAnaliseSiape td {
    background-color: #fafafa;
    color: #333;
    border: 1px solid #e0e0e0;
}

/* Alternating row colors para melhor legibilidade */
#tabelaAnaliseSiape tbody tr:nth-child(even) td {
    background-color: #f5f5f5;
}

#tabelaAnaliseSiape tbody tr:hover td {
    background-color: #e8f5e8;
    transition: background-color 0.2s ease;
}

/* Linha selecionada - cor AZUL igual ao menu original */
#tabelaAnaliseSiape tbody tr.contrato-selecionado td {
    background-color: #e3f2fd !important;
    font-weight: 600;
    color: #1565C0;
    box-shadow: inset 4px 0 0 #2196F3 !important;
}

/* Linha selecionada par - cor alternada */
#tabelaAnaliseSiape tbody tr.contrato-selecionado:nth-child(even) td {
    background-color: #e1f5fe !important;
}

/* Hover para linha selecionada */
#tabelaAnaliseSiape tbody tr.contrato-selecionado:hover td {
    background-color: #bbdefb !important;
}

/* Linha selecionada com valor liberado NEGATIVO - cor vermelha */
#tabelaAnaliseSiape tbody tr.contrato-selecionado.valor-negativo td {
    background-color: #ffebee !important;
    box-shadow: inset 4px 0 0 #f44336 !important;
    font-weight: 600;
    color: #c62828;
}

/* Linha selecionada par com valor negativo */
#tabelaAnaliseSiape tbody tr.contrato-selecionado.valor-negativo:nth-child(even) td {
    background-color: #ffcdd2 !important;
}

/* Hover para linha selecionada com valor negativo */
#tabelaAnaliseSiape tbody tr.contrato-selecionado.valor-negativo:hover td {
    background-color: #ef9a9a !important;
}

/* Linha selecionada com parcela REDUZIDA e TROCO POSITIVO - cor laranja */
#tabelaAnaliseSiape tbody tr.contrato-selecionado.parcela-reduzida td {
    background-color: #fff3e0 !important;
    box-shadow: inset 4px 0 0 #ff9800 !important;
    font-weight: 600;
    color: #e65100;
}

/* Linha selecionada par com parcela reduzida */
#tabelaAnaliseSiape tbody tr.contrato-selecionado.parcela-reduzida:nth-child(even) td {
    background-color: #ffe0b2 !important;
}

/* Hover para linha selecionada com parcela reduzida */
#tabelaAnaliseSiape tbody tr.contrato-selecionado.parcela-reduzida:hover td {
    background-color: #ffcc80 !important;
}

/* Linha selecionada com parcela AUMENTADA - cor roxa */
#tabelaAnaliseSiape tbody tr.contrato-selecionado.parcela-aumentada td {
    background-color: #f3e5f5 !important;
    box-shadow: inset 4px 0 0 #9c27b0 !important;
    font-weight: 600;
    color: #4a148c;
}

/* Linha selecionada par com parcela aumentada */
#tabelaAnaliseSiape tbody tr.contrato-selecionado.parcela-aumentada:nth-child(even) td {
    background-color: #e1bee7 !important;
}

/* Hover para linha selecionada com parcela aumentada */
#tabelaAnaliseSiape tbody tr.contrato-selecionado.parcela-aumentada:hover td {
    background-color: #ce93d8 !important;
}

/* === ESTILOS PARA TABELA DE RESUMO SIAPE === */
#tabelaResumoSiape {
    table-layout: auto !important;
    width: 100% !important;
    max-width: 1600px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: white !important;
    margin: 20px auto !important;
}

#tabelaResumoSiape th,
#tabelaResumoSiape td {
    padding: 12px 10px !important;
    text-align: center !important;
    border: 1px solid #e0e0e0 !important;
    word-wrap: break-word !important;
    font-size: 13px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
    min-height: 48px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
}

#tabelaResumoSiape th {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Larguras específicas das colunas do resumo Siape */
#tabelaResumoSiape th:nth-child(1),
#tabelaResumoSiape td:nth-child(1) {
    width: 160px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tabelaResumoSiape th:nth-child(2),
#tabelaResumoSiape td:nth-child(2) {
    width: 120px;
}

#tabelaResumoSiape th:nth-child(3),
#tabelaResumoSiape td:nth-child(3) {
    width: 140px;
}

#tabelaResumoSiape th,
#tabelaResumoSiape td {
    text-align: center !important;
}

#tabelaResumoSiape th:nth-child(1),
#tabelaResumoSiape td:nth-child(1) {
    width: 180px;
}

#tabelaResumoSiape th:nth-child(2),
#tabelaResumoSiape td:nth-child(2) {
    width: 140px;
}

#tabelaResumoSiape th:nth-child(3),
#tabelaResumoSiape td:nth-child(3) {
    width: 140px;
}

#tabelaResumoSiape th:nth-child(4),
#tabelaResumoSiape td:nth-child(4) {
    width: 160px;
}

#tabelaResumoSiape th:nth-child(5),
#tabelaResumoSiape td:nth-child(5) {
    width: 160px;
}

#tabelaResumoSiape th:nth-child(6),
#tabelaResumoSiape td:nth-child(6) {
    width: auto;
    min-width: 300px;
}

#tabelaResumoSiape th:nth-child(7),
#tabelaResumoSiape td:nth-child(7) {
    width: auto;
    min-width: 500px;
    text-align: left !important;
    white-space: nowrap !important;
    word-break: normal !important;
    font-size: 11px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#tabelaResumoSiape th:nth-child(5),
#tabelaResumoSiape td:nth-child(5) {
    width: 150px;
}

#tabelaResumoSiape th:nth-child(6),
#tabelaResumoSiape td:nth-child(6) {
    width: 130px;
}

#tabelaResumoSiape th:nth-child(7),
#tabelaResumoSiape td:nth-child(7) {
    width: auto;
    min-width: 500px;
    text-align: left !important;
    padding: 15px !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    line-height: 1.2 !important;
    font-size: 11px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Totais da tabela de resumo Siape */
#tabelaResumoSiape tfoot td {
    background-color: #f5f5f5 !important;
    font-weight: 700 !important;
    border-top: 2px solid #4CAF50 !important;
}

/* Container da tabela de resumo Siape */
#tabelaResumoContainerSiape {
    border: 2px solid #4CAF50 !important;
    border-radius: 15px !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15) !important;
}

#tabelaResumoContainerSiape h3 {
    color: #2c3e50 !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Ajustes quando coluna observação está oculta Siape */
#tabelaResumoSiape th:nth-child(7):not([style*="display: none"])~th,
#tabelaResumoSiape td:nth-child(7):not([style*="display: none"])~td {
    /* Quando observação está visível, manter larguras normais */
}

/* Quando coluna observação está oculta, redistribuir espaço Siape */
#tabelaResumoSiape th:nth-child(7)[style*="display: none"]~th,
#tabelaResumoSiape td:nth-child(7)[style*="display: none"]~td {
    width: auto !important;
}

/* === ESTILOS PARA LINHA EDITÁVEL SIAPE === */
.linha-editavel-siape {
    background-color: #fff3cd !important;
    border: 2px solid #ffc107 !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3) !important;
}

.linha-editavel-siape td {
    padding: 8px 4px !important;
    vertical-align: middle !important;
}

.linha-editavel-siape input,
.linha-editavel-siape select {
    width: 100% !important;
    padding: 6px 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-family: Arial, sans-serif !important;
    box-sizing: border-box !important;
}

.linha-editavel-siape input:focus,
.linha-editavel-siape select:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
    outline: none !important;
}

.linha-editavel-siape input[type="checkbox"] {
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

.linha-editavel-siape input[readonly] {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}

.acoes-linha-editavel {
    white-space: nowrap !important;
    text-align: center !important;
    width: 140px !important;
}

.btn-salvar-linha-siape,
.btn-cancelar-linha-siape {
    padding: 4px 8px !important;
    margin: 2px !important;
    border: none !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    cursor: pointer !important;
    font-weight: bold !important;
}

.btn-salvar-linha-siape {
    background-color: #28a745 !important;
    color: white !important;
}

.btn-salvar-linha-siape:hover {
    background-color: #218838 !important;
}

.btn-cancelar-linha-siape {
    background-color: #dc3545 !important;
    color: white !important;
}

.btn-cancelar-linha-siape:hover {
    background-color: #c82333 !important;
}

/* Responsividade para linha editável */
@media (max-width: 1200px) {

    .linha-editavel-siape input,
    .linha-editavel-siape select {
        font-size: 11px !important;
        padding: 4px 6px !important;
    }

    .btn-salvar-linha-siape,
    .btn-cancelar-linha-siape {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

/* === ESTILOS PARA TABELA DE RESUMO === */
#tabelaResumo {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: white !important;
    margin-top: 20px !important;
}

#tabelaResumo th,
#tabelaResumo td {
    padding: 12px 10px !important;
    text-align: center !important;
    border: 1px solid #e0e0e0 !important;
    word-wrap: break-word !important;
    font-size: 13px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
    min-height: 48px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
}

#tabelaResumo th {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Larguras específicas das colunas do resumo */
#tabelaResumo th:nth-child(1),
#tabelaResumo td:nth-child(1) {
    width: 160px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tabelaResumo th:nth-child(2),
#tabelaResumo td:nth-child(2) {
    width: 120px;
}

#tabelaResumo th:nth-child(3),
#tabelaResumo td:nth-child(3) {
    width: 140px;
}

#tabelaResumo th:nth-child(4),
#tabelaResumo td:nth-child(4) {
    width: 140px;
}

#tabelaResumo th:nth-child(5),
#tabelaResumo td:nth-child(5) {
    width: 150px;
}

#tabelaResumo th:nth-child(6),
#tabelaResumo td:nth-child(6) {
    width: 130px;
}

#tabelaResumo th:nth-child(7),
#tabelaResumo td:nth-child(7) {
    width: auto;
    min-width: 300px;
    text-align: left !important;
    padding: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.4 !important;
}

/* Estilos para observações especiais */
.observacao-reducao {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    color: #7d6608 !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    border-left: 4px solid #f39c12 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.observacao-reducao strong {
    color: #b7950b !important;
    font-weight: 700 !important;
}

/* Estilos para observações de aumento de parcela */
.observacao-aumento {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7) !important;
    color: #4a148c !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    border-left: 4px solid #9c27b0 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.observacao-aumento strong {
    color: #6a1b9a !important;
    font-weight: 700 !important;
}

.valor-negativo-resumo {
    background-color: #ffebee !important;
    color: #c62828 !important;
    font-weight: 600 !important;
}

.valor-positivo-resumo {
    background-color: #e8f5e8 !important;
    color: #2e7d32 !important;
    font-weight: 600 !important;
}

/* Totais da tabela de resumo */
#tabelaResumo tfoot td {
    background-color: #f5f5f5 !important;
    font-weight: 700 !important;
    border-top: 2px solid #4CAF50 !important;
}

/* Container da tabela de resumo */
#tabelaResumoContainer {
    border: 2px solid #4CAF50 !important;
    border-radius: 15px !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15) !important;
}

#tabelaResumoContainer h3 {
    color: #2c3e50 !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Ajustes quando coluna observação está oculta */
#tabelaResumo th:nth-child(7):not([style*="display: none"])~th,
#tabelaResumo td:nth-child(7):not([style*="display: none"])~td {
    /* Quando observação está visível, manter larguras normais */
}

/* Quando coluna observação está oculta, redistribuir espaço */
#tabelaResumo th:nth-child(7)[style*="display: none"]~th,
#tabelaResumo td:nth-child(7)[style*="display: none"]~td {
    width: auto !important;
}

/* Melhorar legibilidade da observação */
.observacao-reducao {
    line-height: 1.5 !important;
    font-size: 11px !important;
}

.observacao-reducao strong {
    color: #d68910 !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) !important;
}

/* Melhorar legibilidade da observação de aumento */
.observacao-aumento {
    line-height: 1.5 !important;
    font-size: 11px !important;
}

.observacao-aumento strong {
    color: #8e24aa !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) !important;
}

/* Mensagem explicativa removida conforme solicitado pelo usuário */

/* Animação removida - não é mais necessária */

.coeficiente-controls input {
    flex: 1;
}

.btn-reset-coef {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.btn-reset-coef:hover {
    background: #5a6268;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: #495057;
}

.btn-reset-coef:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Texto de ajuda do coeficiente */
.coef-help {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-align: center;
    font-style: italic;
}

/* Responsividade para campo do coeficiente */
@media (max-width: 768px) {
    .coeficiente-input {
        padding: 8px;
        margin-top: 6px;
        min-width: 160px;
    }

    .coeficiente-controls {
        gap: 6px;
    }

    .coeficiente-input input {
        font-size: 13px;
        padding: 8px 10px;
        min-width: 100px;
    }

    .coeficiente-input label {
        font-size: 11px;
    }

    .btn-reset-coef {
        font-size: 12px;
        padding: 8px 10px;
        min-width: 36px;
        height: 36px;
    }

    table th:has(.coeficiente-input) {
        min-width: 180px;
        width: 180px;
    }
}

/* Estilos para os modelos de proposta */
.modelos-container {
    width: 100%;
}

.modelo-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.input-modelo-nome {
    flex: 1;
    min-width: 300px;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border-color 0.2s;
}

.input-modelo-nome:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.input-modelo-nome::placeholder {
    color: #999;
}

.modelos-lista {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.modelo-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modelo-item:last-child {
    border-bottom: none;
}

.modelo-item:hover {
    background-color: #f5f5f5;
}

.modelo-nome {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.modelo-acoes {
    display: flex;
    gap: 5px;
}

.btn-editar,
.btn-excluir {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn-editar {
    background: #4CAF50;
    color: white;
}

.btn-excluir {
    background: #f44336;
    color: white;
}

.btn-editar:hover,
.btn-excluir:hover {
    opacity: 0.8;
}

.modelo-editor {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.modelo-editor h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.editor-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.editor-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

/* Estilos para o seletor de modelo na proposta */
.proposta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modelo-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modelo-selector select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    min-width: 200px;
}

.btn-config-simulacao {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.btn-config-simulacao:hover {
    background: #45a049;
}

   CORREÇÃO FORÇADA PARA TÍTULO DAS NOTAS

/* Campo título igual ao campo de conteúdo */
.campo-nota-titulo {
    width: 100%;
    min-height: 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    background: #fff;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Containers com overflow visível para quebra de linha */
.nota-header,
.nota-titulo-container {
    overflow: visible;
}

/* Tamanho original do painel restaurado */

/* REMOVIDO - Usando implementação igual ao campo de conteúdo */

.configuracao-container {
    margin-bottom: 8px;
}

.btn-formatacao {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.btn-formatacao:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.btn-formatacao.ativo {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.btn-formatacao.ativo:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.icone-formatacao {
    font-size: 16px;
}

.texto-formatacao {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.seta-formatacao {
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.btn-formatacao.ativo .seta-formatacao {
    transform: rotate(180deg);
}

/* Atualizar o estilo da toolbar existente */
.nota-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    margin-top: 8px !important;
    align-items: center;
    animation: slideDown 0.3s ease;
    border-top: 3px solid #3498db;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0;
        margin-top: 0;
    }

    to {
        opacity: 1;
        max-height: 200px;
        padding: 12px;
        margin-top: 8px;
    }
}

/* Estilos para o menu de opções reorganizado */
.secao-toolbar {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.secao-toolbar:last-child {
    margin-bottom: 0;
}

.titulo-secao {
    font-weight: 600;
    font-size: 12px;
    color: #495057;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.titulo-secao {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    padding: 4px 8px;
    background: #ecf0f1;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

.toolbar-grupo-acoes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-acao {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
    min-width: 70px;
}

.btn-acao:hover {
    background: #ecf0f1;
    border-color: #95a5a6;
    transform: translateY(-1px);
}

.btn-expandir:hover {
    background: #e8f5e8;
    border-color: #27ae60;
    color: #27ae60;
}

.btn-mover:hover {
    background: #fff3cd;
    border-color: #f39c12;
    color: #f39c12;
}

.btn-deletar:hover {
    background: #f8d7da;
    border-color: #e74c3c;
    color: #e74c3c;
}

.separador-toolbar {
    height: 1px;
    background: #bdc3c7;
    margin: 8px 0;
    opacity: 0.5;
}

.btn-formatacao .icone-formatacao {
    font-size: 16px;
}

.btn-formatacao .texto-formatacao {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Estilos para o sistema de backup */
.secao-gerenciamento {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.secao-gerenciamento h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.backup-controles {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.btn-backup-salvar,
.btn-backup-carregar {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-backup-salvar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-backup-salvar:hover {
    background: linear-gradient(135deg, #1e7e34, #17a2b8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-backup-carregar {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
}

.btn-backup-carregar:hover {
    background: linear-gradient(135deg, #0056b3, #520dc2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.backup-info {
    text-align: center;
    margin-top: 8px;
}

.backup-info small {
    color: #6c757d;
    font-size: 11px;
    font-style: italic;
}

/* ===== GERADOR DE PROPOSTA ===== */
/* Abas dos Bancos */
.bancos-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.banco-tab {
    padding: 15px 20px;
    background: #f5f6fa;
    border: 1px solid #dcdde1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.banco-tab:hover {
    background: #dfe6e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.banco-tab.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Estilos específicos para cada banco */
#tab-click {
    background: #27ae60;
    color: white;
    border-color: #219a52;
}

#tab-click:hover,
#tab-click.active {
    background: #219a52;
}

#tab-cashcard {
    background: #e67e22;
    color: white;
    border-color: #d35400;
}

#tab-cashcard:hover,
#tab-cashcard.active {
    background: #d35400;
}

#tab-master {
    background: #8e44ad;
    color: white;
    border-color: #6c3483;
}

#tab-master:hover,
#tab-master.active {
    background: #6c3483;
}

#tab-digio {
    background: #2980b9;
    color: white;
    border-color: #2471a3;
}

#tab-digio:hover,
#tab-digio.active {
    background: #2471a3;
}

.banco-container {
    display: none;
    /* Esconde todos os containers por padrão */
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banco-container.active {
    display: block;
    /* Mostra apenas o container ativo */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banco-header {
    text-align: center;
    margin-bottom: 30px;
}

.banco-header h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    padding: 0 20px;
}

.form-actions button {
    flex: 1;
    max-width: 200px;
    min-width: 150px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gerar {
    background: #27ae60;
    color: white;
}

.btn-gerar:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.btn-copiar {
    background: #3498db;
    color: white;
}

.btn-copiar:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-limpar {
    background: #7f8c8d;
    color: white;
}

.btn-limpar:hover {
    background: #6c7a7d;
    transform: translateY(-2px);
}

.atalhos-teclado {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.atalho {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

.atalho kbd {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 12px;
    color: #495057;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.atalho-texto {
    color: #6c757d;
    font-size: 13px;
}

.header-proposta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.titulo-proposta {
    flex: 1;
}

.titulo-proposta h1 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0;
    margin-bottom: 8px;
}

.titulo-proposta .subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

.atalhos-teclado {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.atalho kbd {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 12px;
    color: #495057;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: 30px;
    text-align: center;
    display: inline-block;
}

.atalho-texto {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

   CONFIGURAÇÕES DO GERADOR DE PROPOSTA

/* Header das configurações */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 10px 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 15px;
}

.config-title h1 {
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
}

.config-title .subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 16px;
}

/* Botão voltar */
.btn-voltar {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-voltar:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Header controles do gerador principal */
.header-controles {
    display: flex;
    align-items: center;
    gap: 20px;
}

.config-button-container {
    display: flex;
    align-items: center;
}

.btn-config-gerador {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-config-gerador:hover {
    background: linear-gradient(135deg, #0056b3, #003d82);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Menu de configurações */
.config-menu {
    margin-bottom: 20px;
    margin-top: 10px;
}

.config-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #e9ecef;
    padding-top: 10px;
}

.config-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.config-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.config-tab:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

/* Conteúdo das tabs */
.config-tab-content {
    display: none;
}

.config-tab-content.active {
    display: block;
}

.config-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.config-section h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.config-description {
    color: #6c757d;
    margin: 0 0 20px 0;
    font-size: 16px;
}

/* Cards dos bancos */
.banco-config-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.banco-config-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.banco-config-card h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.multiplicadores-section {
    margin-bottom: 20px;
}

.multiplicadores-section h4 {
    color: #495057;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.multiplicadores-section:last-child {
    margin-bottom: 0;
}

/* Grid de formulários */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Configurações de modelos */
.modelo-selector {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.modelo-selector label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.modelo-selector select {
    width: 100%;
    max-width: 300px;
}

.modelo-editor {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
}

.modelo-editor h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
}

.template-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
}

.template-info p {
    margin: 0;
    color: #1565c0;
    font-size: 13px;
    font-weight: 500;
}

#template-editor {
    width: 100%;
    min-height: 300px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}

/* Ações das configurações */
.config-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.btn-salvar {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.btn-salvar:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-resetar {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.btn-resetar:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* Responsividade para configurações */
@media (max-width: 768px) {
    .config-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .config-actions {
        flex-direction: column;
    }

    .header-controles {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .config-tabs {
        flex-direction: column;
    }
}

   ➕ MODAL CONTRATO MANUAL

.btn-adicionar-linha {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-adicionar-linha:hover {
    background: linear-gradient(135deg, #218838, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-atualizar-resumo {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-atualizar-resumo:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.analise-button-bottom {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
}

/* 📝 LINHA EDITÁVEL NA TABELA */
.linha-editavel {
    background-color: #f8f9fa !important;
    border: 2px dashed #28a745 !important;
}

.linha-editavel input,
.linha-editavel select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.linha-editavel input:focus,
.linha-editavel select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.btn-salvar-linha {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
}

.btn-salvar-linha:hover {
    background: #218838;
}

.btn-cancelar-linha {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-cancelar-linha:hover {
    background: #c82333;
}

/* 🔧 BOTÕES DE EDITAR/EXCLUIR LINHA MANUAL */
.btn-editar-manual,
.btn-excluir-manual {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.btn-editar-manual:hover {
    background: rgba(0, 123, 255, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

.btn-excluir-manual:hover {
    background: rgba(220, 53, 69, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

.modal-contrato {
    max-width: 700px;
    width: 90%;
}

.modal-contrato .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-contrato .form-group {
    display: flex;
    flex-direction: column;
}

.modal-contrato .form-group.full-width {
    grid-column: 1 / -1;
}

.modal-contrato label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-contrato input,
.modal-contrato select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.modal-contrato input:focus,
.modal-contrato select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-contrato small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.modal-contrato .btn-cancelar {
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
}

.modal-contrato .btn-cancelar:hover {
    background: #5a6268;
}

.modal-contrato .btn-salvar {
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.modal-contrato .btn-salvar:hover {
    background: #218838;
}

/* Responsividade para Modal Contrato */
@media (max-width: 768px) {
    .modal-contrato .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-contrato {
        width: 95%;
        margin: 10px;
    }
}

#tabelaResumoSiape td.observacao-reducao {
    background-color: #fff3e0 !important;
    color: #e65100 !important;
    font-weight: bold !important;
    white-space: pre-line !important;
    text-align: left !important;
    padding: 15px 20px !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    margin: 5px !important;
}

#tabelaResumoSiape td.parcela-reduzida {
    background-color: #ffe0b2 !important;
    color: #e65100 !important;
    font-weight: bold !important;
}

#tabelaResumoSiape td.parcela-aumentada {
    background-color: #e1bee7 !important;
    color: #4a148c !important;
    font-weight: bold !important;
}

/* Controles de Taxas Automáticas */
.controles-taxas {
    background: linear-gradient(135deg, #E8F5E8, #F0F8F0);
    border: 1px solid #C8E6C8;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Container para organizar botões lado a lado */
.botoes-taxas-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

/* Estilo base para botões de taxas */
.btn-taxas-automaticas-siape,
.btn-taxas-automaticas-inss {
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    min-width: 180px;
}

/* Botão SIAPE - Azul */
.btn-taxas-automaticas-siape {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.btn-taxas-automaticas-siape:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E3A8A);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Botão INSS - Verde */
.btn-taxas-automaticas-inss {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-taxas-automaticas-inss:hover {
    background: linear-gradient(135deg, #047857, #065F46);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

/* Estilo antigo mantido para compatibilidade (será removido) */
.btn-taxas-automaticas-principal {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-taxas-automaticas-principal:hover {
    background: linear-gradient(135deg, #F7931E, #FF6B35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.info-taxas {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.info-taxas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.legenda-taxas {
    font-size: 11px;
    color: #555;
    background: rgba(255, 193, 7, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 143, 0, 0.3);
    text-align: center;
    margin-top: 3px;
}

.exemplo-taxa-automatica {
    background: linear-gradient(135deg, #FFE082, #FFC107);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #FF8F00;
    font-weight: bold;
    color: #E65100;
}

/* Identificação de Taxas Ajustadas Automaticamente */
.taxa-ajustada-automaticamente,
input.taxa-ajustada-automaticamente,
.input-editavel-porcentagem.taxa-ajustada-automaticamente {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    border: 3px solid #FF8F00 !important;
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.6) !important;
    position: relative;
    font-weight: bold !important;
    color: #8B4513 !important;
    z-index: 999 !important;
}

.taxa-ajustada-automaticamente::before,
input.taxa-ajustada-automaticamente::before,
.input-editavel-porcentagem.taxa-ajustada-automaticamente::before {
    content: "🔧";
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    background: #FF8F00;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000 !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* ✅ MARCAÇÃO VISUAL SUPER FORÇADA - SOBREPOSIÇÃO TOTAL */
#tabelaAnaliseSiape tbody tr td input.taxa-ajustada-automaticamente,
#tabelaAnaliseSiape tbody tr td .input-editavel-porcentagem.taxa-ajustada-automaticamente,
#tabelaAnaliseSiape input[data-taxa-automatica="true"],
table#tabelaAnaliseSiape tbody tr td:nth-child(5) input.taxa-ajustada-automaticamente {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border: 3px solid #FF8F00 !important;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.8) !important;
    font-weight: bold !important;
    color: #8B4513 !important;
    z-index: 999 !important;
    position: relative !important;
    animation: glow 2s ease-in-out infinite alternate !important;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 12px rgba(255, 165, 0, 0.8), 0 0 5px rgba(255, 215, 0, 0.5);
    }

    to {
        box-shadow: 0 4px 12px rgba(255, 165, 0, 1), 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

.taxa-ajustada-automaticamente:hover {
    background: linear-gradient(135deg, #FFC107, #FFE082) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.taxa-ajustada-automaticamente:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 143, 0, 0.5) !important;
}

/* Configuração de Taxas no Menu */
.taxas-automaticas-config {
    background: #F8F9FA;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.config-info {
    background: #E3F2FD;
    border: 1px solid #BBDEFB;
    border-radius: 6px;
    padding: 12px;
    margin: 0 0 15px 0;
    color: #1976D2;
    font-size: 14px;
}

.faixas-taxas-container h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.faixas-taxas-lista {
    margin-bottom: 15px;
}

.faixa-taxa-item-siape {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 6px;
    margin-bottom: 10px;
    background: white;
}

.faixa-taxa-item-siape label {
    font-weight: 500;
    color: #555;
    min-width: 80px;
}

.faixa-taxa-item-siape input {
    padding: 6px 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 14px;
    width: 80px;
}

.faixa-taxa-item-siape input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.btn-remover-faixa-siape {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-remover-faixa-siape:hover {
    background: linear-gradient(135deg, #D32F2F, #F44336);
    transform: translateY(-1px);
}

.faixas-taxas-controles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.faixas-taxas-controles button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.btn-add:hover {
    background: linear-gradient(135deg, #1976D2, #2196F3);
    transform: translateY(-1px);
}

.btn-reset {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #F57C00, #FF9800);
    transform: translateY(-1px);
}

.btn-save {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-save:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-1px);
}

   Estilos para Configuração INSS

/* Seções separadas SIAPE e INSS */
.tipo-siape {
    border: 2px solid #2563EB;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
}

.tipo-inss {
    border: 2px solid #059669;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: linear-gradient(to right, rgba(5, 150, 105, 0.05), rgba(5, 150, 105, 0.02));
}

.tipo-siape h3 {
    color: #2563EB;
    margin-top: 0;
}

.tipo-inss h3 {
    color: #059669;
    margin-top: 0;
}

/* Estilos para itens de faixa INSS */
.faixa-taxa-item-inss {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 6px;
    margin-bottom: 10px;
    background: white;
    border-left: 4px solid #059669;
}

.faixa-taxa-item-inss label {
    font-weight: 500;
    color: #555;
    min-width: 80px;
}

.faixa-taxa-item-inss input {
    padding: 6px 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 14px;
    width: 80px;
}

.faixa-taxa-item-inss input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.btn-remover-faixa-inss {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-remover-faixa-inss:hover {
    background: linear-gradient(135deg, #D32F2F, #F44336);
    transform: translateY(-1px);
}


/* Ocultar coluna CONTRATO (coluna 2) em TODAS as tabelas */
#tabelaDados th:nth-child(2),
#tabelaDados td:nth-child(2),
#tabelaSelecionados th:nth-child(2),
#tabelaSelecionados td:nth-child(2),
#tabelaAnaliseSiape th:nth-child(2),
#tabelaAnaliseSiape td:nth-child(2),
#tabelaResumoSiape th:nth-child(2),
#tabelaResumoSiape td:nth-child(2),
#tabelaResumo th:nth-child(2),
#tabelaResumo td:nth-child(2) {
    display: none !important;
}

/* REDISTRIBUIR ESPAÇO - Aumentar largura das colunas importantes */

/* Tabela Principal Siape - Novas larguras SEM coluna Contrato */
#tabelaAnaliseSiape th:nth-child(1),
#tabelaAnaliseSiape td:nth-child(1) {
    width: 200px !important;  /* Banco: 160px → 200px (+40px) */
    max-width: 200px !important;
}

#tabelaAnaliseSiape th:nth-child(3),
#tabelaAnaliseSiape td:nth-child(3) {
    width: 140px !important;  /* Parcela: 120px → 140px (+20px) */
}

#tabelaAnaliseSiape th:nth-child(4),
#tabelaAnaliseSiape td:nth-child(4) {
    width: 100px !important;  /* Prazo: 80px → 100px (+20px) */
}

#tabelaAnaliseSiape th:nth-child(5),
#tabelaAnaliseSiape td:nth-child(5) {
    width: 100px !important;  /* Taxa: 80px → 100px (+20px) */
}

#tabelaAnaliseSiape th:nth-child(6),
#tabelaAnaliseSiape td:nth-child(6) {
    width: 150px !important;  /* Quitação: 130px → 150px (+20px) */
}

/* Tabela Dados Formatados (Simulador) - Novas larguras */
#tabelaDados th:nth-child(1),
#tabelaDados td:nth-child(1) {
    width: 200px !important;  /* Banco: aumentado */
    max-width: 200px !important;
}

#tabelaDados th:nth-child(3),
#tabelaDados td:nth-child(3) {
    width: 140px !important;  /* Parcela: aumentado */
}

#tabelaDados th:nth-child(6),
#tabelaDados td:nth-child(6) {
    width: 150px !important;  /* Vl. Contrato: aumentado */
}

#tabelaDados th:nth-child(7),
#tabelaDados td:nth-child(7) {
    width: 150px !important;  /* Quitação: aumentado */
}

#tabelaDados th:nth-child(8),
#tabelaDados td:nth-child(8) {
    width: 150px !important;  /* Vl. Liberado: aumentado */
}

/* Tabela Selecionados - Novas larguras */
#tabelaSelecionados th:nth-child(1),
#tabelaSelecionados td:nth-child(1) {
    width: 200px !important;  /* Banco: aumentado */
}

#tabelaSelecionados th:nth-child(3),
#tabelaSelecionados td:nth-child(3) {
    width: 140px !important;  /* Parcela: aumentado */
}

#tabelaSelecionados th:nth-child(6),
#tabelaSelecionados td:nth-child(6) {
    width: 150px !important;  /* Vl. Contrato: aumentado */
}

#tabelaSelecionados th:nth-child(7),
#tabelaSelecionados td:nth-child(7) {
    width: 150px !important;  /* Quitação: aumentado */
}

#tabelaSelecionados th:nth-child(8),
#tabelaSelecionados td:nth-child(8) {
    width: 150px !important;  /* Vl. Liberado: aumentado */
}

/* Tabela Resumo Siape - Novas larguras */
#tabelaResumoSiape th:nth-child(1),
#tabelaResumoSiape td:nth-child(1) {
    width: 200px !important;  /* Banco: aumentado */
}

#tabelaResumoSiape th:nth-child(3),
#tabelaResumoSiape td:nth-child(3) {
    width: 140px !important;  /* Parcela: aumentado */
}

#tabelaResumoSiape th:nth-child(6),
#tabelaResumoSiape td:nth-child(6) {
    width: 150px !important;  /* Quitação: aumentado */
}
/* Adicionar borda esquerda SIAPE para diferenciação */
.faixa-taxa-item-siape {
    border-left: 4px solid #2563EB;
}

/* Ocultar coluna CONTRATO (coluna 2) em TODAS as tabelas */
#tabelaDados th:nth-child(2),
#tabelaDados td:nth-child(2),
#tabelaSelecionados th:nth-child(2),
#tabelaSelecionados td:nth-child(2),
#tabelaAnaliseSiape th:nth-child(2),
#tabelaAnaliseSiape td:nth-child(2),
#tabelaResumoSiape th:nth-child(2),
#tabelaResumoSiape td:nth-child(2),
#tabelaResumo th:nth-child(2),
#tabelaResumo td:nth-child(2) {
    display: none !important;
}

/* REDISTRIBUIR ESPAÇO - Aumentar largura das colunas importantes */

/* Tabela Principal Siape - Novas larguras SEM coluna Contrato */
#tabelaAnaliseSiape th:nth-child(1),
#tabelaAnaliseSiape td:nth-child(1) {
    width: 200px !important;  /* Banco: 160px → 200px (+40px) */
    max-width: 200px !important;
}

#tabelaAnaliseSiape th:nth-child(3),
#tabelaAnaliseSiape td:nth-child(3) {
    width: 140px !important;  /* Parcela: 120px → 140px (+20px) */
}

#tabelaAnaliseSiape th:nth-child(4),
#tabelaAnaliseSiape td:nth-child(4) {
    width: 100px !important;  /* Prazo: 80px → 100px (+20px) */
}

#tabelaAnaliseSiape th:nth-child(5),
#tabelaAnaliseSiape td:nth-child(5) {
    width: 100px !important;  /* Taxa: 80px → 100px (+20px) */
}

#tabelaAnaliseSiape th:nth-child(6),
#tabelaAnaliseSiape td:nth-child(6) {
    width: 150px !important;  /* Quitação: 130px → 150px (+20px) */
}

/* Tabela Dados Formatados (Simulador) - Novas larguras */
#tabelaDados th:nth-child(1),
#tabelaDados td:nth-child(1) {
    width: 200px !important;  /* Banco: aumentado */
    max-width: 200px !important;
}

#tabelaDados th:nth-child(3),
#tabelaDados td:nth-child(3) {
    width: 140px !important;  /* Parcela: aumentado */
}

#tabelaDados th:nth-child(6),
#tabelaDados td:nth-child(6) {
    width: 150px !important;  /* Vl. Contrato: aumentado */
}

#tabelaDados th:nth-child(7),
#tabelaDados td:nth-child(7) {
    width: 150px !important;  /* Quitação: aumentado */
}

#tabelaDados th:nth-child(8),
#tabelaDados td:nth-child(8) {
    width: 150px !important;  /* Vl. Liberado: aumentado */
}

/* Tabela Selecionados - Novas larguras */
#tabelaSelecionados th:nth-child(1),
#tabelaSelecionados td:nth-child(1) {
    width: 200px !important;  /* Banco: aumentado */
}

#tabelaSelecionados th:nth-child(3),
#tabelaSelecionados td:nth-child(3) {
    width: 140px !important;  /* Parcela: aumentado */
}

#tabelaSelecionados th:nth-child(6),
#tabelaSelecionados td:nth-child(6) {
    width: 150px !important;  /* Vl. Contrato: aumentado */
}

#tabelaSelecionados th:nth-child(7),
#tabelaSelecionados td:nth-child(7) {
    width: 150px !important;  /* Quitação: aumentado */
}

#tabelaSelecionados th:nth-child(8),
#tabelaSelecionados td:nth-child(8) {
    width: 150px !important;  /* Vl. Liberado: aumentado */
}

/* Tabela Resumo Siape - Novas larguras */
#tabelaResumoSiape th:nth-child(1),
#tabelaResumoSiape td:nth-child(1) {
    width: 200px !important;  /* Banco: aumentado */
}

#tabelaResumoSiape th:nth-child(3),
#tabelaResumoSiape td:nth-child(3) {
    width: 140px !important;  /* Parcela: aumentado */
}

#tabelaResumoSiape th:nth-child(6),
#tabelaResumoSiape td:nth-child(6) {
    width: 150px !important;  /* Quitação: aumentado */
}
