body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding: 20px; background-color: #f0f2f5; color: #333; }
.hidden { display: none; }
.container { max-width: 1200px; margin: auto; }
h1, h2, h3, h4 { color: #005b96; }
h1 { text-align: center; margin-bottom: 30px; }

/* Layout Principal */
.top-section { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.card-container { flex: 1; min-width: 400px; }
.bottom-section { width: 100%; }

.card { background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* Controles e Botões */
input[type="email"], input[type="number"], input[type="text"] { width: calc(100% - 22px); padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; }
button { background: #005b96; color: white; border: none; border-radius: 5px; cursor: pointer; padding: 12px 20px; font-size: 16px; width: 100%; transition: background-color 0.2s; margin-top: 5px; }
button:hover { background: #004472; }
button:disabled { background: #9e9e9e; cursor: not-allowed; }
.logout-button { background: #d9534f; }
.logout-button:hover { background: #c9302c; }
#btnBuscarNegativos { background-color: #f0ad4e; }
#btnBuscarNegativos:hover { background-color: #ec971f; }

/* Histórico de Emissões */
#listaEmissoes { list-style: none; padding: 0; max-height: 500px; overflow-y: auto; }
#listaEmissoes li { background-color: #f9f9f9; padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
#listaEmissoes li:last-child { border-bottom: none; }
#listaEmissoes span { font-size: 14px; }
.valor-positivo { color: #28a745; font-weight: bold; }
.valor-negativo { color: #dc3545; font-weight: bold; }

/* Resultado da Pesquisa e Edição */
#resultadoPesquisa { margin-top: 20px; padding: 15px; background-color: #e9ecef; border-radius: 5px; }
#resultadoPesquisa p { margin: 10px 0; }
#resultadoPesquisa .edit-label { font-weight: bold; display: block; margin-bottom: 5px; }
#resultadoPesquisa .edit-input { width: calc(100% - 22px); padding: 8px; font-size: 15px; border: 1px solid #999; border-radius: 5px; margin-bottom: 10px; }
.edit-actions { margin-top: 15px; display: flex; gap: 10px; }
.save-btn { background-color: #5cb85c; }
.save-btn:hover { background-color: #4cae4c; }
.reset-btn { background-color: #d9534f; }
.reset-btn:hover { background-color: #c9302c; }

/* Estilos do Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); justify-content: center; align-items: center; }
.modal-content { background-color: #fefefe; margin: auto; padding: 30px; border: 1px solid #888; width: 90%; max-width: 500px; border-radius: 10px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.modal-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.modal-buttons button { width: auto; padding: 10px 20px; }
.confirm-btn { background-color: #28a745; }
.confirm-btn:hover { background-color: #218838; }
.cancel-btn { background-color: #aaa; }
.cancel-btn:hover { background-color: #888; }
.danger-title { color: #d9534f; }
.danger-btn { background-color: #d9534f; }
.danger-btn:hover { background-color: #c9302c; }

/* Lista de Saldos Negativos */
#listaSaldosNegativos { max-height: 400px; overflow-y: auto; text-align: left; }
#listaSaldosNegativos div { padding: 8px; border-bottom: 1px solid #eee; }

/* Autocomplete (se necessário) */
.autocomplete { position: relative; display: inline-block; width: 100%; }
.autocomplete-items { position: absolute; border: 1px solid #d4d4d4; border-bottom: none; border-top: none; z-index: 99; top: 100%; left: 0; right: 0; max-height: 200px; overflow-y: auto; }
.autocomplete-items div { padding: 10px; cursor: pointer; background-color: #fff; border-bottom: 1px solid #d4d4d4; }
.autocomplete-items div:hover { background-color: #e9e9e9; }

